Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-2587

Optimize command forwarding after topology changes

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 5.2.0.Beta5
    • State Transfer
    • None

      When a node receives a command with a topology id lower than its own topology id, it forwards the command to all the owners in the current topology.

      This is especially bad in replicated caches, where all the nodes check whether to forward or not, and after a join we may get n * (n-1) forwarded commands instead of just n.

      Most of the time the difference between the current topology id and the command's topology id is <= 1, so we could avoid a lot of the extra forwarding if we kept the previous cache topology and we forwarded the command only to the owners added in the latest topology. Obviously, if the command is older we'd still forward it to all the owners.

            Unassigned Unassigned
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: