Rebuild learner nodes (DN node under the read-only instance).
Check if the learner node is unrecoverable
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
Delete the backup and rebuild task
kubectl delete xf rebuildjob-learner