索引迁移操作步骤
左侧选择索引,按①~④执行;复制命令前选择 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& 'C:\Python27\python.exe' --version核对两端连接
vi '/opt/reindexctl/runtime.json'& 'C:\Windows\System32\notepad.exe' 'D:\MyCodes\reindexctl\runtime.json'runtime.json 填本次环境的地址、用户名和密码。目标同名索引及 Mapping / Settings 须已准备好;目录与凭据文件仅向执行账号开放。
首次部署时才需要
先上传交付包到命令中的完整路径。仅在工具目录尚不存在时解压;已有部署跳过,保留原配置和任务记录。
解压交付包
tar -xzf '/tmp/reindexctl-1.3.0-9853397-linux.tar.gz' -C '/opt'& 'C:\Windows\System32\tar.exe' -xzf 'D:\Downloads\reindexctl-1.3.0-9853397-linux.tar.gz' -C 'D:\MyCodes'尚无 runtime.json 时,从模板复制
cp -n '/opt/reindexctl/runtime.example.json' '/opt/reindexctl/runtime.json'Copy-Item -LiteralPath 'D:\MyCodes\reindexctl\runtime.example.json' -Destination 'D:\MyCodes\reindexctl\runtime.json' -Confirm已有 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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --list需要指定文件验证:先准备清单目录
mkdir -p -m 700 '/opt/reindexctl/verify'New-Item -ItemType Directory -Path 'D:\MyCodes\reindexctl\verify' -Force按 --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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\opm_service_measure\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\ai_user_hit_records\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\opm_user_coupon\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\opm_market_grade\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\opm_market_grade\full.json' --cancel核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。
重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。
配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。
5.tf_f_operation_log_info_flink
① 评估
/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --assess --source-index tf_f_operation_log_info_flink --target-index tf_f_operation_log_info_flink& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --assess --source-index tf_f_operation_log_info_flink --target-index tf_f_operation_log_info_flink看到「是否可以启动迁移:是」再继续;核对本次生成的配置路径。
② Check
/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/tf_f_operation_log_info_flink/full.json' --check& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\tf_f_operation_log_info_flink\full.json' --check看到「Check 是否通过:是」再执行下一条。
③ 开始迁移
/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/tf_f_operation_log_info_flink/full.json' --rps 50& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\tf_f_operation_log_info_flink\full.json' --rps 50等待「迁移结果:完成」。失败或监控中断时,使用下方“其他操作”。
④ 验证
/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/tf_f_operation_log_info_flink/full.json' --verify& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\tf_f_operation_log_info_flink\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_operation_log_info_flink/full.json' --verify --verify-file '/opt/reindexctl/verify/tf_f_operation_log_info_flink_ids.txt' --verify-field _id& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\tf_f_operation_log_info_flink\full.json' --verify --verify-file 'D:\MyCodes\reindexctl\verify\tf_f_operation_log_info_flink_ids.txt' --verify-field _id其他操作
查看当前任务状态
/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/tf_f_operation_log_info_flink/full.json' --status& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\tf_f_operation_log_info_flink\full.json' --status监控窗口断开:恢复原任务监控
/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/tf_f_operation_log_info_flink/full.json' --resume& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\tf_f_operation_log_info_flink\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_operation_log_info_flink/full.json' --rethrottle 100& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\tf_f_operation_log_info_flink\full.json' --rethrottle 100将 100 改为需要的限速值;两端监控正常、业务允许时再提速。
取消当前任务
/usr/bin/python2.7 '/opt/reindexctl/migrate.py' --runtime '/opt/reindexctl/runtime.json' --config '/opt/reindexctl/configs/tf_f_operation_log_info_flink/full.json' --cancel& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\tf_f_operation_log_info_flink\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\tf_f_customer_info\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\opm_service_info\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\opm_user_detail\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\tf_f_user_detail\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\opm_order_ext_v4\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\opm_user_res\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\opm_user_svcstate\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\opm_user_payrelation\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\opm_user_other\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\opm_user_mapping\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\opm_user_account_info\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\opm_user_discnt\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\opm_user_product\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\opm_user_relation\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\opm_user_attr\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\opm_user_info\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\opm_user_svc\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\opm_user_sale_active\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\sec_function\full.json' --verify --verify-file 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\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& 'C:\Python27\python.exe' 'D:\MyCodes\reindexctl\migrate.py' --runtime 'D:\MyCodes\reindexctl\runtime.json' --config 'D:\MyCodes\reindexctl\configs\sec_function\full.json' --cancel核对索引和 Task ID 后按提示输入 YES;取消不回滚已经写入的数据。
重跑:确认旧任务已结束、处理原因后,重新执行② Check 和③开始迁移,按提示确认 YES。状态不明时先查询,不重复提交。
配置已修改或多条历史无法定位时,按终端指引使用原任务的实际 State 完整路径。