News for hackers. Stuff that matters.
Re:ZooKeeper vs. Doozer vs. Etcd by voidmain on Wednesday September 11, 2013 @10:38AM (#6367413)
I agree. At FoundationDB, we're writing a coordination tool (working name "beastmaster") that provides service discovery, locking, leader election, etc on top of our transactional key/value store. It is higher level than these tools; our idea is to try to make it useful from a command line or DNS rather than have to be baked into every piece of software that needs service discovery.

    beast service --lock name=mailserver.foundationdb.com --run mailserver.sh &
    beast service name=webserver.foundationdb.com --run webserver.sh &
    ping mailserver.foundationdb.com
    wget http://webserver.foundationdb.com/
Re:ZooKeeper vs. Doozer vs. Etcd by philips on Wednesday September 11, 2013 @12:13PM (#6368073)
That is cool! How are you doing locking for transactions right now internally?

You can use etcd from the command line with etcdctl or grab environment variables for your process using etcdenv.

I would love to see someone back a DNS server with etcd too.

etcdctl: https://github.com/coreos/etcdctl etcdenv: https://github.com/mattn/etcdenv

Re:ZooKeeper vs. Doozer vs. Etcd by voidmain on Wednesday September 11, 2013 @01:52PM (#6368709)
FoundationDB (https://foundationdb.com) provides optimistic transactions-- the client does reads from a consistent snapshot, and then tells the database what it wants to write and what serializable reads it did, and the database figures out whether the transaction can safely commit or whether it needs to be retried.

Beastmaster is just a client that sits on top of FoundationDB's transactions and fault tolerance, and adds coordination-specific things like a global clock, fair locks with timeouts, and a data model for service discovery. And then provides useful command line tools and a simple DNS and REST server. We should have it on github soon.

Re:ZooKeeper vs. Doozer vs. Etcd by enigmo on Wednesday September 11, 2013 @10:53AM (#6367520)
That's how our Chubby clone works... it uses the Route53 API to publish service endpoints and leaders.
Re:ZooKeeper vs. Doozer vs. Etcd by fintler on Wednesday September 11, 2013 @11:15AM (#6367697)
I'm also in the club of people building one of these things (mine is on top of LevelDB and written in ANSI C with a lock-free design).

My most recent blog post is on getting the thing to bootstrap: http://www.bringhurst.org/2013/09/09/consensus-quorum-bootst...

Re:ZooKeeper vs. Doozer vs. Etcd by enigmo on Wednesday September 11, 2013 @11:23AM (#6367748)
Ours is on top of LevelDB too but "lock free" in Haskell using the STM.
Re:ZooKeeper vs. Doozer vs. Etcd by jeremyjh on Wednesday September 11, 2013 @01:25PM (#6368519)
Is this open source?
Re:ZooKeeper vs. Doozer vs. Etcd by enigmo on Wednesday September 11, 2013 @06:47PM (#6370673)
Not yet... it'll land here when it's ready https://github.com/alphaHeavy