There is a situation where there are 2 containers within the pod and one takes requests from 2nd while it is in termination.
Let's say Container 1 depends on Container 2 and both the containers receive SIGTERM
simultaneously and Container 2 stops quickly and all the inflight requests in Container 1 being dependent on Container 2 starts failing.
Any solution for this?
In this case, the containers are better fitted to running on two different pods (IMHO)
And adding a retry mechanism using code/servicemesh to make the application more resilient
For example https://istio.io/latest/docs/concepts/traffic-management/#retries
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.