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 new api resumeCompaction and suspendCompaction #3509

Merged
merged 1 commit into from
Oct 26, 2022

Conversation

gaozhangmin
Copy link
Contributor

@gaozhangmin gaozhangmin commented Sep 30, 2022

Motivation

Compaction would bring high disk io util, It would better allowing to control suspending and resuming compaction through api

Changes

Add two apis to control resuming and suspending compaction.
/api/v1/bookie/gc/suspend_compaction
/api/v1/bookie/gc/resume_compaction

@StevenLuMT
Copy link
Contributor

ci fail,have a look the error info
image

Copy link
Contributor

@dlg99 dlg99 left a comment

Choose a reason for hiding this comment

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

Great job.
We need to standardize naming for the API to not have two names for the same functionality.
Also needs documentation, see https://bookkeeper.apache.org/docs/admin/http

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

LGTM

@gaozhangmin
Copy link
Contributor Author

@dlg99 PTAL again, thx

@gaozhangmin
Copy link
Contributor Author

api docs added

@gaozhangmin
Copy link
Contributor Author

rerun failure checks

@gaozhangmin
Copy link
Contributor Author

@hangc0276 PTAL again @dlg99

Copy link
Contributor

@hangc0276 hangc0276 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
Contributor

@dlg99 dlg99 left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@hangc0276 hangc0276 merged commit e169cbd into apache:master Oct 26, 2022
gaozhangmin added a commit to gaozhangmin/bookkeeper that referenced this pull request Feb 23, 2023
…and suspend compaction through api (apache#3509)

### Motivation
Compaction would bring high disk io util, It would better allowing to control suspending and resuming compaction through api

### Changes
Add two apis to control resuming and suspending compaction.
`/api/v1/bookie/gc/suspend_compaction`
`/api/v1/bookie/gc/resume_compaction`

(cherry picked from commit e169cbd)
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
…and suspend compaction through api (apache#3509)

### Motivation
Compaction would bring high disk io util, It would better allowing to control suspending and resuming compaction through api

### Changes
Add two apis to control resuming and suspending compaction.
`/api/v1/bookie/gc/suspend_compaction`
`/api/v1/bookie/gc/resume_compaction`
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.

None yet

5 participants