we have a use case to store a config file using Tooz and have multiple processes running on different nodes get notified when the file content changes, just wanted to check if Tooz can be used, and if yes, which backend is mot suited for this purpose

Asked by Rohit Jaiswal

We have a configuration file that is used by a process. In HA mode, we have multiple such processes running on different nodes, each using their local copy of the config file. To make a change, each copy has to be changed.

We want to use a coordination mechanism that is centralized, so just considering Tooz for this purpose.

Is there a way to store this config file, make the processes subscribe to a Tooz group as watchers and have them notified when the file changes? Does Tooz-Zookeeper sound like a good combination? Would Tooz even support this requirement?

Question information

English Edit question
Ubuntu python-tooz Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Joshua Harlow (harlowja) said :

So I'm not sure if tooz is good for storing a config file (its not); but for group membership concepts (and getting notified of removals/additions) it is. Tooz really isn't at its current time a storage mechanism, you could consider using http://kazoo.readthedocs.org/ for this (and its a common usage pattern of zookeeper to do this), but for now tooz is more around the group membership concepts, locks and those types of primitives (no storage of things in groups).

Can you help with this problem?

Provide an answer of your own, or ask Rohit Jaiswal for more information if necessary.

To post a message you must log in.