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

Send the base hash code for of each Hot Rod endpoint back to clients

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 5.1.0.CR1
    • None
    • Remote Protocols
    • None

      Make Hot Rod server protocol 1.1 send a 32-bit hash or similar of the JGroups address, and make both clients and servers hash on that.

      The benefits of doing this, instead of relying on the Hot Rod endpoint are multiple, see attached Infinispan Dev list thread for more info.

      This requires changing Hot Rod protocol 1.1 which is introduced in 5.1: https://docs.jboss.org/author/display/ISPN/Hot+Rod+Protocol+-+Version+1.1

      This is pretty much going back to what we had in 1.0, except for the fact that we only send one host:port:hashcode combo for each node, as opposed to for each virtual node. As shown in the updated protocol documentation, this means that there's a contract now set in terms of hash code normalization and virtual node hash code production.

      This means as well that we don't need the hash seed functionality any more, at expense of a few extra bytes in the payload.

            rh-ee-galder Galder ZamarreƱo
            rh-ee-galder Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: