bbcarchdev / libcluster

Clustering support library (originally part of anansi)
Apache License 2.0
0 stars 2 forks source link

Allow storing and retrieving of per-instance data #3

Open nevali opened 9 years ago

nevali commented 9 years ago

When using etcd, we could store something more complex than just the thread count. The nature of JSON objects is such that this case would be easy to detect for compatibility. With proper phasing, a forward-compatibility release could be introduced which coped with the new format, ahead of actually storing objects in that format.

Rather than storing a numeric value, we would store an object whose workers member was the current number of threads/sub-processes.