|
|
|
|
|
by paranoidrobot
464 days ago
|
|
> You don't need the preStop scam as long as your workload respects SIGTERM and does lame-duck. Calling it a scam is a bit much. I think having to put the logic of how the load balancer works into the application is a crossing of concerns.
This kind of orchestration does not belong in the app, it belongs in the supporting infrastructure. The app should not need to know how the load balancer works with regards to scheduling. The ALB Controller should be doing this. It does not, and so we use preStop until/unless the ALB controller figures it out. Yes, the app needs to listen for SIGTERM and wait until it's outstanding requests are completed before exiting - but not more than that. |
|