2 Respuestas
- Más nuevo
- Más votos
- Más comentarios
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?
respondido hace 10 meses
Contenido relevante
- OFICIAL DE AWSActualizada hace 10 meses
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 3 años