> For the complete documentation index, see [llms.txt](https://documentation.alluxio.io/ee-ai-cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.alluxio.io/ee-ai-cn/administration.md).

# 集群运维

本节对 Alluxio 集群的管理进行了高级概述，涵盖了从日常管理和监控到安全和故障排除的关键领域。

## 1. 管理集群

集群管理拆分到多个聚焦的页面。可根据下表中的"任务/问题"找到对应页面。

| 问题 / 任务                                       | 页面                                                                                                                                                         |
| --------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 将基础安装加固为生产部署（节点固定、HA、资源调优）                    | [集群管理 — 生产部署配置](https://documentation.alluxio.io/ee-ai-cn/administration/managing-alluxio.md#sheng-chan-bu-shu-pei-zhi)                                    |
| 扩容或缩容集群                                       | [集群管理 — 扩展集群](https://documentation.alluxio.io/ee-ai-cn/administration/managing-alluxio.md#kuo-zhan-ji-qun)                                                |
| 升级 Alluxio 到新版本                               | [集群管理 — 升级](https://documentation.alluxio.io/ee-ai-cn/administration/managing-alluxio.md#sheng-ji-alluxio)                                                 |
| 在运行中的集群修改属性，无需重启                              | [动态配置](https://documentation.alluxio.io/ee-ai-cn/administration/dynamic-configuration.md)                                                                  |
| 修改其他属性（需要重启）                                  | [集群管理 — 更新配置](https://documentation.alluxio.io/ee-ai-cn/administration/managing-alluxio.md#geng-xin-pei-zhi)                                               |
| 调优一致性哈希环（模式、虚拟节点、capacity）                    | [集群与成员管理 — 哈希环配置](https://documentation.alluxio.io/ee-ai-cn/administration/managing-alluxio.md#ha-xi-huan-pei-zhi)                                         |
| 诊断过期 `OFFLINE` Worker / 哈希环膨胀                 | [集群与成员管理 — 哈希环膨胀](https://documentation.alluxio.io/ee-ai-cn/administration/managing-alluxio.md#zhen-duan-offline-tiao-mu-dao-zhi-de-ha-xi-huan-peng-zhang) |
| 添加、移除、重启 Worker 或持久化身份                        | [集群与成员管理 — Worker 成员管理与生命周期](https://documentation.alluxio.io/ee-ai-cn/administration/managing-alluxio.md#worker-cheng-yuan-guan-li-yu-sheng-ming-zhou-qi) |
| 配置 Worker page store（hostPath / PVC、容量、多盘）    | [Worker 配置 — Worker 存储](https://documentation.alluxio.io/pages/c4TWyXEiWHUuqlML94ZH#id-1.-worker-cun-chu)                                                  |
| 配置异构 Worker                                   | [Worker 配置 — 异构 Worker](https://documentation.alluxio.io/ee-ai-cn/administration/managing-worker.md#yi-gou-worker)                                         |
| page store 或 metastore 磁盘故障，或 Worker 报告有目录被停用 | [磁盘健康检查 — 从磁盘故障中恢复](https://documentation.alluxio.io/ee-ai-cn/administration/disk-health.md#cong-ci-pan-gu-zhang-zhong-hui-fu)                             |
| 为 Worker 磁盘故障配置告警                             | [磁盘健康检查 — 应用告警规则](https://documentation.alluxio.io/ee-ai-cn/administration/disk-health.md#ying-yong-gao-jing-gui-ze)                                       |
| Worker 资源 / JVM 调优、OOM 诊断                     | [Worker 配置 — 资源与 JVM 调优](https://documentation.alluxio.io/pages/c4TWyXEiWHUuqlML94ZH#id-2.-zi-yuan-yu-jvm-diao-you)                                        |
| 将 Worker 绑定到指定网卡                              | [Worker 配置 — 网络](https://documentation.alluxio.io/pages/c4TWyXEiWHUuqlML94ZH#id-3.-worker-wang-luo-pei-zhi)                                                |
| 调整客户端在慢速或不可达的 Worker 上等待多久                    | [Worker 配置 — 客户端与 Worker 超时](https://documentation.alluxio.io/pages/c4TWyXEiWHUuqlML94ZH#id-4.-ke-hu-duan-yu-worker-chao-shi)                              |
| Worker 崩溃或重启后恢复缓存覆盖率                          | [集群与成员管理 — Worker 重启后的缓存恢复](https://documentation.alluxio.io/ee-ai-cn/administration/managing-alluxio.md#worker-chong-qi-hou-de-huan-cun-hui-fu)           |
| 新增 Worker 后重新均衡缓存数据                           | [缓存重平衡](https://documentation.alluxio.io/ee-ai-cn/cache/cache-rebalancing.md)                                                                              |
| 无缓存缺失地缩容或扩容集群（将缓存数据重平衡到新拓扑）                   | [缓存重平衡](https://documentation.alluxio.io/ee-ai-cn/cache/cache-rebalancing.md)                                                                              |
| 作业提交、调度、生命周期、HA、恢复                            | [Job Service](https://documentation.alluxio.io/ee-ai-cn/administration/managing-job-service.md)                                                            |
| 让 Alluxio 使用你自己运维的 etcd，或调整内置 etcd            | [etcd 管理](https://documentation.alluxio.io/ee-ai-cn/administration/managing-etcd.md)                                                                       |
| 更换 etcd 且不丢挂载表、不让缓存变冷                         | [etcd 管理 — 迁移](https://documentation.alluxio.io/ee-ai-cn/administration/managing-etcd.md#qian-yi-dao-ling-yi-tao-etcd)                                     |
| 小文件或大目录的加载吞吐调优                                | [Job Service — 小文件加载优化](https://documentation.alluxio.io/ee-ai-cn/administration/managing-job-service.md#xiao-wen-jian-jia-zai-you-hua)                    |
| 多租户隔离与集群联邦                                    | [集群管理 — 多租户](https://documentation.alluxio.io/pages/cuG1KYD7QZM6zV5EoHQ1#id-3.-duo-zu-hu-he-lian-bang)                                                     |

## 2. 监控和可观察性

Alluxio 以 Prometheus 格式公开了广泛的指标，从而可以深入了解集群的健康状况和性能。

* **默认监控堆栈**：Alluxio Operator 可以自动部署一个完整的监控堆栈，包括用于指标收集的 Prometheus 和用于可视化的 Grafana，并带有预配置的仪表板。
* **与现有系统集成**：您可以轻松地将 Alluxio 与您现有的监控基础设施集成，无论是中央 Prometheus、Grafana 还是像 Datadog 这样的第三方服务。

了解更多关于[监控 Alluxio](https://documentation.alluxio.io/ee-ai-cn/administration/monitoring-alluxio.md) 的信息...

如需交互式排查，Coordinator 还可以提供基于浏览器的**运维控制台**：Worker 健康状况、缓存内容与覆盖率、读取行为（包括慢读和失败请求），以及单个 Worker 的 JVM 与主机诊断。

了解更多关于[运维控制台](https://documentation.alluxio.io/ee-ai-cn/administration/operations-console.md)的信息...

## 3. 安全

Alluxio 提供多层安全模型来保护您的数据和基础设施。

* **身份验证**：通过与符合 OIDC 的身份提供商（如 Okta）集成，使用 JSON Web 令牌 (JWT) 对用户和服务进行身份验证，从而保护您的集群。
* **授权**：实施细粒度的访问控制。使用 **Apache Ranger** 进行数据访问策略（S3、HDFS），使用 **Open Policy Agent (OPA)** 进行管理 API 策略（网关）。
* **加密**：通过启用 TLS 来加密 Alluxio 组件之间以及客户端和集群之间的通信，从而保护传输中的数据。
* **审计日志**：以 JSON 结构化格式记录管理操作（Gateway）和数据访问（S3、HDFS、FUSE、Python SDK），用于合规与取证。

了解更多关于[安全](https://documentation.alluxio.io/ee-ai-cn/administration/security.md)的信息...

## 4. 故障排除

当出现问题时，Alluxio 提供了工具和程序来帮助您快速诊断和解决问题。

* **健康检查**：首先检查 Alluxio 组件（Coordinator、Worker、FUSE）的状态并验证与 UFS 的连接性。
* **诊断**：检查来自 Alluxio 进程和 Kubernetes CSI 驱动程序的日志。对于复杂问题，使用 `alluxioctl doctor bundle` 收集一份[诊断包](https://documentation.alluxio.io/ee-ai-cn/administration/diagnostic-bundle.md)，它把日志、配置、状态和指标打包成一个文件，以供离线分析。
* **恢复**：遵循指导性程序从常见故障中恢复，例如Coordinator、worker 故障或 etcd 集群损坏。

了解更多关于[故障排除 Alluxio](https://documentation.alluxio.io/ee-ai-cn/administration/troubleshooting-alluxio.md) 的信息...
