Is there some library or project out there that works like Zookeeper but has no java dependency? I'm looking at putting this on an embedded linux system, and need minimal footprint... something like a megabyte or less. I have Lua, C and C++ runtimes, and could put something like NewLISP on there if I had to. Most or all of the clients will be C or C++, a nice command line utility for the benefit of shell scripts would also be useful. http://zookeeper.apache.org/
Asked
Active
Viewed 9,497 times
18
-
are you looking to run the client or the server on an embedded system? – sbridges Oct 02 '11 at 01:26
-
Both. I have plenty of memory, BTW, but not a lot of code space. – Andrew McGregor Oct 02 '11 at 02:53
-
2Possible duplicate: [Zookeeper alternatives](http://stackoverflow.com/q/6047917/1084416). – Peter Wood Jan 23 '13 at 12:41
-
Possible duplicate of [ZooKeeper alternatives? (cluster coordination service)](https://stackoverflow.com/questions/6047917/zookeeper-alternatives-cluster-coordination-service) – Peter Wood May 31 '17 at 21:52
3 Answers
10
Maybe check out etcd:
etcd
A highly-available key value store for shared configuration and service discovery. etcd is inspired by zookeeper and doozer, with a focus on:
- Simple: curl'able user facing API (HTTP+JSON)
- Secure: optional SSL client cert authentication
- Fast: benchmarked 1000s of writes/s per instance
- Reliable: Properly distributed using Raft
Etcd is written in go and uses the raft consensus algorithm to manage a highly availably replicated log.
See go-etcd for a native go client. Or feel free to just use curl, as in the examples below.
-
etcd has some serious limits. Given the scale that CoreOS wants to get to etcd has to scale too. Right now it's too early to tell. – Richard Apr 05 '14 at 01:48
10
There is accord,
Accord is a high-performance coordination service like Apache ZooKeeper
It looks like accord is written in c.

sbridges
- 24,960
- 4
- 64
- 71
-
Aaaand we have a winner... especially since corosync is already on there as well as part of something else. Thanks. – Andrew McGregor Oct 02 '11 at 22:07
-
-
4