Upon receiving SIGTERM, tileserver should:
- Start responding to health check requests with an error.
- Wait a configurable grace period, or until all outstanding requests have finished.
- Shut down.
This allows tileserver to work with ELB connection draining or HAProxy to terminate while not dropping any requests. If this is done along with staggering shutdowns / upgrades so that only part of the cluster is down at any one time, then no requests are lost.
Upon receiving SIGTERM, tileserver should:
This allows tileserver to work with ELB connection draining or HAProxy to terminate while not dropping any requests. If this is done along with staggering shutdowns / upgrades so that only part of the cluster is down at any one time, then no requests are lost.