polardbxoperatordocs/ops/rebuild/rebuild_learner.md

37 lines
931 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

重搭learner节点只读实例下的DN节点
================
## 检查follower节点是否为无法恢复
![check_learner.png](./image/check_learner.png)
## 对learner节点发起跨机备库重搭
```yaml
apiVersion: polardbx.aliyun.com/v1
kind: XStoreFollower
metadata:
name: rebuildjob-learner
spec:
local: false
targetPodName: rebuild-demo-ro-pztl-dn-0-learner-0
xStoreName: rebuild-demo-pqlk-dn-0
```
## 对learner发起本机备库重搭
```yaml
apiVersion: polardbx.aliyun.com/v1
kind: XStoreFollower
metadata:
name: rebuildjob-learner
spec:
local: true
targetPodName: rebuild-demo-ro-pztl-dn-0-learner-0
xStoreName: rebuild-demo-pqlk-dn-0
```
>> 注意: xStoreName需要填只读节点对应的主节点的xstore实例名称
## 查看备库重搭任务是否成功
![get_xf_leaner.png](./image/get_xf_learner.png)
## 删除备库重搭任务
```bash
kubectl delete xf rebuildjob-learner
```