A tool to test Tair GDN sync latency.
Project description
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:源地址 host(默认127.0.0.1)-p:源端口(默认6379)-u/-a:ACL 用户/密码-l: 命令长度(单位:byte)-n:写入key总数(默认100000)-P:管道深度(默认8)-c: 连接数(默认8)--help: 帮助信息
参数说明(目的端):
-h:目标地址 host(默认127.0.0.1)-p:目标端口(默认6379)-u/-a:ACL 用户/密码(可选)-n:读取总键数(默认100000)--help: 帮助信息
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tairgdn_latencytest-0.0.3.tar.gz.
File metadata
- Download URL: tairgdn_latencytest-0.0.3.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7e344a7f34e0ff01bfeba9edb23cb05c15df4f3f9a373a59340287cf42883fb
|
|
| MD5 |
1ec2eb8c7d8333f1991fd6ee0046b1e2
|
|
| BLAKE2b-256 |
605a312d61297a00078973f9d0bad8ebbda8dfe2f990b63d387cad93212a2504
|
File details
Details for the file tairgdn_latencytest-0.0.3-py3-none-any.whl.
File metadata
- Download URL: tairgdn_latencytest-0.0.3-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d38c2acd0d1de9bd04d7fcca8598ae52dde9d3148f6e6956062f23307df6fcc5
|
|
| MD5 |
b46ef77d0b18c24e84f47c92064f3b82
|
|
| BLAKE2b-256 |
a0de6701ec3e06bdd9ee1531c9c7ab309b9eb82141c66c324af560369ec6dfd6
|