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

clickhouse-backup watch mode #430

Closed
Slach opened this issue Apr 22, 2022 · 0 comments · Fixed by #541
Closed

clickhouse-backup watch mode #430

Slach opened this issue Apr 22, 2022 · 0 comments · Fixed by #541
Assignees
Milestone

Comments

@Slach
Copy link
Collaborator

Slach commented Apr 22, 2022

  • implements CLI watch command and API /backup/watch for run periodic backup cycle (simplify ACM workflow)

    • allow params 'watch-interval', 'full-interval', 'wach-backup-name-template' via CLI and config
    • allow same params as for create_remote, like tables, (not allow resumable, retry policy enough)
    • internal commands in API /backup/watch shall run in-progress, similar when allow_parallel=true
    • multiple watch API command allow only when alllow_parallel=true and should contains different params
    • implements clickhouse-backup server --watch when WatchHandler run after start
    • check backups_keep_remote enough for 1 full backup cycle and it's not 0
    • shall stop for /restart and kill API command
    • run create_remote full + delete local full, even when upload failed, save previous backup type empty, next try will also full
    • each watch interval, run create_remote increment --diff-from=prev-name + delete local increment, even when upload failed, save previous backup type, next try will also incremental, until full-interval
  • agree with inefficient for use case when one big part constantly merging with many small parts

@Slach Slach self-assigned this Apr 22, 2022
@Slach Slach added this to the 2.0.0 milestone Apr 22, 2022
@Slach Slach modified the milestones: 2.0.0, 2.1.0 Sep 4, 2022
@Slach Slach mentioned this issue Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant