k8ssandra / k8ssandra-operator

The Kubernetes operator for K8ssandra
https://k8ssandra.io/
Apache License 2.0
176 stars 79 forks source link

Quiesce jobs for Medusa and Reaper #730

Open mieslep opened 2 years ago

mieslep commented 2 years ago

What is missing? At times, it may desirable to quiesce Medusa and/or Reaper. I'd like to be able to submit a job document to quiesce (or resume) both Medusa and Reaper - basically pausing and resuming any scheduled activities they have. The job status (in YAML) should update to reflect the state of quiescence or resumption.

Why do we need it? This could be because they are having a suspected negative impact on cluster performance, or (in the case of Medusa) it cannot handle renewed Cassandra CA certificates being rolled through the cluster.

Environment

┆Issue is synchronized with this Jira Story by Unito ┆Issue Number: K8OP-215

adejanovski commented 2 years ago

For Medusa:

you can pause Medusa schedules by setting .spec.disabled=false in your MedusaBackupSchedule object. There's no way we can pause an ongoing backup, which only a rolling restart could do (the medusa container can be restarted without restarting the whole pod).

For Reaper:

You'll have to either pause the repair schedules in the UI or through the Rest API. Reaper doesn't (yet) interact with any CRD.