Context: We have multiple processes that are watching the same feature flag to determine whether a restart is required, and trying to determine if we need to ensure that exactly one process calls kubectl rollout restart
.
Suppose n
processes simultaneously call kubectl rollout restart
on the same deployment, for n > 3
.
Which of the following behaviors is expected to happen?
- The deployment goes down entirely as the overlapping restarts cause different pods to be deleted.
- All the restarts eventually run, but they run serially.
- Some number of restarts m, where m < n will run serially.
- Something else.
I have searched around but haven't found documentation about this behavior, so a pointer would be greatly appreciated.