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

PCP: Support to pause a scheduler #1831

Closed
shafreeck opened this issue Oct 23, 2019 · 4 comments
Closed

PCP: Support to pause a scheduler #1831

shafreeck opened this issue Oct 23, 2019 · 4 comments
Labels
difficulty/easy Easy task. type/enhancement The issue or PR belongs to an enhancement.

Comments

@shafreeck
Copy link
Contributor

shafreeck commented Oct 23, 2019

PCP Issue

  • difficult: easy
  • score: 100
  • min score required: 0
  • Recommended Skills: Go, PD Schedulers

Description

Sometimes we want to pause a scheduler for debugging purposes. Add a command in pd-ctl to support to pause a scheduler for delay seconds. After the delay running out, the scheduler should recover to work again. Add another command to resume a paused scheduler which can be used if the user does not want to wait so long.

schedule pause <name> <delay>
schedule resume <name>

For example
> schedule pause balance-region-scheduler 10s // pause for 10s
> schedule pause all 10s // pause all scheduler for 10s
> schedule resume balance-region-scheduler // resume before 10s running out.

Requirements:

  • No scheduler operator created during the pause.  
  • The scheduler recover to work after the delay.
@sre-bot sre-bot added the PCP-S1 label Oct 23, 2019
@shafreeck shafreeck added PCP difficulty/easy Easy task. type/enhancement The issue or PR belongs to an enhancement. labels Oct 23, 2019
@nolouch nolouch removed the PCP label Oct 23, 2019
@hrbeuyz24
Copy link
Contributor

/pick-up-challenge

@sre-bot
Copy link
Contributor

sre-bot commented Nov 15, 2019

@hrbeuyz24 pick up issue success

@hrbeuyz24
Copy link
Contributor

/pick-up-challenge

@sre-bot
Copy link
Contributor

sre-bot commented Nov 15, 2019

@hrbeuyz24 pick up issue success

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/easy Easy task. type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

No branches or pull requests

4 participants