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

[Platform] Ability to stop backup process via admin console #8296

Closed
adil246 opened this issue May 5, 2021 · 1 comment
Closed

[Platform] Ability to stop backup process via admin console #8296

adil246 opened this issue May 5, 2021 · 1 comment
Assignees
Labels
area/platform Yugabyte Platform team/platform-hi Tickets handled by HashedIn team
Milestone

Comments

@adil246
Copy link
Contributor

adil246 commented May 5, 2021

When running long backups which might take minutes to hours, it would be handy to be to able to stop backup processes via admin console. yb_backup.py script has to be stopped by logging in to the platform server, if it process has to be stopped for some reason such as long running backup, conflicts with another process, high resource consumption, etc.

InProcess

Problem solved
Backups can be stopped from the console gracefully.

Ideas for implementation
Stop process could be enabled as a part of Action drop down.
Stop process gracefully when stopped using console.
Update the backup state to 'stopped' or 'deleted' in platform yugaware database.

yugaware=# select state, update_time from backup;
    state    |       update_time       
-------------+-------------------------
 Deleted     | 2021-05-05 12:51:42.707
 Deleted     | 2021-05-05 12:52:05.092
@mahendranbhat
Copy link
Contributor

mahendranbhat added a commit that referenced this issue Jul 15, 2021
Summary:
When running long backups which might take minutes to hours, it would be handy to be to able to stop backup processes via admin console. yb_backup.py script has to be stopped by logging in to the platform server, if it process has to be stopped for some reason such as long-running backup, conflicts with another process, high resource consumption, etc.

Test Plan:
Created the universe as the change is to shellprocesshandler
Created the backup.
Stopped backup and verified.
Created the complete backup as well using NFS.
Verified the status of the backup.

Reviewers: Sergey, Jaydeep, Jitendra, Shashank
Reviewed by : Sergey, Sergey Shevchecko.

Diff : https://phabricator.dev.yugabyte.com/D12173
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform Yugabyte Platform team/platform-hi Tickets handled by HashedIn team
Projects
None yet
Development

No branches or pull requests

4 participants