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 on 2015-04-10

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

Language:
English Edit question
Status:
Answered
For:
Ubuntu python-tooz Edit question
Assignee:
No assignee Edit question
Last query:
2015-04-10
Last reply:
2015-04-10
Joshua Harlow (harlowja) said : #1

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.