Skip to content

Conversation

@GMHDBJD
Copy link
Contributor

@GMHDBJD GMHDBJD commented Oct 28, 2024

What problem does this PR solve?

support DM in playground. ref #2464

What is changed and how it works?

tiup-playground nightly --dm-master 1 --dm-worker 1

1730129119257

Check List

Tests

  • Manual test (add detailed scripts or steps below)

Code changes

  • None

Side effects

  • None

Related changes

  • Need to update the documentation

Release notes:

Add DM support for TiUP playground

siddontang and others added 2 commits October 28, 2024 16:25
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Oct 28, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign xhebox for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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 ti-chi-bot bot requested review from breezewish and nexustar October 28, 2024 15:26
@CLAassistant
Copy link

CLAassistant commented Oct 28, 2024

CLA assistant check
All committers have signed the CLA.

@ti-chi-bot ti-chi-bot bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Oct 28, 2024
Copy link

@Benjamin2037 Benjamin2037 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
Copy link
Contributor

ti-chi-bot bot commented Oct 28, 2024

@Benjamin2037: adding LGTM is restricted to approvers and reviewers in OWNERS files.

Details

In response to this:

LGTM

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link
Collaborator

@xhebox xhebox left a comment

Choose a reason for hiding this comment

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

Rest LGTM

p.bootOptions = options

// All others components depend on the pd, we just ensure the pd count must be great than 0
if options.PDMode != "ms" && options.PD.Num < 1 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

dmmaster. num defaults 0?

Copy link

@Benjamin2037 Benjamin2037 Oct 29, 2024

Choose a reason for hiding this comment

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

Good question,if we set dm as a default part for palyground maybe not a good idea,when user issue tiup playground,maybe this should not include start a dm cluster。 What do you think?@GMHDBJD @xhebox

Copy link
Collaborator

Choose a reason for hiding this comment

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

Good question,if we set dm as a default part for palyground maybe not a good idea,when user issue tiup playground,maybe this should not include start a dm cluster。 What do you think?@GMHDBJD @xhebox

Yes, I don't think it should be included here. And it did not break playground only because PD.Num >= 1 in normal cases...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

dmmaster.num defaults 0, pd.num defaults 1, so tiup playground start a tidb cluster default, but I think we should allow user start a dm cluster without tidb/pd/tikv, so here change the logic to allow follow command.

tiup-playground nightly --dm-master 1 --dm-worker 1 --db 0 --kv 0 --pd 0 --tiflash 0 

colorCmd.Printf("tiup dmctl --master-addr %s\n", strings.Join(endpoints, ","))
}

if len(p.pds) > 0 {
Copy link
Member

Choose a reason for hiding this comment

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

why mention pd here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now we can start a dm cluster without pd, so allow pd to be zero

tiup-playground nightly --dm-master 1 --dm-worker 1 --db 0 --kv 0 --pd 0 --tiflash 0 

@ti-chi-bot ti-chi-bot bot added the lgtm label Oct 29, 2024
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Oct 29, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-10-29 08:02:58.106073773 +0000 UTC m=+336890.945229320: ☑️ agreed by xhebox.

@xhebox xhebox merged commit 57e845b into pingcap:master Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants