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 官方已更新 1 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前