Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Alpha panics when started without its Zero node #2289
When starting up an Alpha node without its associated Zero, Alpha will try to connect to Zero several times, then panic with a message like
This makes it hard to keep a Dgraph cluster running reliably, because Alpha servers can't be trusted to stay up. Even if a watchdog like monit or systemd watches Alpha, it may conclude after several repeat crashes that the service is truly broken and should not be restarted. May I suggest having Alpha retry forever, instead of panicking?
I think this might also make it possible to start Zero and Alpha concurrently, which would simplify cluster startup. :)