crate-operator icon indicating copy to clipboard operation
crate-operator copied to clipboard

Support CrateDB major upgrade with full cluster restarts

Open MarkusH opened this issue 5 years ago • 0 comments

Unlike minor and patch releases, major releases of CrateDB require a full cluster restart. https://crate.io/docs/crate/howtos/en/latest/admin/full-restart-upgrade.html

The process for that would be something like this:

  1. Scale down all StatefulSets of a cluster to 0 replicas
  2. Wait for all pods of a cluster to be gone
  3. Scale up all StatefulSets of a cluster to their original number of replicas
  4. Wait for cluster to be healthy

In order to distinguish between minor/patch and major releases, the operator's crate.operator.main.update handler will need to distinguish between these two versions upgrades and then trigger a new full cluster restart for major upgrades.

MarkusH avatar Nov 25 '20 12:11 MarkusH