# 节点超时配置不匹配：期望 15000，但从节点 127.0.0.1:7001 收到 30000

- **ID:** `redis/cluster-node-timeout-mismatch`
- **领域:** redis
- **类别:** config_error
- **验证级别:** ai_generated
- **修复率:** 85%

## 根因

Redis 集群节点的 cluster-node-timeout 值不一致，阻止它们形成一致的集群。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| Redis 7.0.0 | active | — | — |
| Redis 7.2.4 | active | — | — |
| Redis 6.2.14 | active | — | — |

## 解决方案

1. ```
   Set consistent cluster-node-timeout on all nodes by editing redis.conf: cluster-node-timeout 15000. Then restart each node gracefully: redis-cli -p 7001 SHUTDOWN NOSAVE; redis-server /path/to/redis.conf. Verify with CLUSTER INFO.
   ```
2. ```
   Use CONFIG SET cluster-node-timeout 15000 on each node, then CONFIG REWRITE to persist. Example: redis-cli -p 7001 CONFIG SET cluster-node-timeout 15000 && redis-cli -p 7001 CONFIG REWRITE.
   ```
3. ```
   If nodes are already in a failed state, use CLUSTER FORGET to remove misconfigured nodes, fix their config, and rejoin them with CLUSTER MEET.
   ```

## 无效尝试

- **** — Restarting doesn't change configuration values. The mismatch is in the config files, not a transient state. (95% 失败率)
- **** — This command sets the config epoch for failover, not the cluster-node-timeout. It doesn't address the timeout mismatch. (80% 失败率)
- **** — CONFIG SET changes the runtime value but may not persist after restart. Also, the cluster may reject the change if nodes are already in a mixed state. (70% 失败率)
