diff --git a/docs/zh/14-reference/12-config/index.md b/docs/zh/14-reference/12-config/index.md
index 2d1866d5dd..eeea28e5ec 100644
--- a/docs/zh/14-reference/12-config/index.md
+++ b/docs/zh/14-reference/12-config/index.md
@@ -80,21 +80,16 @@ taos --dump-config
| 补充说明 | RESTful 服务在 2.4.0.0 之前(不含)由 taosd 提供,默认端口为 6041; 在 2.4.0.0 及后续版本由 taosAdapter,默认端口为 6041 |
:::note
-确保集群中所有主机在端口 6030-6042 上的 TCP/UDP 协议能够互通。(详细的端口情况请参见下表)
+确保集群中所有主机在端口 6030 上的 TCP 协议能够互通。(详细的端口情况请参见下表)
:::
| 协议 | 默认端口 | 用途说明 | 修改方法 |
| :--- | :-------- | :---------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------- |
-| TCP | 6030 | 客户端与服务端之间通讯。 | 由配置文件设置 serverPort 决定。 |
-| TCP | 6035 | 多节点集群的节点间通讯。 | 随 serverPort 端口变化。 |
-| TCP | 6040 | 多节点集群的节点间数据同步。 | 随 serverPort 端口变化。 |
+| TCP | 6030 | 客户端与服务端之间通讯,多节点集群的节点间通讯。 | 由配置文件设置 serverPort 决定。 |
| TCP | 6041 | 客户端与服务端之间的 RESTful 通讯。 | 随 serverPort 端口变化。注意 taosAdapter 配置或有不同,请参考相应[文档](/reference/taosadapter/)。 |
-| TCP | 6042 | Arbitrator 的服务端口。 | 随 Arbitrator 启动参数设置变化。 |
| TCP | 6043 | TaosKeeper 监控服务端口。 | 随 TaosKeeper 启动参数设置变化。 |
| TCP | 6044 | 支持 StatsD 的数据接入端口。 | 随 taosAdapter 启动参数设置变化(2.3.0.1+以上版本)。 |
| UDP | 6045 | 支持 collectd 数据接入端口。 | 随 taosAdapter 启动参数设置变化(2.3.0.1+以上版本)。 |
| TCP | 6060 | 企业版内 Monitor 服务的网络端口。 | |
-| UDP | 6030-6034 | 客户端与服务端之间通讯。 | 随 serverPort 端口变化。 |
-| UDP | 6035-6039 | 多节点集群的节点间通讯。 | 随 serverPort 端口变化。
### maxShellConns
@@ -105,26 +100,6 @@ taos --dump-config
| 取值范围 | 10-50000000 |
| 缺省值 | 5000 |
-### maxConnections
-
-| 属性 | 说明 |
-| -------- | ------------------------------------------------------------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 一个数据库连接所容许的 dnode 连接数 |
-| 取值范围 | 1-100000 |
-| 缺省值 | 5000 |
-| 补充说明 | 实际测试下来,如果默认没有配,选 50 个 worker thread 会产生 Network unavailable |
-
-### rpcForceTcp
-
-| 属性 | 说明 |
-| -------- | --------------------------------------------------- |
-| 适用范围 | 服务端和客户端均适用 |
-| 含义 | 强制使用 TCP 传输 |
-| 取值范围 | 0: 不开启 1: 开启 |
-| 缺省值 | 0 |
-| 补充说明 | 在网络比较差的环境中,建议开启。
2.0 版本新增。 |
-
## 监控相关
### monitor
@@ -132,10 +107,26 @@ taos --dump-config
| 属性 | 说明 |
| -------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| 适用范围 | 仅服务端适用 |
-| 含义 | 服务器内部的系统监控开关。监控主要负责收集物理节点的负载状况,包括 CPU、内存、硬盘、网络带宽、HTTP 请求量的监控记录,记录信息存储在`LOG`库中。 |
+| 含义 | 服务器内部的系统监控开关。监控主要负责收集物理节点的负载状况,包括 CPU、内存、硬盘、网络带宽的监控记录,监控信息将通过 HTTP 协议发送给由 `monitorFqdn` 和 `monitorProt` 指定的 TaosKeeper 监控服务 |
| 取值范围 | 0:关闭监控服务, 1:激活监控服务。 |
| 缺省值 | 1 |
+### monitorFqdn
+
+| 属性 | 说明 |
+| -------- | -------------------------------------------- |
+| 适用范围 | 仅服务端适用 |
+| 含义 | TaosKeeper 监控服务的 FQDN |
+| 缺省值 | 无 |
+
+### monitorPort
+
+| 属性 | 说明 |
+| -------- | -------------------------------------------- |
+| 适用范围 | 仅服务端适用 |
+| 含义 | TaosKeeper 监控服务的端口号 |
+| 缺省值 | 6043 |
+
### monitorInterval
| 属性 | 说明 |
@@ -143,9 +134,10 @@ taos --dump-config
| 适用范围 | 仅服务端适用 |
| 含义 | 监控数据库记录系统参数(CPU/内存)的时间间隔 |
| 单位 | 秒 |
-| 取值范围 | 1-600 |
+| 取值范围 | 1-200000 |
| 缺省值 | 30 |
+
### telemetryReporting
| 属性 | 说明 |
@@ -167,19 +159,10 @@ taos --dump-config
| 缺省值 | 无 |
| 补充说明 | 计算规则可以根据实际应用可能的最大并发数和表的数字相乘,再乘 170 。
(2.0.15 以前的版本中,此参数的单位是字节) |
-### ratioOfQueryCores
-
-| 属性 | 说明 |
-| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 设置查询线程的最大数量。 |
-| 缺省值 | 1 |
-| 补充说明 | 最小值 0 表示只有 1 个查询线程
最大值 2 表示最大建立 2 倍 CPU 核数的查询线程。
默认为 1,表示最大和 CPU 核数相等的查询线程。
该值可以为小数,即 0.5 表示最大建立 CPU 核数一半的查询线程。 |
-
### maxNumOfDistinctRes
| 属性 | 说明 |
-| -------- | -------------------------------- | --- |
+| -------- | -------------------------------- |
| 适用范围 | 仅服务端适用 |
| 含义 | 允许返回的 distinct 结果最大行数 |
| 取值范围 | 默认值为 10 万,最大值 1 亿 |
@@ -301,96 +284,6 @@ charset 的有效值是 UTF-8。
| 含义 | 数据文件目录,所有的数据文件都将写入该目录 |
| 缺省值 | /var/lib/taos |
-### cache
-
-| 属性 | 说明 |
-| -------- | ------------ |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 内存块的大小 |
-| 单位 | MB |
-| 缺省值 | 16 |
-
-### blocks
-
-| 属性 | 说明 |
-| -------- | ----------------------------------------------------------------------------------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 每个 vnode(tsdb)中有多少 cache 大小的内存块。因此一个 vnode 的用的内存大小粗略为(cache \* blocks) |
-| 缺省值 | 6 |
-
-### days
-
-| 属性 | 说明 |
-| -------- | -------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 数据文件存储数据的时间跨度 |
-| 单位 | 天 |
-| 缺省值 | 10 |
-
-### keep
-
-| 属性 | 说明 |
-| -------- | -------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 数据保留的天数 |
-| 单位 | 天 |
-| 缺省值 | 3650 |
-
-### minRows
-
-| 属性 | 说明 |
-| -------- | ---------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 文件块中记录的最小条数 |
-| 缺省值 | 100 |
-
-### maxRows
-
-| 属性 | 说明 |
-| -------- | ---------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 文件块中记录的最大条数 |
-| 缺省值 | 4096 |
-
-### walLevel
-
-| 属性 | 说明 |
-| -------- | --------------------------------------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | WAL 级别 |
-| 取值范围 | 0: 不写WAL;
1:写 WAL, 但不执行 fsync
2:写 WAL, 而且执行 fsync |
-| 缺省值 | 1 |
-
-### fsync
-
-| 属性 | 说明 |
-| -------- | -------------------------------------------------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 当 WAL 设置为 2 时,执行 fsync 的周期 |
-| 单位 | 毫秒 |
-| 取值范围 | 最小为 0,表示每次写入,立即执行 fsync
最大为 180000(三分钟) |
-| 缺省值 | 3000 |
-
-### update
-
-| 属性 | 说明 |
-| -------- | ---------------------------------------------------------------------------------------------------------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 允许更新已存在的数据行 |
-| 取值范围 | 0:不允许更新
1:允许整行更新
2:允许部分列更新。(2.1.7.0 版本开始此参数支持设为 2,在此之前取值只能是 [0, 1]) |
-| 缺省值 | 0 |
-| 补充说明 | 2.0.8.0 版本之前,不支持此参数。 |
-
-### cacheLast
-
-| 属性 | 说明 |
-| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 是否在内存中缓存子表的最近数据 |
-| 取值范围 | 0:关闭
1:缓存子表最近一行数据
2:缓存子表每一列的最近的非 NULL 值
3:同时打开缓存最近行和列功能。(2.1.2.0 版本开始此参数支持 0 ~ 3 的取值范围,在此之前取值只能是 [0, 1]) |
-| 缺省值 | 0 |
-| 补充说明 | 2.1.2.0 版本之前、2.0.20.7 版本之前在 taos.cfg 文件中不支持此参数。 |
-
### minimalTmpDirGB
| 属性 | 说明 |
@@ -409,110 +302,19 @@ charset 的有效值是 UTF-8。
| 单位 | GB |
| 缺省值 | 2.0 |
-### vnodeBak
-
-| 属性 | 说明 |
-| -------- | -------------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 删除 vnode 时是否备份 vnode 目录 |
-| 取值范围 | 0:否,1:是 |
-| 缺省值 | 1 |
-
## 集群相关
-### numOfMnodes
-
-| 属性 | 说明 |
-| -------- | ------------------ |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 系统中管理节点个数 |
-| 缺省值 | 3 |
-
-### replica
-
-| 属性 | 说明 |
-| -------- | ------------ |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 副本个数 |
-| 取值范围 | 1-3 |
-| 缺省值 | 1 |
-
-### quorum
-
-| 属性 | 说明 |
-| -------- | -------------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 多副本环境下指令执行的确认数要求 |
-| 取值范围 | 1,2 |
-| 缺省值 | 1 |
-
-### role
+### supportVnodes
| 属性 | 说明 |
| -------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| 适用范围 | 仅服务端适用 |
-| 含义 | dnode 的可选角色 |
-| 取值范围 | 0:any(既可作为 mnode,也可分配 vnode)
1:mgmt(只能作为 mnode,不能分配 vnode)
2:dnode(不能作为 mnode,只能分配 vnode) |
-| 缺省值 | 0 |
-
-### balance
-
-| 属性 | 说明 |
-| -------- | ---------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 是否启动负载均衡 |
-| 取值范围 | 0,1 |
-| 缺省值 | 1 |
-
-### balanceInterval
-
-| 属性 | 说明 |
-| -------- | ------------------------------------------------ |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 管理节点在正常运行状态下,检查负载均衡的时间间隔 |
-| 单位 | 秒 |
-| 取值范围 | 1-30000 |
-| 缺省值 | 300 |
-
-### arbitrator
-
-| 属性 | 说明 |
-| -------- | ------------------------------------------ |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 系统中裁决器的 endpoint,其格式如 firstEp |
-| 缺省值 | 空 |
+| 含义 | dnode 支持的最大 vnode 数目 |
+| 取值范围 | 0-4096 |
+| 缺省值 | 256 |
## 时间相关
-### precision
-
-| 属性 | 说明 |
-| -------- | ------------------------------------------------- |
-| 适用范围 | 仅服务端 |
-| 含义 | 创建数据库时使用的时间精度 |
-| 取值范围 | ms: millisecond; us: microsecond ; ns: nanosecond |
-| 缺省值 | ms |
-
-### rpcTimer
-
-| 属性 | 说明 |
-| -------- | -------------------- |
-| 适用范围 | 服务端和客户端均适用 |
-| 含义 | rpc 重试时长 |
-| 单位 | 毫秒 |
-| 取值范围 | 100-3000 |
-| 缺省值 | 300 |
-
-### rpcMaxTime
-
-| 属性 | 说明 |
-| -------- | -------------------- |
-| 适用范围 | 服务端和客户端均适用 |
-| 含义 | rpc 等待应答最大时长 |
-| 单位 | 秒 |
-| 取值范围 | 100-7200 |
-| 缺省值 | 600 |
-
### statusInterval
| 属性 | 说明 |
@@ -533,105 +335,8 @@ charset 的有效值是 UTF-8。
| 取值范围 | 1-120 |
| 缺省值 | 3 |
-### tableMetaKeepTimer
-
-| 属性 | 说明 |
-| -------- | --------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 表的元数据 cache 时长 |
-| 单位 | 秒 |
-| 取值范围 | 1-8640000 |
-| 缺省值 | 7200 |
-
-### maxTmrCtrl
-
-| 属性 | 说明 |
-| -------- | -------------------- |
-| 适用范围 | 服务端和客户端均适用 |
-| 含义 | 定时器个数 |
-| 单位 | 个 |
-| 取值范围 | 8-2048 |
-| 缺省值 | 512 |
-
-### offlineThreshold
-
-| 属性 | 说明 |
-| -------- | ------------------------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | dnode 离线阈值,超过该时间将导致 dnode 离线 |
-| 单位 | 秒 |
-| 取值范围 | 5-7200000 |
-| 缺省值 | 86400\*10(10 天) |
-
## 性能调优
-### numOfThreadsPerCore
-
-| 属性 | 说明 |
-| -------- | ----------------------------------- |
-| 适用范围 | 服务端和客户端均适用 |
-| 含义 | 每个 CPU 核生成的队列消费者线程数量 |
-| 缺省值 | 1.0 |
-
-### ratioOfQueryThreads
-
-| 属性 | 说明 |
-| -------- | ------------------------------------------------------------------------------------------------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 设置查询线程的最大数量 |
-| 取值范围 | 0:表示只有 1 个查询线程
1:表示最大和 CPU 核数相等的查询线程
2:表示最大建立 2 倍 CPU 核数的查询线程。 |
-| 缺省值 | 1 |
-| 补充说明 | 该值可以为小数,即 0.5 表示最大建立 CPU 核数一半的查询线程。 |
-
-### maxVgroupsPerDb
-
-| 属性 | 说明 |
-| -------- | ------------------------------------ |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 每个 DB 中 能够使用的最大 vnode 个数 |
-| 取值范围 | 0-8192 |
-| 缺省值 | 0 |
-
-### maxTablesPerVnode
-
-| 属性 | 说明 |
-| -------- | --------------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 每个 vnode 中能够创建的最大表个数 |
-| 缺省值 | 1000000 |
-
-### minTablesPerVnode
-
-| 属性 | 说明 |
-| -------- | --------------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 每个 vnode 中必须创建表的最小数量 |
-| 缺省值 | 1000 |
-
-### tableIncStepPerVnode
-
-| 属性 | 说明 |
-| -------- | ------------------------------------------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 每个 vnode 中超过最小表数,i.e. minTablesPerVnode, 后递增步长 |
-| 缺省值 | 1000 |
-
-### maxNumOfOrderedRes
-
-| 属性 | 说明 |
-| -------- | -------------------------------------- |
-| 适用范围 | 服务端和客户端均适用 |
-| 含义 | 支持超级表时间排序允许的最多记录数限制 |
-| 缺省值 | 10 万 |
-
-### mnodeEqualVnodeNum
-
-| 属性 | 说明 |
-| -------- | ------------------------------------ |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 将一个 mnode 等同于 vnode 消耗的个数 |
-| 缺省值 | 4 |
-
### numOfCommitThreads
| 属性 | 说明 |
@@ -642,23 +347,6 @@ charset 的有效值是 UTF-8。
## 压缩相关
-### comp
-
-| 属性 | 说明 |
-| -------- | ----------------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 文件压缩标志位 |
-| 取值范围 | 0:关闭,1:一阶段压缩,2:两阶段压缩 |
-| 缺省值 | 2 |
-
-### tsdbMetaCompactRatio
-
-| 属性 | 说明 |
-| -------- | -------------------------------------------------------------- |
-| 含义 | tsdb meta 文件中冗余数据超过多少阈值,开启 meta 文件的压缩功能 |
-| 取值范围 | 0:不开启,[1-100]:冗余数据比例 |
-| 缺省值 | 0 |
-
### compressMsgSize
| 属性 | 说明 |
@@ -710,135 +398,6 @@ charset 的有效值是 UTF-8。
| 缺省值 | 0.0000000000000001 |
| 补充说明 | 小于此值的浮点数尾数部分将被截取 |
-## 连续查询相关
-
-### stream
-
-| 属性 | 说明 |
-| -------- | ------------------------------ |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 是否启用连续查询(流计算功能) |
-| 取值范围 | 0:不允许
1:允许 |
-| 缺省值 | 1 |
-
-### minSlidingTime
-
-| 属性 | 说明 |
-| -------- | ----------------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 最小滑动窗口时长 |
-| 单位 | 毫秒 |
-| 取值范围 | 10-1000000 |
-| 缺省值 | 10 |
-| 补充说明 | 支持 us 补值后,这个值就是 1us 了。 |
-
-### minIntervalTime
-
-| 属性 | 说明 |
-| -------- | -------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 时间窗口最小值 |
-| 单位 | 毫秒 |
-| 取值范围 | 1-1000000 |
-| 缺省值 | 10 |
-
-### maxStreamCompDelay
-
-| 属性 | 说明 |
-| -------- | -------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 连续查询启动最大延迟 |
-| 单位 | 毫秒 |
-| 取值范围 | 10-1000000000 |
-| 缺省值 | 20000 |
-
-### maxFirstStreamCompDelay
-
-| 属性 | 说明 |
-| -------- | -------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 第一次连续查询启动最大延迟 |
-| 单位 | 毫秒 |
-| 取值范围 | 10-1000000000 |
-| 缺省值 | 10000 |
-
-### retryStreamCompDelay
-
-| 属性 | 说明 |
-| -------- | -------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 连续查询重试等待间隔 |
-| 单位 | 毫秒 |
-| 取值范围 | 10-1000000000 |
-| 缺省值 | 10 |
-
-### streamCompDelayRatio
-
-| 属性 | 说明 |
-| -------- | ---------------------------------------------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 连续查询的延迟时间计算系数,实际延迟时间为本参数乘以计算时间窗口 |
-| 取值范围 | 0.1-0.9 |
-| 缺省值 | 0.1 |
-
-:::info
-为避免多个 stream 同时执行占用太多系统资源,程序中对 stream 的执行时间人为增加了一些随机的延时。
maxFirstStreamCompDelay 是 stream 第一次执行前最少要等待的时间。
streamCompDelayRatio 是延迟时间的计算系数,它乘以查询的 interval 后为延迟时间基准。
maxStreamCompDelay 是延迟时间基准的上限。
实际延迟时间为一个不超过延迟时间基准的随机值。
stream 某次计算失败后需要重试,retryStreamCompDelay 是重试的等待时间基准。
实际重试等待时间为不超过等待时间基准的随机值。
-
-:::
-
-## HTTP 相关
-
-:::note
-HTTP 服务在 2.4.0.0(不含)以前的版本中由 taosd 提供,在 2.4.0.0 以后(含)由 taosAdapter 提供。
-本节的配置参数仅在 2.4.0.0(不含)以前的版本中生效。如果您使用的是 2.4.0.0(含)及以后的版本请参考[文档](/reference/taosadapter/)。
-
-:::
-
-### http
-
-| 属性 | 说明 |
-| -------- | --------------------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 服务器内部的 http 服务开关。 |
-| 取值范围 | 0:关闭 http 服务, 1:激活 http 服务。 |
-| 缺省值 | 1 |
-
-### httpEnableRecordSql
-
-| 属性 | 说明 |
-| -------- | --------------------------------------------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 记录通过 RESTFul 接口,产生的 SQL 调用。 |
-| 缺省值 | 0 |
-| 补充说明 | 生成的文件(httpnote.0/httpnote.1),与服务端日志所在目录相同。 |
-
-### httpMaxThreads
-
-| 属性 | 说明 |
-| -------- | ------------------------------------------------------------------------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | RESTFul 接口的线程数。taosAdapter 配置或有不同,请参考相应[文档](/reference/taosadapter/)。 |
-| 缺省值 | 2 |
-
-### restfulRowLimit
-
-| 属性 | 说明 |
-| -------- | ----------------------------------------------------------------------------------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | RESTFul 接口单次返回的记录条数。taosAdapter 配置或有不同,请参考相应[文档](/reference/taosadapter/)。 |
-| 缺省值 | 10240 |
-| 补充说明 | 最大 10,000,000 |
-
-### httpDBNameMandatory
-
-| 属性 | 说明 |
-| -------- | ---------------------------- |
-| 适用范围 | 仅服务端适用 |
-| 含义 | 是否在 URL 中输入 数据库名称 |
-| 取值范围 | 0:不开启,1:开启 |
-| 缺省值 | 0 |
-| 补充说明 | 2.3 版本新增。 |
-
## 日志相关
### logDir
diff --git a/include/common/tglobal.h b/include/common/tglobal.h
index ac998b807e..a3aa657e60 100644
--- a/include/common/tglobal.h
+++ b/include/common/tglobal.h
@@ -102,11 +102,6 @@ extern int32_t tsQuerySmaOptimize;
// client
extern int32_t tsMinSlidingTime;
extern int32_t tsMinIntervalTime;
-extern int32_t tsMaxStreamComputDelay;
-extern int32_t tsStreamCompStartDelay;
-extern int32_t tsRetryStreamCompDelay;
-extern float tsStreamComputDelayRatio; // the delayed computing ration of the whole time window
-extern int64_t tsMaxRetentWindow;
// build info
extern char version[];
diff --git a/source/common/src/tglobal.c b/source/common/src/tglobal.c
index cb1f3ca91c..c7b7da9adc 100644
--- a/source/common/src/tglobal.c
+++ b/source/common/src/tglobal.c
@@ -118,20 +118,6 @@ int32_t tsMaxNumOfDistinctResults = 1000 * 10000;
// 1 database precision unit for interval time range, changed accordingly
int32_t tsMinIntervalTime = 1;
-// 20sec, the maximum value of stream computing delay, changed accordingly
-int32_t tsMaxStreamComputDelay = 20000;
-
-// 10sec, the first stream computing delay time after system launched successfully, changed accordingly
-int32_t tsStreamCompStartDelay = 10000;
-
-// the stream computing delay time after executing failed, change accordingly
-int32_t tsRetryStreamCompDelay = 10 * 1000;
-
-// The delayed computing ration. 10% of the whole computing time window by default.
-float tsStreamComputDelayRatio = 0.1f;
-
-int64_t tsMaxRetentWindow = 24 * 3600L; // maximum time window tolerance
-
// the maximum allowed query buffer size during query processing for each data node.
// -1 no limit (default)
// 0 no query allowed, queries are disabled
@@ -330,7 +316,7 @@ static int32_t taosAddClientCfg(SConfig *pCfg) {
if (cfgAddString(pCfg, "fqdn", defaultFqdn, 1) != 0) return -1;
if (cfgAddInt32(pCfg, "serverPort", defaultServerPort, 1, 65056, 1) != 0) return -1;
if (cfgAddDir(pCfg, "tempDir", tsTempDir, 1) != 0) return -1;
- if (cfgAddFloat(pCfg, "minimalTempDirGB", 1.0f, 0.001f, 10000000, 1) != 0) return -1;
+ if (cfgAddFloat(pCfg, "minimalTmpDirGB", 1.0f, 0.001f, 10000000, 1) != 0) return -1;
if (cfgAddInt32(pCfg, "shellActivityTimer", tsShellActivityTimer, 1, 120, 1) != 0) return -1;
if (cfgAddInt32(pCfg, "compressMsgSize", tsCompressMsgSize, -1, 100000000, 1) != 0) return -1;
if (cfgAddInt32(pCfg, "compressColData", tsCompressColData, -1, 100000000, 1) != 0) return -1;
@@ -383,10 +369,6 @@ static int32_t taosAddServerCfg(SConfig *pCfg) {
if (cfgAddInt32(pCfg, "minIntervalTime", tsMinIntervalTime, 1, 1000000, 0) != 0) return -1;
if (cfgAddInt32(pCfg, "maxNumOfDistinctRes", tsMaxNumOfDistinctResults, 10 * 10000, 10000 * 10000, 0) != 0) return -1;
if (cfgAddInt32(pCfg, "countAlwaysReturnValue", tsCountAlwaysReturnValue, 0, 1, 0) != 0) return -1;
- if (cfgAddInt32(pCfg, "maxStreamCompDelay", tsMaxStreamComputDelay, 10, 1000000000, 0) != 0) return -1;
- if (cfgAddInt32(pCfg, "maxFirstStreamCompDelay", tsStreamCompStartDelay, 1000, 1000000000, 0) != 0) return -1;
- if (cfgAddInt32(pCfg, "retryStreamCompDelay", tsRetryStreamCompDelay, 10, 1000000000, 0) != 0) return -1;
- if (cfgAddFloat(pCfg, "streamCompDelayRatio", tsStreamComputDelayRatio, 0.1, 0.9, 0) != 0) return -1;
if (cfgAddInt32(pCfg, "queryBufferSize", tsQueryBufferSize, -1, 500000000000, 0) != 0) return -1;
if (cfgAddBool(pCfg, "retrieveBlockingModel", tsRetrieveBlockingModel, 0) != 0) return -1;
if (cfgAddBool(pCfg, "printAuth", tsPrintAuth, 0) != 0) return -1;
@@ -532,7 +514,7 @@ static int32_t taosSetClientCfg(SConfig *pCfg) {
tstrncpy(tsTempDir, cfgGetItem(pCfg, "tempDir")->str, PATH_MAX);
taosExpandDir(tsTempDir, tsTempDir, PATH_MAX);
- tsTempSpace.reserved = cfgGetItem(pCfg, "minimalTempDirGB")->fval;
+ tsTempSpace.reserved = cfgGetItem(pCfg, "minimalTmpDirGB")->fval;
if (taosMulMkDir(tsTempDir) != 0) {
uError("failed to create tempDir:%s since %s", tsTempDir, terrstr());
return -1;
@@ -579,10 +561,6 @@ static int32_t taosSetServerCfg(SConfig *pCfg) {
tsMinIntervalTime = cfgGetItem(pCfg, "minIntervalTime")->i32;
tsMaxNumOfDistinctResults = cfgGetItem(pCfg, "maxNumOfDistinctRes")->i32;
tsCountAlwaysReturnValue = cfgGetItem(pCfg, "countAlwaysReturnValue")->i32;
- tsMaxStreamComputDelay = cfgGetItem(pCfg, "maxStreamCompDelay")->i32;
- tsStreamCompStartDelay = cfgGetItem(pCfg, "maxFirstStreamCompDelay")->i32;
- tsRetryStreamCompDelay = cfgGetItem(pCfg, "retryStreamCompDelay")->i32;
- tsStreamComputDelayRatio = cfgGetItem(pCfg, "streamCompDelayRatio")->fval;
tsQueryBufferSize = cfgGetItem(pCfg, "queryBufferSize")->i32;
tsRetrieveBlockingModel = cfgGetItem(pCfg, "retrieveBlockingModel")->bval;
tsPrintAuth = cfgGetItem(pCfg, "printAuth")->bval;
@@ -758,10 +736,6 @@ int32_t taosSetCfg(SConfig *pCfg, char *name) {
tsMaxShellConns = cfgGetItem(pCfg, "maxShellConns")->i32;
} else if (strcasecmp("maxNumOfDistinctRes", name) == 0) {
tsMaxNumOfDistinctResults = cfgGetItem(pCfg, "maxNumOfDistinctRes")->i32;
- } else if (strcasecmp("maxStreamCompDelay", name) == 0) {
- tsMaxStreamComputDelay = cfgGetItem(pCfg, "maxStreamCompDelay")->i32;
- } else if (strcasecmp("maxFirstStreamCompDelay", name) == 0) {
- tsStreamCompStartDelay = cfgGetItem(pCfg, "maxFirstStreamCompDelay")->i32;
}
break;
}
@@ -772,8 +746,8 @@ int32_t taosSetCfg(SConfig *pCfg, char *name) {
break;
}
case 'i': {
- if (strcasecmp("minimalTempDirGB", name) == 0) {
- tsTempSpace.reserved = cfgGetItem(pCfg, "minimalTempDirGB")->fval;
+ if (strcasecmp("minimalTmpDirGB", name) == 0) {
+ tsTempSpace.reserved = cfgGetItem(pCfg, "minimalTmpDirGB")->fval;
} else if (strcasecmp("minimalDataDirGB", name) == 0) {
tsDataSpace.reserved = cfgGetItem(pCfg, "minimalDataDirGB")->fval;
} else if (strcasecmp("minSlidingTime", name) == 0) {
@@ -883,9 +857,7 @@ int32_t taosSetCfg(SConfig *pCfg, char *name) {
break;
}
case 'r': {
- if (strcasecmp("retryStreamCompDelay", name) == 0) {
- tsRetryStreamCompDelay = cfgGetItem(pCfg, "retryStreamCompDelay")->i32;
- } else if (strcasecmp("retrieveBlockingModel", name) == 0) {
+ if (strcasecmp("retrieveBlockingModel", name) == 0) {
tsRetrieveBlockingModel = cfgGetItem(pCfg, "retrieveBlockingModel")->bval;
} else if (strcasecmp("rpcQueueMemoryAllowed", name) == 0) {
tsRpcQueueMemoryAllowed = cfgGetItem(pCfg, "rpcQueueMemoryAllowed")->i64;
@@ -913,8 +885,6 @@ int32_t taosSetCfg(SConfig *pCfg, char *name) {
tsNumOfSupportVnodes = cfgGetItem(pCfg, "supportVnodes")->i32;
} else if (strcasecmp("statusInterval", name) == 0) {
tsStatusInterval = cfgGetItem(pCfg, "statusInterval")->i32;
- } else if (strcasecmp("streamCompDelayRatio", name) == 0) {
- tsStreamComputDelayRatio = cfgGetItem(pCfg, "streamCompDelayRatio")->fval;
} else if (strcasecmp("slaveQuery", name) == 0) {
tsEnableSlaveQuery = cfgGetItem(pCfg, "slaveQuery")->bval;
} else if (strcasecmp("snodeShmSize", name) == 0) {