Jump To Close Expand all Collapse all Table of contents Metering 1. 关于 Metering Expand section "1. 关于 Metering" Collapse section "1. 关于 Metering" 1.1. Metering 概述 Expand section "1.1. Metering 概述" Collapse section "1.1. Metering 概述" 1.1.1. Metering 资源 2. 安装 Metering Expand section "2. 安装 Metering" Collapse section "2. 安装 Metering" 2.1. 先决条件 2.2. 安装 Metering Operator 2.3. 安装 metering 堆栈 2.4. 验证安装 2.5. 其他资源 3. 配置 metering Expand section "3. 配置 metering" Collapse section "3. 配置 metering" 3.1. 关于配置 metering 3.2. 通用配置选项 Expand section "3.2. 通用配置选项" Collapse section "3.2. 通用配置选项" 3.2.1. 资源请求和限值 3.2.2. 节点选择器 3.3. 配置持久性存储 Expand section "3.3. 配置持久性存储" Collapse section "3.3. 配置持久性存储" 3.3.1. 将数据存储至 Amazon S3 中 3.3.2. 将数据存储至 S3 兼容存储中 3.3.3. 将数据存储至 Microsoft Azure 中 3.3.4. 将数据存储至 Google Cloud Storage 中 3.3.5. 将数据存储至共享卷中 3.4. 配置 Hive metastore Expand section "3.4. 配置 Hive metastore" Collapse section "3.4. 配置 Hive metastore" 3.4.1. 配置 PersistentVolume Expand section "3.4.1. 配置 PersistentVolume" Collapse section "3.4.1. 配置 PersistentVolume" 3.4.1.1. 为 Hive metastore 配置存储类 3.4.1.2. 配置 Hive Metastore 的卷大小 3.4.2. 对 Hive metastore 使用 MySQL 或 PostgreSQL 3.5. 配置 reporting-operator Expand section "3.5. 配置 reporting-operator" Collapse section "3.5. 配置 reporting-operator" 3.5.1. Prometheus 连接 3.5.2. 公开 reporting API Expand section "3.5.2. 公开 reporting API" Collapse section "3.5.2. 公开 reporting API" 3.5.2.1. 使用 OpenShift 身份验证 Expand section "3.5.2.1. 使用 OpenShift 身份验证" Collapse section "3.5.2.1. 使用 OpenShift 身份验证" 3.5.2.1.1. 使用服务帐户令牌进行身份验证 3.5.2.1.2. 使用用户名和密码进行身份验证 3.5.2.2. 手动配置身份验证 Expand section "3.5.2.2. 手动配置身份验证" Collapse section "3.5.2.2. 手动配置身份验证" 3.5.2.2.1. 令牌身份验证 3.5.2.2.2. 基础身份验证(用户名/密码) 3.6. 配置 AWS 账单相关性 4. Reports Expand section "4. Reports" Collapse section "4. Reports" 4.1. 关于报告 Expand section "4.1. 关于报告" Collapse section "4.1. 关于报告" 4.1.1. Reports Expand section "4.1.1. Reports" Collapse section "4.1.1. Reports" 4.1.1.1. 有时间表的报告示例 4.1.1.2. 无时间表的报告示例(运行一次) 4.1.1.3. 查询 4.1.1.4. 时间表 Expand section "4.1.1.4. 时间表" Collapse section "4.1.1.4. 时间表" 4.1.1.4.1. 周期 4.1.1.5. reportingStart 4.1.1.6. reportingEnd 4.1.1.7. runImmediately 4.1.1.8. 输入 4.1.1.9. 汇总报告 Expand section "4.1.1.9. 汇总报告" Collapse section "4.1.1.9. 汇总报告" 4.1.1.9.1. 报告状态 4.2. 存储位置 Expand section "4.2. 存储位置" Collapse section "4.2. 存储位置" 4.2.1. StorageLocation 示例 4.2.2. 默认 StorageLocation 5. 使用 Metering Expand section "5. 使用 Metering" Collapse section "5. 使用 Metering" 5.1. 编写报告 5.2. 查看报告结果 6. Metering 使用示例 Expand section "6. Metering 使用示例" Collapse section "6. Metering 使用示例" 6.1. 每小时和每日测量集群容量 6.2. 通过一次性报告来衡量集群使用量 6.3. 使用 cron 表达式来测量集群利用率 7. metering 故障排除与调试 Expand section "7. metering 故障排除与调试" Collapse section "7. metering 故障排除与调试" 7.1. metering 故障排除 Expand section "7.1. metering 故障排除" Collapse section "7.1. metering 故障排除" 7.1.1. 计算资源不足 7.1.2. 未配置 StorageClass 7.1.3. 未正确配置 secret 7.2. metering 调试 Expand section "7.2. metering 调试" Collapse section "7.2. metering 调试" 7.2.1. 获取报告 Operator 日志 7.2.2. 使用 presto-cli 查询 Presto 7.2.3. 使用 beeling 来查询 Hive 7.2.4. 将端口转发到 Hive Web UI 7.2.5. 端口转发至 hdfs 7.2.6. Metering Ansible Operator Expand section "7.2.6. Metering Ansible Operator" Collapse section "7.2.6. Metering Ansible Operator" 7.2.6.1. 访问 Ansible 日志 7.2.6.2. 检查 MeteringConfig 状态 8. 卸载 Metering Expand section "8. 卸载 Metering" Collapse section "8. 卸载 Metering" 8.1. 从 OpenShift Container Platform 卸载 metering 法律通告 Settings Close Language: 日本語 简体中文 English Language: 日本語 简体中文 English Format: Multi-page Single-page Format: Multi-page Single-page Language and Page Formatting Options Language: 日本語 简体中文 English Language: 日本語 简体中文 English Format: Multi-page Single-page Format: Multi-page Single-page Metering OpenShift Container Platform 4.2在 OpenShift Container Platform 4.2 中配置和使用 MeteringRed Hat OpenShift Documentation Team法律通告摘要 本文档提供在 OpenShift Container Platform 中配置和使用 Metering 的说明。 Next