# 计划内停机（两台及以上服务器不可用）

+ 同时维护两台及以上服务器
```
pd-ctl -u <endpoint> -d region --jq=’.regions[] | {id: .id, peer_stores: [.peers[].store_id] | select(length as $total | map(if .==(3,4) then . else empty end) | length>=$total-length) }’
```
+ 命令中的 3，4 为计划进行服务器维护的 store id
![center](./student-guide/diagram/place-holder.png)
------------------------------------------------------------
pd-ctl -u <endpoint> -d region --jq=’.regions[] | {id: .id, peer_stores: [.peers[].store_id] | select(length as $total | map(if .==(3,4) then . else empty end) | length>=$total-length) }’
命令中的 3，4 为计划进行服务器零部件替换的 store id
