Closed jsanda closed 6 years ago
[merge]
Evaluated for origin metrics merge up to 9fb9f56b6671573c32c41b69058c5ccc480d16b0
Origin Metrics Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test-origin-metrics/323/) (Base Commit: b0bda67edcf20689212d48c00199a9e9af05d168) (PR Branch Commit: 9fb9f56b6671573c32c41b69058c5ccc480d16b0)
Disabling auto snapshots for Cassandra by default because 1) we do not have a mechanism for snapshots and because 2) the temp data temp tables introduced in OpenShift 3.7 generate a lot of snapshots that can eat up disk space in a hurry.
This commit introduces a new environment variable, TAKE_SNAPSHOT, which if set to "true" will cause a snapshot to be generated in the cassandra-poststart.sh script which is run from the postStart lifecycle hook. The snapshop name uses a default value of a timestamp.