Skip to main content

A tool to test Tair GDN sync latency.

Project description

Tair 全球多活 延迟测试工具

本工具用于测试 Tair 全球多活功能的同步延迟。

测试方法:

  1. 在源端 set key value,写入的 value 为写入时间戳。
  2. 在目的端读取 value 计算同步延迟,并生成统计数据和图表。

注意事项:

  1. 测试期间会清空实例数据,请使用测试实例完成本测试。
  2. 请使用标准版(主从版)实例测试。

安装

需要 Python 3.9 或更高版本,通过 pip 安装

pip install tairgdn-latencytest

快速开始

测试流程

请确保以以下顺序执行:

  1. 先在目的端执行
tairgdn-latencytest read [-h host] [-p port] [-u username] [-a password] [-n request_count]
  1. 然后在源端执行
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

tairgdn_latencytest-0.0.4.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tairgdn_latencytest-0.0.4-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file tairgdn_latencytest-0.0.4.tar.gz.

File metadata

  • Download URL: tairgdn_latencytest-0.0.4.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for tairgdn_latencytest-0.0.4.tar.gz
Algorithm Hash digest
SHA256 74d0f2a7307bf93e82b8decf544b33241cda9e653151fac069e51cd43f5a935b
MD5 e96b9ebaf25af76e2340ea7704e5ca2f
BLAKE2b-256 abdbffd973f3d1f9a8b49c1926b88efc55f4fe80fa2122cfe1f908ce5224f637

See more details on using hashes here.

File details

Details for the file tairgdn_latencytest-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for tairgdn_latencytest-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c50c48a078fb58a63da11a6e760ca7563dc7cb06f890445f5008aa21046b97a2
MD5 2dc150ad7196966f78bddc7cb66bb022
BLAKE2b-256 38df2e26c223ba40a61e51158f0526700d943e9aacef9ffff049202176ddc7a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page