-
Notifications
You must be signed in to change notification settings - Fork 83
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
"sleep pause" commands is anti pattern in procfile ? #145
Comments
Procfile is a very simple format that doesn't support health checks. Applications that use it can't determine the readiness of processes and thus can't make processes wait for their dependencies' readiness. In this situation, Changing your application so it retries connection to its dependency is a good solution, yet it's not always possible to change your application like this. So I think the best solution is to use some kind of tool or wrapper that waits for dependency readiness before starting a process. For example, the wait-for-it script can wait until it can connect to the requested port. |
A golang equivalent o wait for it would be good. Can then wrap any program with it. I used aqua proxy for this once and it might work well with overmind. The same sort of thing for a socket is needed. Caller asks and proxy waits for the socket to be there and then lets the call through . |
Golang equivalent |
this is working very well on mac . really useful tool.
I was wondering about startup dependency ordering, and am looking for advice.
I read in the issues about users wanting a sleep function to force the procfile processing to wait for something to start.
But it seems like an anti pattern.
Better to design your calling binaries to try to connect to something else and then back off and try again ?
The text was updated successfully, but these errors were encountered: