# 版本升级前准备 - 集群监控状态检查

__*TiDB 版本升级*__
__*版本升级前准备*__
__*tiup cluster check*__

+ 对集群当前的 region 健康状态进行检查
  + `tiup cluster check <cluster-name> --cluster`

-------------------------------------------------------------
为避免升级过程中出现未定义行为或其他故障,建议在升级前对集群当前的 region 健康状态进行检查,此操作可通过 check 子命令完成。

tiup cluster check <cluster-name> --cluster

执行结束后,最后会输出 region status 检查结果。如果结果为 "All regions are healthy",则说明当前集群中所有 region 均为健康状态,可以继续执行升级；如果结果为 "Regions are not fully healthy: m miss-peer, n pending-peer" 并提示 "Please fix unhealthy regions before other operations.",则说明当前集群中有 region 处在异常状态,应先排除相应异常状态,并再次检查结果为 "All regions are healthy" 后再继续升级。