Zookeeper for assigning shard indexes

limelike

New Member
I've seen some posts online about using Zookeeper to assign shard numbers to servers as they come online (assuming you are sharding data across a cluster) - but for the life of me cannot find a Java code example of how to do this. Anyone have this working already? Thanks.
 
Top