7.3. 将 Gluster 块存储启用为指标的后端


按照下方所述的任务,将 Gluster 块存储作为指标的后端

注意

默认情况下,由于容器原生虚拟化执行三向复制,因此可以从集群中的任何位置访问重启的节点。因此,建议关闭 Cassandra 级别复制以避免容量开销

  1. 要在 Openshift Container Platform 中启用指标,请参阅 https://access.redhat.com/documentation/en-us/openshift_container_platform/3.11/html-single/configuring_clusters/#install-config-cluster-metrics
  2. openshift_metrics_cassandra_storage_type ansible 变量应设置为 动态

    [OSEv3:vars]openshift_metrics_cassandra_storage_type=dynamic

    例如,以下列出了 openshift_metrics_ 的变量集。

    openshift_metrics_install_metrics=true
    openshift_metrics_storage_kind=dynamic
    openshift_metrics_hawkular_nodeselector={"node-role.kubernetes.io/infra": "true"}
    openshift_metrics_cassandra_nodeselector={"node-role.kubernetes.io/infra": "true"}
    openshift_metrics_heapster_nodeselector={"node-role.kubernetes.io/infra": "true"}
    openshift_metrics_storage_volume_size=10Gi
    openshift_metrics_cassandra_pvc_storage_class_name="glusterfs-registry-block"
  3. 运行 Ansible playbook。如需更多信息,请参阅 https://access.redhat.com/documentation/en-us/openshift_container_platform/3.11/html-single/configuring_clusters/#install-config-cluster-metrics
  4. 要验证,请执行以下命令:

    # oc get pods --namespace openshift-infra

    它应该列出以下 pod 正在运行:

    heapster-cassandra
    heapster-metrics
    hawkular-&*9
注意
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部