
openebs/mayastor-agent-ha-node该镜像为Mayastor存储系统控制平面的核心组件之一,专注于监控存储I/O路径的高可用性(HA)。通过实时跟踪I/O路径状态、检测异常并触发响应机制,保障Mayastor存储集群中数据读写路径的持续稳定,是构建可靠存储基础设施的关键服务。
bashdocker run -d \ --name mayastor-io-monitor \ --network mayastor-control-plane \ # 连接至Mayastor控制平面网络 -v /path/to/config:/etc/mayastor/monitor \ # 挂载配置文件目录 -e LOG_LEVEL=info \ -e CONTROL_PLANE_ADDR=mayastor-control-plane:50051 \ -e MONITOR_INTERVAL=5s \ mayastor/io-path-ha-monitor:latest
yamlversion: '3.8' services: io-monitor: image: mayastor/io-path-ha-monitor:latest container_name: mayastor-io-monitor networks: - mayastor-control-plane volumes: - ./config:/etc/mayastor/monitor environment: - LOG_LEVEL=info - CONTROL_PLANE_ADDR=mayastor-control-plane:50051 - MONITOR_INTERVAL=5s - ALERT_ENDPOINT=[***] networks: mayastor-control-plane: external: true # 需提前创建Mayastor控制平面网络
| 参数名 | 描述 | 默认值 | 是否必填 |
|---|---|---|---|
LOG_LEVEL | 日志级别(debug/info/warn/error) | info | 否 |
CONTROL_PLANE_ADDR | Mayastor控制平面服务地址 | localhost:50051 | 是 |
MONITOR_INTERVAL | I/O路径状态检查间隔 | 5s | 否 |
ALERT_ENDPOINT | 告警推送端点(Prometheus Alertmanager地址) | 无 | 否 |
MAX_RETRY_COUNT | 路径故障重试次数 | 3 | 否 |
配置文件(默认路径/etc/mayastor/monitor/config.yaml)支持自定义监控规则(如路径健康阈值、告警触发条件),示例:
yamlmonitor: paths: - name: path-0 endpoints: ["node1:3000", "node2:3000"] # 监控的I/O路径端点 thresholds: latency_warn: 100ms # 延迟警告阈值 latency_crit: 500ms # 延迟 critical 阈值 throughput_min: 10MB/s # 最小吞吐量阈值
manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务