Skip to content

Instantly share code, notes, and snippets.

View danberindei's full-sized avatar

Dan Berindei danberindei

  • DemandLane
  • Cluj-Napoca, Romania
View GitHub Profile
ConfigurationBuilder cb = new ConfigurationBuilder();
cb.clustering().hash().capacityFactor(2.0f);
<namedCache name="capacity_factors">
<clustering mode="distribution">
<hash capacityFactor="0.5"/>
</clustering>
</namedCache>
@danberindei
danberindei / autolink.user.js
Created October 31, 2012 12:16
AutoLink (Modified for Twitter/JBoss JIRA)
@danberindei
danberindei / HotRodSegmentsProposal
Last active October 10, 2015 08:47
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]