openshift / origin-metrics

79 stars 113 forks source link

[BZ 1567251] Disable auto snapshots and env var for taking snapshots #410

Closed jsanda closed 6 years ago

jsanda commented 6 years ago

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.

jsanda commented 6 years ago

[merge]

openshift-bot commented 6 years ago

Evaluated for origin metrics merge up to 9fb9f56b6671573c32c41b69058c5ccc480d16b0

openshift-bot commented 6 years ago

Origin Metrics Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test-origin-metrics/323/) (Base Commit: b0bda67edcf20689212d48c00199a9e9af05d168) (PR Branch Commit: 9fb9f56b6671573c32c41b69058c5ccc480d16b0)