Add shutdown hook #6728
Labels
containers
Docker, docker-compose, Kubernetes, operators
enhancement
New feature or request
performance
Performance & Scalability/reliability related
pinned
Keep open (do not time out)
Is there an existing issue for this?
Please describe the new behavior that that will improve Egeria
Add a shutdown hook for Egeria, specifically to handle SIGTERM
In operational environments the system/container/process running an Egeria platform may need to be shutdown externally - a system restart, or Kubernetes killing a pod.
These systems are not aware of Egeria APIs, and will typically send a SIGTERM to the jvm, wait about 30s, and then send a SIGKILL (which cannot be handled/blocked)
Egeria should register a shutdown hook, and on received of a SIGTERM or similar, should do what we can to clean down sufficiently cleanly, for a temporary stop. For example this might include attempting to commit the appropriate Kafka offsets, but also it gives opportunity to do other things, for example it may be possible to call connectors to stop - however timescales are short, and we need to take care with any blocking calls.
This may improve resilience/restart time.
Currently the SIGTERM will directly kill the vm - which does of course work
Alternatives
Currently the SIGTERM will directly kill the vm - which does of course work. We may decide this is sufficient
Any Further Information?
No response
Would you be prepared to be assigned this issue to work on?
The text was updated successfully, but these errors were encountered: