Skip to main content

A tool to test Tair GDN sync latency.

Project description

Tair 全球多活 延迟测试工具

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

测试方式:

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

注意事项:

  1. 测试期间会清空实例数据,请勿使用本工具对生产环境实例,请使用测试实例完成本测试。
  2. 请使用标准版实例测试。

安装

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

pip install tairGDN-latencytest

快速开始

测试流程

  1. 先在目的端执行
tairgdn-latencytest read -h <target_tair_host> -p <target_tair_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

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.1.tar.gz (6.3 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.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tairgdn_latencytest-0.0.1.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

Hashes for tairgdn_latencytest-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9bb4f39ae9d6dd1378a1a7c03bfd2d18b91d2fc90d2b6780d69dca7cbb5c84e4
MD5 1529d9131adf94190bd05acda10bbb47
BLAKE2b-256 3680bca9a535ccc6f3a1d4ed868b1dac86cf37737695feda0ceb80c3df6f862e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tairgdn_latencytest-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cdfe2a65622d1296a9b420d7435006b59877cdc12309c0d53fd721069598b4c6
MD5 08959deb98e5f2fef677723fc8c4615e
BLAKE2b-256 d8e70cfcf39c4037f2587196d93dc6636ed10dd275dfc8b61c97e7271268acd2

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