zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: very uneven distribution of clients to servers...
Date Wed, 05 Dec 2012 22:54:43 GMT
Shuffle depends on Math.random which is seeded by time of start.  That
should be just fine.

On Wed, Dec 5, 2012 at 11:35 PM, Camille Fournier <camille@apache.org>wrote:

> If you're using the Java ZooKeeper client, you can see in the code that the
> way connections are established is that we parse the server list, resolve
> them to inet addresses, and call Collections.shuffle on the list of server
> addresses. It's possible that Collections.shuffle is not random enough but
> I suspect that there's something else happening.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message