Skip to content

Specify extra store labels by param --labels#420

Merged
ti-chi-bot[bot] merged 5 commits intoraftstore-proxyfrom
set_extra_labels
Feb 10, 2025
Merged

Specify extra store labels by param --labels#420
ti-chi-bot[bot] merged 5 commits intoraftstore-proxyfrom
set_extra_labels

Conversation

@JaySon-Huang
Copy link
Collaborator

@JaySon-Huang JaySon-Huang commented Feb 8, 2025

What is changed and how it works?

Issue Number: Ref pingcap/tiflash#9750

What's Changed:

* Remove param `--engine-role-label`
* Specify extra store labels by param `--labels`
  * If there are duplicated key in `server.labels` and `--labels`, use the one in `server.labels`

Related changes

  • PR to update pingcap/docs/pingcap/docs-cn:
  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Release note


Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
@ti-chi-bot ti-chi-bot bot added the size/L label Feb 8, 2025
@JaySon-Huang
Copy link
Collaborator Author

@CalvinNeo PTAL

Signed-off-by: JaySon-Huang <tshent@qq.com>
@ti-chi-bot ti-chi-bot bot added size/XL and removed size/L labels Feb 8, 2025
.required(false)
.takes_value(true),
)
.arg(
Copy link
Member

Choose a reason for hiding this comment

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

Why not just keep it at the same place before print-sample-config? Clearer.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because I want to keep the config items that affects store's label being put together. IMO, it's clearer than for later code reading.

Signed-off-by: JaySon-Huang <tshent@qq.com>
Copy link
Member

@CalvinNeo CalvinNeo left a comment

Choose a reason for hiding this comment

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

lgtm

@ti-chi-bot ti-chi-bot bot added the lgtm label Feb 10, 2025
@ti-chi-bot
Copy link

ti-chi-bot bot commented Feb 10, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: CalvinNeo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot
Copy link

ti-chi-bot bot commented Feb 10, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-02-10 05:54:15.161682446 +0000 UTC m=+249497.557904500: ☑️ agreed by CalvinNeo.

@ti-chi-bot ti-chi-bot bot added the approved label Feb 10, 2025
@ti-chi-bot ti-chi-bot bot merged commit 47fa6ce into raftstore-proxy Feb 10, 2025
4 checks passed
@JaySon-Huang JaySon-Huang deleted the set_extra_labels branch February 10, 2025 07:54
JaySon-Huang added a commit that referenced this pull request Feb 11, 2025
ref pingcap/tiflash#9750

* Remove param `--engine-role-label`
* Specify extra store labels by param `--labels`
  * If there are duplicated key in `server.labels` and `--labels`, use the one in `server.labels`

Signed-off-by: JaySon-Huang <tshent@qq.com>
JaySon-Huang added a commit that referenced this pull request Feb 11, 2025
ref pingcap/tiflash#9750

* Remove param `--engine-role-label`
* Specify extra store labels by param `--labels`
  * If there are duplicated key in `server.labels` and `--labels`, use the one in `server.labels`

Signed-off-by: JaySon-Huang <tshent@qq.com>
JaySon-Huang added a commit that referenced this pull request Feb 11, 2025
ref pingcap/tiflash#9750

* Remove param `--engine-role-label`
* Specify extra store labels by param `--labels`
  * If there are duplicated key in `server.labels` and `--labels`, use the one in `server.labels`

Signed-off-by: JaySon-Huang <tshent@qq.com>
ti-chi-bot bot pushed a commit that referenced this pull request Feb 13, 2025
JaySon-Huang added a commit that referenced this pull request Feb 19, 2025
ref pingcap/tiflash#9750

* Remove param `--engine-role-label`
* Specify extra store labels by param `--labels`
  * If there are duplicated key in `server.labels` and `--labels`, use the one in `server.labels`

Signed-off-by: JaySon-Huang <tshent@qq.com>
JaySon-Huang added a commit that referenced this pull request Feb 19, 2025
…422)

* Specify extra store labels by param `--labels` (#420)

ref pingcap/tiflash#9750

* Remove param `--engine-role-label`
* Specify extra store labels by param `--labels`
  * If there are duplicated key in `server.labels` and `--labels`, use the one in `server.labels`

Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: Calvin Neo <calvinneo1995@gmail.com>

---------

Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: Calvin Neo <calvinneo1995@gmail.com>
Co-authored-by: Calvin Neo <calvinneo1995@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants