Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update all pods at the same time #302

Open
cintoSunny opened this issue Aug 12, 2022 · 2 comments
Open

Update all pods at the same time #302

cintoSunny opened this issue Aug 12, 2022 · 2 comments

Comments

@cintoSunny
Copy link
Contributor

cintoSunny commented Aug 12, 2022

Is there any way to perform an update action on all pods simultaneously?

We have a Druid running in Kubernetes as a stateful set where we want to update all the pods at the same time. We cannot seem to find a configuration for that. I am aware of rollingUpdate, which only updates one pod at a time.

We need this in case we want to prevent intermediate shuffling if the historicals come up one by one.

This is what we have currently

  updateStrategy:
    rollingUpdate:
      partition: 2
    type: RollingUpdate

Is there any other hack to get this done? Or is it something that the community is thinking about.

@AdheipSingh
Copy link
Contributor

@cintoSunny if you keep rollingDeploy: false all update should happen in parallel, rollingDeploy shall call the objFullyDeployed() functions to make sure each sts/deploy updated is done full and then move to next one.

UpdateStrategy is the underlying statefulset properties.

@cintoSunny
Copy link
Contributor Author

@AdheipSingh : I'll check it out.
But, just to confirm, I want all the replicas in an sts to bounce at the same time. So, If I have a druid cluster with 5 historicals and 3 middle managers, I want all the 5 replicas/pods in historicals and 3 in middlemanager restarting simultaneously.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants