典型症状
应用日志报错:
io.lettuce.core.RedisConnectionException: Unable to connect to master.xxx.cache.amazonaws.com.cn:6379 Caused by: io.lettuce.core.RedisCommandTimeoutException: Connection initialization timed out. Command timed out after 1 minute(s)特征:TCP 能连上(同 VPC 同安全组),但握手阶段超时。
排查决策树
连不上 Redis │ ├─ 安全组不通(telnet 6379 失败)→ 检查安全组入站规则 │ └─ TCP 能连但初始化超时 → 99% 是 TLS 不匹配 │ ├─ TransitEncryptionMode: required + 应用无 SSL → 根因确认 ├─ TransitEncryptionMode: preferred → 非 TLS 问题,查其他 └─ TransitEncryptionEnabled: false → 非 TLS 问题