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

Sets node count for default pool equal to total desired node count to correctly size master #673

Conversation

jlerche
Copy link
Contributor

@jlerche jlerche commented Jul 19, 2019

What problem does this PR solve?

Closes #615

What is changed and how does it work?

GKE master node is sized initially to expect 5 or fewer nodes when first provisioned, or the size of the default node pool. Previously, the initial node count for the default pool was 1 (3 total because one per availability zone), so when the rest of the node pools get provisioned, GKE would then upgrade the master node to accommodate the rest of the nodes. This change sets the initial node count of the default pool to be equal to the sum of the node counts for the other pools (pd, tikv, tidb, monitor). With this, the master node is correctly sized and does not upgrade shortly after creating the cluster, as it did previously.

Check List

Tests

  • Manual test (add detailed scripts or steps below)
  • terraform apply to GKE
  • When all done, wait and see if master node auto upgrades

Code changes

  • Has Terraform changes

Does this PR introduce a user-facing change?:

NONE

@jlerche jlerche requested review from gregwebs and aylei July 19, 2019 23:18
Copy link
Contributor

@aylei aylei left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@tennix tennix left a comment

Choose a reason for hiding this comment

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

LGTM

@tennix tennix merged commit 21bd6d3 into pingcap:master Jul 22, 2019
weekface pushed a commit that referenced this pull request Jul 29, 2019
yahonda pushed a commit that referenced this pull request Dec 27, 2021
* add en release notes of v1.1 & v1.0

Signed-off-by: Ran <[email protected]>

* add en rn of v0.x; add all zh rn

Signed-off-by: Ran <[email protected]>

* fix deadlink

Signed-off-by: Ran <[email protected]>

* fix ci

Signed-off-by: Ran <[email protected]>

* fix anchor

Signed-off-by: Ran <[email protected]>

* Update en/releases/release-0.2.1.md

* Update zh/releases/release-0.2.1.md

* update format and typo

Signed-off-by: Ran <[email protected]>

* update capitalization of proper nouns

Signed-off-by: Ran <[email protected]>

Co-authored-by: Lilian Lee <[email protected]>
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.

gcp terraform does not use the latest master version
4 participants