重搭learner节点(只读实例下的DN节点)

检查follower节点是否为无法恢复

check_learner.png

对learner节点发起跨机备库重搭

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发起本机备库重搭

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

删除备库重搭任务

kubectl delete xf rebuildjob-learner

results matching ""

    No results matching ""