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

Switch store-gateway StatefulSets to Parallel Pod Management #126

Merged
merged 1 commit into from
Jul 6, 2020

Conversation

pracucci
Copy link
Collaborator

@pracucci pracucci commented Jul 2, 2020

StatefulSets support two pod management policies:

  • OrderedReady (default)
  • Parallel

When using Parallel rolling updates are still managed 1-by-1 (like OrderedReady) but scale up/down are parallel. This means that in the event of a cluster cold start, store-gateway instances can be started all at once instead of waiting 1-by-1.

I've done several manual tests in our test cluster and Parallel looks working fine. Manual tests done:

  • Cold start: instances are started all at once
  • Scale up/down > 1 instances at a time: instances are started/terminated all at once
  • Rolling update: instances are rolled out 1-by-1

IMPORTANT: the pod management policy is one of these settings that cannot be changed to an existing StatefulSet. This means that to apply these changes the StatefulSet must be deleted and re-created, causing a (short) outage in the read path. Considering the blocks storage is not production ready yet, I would suggest to fix this pod management policy now instead of living with some unwanted legacy.

@pracucci pracucci requested a review from pstibrany July 2, 2020 10:34
@pracucci pracucci requested a review from a team as a code owner July 2, 2020 10:34
@tomwilkie
Copy link
Contributor

Ohhh nice find!

@pracucci pracucci merged commit e60cea8 into master Jul 6, 2020
@pracucci pracucci deleted the switch-store-gateway-to-parallel-pod-management branch July 6, 2020 09:29
simonswine pushed a commit to grafana/mimir that referenced this pull request Dec 20, 2021
…re-gateway-to-parallel-pod-management

Switch store-gateway StatefulSets to Parallel Pod Management
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

Successfully merging this pull request may close these issues.

3 participants