Skip to content
This repository has been archived by the owner on Mar 18, 2019. It is now read-only.

Backoff retry for service launching #89

Open
sirsean opened this issue Mar 16, 2016 · 1 comment
Open

Backoff retry for service launching #89

sirsean opened this issue Mar 16, 2016 · 1 comment

Comments

@sirsean
Copy link
Contributor

sirsean commented Mar 16, 2016

Currently, the Kafka and Desdemona containers sleep for a constant number of seconds before trying to start up, to give the services they depend on time to finish launching and configuring themselves. This helps us "avoid" a startup race condition, but is obviously wrong.

We need to be able to attempt to start, and if the dependencies are not ready yet, pause and wait to try again rather than completely failing. It should have an exponential backoff to maximize reliability.

@lvh
Copy link
Contributor

lvh commented Mar 17, 2016

This would (should) also have the benefit of not making /bin/bash pid 1, and ideally having a real init for it, even if it's a dumb init a la phusion's my-init or Yelp's dumb-init.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants