索引迁移操作步骤

左侧选择索引,按①~④执行;复制命令前选择 Linux 或 Windows。

先核对本次 Assess 生成的配置路径。下面按 full.json 写命令;文件名不同,替换该索引所有命令的 --config 完整路径,多份配置逐份执行。

启动命令中的 --rps 50 按本次已确认值调整。复制按钮只复制当前显示的命令。

开始前准备

Linux 使用 Bash,工具目录为 /opt/reindexctl;Windows 使用 PowerShell,工具目录为 D:\MyCodes\reindexctl。解释器须为 Python 2.7.18。实际路径不同,先改成对应主机的完整路径。

确认 Python

/usr/bin/python2.7 --version

核对两端连接

vi '/opt/reindexctl/runtime.json'

runtime.json 填本次环境的地址、用户名和密码。目标同名索引及 Mapping / Settings 须已准备好;目录与凭据文件仅向执行账号开放。

首次部署时才需要

先上传交付包到命令中的完整路径。仅在工具目录尚不存在时解压;已有部署跳过,保留原配置和任务记录。

解压交付包

tar -xzf '/tmp/reindexctl-1.3.0-9853397-linux.tar.gz' -C '/opt'

尚无 runtime.json 时,从模板复制

cp -n '/opt/reindexctl/runtime.example.json' '/opt/reindexctl/runtime.json'

已有 runtime.json 时跳过,不覆盖。Windows 的复制命令会要求确认。

再用上面的“核对两端连接”编辑配置。模板 expected_cluster_uuid 未使用时删除;source_visibility、分区和容量声明按已确认事实填写。HTTPS 默认 verify_ssl=false,无需另配证书文件。

无 CDC 时,源端停写保持到该索引验证结束;有 CDC 时,迁移前确认回放起点和日志保留窗口。

执行后保留报告和日志路径。Verify 显示“通过”(PASS)时,记录本次验证范围通过;其他结论按报告提示处理。

查看全部任务
/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --list
需要指定文件验证:先准备清单目录
mkdir -p -m 700 '/opt/reindexctl/verify'

按 --verify-file 路径准备 UTF-8 文件,每行一个源端真实文档 ID,无表头、无重复值,不能为空。单个文件最多 10,000 个值、10 MiB,超限拆开分别验证;各次报告均须保留。

若报告显示全部未命中,先核对清单和配置范围,不能当作已经比对了文档内容。

1.opm_service_measure

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index opm_service_measure --target-index opm_service_measure

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_service_measure/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_service_measure/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_service_measure/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_service_measure/full.json' --verify --verify-file '/opt/reindexctl/verify/opm_service_measure_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_service_measure/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_service_measure/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_service_measure/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_service_measure/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。

2.ai_user_hit_records

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index ai_user_hit_records --target-index ai_user_hit_records

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/ai_user_hit_records/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/ai_user_hit_records/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/ai_user_hit_records/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/ai_user_hit_records/full.json' --verify --verify-file '/opt/reindexctl/verify/ai_user_hit_records_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/ai_user_hit_records/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/ai_user_hit_records/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/ai_user_hit_records/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/ai_user_hit_records/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。

3.opm_user_coupon

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index opm_user_coupon --target-index opm_user_coupon

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_coupon/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_coupon/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_coupon/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_coupon/full.json' --verify --verify-file '/opt/reindexctl/verify/opm_user_coupon_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_coupon/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_coupon/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_coupon/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_coupon/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。

4.opm_market_grade

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index opm_market_grade --target-index opm_market_grade

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_market_grade/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_market_grade/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_market_grade/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_market_grade/full.json' --verify --verify-file '/opt/reindexctl/verify/opm_market_grade_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_market_grade/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_market_grade/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_market_grade/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_market_grade/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。

6.tf_f_customer_info

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index tf_f_customer_info --target-index tf_f_customer_info

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/tf_f_customer_info/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/tf_f_customer_info/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/tf_f_customer_info/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/tf_f_customer_info/full.json' --verify --verify-file '/opt/reindexctl/verify/tf_f_customer_info_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/tf_f_customer_info/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/tf_f_customer_info/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/tf_f_customer_info/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/tf_f_customer_info/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。

7.opm_service_info

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index opm_service_info --target-index opm_service_info

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_service_info/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_service_info/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_service_info/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_service_info/full.json' --verify --verify-file '/opt/reindexctl/verify/opm_service_info_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_service_info/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_service_info/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_service_info/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_service_info/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。

8.opm_user_detail

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index opm_user_detail --target-index opm_user_detail

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_detail/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_detail/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_detail/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_detail/full.json' --verify --verify-file '/opt/reindexctl/verify/opm_user_detail_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_detail/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_detail/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_detail/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_detail/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。

9.tf_f_user_detail

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index tf_f_user_detail --target-index tf_f_user_detail

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/tf_f_user_detail/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/tf_f_user_detail/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/tf_f_user_detail/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/tf_f_user_detail/full.json' --verify --verify-file '/opt/reindexctl/verify/tf_f_user_detail_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/tf_f_user_detail/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/tf_f_user_detail/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/tf_f_user_detail/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/tf_f_user_detail/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。

10.opm_order_ext_v4

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index opm_order_ext_v4 --target-index opm_order_ext_v4

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_order_ext_v4/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_order_ext_v4/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_order_ext_v4/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_order_ext_v4/full.json' --verify --verify-file '/opt/reindexctl/verify/opm_order_ext_v4_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_order_ext_v4/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_order_ext_v4/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_order_ext_v4/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_order_ext_v4/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。

11.opm_user_res

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index opm_user_res --target-index opm_user_res

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_res/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_res/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_res/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。仍为空时,核对两端完整计数均为 0,保留 Mapping 结果和报告交人工确认;UNKNOWN 不记为通过。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_res/full.json' --verify --verify-file '/opt/reindexctl/verify/opm_user_res_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_res/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_res/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_res/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_res/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。

12.opm_user_svcstate

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index opm_user_svcstate --target-index opm_user_svcstate

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_svcstate/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_svcstate/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_svcstate/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_svcstate/full.json' --verify --verify-file '/opt/reindexctl/verify/opm_user_svcstate_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_svcstate/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_svcstate/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_svcstate/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_svcstate/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。

13.opm_user_payrelation

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index opm_user_payrelation --target-index opm_user_payrelation

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_payrelation/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_payrelation/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_payrelation/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_payrelation/full.json' --verify --verify-file '/opt/reindexctl/verify/opm_user_payrelation_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_payrelation/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_payrelation/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_payrelation/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_payrelation/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。

14.opm_user_other

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index opm_user_other --target-index opm_user_other

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_other/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_other/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_other/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_other/full.json' --verify --verify-file '/opt/reindexctl/verify/opm_user_other_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_other/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_other/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_other/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_other/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。

15.opm_user_mapping

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index opm_user_mapping --target-index opm_user_mapping

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_mapping/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_mapping/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_mapping/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_mapping/full.json' --verify --verify-file '/opt/reindexctl/verify/opm_user_mapping_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_mapping/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_mapping/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_mapping/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_mapping/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。

16.opm_user_account_info

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index opm_user_account_info --target-index opm_user_account_info

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_account_info/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_account_info/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_account_info/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_account_info/full.json' --verify --verify-file '/opt/reindexctl/verify/opm_user_account_info_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_account_info/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_account_info/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_account_info/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_account_info/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。

17.opm_user_discnt

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index opm_user_discnt --target-index opm_user_discnt

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_discnt/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_discnt/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_discnt/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_discnt/full.json' --verify --verify-file '/opt/reindexctl/verify/opm_user_discnt_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_discnt/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_discnt/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_discnt/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_discnt/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。

18.opm_user_product

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index opm_user_product --target-index opm_user_product

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_product/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_product/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_product/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_product/full.json' --verify --verify-file '/opt/reindexctl/verify/opm_user_product_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_product/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_product/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_product/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_product/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。

19.opm_user_relation

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index opm_user_relation --target-index opm_user_relation

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_relation/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_relation/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_relation/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_relation/full.json' --verify --verify-file '/opt/reindexctl/verify/opm_user_relation_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_relation/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_relation/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_relation/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_relation/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。

20.opm_user_attr

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index opm_user_attr --target-index opm_user_attr

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_attr/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_attr/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_attr/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_attr/full.json' --verify --verify-file '/opt/reindexctl/verify/opm_user_attr_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_attr/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_attr/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_attr/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_attr/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。

21.opm_user_info

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index opm_user_info --target-index opm_user_info

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_info/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_info/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_info/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_info/full.json' --verify --verify-file '/opt/reindexctl/verify/opm_user_info_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_info/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_info/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_info/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_info/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。

22.opm_user_svc

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index opm_user_svc --target-index opm_user_svc

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_svc/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_svc/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_svc/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_svc/full.json' --verify --verify-file '/opt/reindexctl/verify/opm_user_svc_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_svc/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_svc/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_svc/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_svc/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。

23.opm_user_sale_active

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index opm_user_sale_active --target-index opm_user_sale_active

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_sale_active/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_sale_active/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_sale_active/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。仍为空时,核对两端完整计数均为 0,保留 Mapping 结果和报告交人工确认;UNKNOWN 不记为通过。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_sale_active/full.json' --verify --verify-file '/opt/reindexctl/verify/opm_user_sale_active_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_sale_active/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_sale_active/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_sale_active/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/opm_user_sale_active/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。

24.sec_function

① 评估

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index sec_function --target-index sec_function

看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。

② Check

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/sec_function/full.json' --check

看到「Check 是否通过:是」再执行下一条。

③ 开始迁移

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/sec_function/full.json' --rps 50

等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。

④ 验证

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/sec_function/full.json' --verify

本索引所有全量任务完成,CDC 追平或保持停写、数据可搜索后执行。

指定文件验证

先放好 --verify-file 指定的 ID 清单,再用下面命令代替④:

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/sec_function/full.json' --verify --verify-file '/opt/reindexctl/verify/sec_function_ids.txt' --verify-field _id
其他操作

查看当前任务状态

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/sec_function/full.json' --status

监控窗口断开:恢复原任务监控

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/sec_function/full.json' --resume

只恢复监控,不创建新任务;Ctrl+C 不会取消远端迁移。

调整 RPS

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/sec_function/full.json' --rethrottle 100

将 100 改为需要的限速值;两端监控正常、业务允许时再提速。

取消当前任务

/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/sec_function/full.json' --cancel

核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。

重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。

配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。