Merge pull request #7393 from taosdata/docs/Update-Latest-Feature

[TD-5940] <docs>: describe network testing mode of taos.
This commit is contained in:
Elias Soong 2021-08-16 15:38:05 +08:00 committed by GitHub
commit bc9a01d46d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -796,6 +796,19 @@ taos -n sync -P 6042 -h <fqdn of server>
用来诊断 sync 端口是否工作正常,判断服务端 sync 模块是否成功工作。另外,-P 6042 用来诊断 arbitrator 是否配置正常,判断指定服务器的 arbitrator 是否能正常工作。
#### 网络速度诊断
`taos -n speed -h <fqdn of server> -P 6030 -N 10 -l 10000000 -S TCP`
从 2.1.7.0 版本开始taos 工具新提供了一个网络速度诊断的模式,可以对一个正在运行中的 taosd 实例或者 `taos -n server` 方式模拟的一个服务端实例,以非压缩传输的方式进行网络测速。这个模式下可供调整的参数如下:
-n设为“speed”时表示对网络速度进行诊断。
-h所要连接的服务端的 FQDN 或 ip 地址。如果不设置这一项,会使用本机 taos.cfg 文件中 FQDN 参数的设置作为默认值。
-P所连接服务端的网络端口。默认值为 6030。
-N诊断过程中使用的网络包总数。最小值是 1、最大值是 10000默认值为 100。
-l单个网络包的大小单位字节。最小值是 1024、最大值是 1024*1024*1024默认值为 1000。
-S网络封包的类型。可以是 TCP 或 UDP默认值为 TCP。
#### 服务端日志
taosd 服务端日志文件标志位 debugflag 默认为 131在 debug 时往往需要将其提升到 135 或 143 。