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

docker watcher proposal: use the events API instead of polling #120

Open
dnephin opened this issue May 16, 2015 · 2 comments
Open

docker watcher proposal: use the events API instead of polling #120

dnephin opened this issue May 16, 2015 · 2 comments

Comments

@dnephin
Copy link

dnephin commented May 16, 2015

Replace polling by streaming the events API

  • using the events API filter by the start event to get notified of all new containers that have started
  • when a new container starts, check it against the list of criteria and register it if it matches
  • removes the need to poll, and keep track of the list of previous containers
  • the /containers/json endpoint that it uses now can be pretty slow with large numbers of containers
@dnephin
Copy link
Author

dnephin commented May 16, 2015

cc @bobtfish, @bcicen, @rgarcia

You've all worked with this watcher or have pending PRs for it. What do you think about this idea?

@bobtfish
Copy link
Contributor

👍

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

2 participants