redis-di 跟踪
启动跟踪会话以排查数据转换问题
用法
Usage: redis-di trace [OPTIONS]
选项
-
loglevel
:- 类型:Choice(['DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL'])
- 违约:
info
- 用法:
--loglevel -log-level
-
rdi_host
(必填):- 类型:STRING
- 违约:
none
- 用法:
--rdi-host
Write-behind 数据库的主机/IP
-
rdi_port
(必填):- 类型:<IntRange 1000<=x<=65535>
- 违约:
none
- 用法:
--rdi-port
Write-behind 数据库的端口
-
rdi_password
:- 类型:STRING
- 违约:
none
- 用法:
--rdi-password
Write-behind 数据库密码
-
rdi_key
:- 类型:STRING
- 违约:
none
- 用法:
--rdi-key
用于身份验证的私钥文件
-
rdi_cert
:- 类型:STRING
- 违约:
none
- 用法:
--rdi-cert
用于身份验证的客户端证书文件
-
rdi_cacert
:- 类型:STRING
- 违约:
none
- 用法:
--rdi-cacert
用于验证的 CA 证书文件
-
rdi_key_password
:- 类型:STRING
- 违约:
none
- 用法:
--rdi-key-password
用于解锁加密私钥的密码
-
max_change_records
:- 类型:
=1> - 违约:
10
- 用法:
--max-change-records
每个分片的最大跟踪更改记录数
- 类型:
-
timeout
(必填):- 类型:<IntRange 1<=x<=600>
- 违约:
20
- 用法:
--timeout
超过此超时时间(以秒为单位)后停止跟踪
-
trace_only_rejected
:- 类型: BOOL
- 违约:
false
- 用法:
--trace-only-rejected
仅跟踪被拒绝的更改记录
-
help
:- 类型: BOOL
- 违约:
false
- 用法:
--help
显示此消息并退出。
CLI 帮助
Usage: redis-di trace [OPTIONS]
Starts a trace session for troubleshooting data transformation
Options:
-log-level, --loglevel [DEBUG|INFO|WARN|ERROR|CRITICAL]
[default: INFO]
--rdi-host TEXT Host/IP of Write-behind Database [required]
--rdi-port INTEGER RANGE Port of Write-behind Database [1000<=x<=65535;
required]
--rdi-password TEXT Write-behind Database Password
--rdi-key TEXT Private key file to authenticate with
--rdi-cert TEXT Client certificate file to authenticate with
--rdi-cacert TEXT CA certificate file to verify with
--rdi-key-password TEXT Password for unlocking an encrypted private
key
--max-change-records INTEGER RANGE
Maximum traced change records per shard
[x>=1]
--timeout INTEGER RANGE Stops the trace after exceeding this timeout
(in seconds) [default: 20; 1<=x<=600;
required]
--trace-only-rejected Trace only rejected change records
--help Show this message and exit.