penumbra-zone / galileo

Discord bot for the Penumbra discord
2 stars 5 forks source link

Health endpoint when service ready #73

Open conorsch opened 10 months ago

conorsch commented 10 months ago

Syncing takes a long time: currently ~15m for 200k blocks, or one week of a testnet. This time to sync will grow. Currently, restarting Galileo for any reason, such as deploying a code fix (https://github.com/penumbra-zone/galileo/pull/72), causes ~15m of downtime while the service syncs.

If Galileo had a /healthz endpoint, we could return non-200 while view server is syncing, and 200 OK when it's ready. Doing that would allow us to roll over Galileo deployments with minimal downtime.

However, at root we want syncing to be fast.