2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Hi, if you want to have good control of what happens at JVM shutdown triggered by ECS to drain your sessions and do other things for a clean shutdown, you should insert shutdown hooks in your JVM config.
See https://www.baeldung.com/jvm-shutdown-hooks
With such hooks in place, you can do what you need: wait for existing sessions to complete, etc. before proceeding to effective shutdown
Best,
Didier
0
yeah, that doesn't really help... the application I have is constantly receiving new HTTP requests.... I need ECS to stop sending requests / drain connections... THEN tell the JVM after all the connections are drained to stop...
Am I wrong that the ECS process should be 1) deregister, 2) drain, 3) shutdown?
répondu il y a 10 mois
Contenus pertinents
- demandé il y a un an
- demandé il y a 7 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 2 ans