You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's either the init workaround with tini, that should be documented, or explicit signal handling in the graphql-engine binary which could help alleviate the situation.
The text was updated successfully, but these errors were encountered:
Is your proposal related to a problem?
When stopping a container that is based on
hasura/graphql-engine
it takes 10 seconds, until the container scheduler issues SIGKILL.Reacting to SIGTERM would allow to shut down the process gracefully.
Describe the solution you'd like
The process launched by the image built from https://github.com/hasura/graphql-engine/blob/master/packaging/graphql-engine/Dockerfile reacts to SIGTERM signals.
This could be achieved by providing the
tini
binary in the container image and using that to launch the entrypoint command.Describe alternatives you've considered
Users of the container can always use the
--init
flag of therun
command to wraptini
around the entrypoint.This is also available for Docker Compose when providing the
init: true
property to services.In case this behaviour is preferred, it should be documented.
Example:
After launching the containers once without and once with the
init
flag, the shutdown times differ greatly:The need for using an init process to catch signals is visible by a shutdown time of almost exactly 10 seconds.
It's either the
init
workaround withtini
, that should be documented, or explicit signal handling in thegraphql-engine
binary which could help alleviate the situation.The text was updated successfully, but these errors were encountered: