Tair 全球多活 延迟测试工具
本工具用于测试 Tair 全球多活功能的同步延迟。
测试方法:
- 在源端 set key value,写入的 value 为写入时间戳。
- 在目的端读取 value 计算同步延迟,并生成统计数据和图表。
注意事项:
- 测试期间会清空实例数据,请使用测试实例完成本测试。
- 请使用标准版(主从版)实例测试。
安装
需要 Python 3.9 或更高版本,通过 pip 安装
pip install tairgdn-latencytest
快速开始
测试流程
请确保以以下顺序执行:
- 先在目的端执行
tairgdn-latencytest read [-h host] [-p port] [-u username] [-a password] [-n request_count]
- 然后在源端执行
tairgdn-latencytest write [-h host] [-p port] [-u username] [-a password] [-l length] [-n requests] [-P pipeline] [-c connection]
查看子命令帮助:
tairgdn-latencytest write --help
tairgdn-latencytest read --help
参数说明(源端):
-h: 源实例地址(默认127.0.0.1)-p: 源实例端口(默认6379)-u/-a: ACL 用户/密码-l: 命令长度(单位:byte)-n: 写入key总数(默认100000)-P: 管道深度(默认8)-c: 连接数(默认8)--help: 帮助信息
参数说明(目的端):
-h: 目标实例地址(默认127.0.0.1)-p: 目标实例端口(默认6379)-u/-a: ACL 用户/密码(可选)-n: 读取总键数(默认100000)--help: 帮助信息
Metadata
Release files for tairgdn-latencytest 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tairgdn_latencytest-0.0.5.tar.gz | 6.5 kB | Without provenance | Details for tairgdn_latencytest-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tairgdn_latencytest-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for tairgdn_latencytest-0.0.5-py3-none-any.whl |
Total release size: 14.1 kB
Release files / tairgdn_latencytest-0.0.5.tar.gz
| Download URL | tairgdn_latencytest-0.0.5.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
041e797d3f1b0d6b35ae2ae223a95411a28624e2dd9a5042d667f638cde5c6d8
|
|
BLAKE2b-256 checksum How to use checksums |
ddf38816b549555e58678e7562eee2fb482ed62fa76ec54a737ae46d6439bc5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Release files / tairgdn_latencytest-0.0.5-py3-none-any.whl
| Download URL | tairgdn_latencytest-0.0.5-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b40af7e752cdeda61ffffd030ae36a340fc101b6db60b3da35c473ade7fbb67c
|
|
BLAKE2b-256 checksum How to use checksums |
5e36144dfc85b9a513954f5de79d92cdc334c765081ffa60d238d92fb1f9b804
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Security for tairgdn-latencytest 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.