Rebuild learner nodes (DN node under the read-only instance).

Check if the learner node is unrecoverable

check_learner.png

Initiate a cross-machine backup and rebuild for the learner node

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

Initiate a local backup and rebuild for the learner node

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

Note: Please provide the xStoreName, which is the xstore instance name of the primary node corresponding to the read-only node.

Check if the backup and rebuild task has been successful

get_xf_leaner.png

Delete the backup and rebuild task

kubectl delete xf rebuildjob-learner

results matching ""

    No results matching ""