openebs/mayastor-agent-ha-clusterMayastor Nexus HA Controller 是 Mayastor 分布式存储系统的核心控制平面组件,作为 Nexus 高可用(HA)控制器,主要负责协调存储集群的高可用性功能,包括管理 Nexus 实例的生命周期、监控集群状态、处理故障转移以及确保数据服务的持续可用。该镜像为 Mayastor 存储集群提供关键的控制逻辑,是实现存储服务高可用性的核心组件。
bashdocker run -d \ --name mayastor-nexus-ha-controller \ --network=host \ -e MAYASTOR_CLUSTER_ADDR=etcd://<etcd-endpoint>:2379 \ -e NEXUS_HA_LOG_LEVEL=info \ -e HEARTBEAT_INTERVAL=5s \ -e FAILOVER_TIMEOUT=30s \ -v /var/lib/mayastor/nexus-ha:/etc/mayastor/nexus-ha \ mayastor/nexus-ha-controller:latest
yamlapiVersion: apps/v1 kind: Deployment metadata: name: mayastor-nexus-ha-controller namespace: mayastor spec: replicas: 1 selector: matchLabels: app: nexus-ha-controller template: metadata: labels: app: nexus-ha-controller spec: containers: - name: controller image: mayastor/nexus-ha-controller:latest env: - name: MAYASTOR_CLUSTER_ADDR value: "etcd://etcd-service:2379" - name: NEXUS_HA_LOG_LEVEL value: "info" volumeMounts: - name: config-volume mountPath: /etc/mayastor/nexus-ha volumes: - name: config-volume configMap: name: nexus-ha-config
| 环境变量 | 描述 | 默认值 | 示例值 |
|---|---|---|---|
MAYASTOR_CLUSTER_ADDR | 集群管理端点(etcd 地址) | 无(必填) | etcd://192.168.1.100:2379 |
NEXUS_HA_LOG_LEVEL | 日志输出级别 | info | debug/warn/error |
HEARTBEAT_INTERVAL | 节点心跳检测间隔 | 5s | 10s |
FAILOVER_TIMEOUT | 故障转移操作超时时间 | 30s | 60s |
MAX_REPLICAS_PER_NEXUS | 单个 Nexus 实例最大副本数 | 3 | 2/4 |
CONFIG_SYNC_INTERVAL | 集群配置同步间隔 | 10s | 15s |
manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务