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

[feature suggestion] redis-cli --wait and --wait-cluster #4454

Open
dvirsky opened this issue Nov 20, 2017 · 0 comments
Open

[feature suggestion] redis-cli --wait and --wait-cluster #4454

dvirsky opened this issue Nov 20, 2017 · 0 comments

Comments

@dvirsky
Copy link
Contributor

dvirsky commented Nov 20, 2017

When I'm scripting redis setups, I want to wait until redis is ready for business (rdb loaded, replication in sync, etc). Especially in a cluster, I want to wait until the cluster state is ok.

It would be cool if instead of writing busy loops, redis-cli could automate this, and supports a mode where it waits (with timeout) until redis is ready or the cluster is okay, and then returns with 0 code if all ok, or -1 on timeout.

So my script can look like

foreman start -f Procfile.cluster & \
  redis-cli --wait-cluster 10 && \
  do_something()
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