Skip to content

Instantly share code, notes, and snippets.

@PeterCorless
Created May 5, 2021 16:27
Show Gist options
  • Save PeterCorless/cd487d75d597e5a190fbd3b3bfe0f3e1 to your computer and use it in GitHub Desktop.
Save PeterCorless/cd487d75d597e5a190fbd3b3bfe0f3e1 to your computer and use it in GitHub Desktop.
Scylla Manager 2.3
$ sctool suspend -c prod
$ sctool task list
Cluster: prod (097351fe-3c28-4f13-bbac-213981513968)
╭─────────────────────────────────────────────────────────────┬─────────────────┬───────────────────────────────────────────┬─────────╮
│ Task │ Arguments │ Next run │ Status │
├─────────────────────────────────────────────────────────────┼─────────────────┼───────────────────────────────────────────┼─────────┤
│ healthcheck/b657ed84-0451-4c0c-ac4c-dacd704c1ff7 │ │ 29 Mar 21 13:39:05 CEST (+15s) │ DONE │
│ healthcheck_alternator/7046049b-6ea8-4a58-9d60-c6c241354681 │ │ 29 Mar 21 13:39:05 CEST (+15s) │ DONE │
│ healthcheck_rest/0303dda3-f417-4997-8d81-6a4936d6be56 │ │ 29 Mar 21 13:39:20 CEST (+1m) │ DONE │
│ repair/7ddaa89e-d6ae-4292-8d6b-1ab8fa13d39b │ │ [SUSPENDED] 30 Mar 21 00:00:00 CEST (+7d) │ NEW │
│ backup/8b2856a1-e8a6-4424-b669-e19acd3bb907 │ -L s3:my-bucket │ [SUSPENDED] │ STOPPED │
╰─────────────────────────────────────────────────────────────┴─────────────────┴───────────────────────────────────────────┴─────────╯
$ sctool resume -c proc --start-tasks
$ sctool task list
Cluster: prod (097351fe-3c28-4f13-bbac-213981513968)
╭─────────────────────────────────────────────────────────────┬─────────────────┬────────────────────────────────┬─────────╮
│ Task │ Arguments │ Next run │ Status │
├─────────────────────────────────────────────────────────────┼─────────────────┼────────────────────────────────┼─────────┤
│ healthcheck/b657ed84-0451-4c0c-ac4c-dacd704c1ff7 │ │ 29 Mar 21 13:51:05 CEST (+15s) │ DONE │
│ healthcheck_alternator/7046049b-6ea8-4a58-9d60-c6c241354681 │ │ 29 Mar 21 13:51:05 CEST (+15s) │ DONE │
│ healthcheck_rest/0303dda3-f417-4997-8d81-6a4936d6be56 │ │ 29 Mar 21 13:51:20 CEST (+1m) │ DONE │
│ repair/7ddaa89e-d6ae-4292-8d6b-1ab8fa13d39b │ │ 30 Mar 21 00:00:00 CEST (+7d) │ NEW │
│ backup/8b2856a1-e8a6-4424-b669-e19acd3bb907 │ -L s3:my-bucket │ │ RUNNING │
╰─────────────────────────────────────────────────────────────┴─────────────────┴────────────────────────────────┴─────────╯
$ curl -X PUT localhost:5080/api/v1/cluster/prod/suspended -d 'true'
$ curl localhost:5080/api/v1/cluster/prod/suspended
$ curl -X PUT localhost:5080/api/v1/cluster/prod/suspended?start_tasks=true -d 'false'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment