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

add storeLabels setting #527

Merged
merged 19 commits into from
Jul 3, 2019

Conversation

xiaojingchen
Copy link
Contributor

@xiaojingchen xiaojingchen commented May 28, 2019

What problem does this PR solve?

  • add storeLabels setting

What is changed and how it works?

Check List

Tests

  • E2E test
  • Stability test
  • Manual test [done]

Code changes

  • Has Helm charts change
  • Has Go code change

Side effects
user must know current storeLabel cannot support contains the slash character.

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation

Does this PR introduce a user-facing change?:

Add `tikv.storeLables` setting

charts/tidb-cluster/templates/tidb-cluster.yaml Outdated Show resolved Hide resolved
charts/tidb-cluster/templates/tidb-cluster.yaml Outdated Show resolved Hide resolved
@@ -192,6 +193,14 @@ tikv:
# effect: "NoSchedule"
annotations: {}

## storeLabels is used to define store label keys
Copy link
Member

Choose a reason for hiding this comment

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

In order to use the location awareness feature of TiKV, users have to label their k8s nodes with the same labels.

}
if host, found := ls[apis.LabelHostname]; found {
labels["host"] = host
if storeLabel == "host" {
Copy link
Member

Choose a reason for hiding this comment

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

Add a TODO note that this needs to be changed when PD supports label key containing slash character.

@xiaojingchen xiaojingchen marked this pull request as ready for review June 28, 2019 06:51
@xiaojingchen
Copy link
Contributor Author

/run-e2e-tests

@xiaojingchen
Copy link
Contributor Author

/run-e2e-tests

@xiaojingchen
Copy link
Contributor Author

/run-e2e-tests

@xiaojingchen
Copy link
Contributor Author

/run-e2e-tests

tennix
tennix previously approved these changes Jul 2, 2019
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

@xiaojingchen
Copy link
Contributor Author

/run-e2e-tests

@xiaojingchen
Copy link
Contributor Author

/run-e2e-tests

@xiaojingchen
Copy link
Contributor Author

/run-e2e-tests

@weekface
Copy link
Contributor

weekface commented Jul 3, 2019

@tennix this pr needs another approval

@xiaojingchen xiaojingchen merged commit 9a73329 into pingcap:master Jul 3, 2019
@xiaojingchen xiaojingchen deleted the refine-store-labels branch July 3, 2019 09:39
yahonda pushed a commit that referenced this pull request Dec 27, 2021
Co-authored-by: Ran <huangran@pingcap.com>
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