[infinispan-issues] [JBoss JIRA] (ISPN-2587) Optimize command forwarding after topology changes

Dan Berindei (JIRA) jira-events at lists.jboss.org
Wed Dec 5 08:30:21 EST 2012


Dan Berindei created ISPN-2587:
----------------------------------

             Summary: Optimize command forwarding after topology changes
                 Key: ISPN-2587
                 URL: https://issues.jboss.org/browse/ISPN-2587
             Project: Infinispan
          Issue Type: Task
          Components: State transfer
    Affects Versions: 5.2.0.Beta5
            Reporter: Dan Berindei
            Assignee: Dan Berindei
             Fix For: 5.2.0.Final


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.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list