E.3. Enabling Gluster Block Storage as Backend for Metrics
Follow the tasks mentioned below to enable Gluster Block Storage as backend for metrics
Note
By default, since Container Native Storage performs three-way replication, data will be available to the restarted node from anywhere in the cluster. As a result, it is recommended that Cassandra-level replication is turned off to avoid capacity overhead
- To enable metrics in Openshift Container platform, see https://access.redhat.com/documentation/en-us/openshift_container_platform/3.6/html-single/installation_and_configuration/#install-config-cluster-metrics
- The
openshift_metrics_cassandra_storage_type
ansible variable should be set todynamic
:[OSEv3:vars]openshift_metrics_cassandra_storage_type=dynamic
For example, a sample set of variables for openshift_metrics_ are listed below.openshift_metrics_cassandra_storage_type=dynamic openshift_metrics_cassandra_pvc_size=5G openshift_metrics_cassandra_replicas=3 openshift_metrics_cassandra_limits_memory=2G openshift_metrics_cassandra_nodeselector={'region':'infra'} openshift_metrics_hawkular_nodeselector={'region':'infra'} openshift_metrics_heapster_nodeselector={'region':'infra'}
- Run the Ansible playbook. For more information, see https://access.redhat.com/documentation/en-us/openshift_container_platform/3.6/html-single/installation_and_configuration/#install-config-cluster-metrics.
- To verify, execute the following command:
# oc get pods --n openshift-infra
It should list the following pods running:heapster-cassandra heapster-metrics hawkular-&*9
Note
For more information regarding metrics storage considerations, see https://access.redhat.com/documentation/en-us/openshift_container_platform/3.6/html-single/installation_and_configuration/#metrics-data-storage.