2回答
- 新しい順
- 投票が多い順
- コメントが多い順
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?
回答済み 10ヶ月前
関連するコンテンツ
- AWS公式更新しました 3年前