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

helm: graceful MySQL termination + PodDisruptionBudgets #3599

Merged
merged 2 commits into from
Jan 30, 2018

Conversation

derekperkins
Copy link
Member

This PR sets terminationGracePeriodSeconds to 600 for vttablet to give MySQL more time than the default 30s to gracefully shut down.

It also adds Pod Disruption Budgets to vtgate and vttablet to only allow one pod per cell, keyspace, shard and tablet type to be unavailable at any point. This eliminates the possibility of voluntary actions taking down an entire shard.

@enisoc

Copy link
Member

@enisoc enisoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good other than a couple nits.

@@ -122,6 +122,22 @@ spec:
- name: creds
emptyDir: {}

---
###################################
# vttablet PodDisruptionBudget
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

forgot to update comment to vtgate

apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: {{ $setName }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit overly defensive for an object name, but by convention we try to use | quote for all strings.

@derekperkins derekperkins force-pushed the termination-grace-period branch from 03891ac to cb242c1 Compare January 30, 2018 00:12
@derekperkins
Copy link
Member Author

Thanks for the review. Nits now annihilated.

@enisoc
Copy link
Member

enisoc commented Jan 30, 2018

LGTM

Approved with PullApprove

@enisoc enisoc merged commit 878ddcc into vitessio:master Jan 30, 2018
@derekperkins derekperkins deleted the termination-grace-period branch January 30, 2018 01:31
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