Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic config provider #1

Open
rkaw92 opened this issue Jun 22, 2014 · 0 comments
Open

Dynamic config provider #1

rkaw92 opened this issue Jun 22, 2014 · 0 comments

Comments

@rkaw92
Copy link
Member

rkaw92 commented Jun 22, 2014

Right now, nodeconfig only supports a single configuration provider which is only capable of one-shot operation (i.e. will never emit more than once).
At least one dynamic configuration provider needs to be implemented, where the config data is passed at arbitrary moments during run-time.
Care should be taken to ensure that the process will receive the first config package - perhaps a "poll on start" mechanism should be bundled with the provider.

Viable options for subscribing to config:

  • AMQP messages with the whole config embedded
  • ZeroMQ periodic broadcasts (would require config value change detection, or services will go crazy)
  • redis keys containing whole config + notification on changes via pub/sub
  • Filesystem + inotify (note: this is already being worked on, but using a different approach: NodeManager is a module which passes configs via ENV and restarts services when it detects config file change)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant