Skip to content

Instantly share code, notes, and snippets.

@danberindei
Last active October 10, 2015 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save danberindei/3664504 to your computer and use it in GitHub Desktop.
Save danberindei/3664504 to your computer and use it in GitHub Desktop.
HotRod 1.2 proposal
Response header with topology change marker
Topology Id [vInt]
Num Key Owners [2b - Unsigned Short]
Hash Function Version [1b]
Hash space size [vInt]
Num servers in topology [vInt]
m1: Host/IP length [vInt] m1: Host/IP address [string] m1: Port [2b - unsigned short]
m2: Host/IP length [vInt] m2: Host/IP address [string] m2: Port [2b - unsigned short]
...
Num segments in topology [vInt]
s1: Segment end [4b] s1: Num owners [1b] s1: 1st owner's index [vInt] s1: 2nd owner's index [vInt] ...
s2: Segment end [4b] s2: Num owners [1b] s2: 1st owner's index [vInt] s2: 2nd owner's index [vInt] ...
...
@galderz
Copy link

galderz commented Jan 16, 2014

With num owners included in "Num segments in topology", we no longer need "Num Key Owners [2b - Unsigned Short]".

Remove hash space size.

@galderz
Copy link

galderz commented Feb 24, 2014

"Num owners" should be a vInt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment