如果源集群使用持久查询设置 (PQS),则必须手动将这些设置迁移到目标集群,才能完成同步。
mongosync checks for PQS during initialization and the cutover process. If mongosync finds PQS on the source cluster during cutover, Mongosync shows a warning. Use the following procedure to address the warning and migrate your PQS to your destination cluster.
步骤
1
2
将 PQS 导入目标集群。
For each query setting that you want to migrate, use setQuerySettings to apply that setting to your destination cluster.
如果查询设置包含 representativeQuery字段值,则使用该字段值作为 setQuerySettings 值。
否则,使用 querySettings大量中的 queryShapeHash字段值作为 setQuerySettings 值。