bluesky / tiled

API to structured data
https://blueskyproject.io/tiled
BSD 3-Clause "New" or "Revised" License
59 stars 50 forks source link

Healthchecks and containers #648

Closed dylanmcreynolds closed 6 days ago

dylanmcreynolds commented 8 months ago

Without other configuration, container systems determine that tiled is healthy by waiting on the entrypoint/command to exit. If you're using docker-compose or k8s, you probably want to be more specific. Your probably want to send http requests to the server instead.

For k8s, I think you can configure this within the manifest by configuring what url to fetch from. For docker-compose, I think you need to configure a script to run in the container. The simplest example I can think see is in the docker-compose documentation.

So, I have two ideas in this area for tiled to consider:

  1. Incur the massive overhead of installing curl in the tiled docker image so make this easier.
  2. Add a healthz endpoint to the tiled server so that when we see these health requests, we know why, and we can code it to do as little work as we can get away with.
danielballan commented 8 months ago

I would merge PRs doing both.