Re: Using Zookeeper to distribute tasks

2010-05-19 Thread David Rouchy
Hi all, I'm studying ZooKeeper to see how we can use it in a project. I'm still a little big puzzled by the usage of zookeeper for distributing tasks. The usage of queue does not fully fit the bill. I was just wondering if it would be interesting / realistic to use a kind of "election" to decide o

Re: Using Zookeeper to distribute tasks

2010-05-19 Thread Patrick Hunt
That's the beauty of zk, it's provides primitives that allow you much flexibility in what/how you implement something. Perhaps you could sketch out a bit more detail on what you had in mind, requirements/goals and such? What I mean is, from a high level coordination perspective, then we could s

Re: Concurrent reads and writes on BookKeeper

2010-05-19 Thread Flavio Junqueira
Hi Andre, To guarantee that two clients that read from a ledger will read the same sequence of entries, we need to make sure that there is agreement on the end of the sequence. A client is still able to read from an open ledger, though. We have an open jira about informing clients of the pr

Re: Concurrent reads and writes on BookKeeper

2010-05-19 Thread Patrick Hunt
On 05/19/2010 01:23 PM, Flavio Junqueira wrote: Hi Andre, To guarantee that two clients that read from a ledger will read the same sequence of entries, we need to make sure that there is agreement on the end of the sequence. A client is still able to read from an open ledger, though. We have an