MySQL Shell 9.0

9.13 Rescanning a ReplicaSet

This section describes how to check a ReplicaSet for consistency using replicaSet.rescan().

replicaSet.rescan() operation does the following:

Adding Unmanaged Instances

replicaSet.rescan() can be configured to add unmanaged instances by setting the option addUnmanaged to true. By default, this option is set to false and lists all unmanaged instances, but makes no changes to the ReplicaSet.

If replicaSet.rescan() is run in interactive mode, the unmanaged instances are listed and you are prompted to add them to the ReplicaSet.

Removing Obsolete Instances

replicaSet.rescan() can be configured to remove obsolete instances by setting the option removeObsolete to true. By default, this option is set to false and lists all obsolete instances, but makes no changes to the ReplicaSet.

If replicaSet.rescan() is run in interactive mode, the obsolete instances are listed and you are prompted to remove them.