提交 d56fded4 编写于 作者: H Hongze Cheng

Merge branch '3.0' of https://github.com/taosdata/TDengine into enh/tsdb_optimize

...@@ -46,7 +46,7 @@ The parameters described in this document by the effect that they have on the sy ...@@ -46,7 +46,7 @@ The parameters described in this document by the effect that they have on the sy
### firstEp ### firstEp
| Attribute | Description | | Attribute | Description |
| -------- | -------------------------------------------------------------- | | ---------- | ---------------------------------------------------------------------------------------------------- |
| Applicable | Server and Client | | Applicable | Server and Client |
| Meaning | The end point of the first dnode in the cluster to be connected to when `taosd` or `taos` is started | | Meaning | The end point of the first dnode in the cluster to be connected to when `taosd` or `taos` is started |
| Default | localhost:6030 | | Default | localhost:6030 |
...@@ -54,7 +54,7 @@ The parameters described in this document by the effect that they have on the sy ...@@ -54,7 +54,7 @@ The parameters described in this document by the effect that they have on the sy
### secondEp ### secondEp
| Attribute | Description | | Attribute | Description |
| -------- | ------------------------------------------------------------------------------------- | | ---------- | ---------------------------------------------------------------------------------------------------------------------- |
| Applicable | Server and Client | | Applicable | Server and Client |
| Meaning | The end point of the second dnode to be connected to if the firstEp is not available when `taosd` or `taos` is started | | Meaning | The end point of the second dnode to be connected to if the firstEp is not available when `taosd` or `taos` is started |
| Default | None | | Default | None |
...@@ -71,7 +71,7 @@ The parameters described in this document by the effect that they have on the sy ...@@ -71,7 +71,7 @@ The parameters described in this document by the effect that they have on the sy
### serverPort ### serverPort
| Attribute | Description | | Attribute | Description |
| -------- | ----------------------------------------------------------------------------------------------------------------------- | | ------------- | ----------------------------------------------------- |
| Applicable | Server Only | | Applicable | Server Only |
| Meaning | The port for external access after `taosd` is started | | Meaning | The port for external access after `taosd` is started |
| Default Value | 6030 | | Default Value | 6030 |
...@@ -80,12 +80,12 @@ The parameters described in this document by the effect that they have on the sy ...@@ -80,12 +80,12 @@ The parameters described in this document by the effect that they have on the sy
- Ensure that your firewall rules do not block TCP port 6042 on any host in the cluster. Below table describes the ports used by TDengine in details. - Ensure that your firewall rules do not block TCP port 6042 on any host in the cluster. Below table describes the ports used by TDengine in details.
::: :::
| Protocol | Default Port | Description | How to configure | | Protocol | Default Port | Description | How to configure |
| :------- | :----------- | :----------------------------------------------- | :--------------------------------------------------------------------------------------------- | | :------- | :----------- | :-------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------- |
| TCP | 6030 | Communication between client and server. In a multi-node cluster, communication between nodes. serverPort | | TCP | 6030 | Communication between client and server. In a multi-node cluster, communication between nodes. serverPort |
| TCP | 6041 | REST connection between client and server | Prior to 2.4.0.0: serverPort+11; After 2.4.0.0 refer to [taosAdapter](/reference/taosadapter/) | | TCP | 6041 | REST connection between client and server | Prior to 2.4.0.0: serverPort+11; After 2.4.0.0 refer to [taosAdapter](/reference/taosadapter/) |
| TCP | 6043 | Service Port of taosKeeper | The parameter of taosKeeper | | TCP | 6043 | Service Port of taosKeeper | The parameter of taosKeeper |
| TCP | 6044 | Data access port for StatsD | Configurable through taosAdapter parameters. | TCP | 6044 | Data access port for StatsD | Configurable through taosAdapter parameters. |
| UDP | 6045 | Data access for statsd | Configurable through taosAdapter parameters. | UDP | 6045 | Data access for statsd | Configurable through taosAdapter parameters. |
| TCP | 6060 | Port of Monitoring Service in Enterprise version | | | TCP | 6060 | Port of Monitoring Service in Enterprise version | |
### maxShellConns ### maxShellConns
...@@ -97,6 +97,24 @@ The parameters described in this document by the effect that they have on the sy ...@@ -97,6 +97,24 @@ The parameters described in this document by the effect that they have on the sy
| Value Range | 10-50000000 | | Value Range | 10-50000000 |
| Default Value | 5000 | | Default Value | 5000 |
### numOfRpcSessions
| Attribute | Description |
| ------------- | ------------------------------------------ |
| Applicable | Client/Server |
| Meaning | The maximum number of connection to create |
| Value Range | 100-100000 |
| Default Value | 10000 |
### timeToGetAvailableConn
| Attribute | Description |
| ------------- | ---------------------------------------------- |
| Applicable | Client/Server |
| Meaning | The maximum waiting time to get avaliable conn |
| Value Range | 10-50000000(ms) |
| Default Value | 500000 |
## Monitoring Parameters ## Monitoring Parameters
:::note :::note
...@@ -105,16 +123,16 @@ Please note the `taoskeeper` needs to be installed and running to create the `lo ...@@ -105,16 +123,16 @@ Please note the `taoskeeper` needs to be installed and running to create the `lo
### monitor ### monitor
| Attribute | Description | | Attribute | Description |
| -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Applicable | Server only | | Applicable | Server only |
| Meaning | The switch for monitoring inside server. The main object of monitoring is to collect information about load on physical nodes, including CPU usage, memory usage, disk usage, and network bandwidth. Monitoring information is sent over HTTP to the taosKeeper service specified by `monitorFqdn` and `monitorProt`. | Meaning | The switch for monitoring inside server. The main object of monitoring is to collect information about load on physical nodes, including CPU usage, memory usage, disk usage, and network bandwidth. Monitoring information is sent over HTTP to the taosKeeper service specified by `monitorFqdn` and `monitorProt`. |
| Value Range | 0: monitoring disabled, 1: monitoring enabled | | Value Range | 0: monitoring disabled, 1: monitoring enabled |
| Default | 0 | | Default | 0 |
### monitorFqdn ### monitorFqdn
| Attribute | Description | | Attribute | Description |
| -------- | -------------------------- | | ---------- | ------------------------------------- |
| Applicable | Server Only | | Applicable | Server Only |
| Meaning | FQDN of taosKeeper monitoring service | | Meaning | FQDN of taosKeeper monitoring service |
| Default | None | | Default | None |
...@@ -122,7 +140,7 @@ Please note the `taoskeeper` needs to be installed and running to create the `lo ...@@ -122,7 +140,7 @@ Please note the `taoskeeper` needs to be installed and running to create the `lo
### monitorPort ### monitorPort
| Attribute | Description | | Attribute | Description |
| -------- | --------------------------- | | ------------- | ------------------------------------- |
| Applicable | Server Only | | Applicable | Server Only |
| Meaning | Port of taosKeeper monitoring service | | Meaning | Port of taosKeeper monitoring service |
| Default Value | 6043 | | Default Value | 6043 |
...@@ -130,7 +148,7 @@ Please note the `taoskeeper` needs to be installed and running to create the `lo ...@@ -130,7 +148,7 @@ Please note the `taoskeeper` needs to be installed and running to create the `lo
### monitorInterval ### monitorInterval
| Attribute | Description | | Attribute | Description |
| -------- | -------------------------------------------- | | ------------- | ------------------------------------------ |
| Applicable | Server Only | | Applicable | Server Only |
| Meaning | The interval of collecting system workload | | Meaning | The interval of collecting system workload |
| Unit | second | | Unit | second |
...@@ -140,7 +158,7 @@ Please note the `taoskeeper` needs to be installed and running to create the `lo ...@@ -140,7 +158,7 @@ Please note the `taoskeeper` needs to be installed and running to create the `lo
### telemetryReporting ### telemetryReporting
| Attribute | Description | | Attribute | Description |
| -------- | ---------------------------------------- | | ------------- | ---------------------------------------------------------------------------- |
| Applicable | Server Only | | Applicable | Server Only |
| Meaning | Switch for allowing TDengine to collect and report service usage information | | Meaning | Switch for allowing TDengine to collect and report service usage information |
| Value Range | 0: Not allowed; 1: Allowed | | Value Range | 0: Not allowed; 1: Allowed |
...@@ -148,9 +166,9 @@ Please note the `taoskeeper` needs to be installed and running to create the `lo ...@@ -148,9 +166,9 @@ Please note the `taoskeeper` needs to be installed and running to create the `lo
### crashReporting ### crashReporting
| Attribute | Description | | Attribute | Description |
| -------- | -------------------------------------------- | | ------------- | ---------------------------------------------------------------------------- |
| Applicable | Server Only | | Applicable | Server Only |
| Meaning |Switch for allowing TDengine to collect and report crash related information | | Meaning | Switch for allowing TDengine to collect and report crash related information |
| Value Range | 0,1 0: Not allowed; 1: allowed | | Value Range | 0,1 0: Not allowed; 1: allowed |
| Default Value | 1 | | Default Value | 1 |
...@@ -160,7 +178,7 @@ Please note the `taoskeeper` needs to be installed and running to create the `lo ...@@ -160,7 +178,7 @@ Please note the `taoskeeper` needs to be installed and running to create the `lo
### queryPolicy ### queryPolicy
| Attribute | Description | | Attribute | Description |
| -------- | ----------------------------- | | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Applicable | Client only | | Applicable | Client only |
| Meaning | Execution policy for query statements | | Meaning | Execution policy for query statements |
| Unit | None | | Unit | None |
...@@ -170,17 +188,17 @@ Please note the `taoskeeper` needs to be installed and running to create the `lo ...@@ -170,17 +188,17 @@ Please note the `taoskeeper` needs to be installed and running to create the `lo
### querySmaOptimize ### querySmaOptimize
| Attribute | Description | | Attribute | Description |
| -------- | -------------------- | | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Applicable | Client only | | Applicable | Client only |
| Meaning | SMA index optimization policy | | Meaning | SMA index optimization policy |
| Unit | None | | Unit | None |
| Default Value | 0 | | Default Value | 0 |
| Notes |0: Disable SMA indexing and perform all queries on non-indexed data; 1: Enable SMA indexing and perform queries from suitable statements on precomputation results.| | Notes | 0: Disable SMA indexing and perform all queries on non-indexed data; 1: Enable SMA indexing and perform queries from suitable statements on precomputation results. |
### countAlwaysReturnValue ### countAlwaysReturnValue
| Attribute | Description | | Attribute | Description |
| -------- | -------------------------------- | | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Applicable | Server only | | Applicable | Server only |
| Meaning | count()/hyperloglog() return value or not if the input data is empty or NULL | | Meaning | count()/hyperloglog() return value or not if the input data is empty or NULL |
| Vlue Range | 0: Return empty line, 1: Return 0 | | Vlue Range | 0: Return empty line, 1: Return 0 |
...@@ -190,7 +208,7 @@ Please note the `taoskeeper` needs to be installed and running to create the `lo ...@@ -190,7 +208,7 @@ Please note the `taoskeeper` needs to be installed and running to create the `lo
### maxNumOfDistinctRes ### maxNumOfDistinctRes
| Attribute | Description | | Attribute | Description |
| -------- | -------------------------------- | | ------------- | -------------------------------------------- |
| Applicable | Server Only | | Applicable | Server Only |
| Meaning | The maximum number of distinct rows returned | | Meaning | The maximum number of distinct rows returned |
| Value Range | [100,000 - 100,000,000] | | Value Range | [100,000 - 100,000,000] |
...@@ -199,7 +217,7 @@ Please note the `taoskeeper` needs to be installed and running to create the `lo ...@@ -199,7 +217,7 @@ Please note the `taoskeeper` needs to be installed and running to create the `lo
### keepColumnName ### keepColumnName
| Attribute | Description | | Attribute | Description |
| -------- | -------------------------------- | | ------------- | --------------------------------------------------------------------------------------------------------------- |
| Applicable | Client only | | Applicable | Client only |
| Meaning | When the Last, First, LastRow function is queried, whether the returned column name contains the function name. | | Meaning | When the Last, First, LastRow function is queried, whether the returned column name contains the function name. |
| Value Range | 0 means including the function name, 1 means not including the function name. | | Value Range | 0 means including the function name, 1 means not including the function name. |
...@@ -210,7 +228,7 @@ Please note the `taoskeeper` needs to be installed and running to create the `lo ...@@ -210,7 +228,7 @@ Please note the `taoskeeper` needs to be installed and running to create the `lo
### timezone ### timezone
| Attribute | Description | | Attribute | Description |
| -------- | ------------------------------ | | ------------- | ------------------------------- |
| Applicable | Server and Client | | Applicable | Server and Client |
| Meaning | TimeZone | | Meaning | TimeZone |
| Default Value | TimeZone configured in the host | | Default Value | TimeZone configured in the host |
...@@ -315,7 +333,7 @@ The charset that takes effect is UTF-8. ...@@ -315,7 +333,7 @@ The charset that takes effect is UTF-8.
### dataDir ### dataDir
| Attribute | Description | | Attribute | Description |
| -------- | ------------------------------------------ | | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Applicable | Server Only | | Applicable | Server Only |
| Meaning | All data files are stored in this directory | | Meaning | All data files are stored in this directory |
| Default Value | /var/lib/taos | | Default Value | /var/lib/taos |
...@@ -324,7 +342,7 @@ The charset that takes effect is UTF-8. ...@@ -324,7 +342,7 @@ The charset that takes effect is UTF-8.
### tempDir ### tempDir
| Attribute | Description | | Attribute | Description |
| -------- | ------------------------------------------ | | ---------- | ---------------------------------------------------------------------------------- |
| Applicable | Server only | | Applicable | Server only |
| Meaning | The directory where to put all the temporary files generated during system running | | Meaning | The directory where to put all the temporary files generated during system running |
| Default | /tmp | | Default | /tmp |
...@@ -332,7 +350,7 @@ The charset that takes effect is UTF-8. ...@@ -332,7 +350,7 @@ The charset that takes effect is UTF-8.
### minimalTmpDirGB ### minimalTmpDirGB
| Attribute | Description | | Attribute | Description |
| -------- | ------------------------------------------------ | | ------------- | ----------------------------------------------------------------------------------------------- |
| Applicable | Server and Client | | Applicable | Server and Client |
| Meaning | When the available disk space in tmpDir is below this threshold, writing to tmpDir is suspended | | Meaning | When the available disk space in tmpDir is below this threshold, writing to tmpDir is suspended |
| Unit | GB | | Unit | GB |
...@@ -341,7 +359,7 @@ The charset that takes effect is UTF-8. ...@@ -341,7 +359,7 @@ The charset that takes effect is UTF-8.
### minimalDataDirGB ### minimalDataDirGB
| Attribute | Description | | Attribute | Description |
| -------- | ------------------------------------------------ | | ------------- | ------------------------------------------------------------------------------------------------- |
| Applicable | Server Only | | Applicable | Server Only |
| Meaning | When the available disk space in dataDir is below this threshold, writing to dataDir is suspended | | Meaning | When the available disk space in dataDir is below this threshold, writing to dataDir is suspended |
| Unit | GB | | Unit | GB |
...@@ -352,7 +370,7 @@ The charset that takes effect is UTF-8. ...@@ -352,7 +370,7 @@ The charset that takes effect is UTF-8.
### supportVnodes ### supportVnodes
| Attribute | Description | | Attribute | Description |
| -------- | --------------------------- | | ------------- | ---------------------------------- |
| Applicable | Server Only | | Applicable | Server Only |
| Meaning | Maximum number of vnodes per dnode | | Meaning | Maximum number of vnodes per dnode |
| Value Range | 0-4096 | | Value Range | 0-4096 |
...@@ -374,7 +392,7 @@ The charset that takes effect is UTF-8. ...@@ -374,7 +392,7 @@ The charset that takes effect is UTF-8.
### logDir ### logDir
| Attribute | Description | | Attribute | Description |
| -------- | -------------------------------------------------- | | ------------- | ----------------------------------- |
| Applicable | Server and Client | | Applicable | Server and Client |
| Meaning | The directory for writing log files | | Meaning | The directory for writing log files |
| Default Value | /var/log/taos | | Default Value | /var/log/taos |
...@@ -382,7 +400,7 @@ The charset that takes effect is UTF-8. ...@@ -382,7 +400,7 @@ The charset that takes effect is UTF-8.
### minimalLogDirGB ### minimalLogDirGB
| Attribute | Description | | Attribute | Description |
| -------- | -------------------------------------------- | | ------------- | -------------------------------------------------------------------------------------------------- |
| Applicable | Server and Client | | Applicable | Server and Client |
| Meaning | When the available disk space in logDir is below this threshold, writing to log files is suspended | | Meaning | When the available disk space in logDir is below this threshold, writing to log files is suspended |
| Unit | GB | | Unit | GB |
...@@ -391,7 +409,7 @@ The charset that takes effect is UTF-8. ...@@ -391,7 +409,7 @@ The charset that takes effect is UTF-8.
### numOfLogLines ### numOfLogLines
| Attribute | Description | | Attribute | Description |
| -------- | ---------------------------- | | ------------- | ------------------------------------------ |
| Applicable | Server and Client | | Applicable | Server and Client |
| Meaning | Maximum number of lines in single log file | | Meaning | Maximum number of lines in single log file |
| Default Value | 10000000 | | Default Value | 10000000 |
...@@ -399,7 +417,7 @@ The charset that takes effect is UTF-8. ...@@ -399,7 +417,7 @@ The charset that takes effect is UTF-8.
### asyncLog ### asyncLog
| Attribute | Description | | Attribute | Description |
| -------- | -------------------- | | ------------- | ---------------------------- |
| Applicable | Server and Client | | Applicable | Server and Client |
| Meaning | The mode of writing log file | | Meaning | The mode of writing log file |
| Value Range | 0: sync way; 1: async way | | Value Range | 0: sync way; 1: async way |
...@@ -408,7 +426,7 @@ The charset that takes effect is UTF-8. ...@@ -408,7 +426,7 @@ The charset that takes effect is UTF-8.
### logKeepDays ### logKeepDays
| Attribute | Description | | Attribute | Description |
| -------- | ----------------------------------------------------------------------------------- | | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| Applicable | Server and Client | | Applicable | Server and Client |
| Meaning | The number of days for log files to be kept | | Meaning | The number of days for log files to be kept |
| Unit | day | | Unit | day |
...@@ -418,7 +436,7 @@ The charset that takes effect is UTF-8. ...@@ -418,7 +436,7 @@ The charset that takes effect is UTF-8.
### debugFlag ### debugFlag
| Attribute | Description | | Attribute | Description |
| -------- | ------------------------------------------------------------------------------------------------- | | ------------- | --------------------------------------------------------- |
| Applicable | Server and Client | | Applicable | Server and Client |
| Meaning | Log level | | Meaning | Log level |
| Value Range | 131: INFO/WARNING/ERROR; 135: plus DEBUG; 143: plus TRACE | | Value Range | 131: INFO/WARNING/ERROR; 135: plus DEBUG; 143: plus TRACE |
...@@ -427,7 +445,7 @@ The charset that takes effect is UTF-8. ...@@ -427,7 +445,7 @@ The charset that takes effect is UTF-8.
### tmrDebugFlag ### tmrDebugFlag
| Attribute | Description | | Attribute | Description |
| -------- | -------------------- | | ------------- | ------------------------- |
| Applicable | Server and Client | | Applicable | Server and Client |
| Meaning | Log level of timer module | | Meaning | Log level of timer module |
| Value Range | same as debugFlag | | Value Range | same as debugFlag |
...@@ -436,7 +454,7 @@ The charset that takes effect is UTF-8. ...@@ -436,7 +454,7 @@ The charset that takes effect is UTF-8.
### uDebugFlag ### uDebugFlag
| Attribute | Description | | Attribute | Description |
| -------- | ---------------------- | | ------------- | -------------------------- |
| Applicable | Server and Client | | Applicable | Server and Client |
| Meaning | Log level of common module | | Meaning | Log level of common module |
| Value Range | same as debugFlag | | Value Range | same as debugFlag |
...@@ -445,7 +463,7 @@ The charset that takes effect is UTF-8. ...@@ -445,7 +463,7 @@ The charset that takes effect is UTF-8.
### rpcDebugFlag ### rpcDebugFlag
| Attribute | Description | | Attribute | Description |
| -------- | -------------------- | | ------------- | ----------------------- |
| Applicable | Server and Client | | Applicable | Server and Client |
| Meaning | Log level of rpc module | | Meaning | Log level of rpc module |
| Value Range | same as debugFlag | | Value Range | same as debugFlag |
...@@ -454,7 +472,7 @@ The charset that takes effect is UTF-8. ...@@ -454,7 +472,7 @@ The charset that takes effect is UTF-8.
### jniDebugFlag ### jniDebugFlag
| Attribute | Description | | Attribute | Description |
| -------- | ------------------ | | ------------- | ----------------------- |
| Applicable | Client Only | | Applicable | Client Only |
| Meaning | Log level of jni module | | Meaning | Log level of jni module |
| Value Range | same as debugFlag | | Value Range | same as debugFlag |
...@@ -463,7 +481,7 @@ The charset that takes effect is UTF-8. ...@@ -463,7 +481,7 @@ The charset that takes effect is UTF-8.
### qDebugFlag ### qDebugFlag
| Attribute | Description | | Attribute | Description |
| -------- | -------------------- | | ------------- | ------------------------- |
| Applicable | Server and Client | | Applicable | Server and Client |
| Meaning | Log level of query module | | Meaning | Log level of query module |
| Value Range | same as debugFlag | | Value Range | same as debugFlag |
...@@ -472,7 +490,7 @@ The charset that takes effect is UTF-8. ...@@ -472,7 +490,7 @@ The charset that takes effect is UTF-8.
### cDebugFlag ### cDebugFlag
| Attribute | Description | | Attribute | Description |
| -------- | --------------------- | | ------------- | ------------------- |
| Applicable | Client Only | | Applicable | Client Only |
| Meaning | Log level of Client | | Meaning | Log level of Client |
| Value Range | same as debugFlag | | Value Range | same as debugFlag |
...@@ -481,7 +499,7 @@ The charset that takes effect is UTF-8. ...@@ -481,7 +499,7 @@ The charset that takes effect is UTF-8.
### dDebugFlag ### dDebugFlag
| Attribute | Description | | Attribute | Description |
| -------- | -------------------- | | ------------- | ------------------ |
| Applicable | Server Only | | Applicable | Server Only |
| Meaning | Log level of dnode | | Meaning | Log level of dnode |
| Value Range | same as debugFlag | | Value Range | same as debugFlag |
...@@ -490,7 +508,7 @@ The charset that takes effect is UTF-8. ...@@ -490,7 +508,7 @@ The charset that takes effect is UTF-8.
### vDebugFlag ### vDebugFlag
| Attribute | Description | | Attribute | Description |
| -------- | -------------------- | | ------------- | ------------------ |
| Applicable | Server Only | | Applicable | Server Only |
| Meaning | Log level of vnode | | Meaning | Log level of vnode |
| Value Range | same as debugFlag | | Value Range | same as debugFlag |
...@@ -499,7 +517,7 @@ The charset that takes effect is UTF-8. ...@@ -499,7 +517,7 @@ The charset that takes effect is UTF-8.
### mDebugFlag ### mDebugFlag
| Attribute | Description | | Attribute | Description |
| -------- | -------------------- | | ------------- | ------------------------- |
| Applicable | Server Only | | Applicable | Server Only |
| Meaning | Log level of mnode module | | Meaning | Log level of mnode module |
| Value Range | same as debugFlag | | Value Range | same as debugFlag |
...@@ -508,7 +526,7 @@ The charset that takes effect is UTF-8. ...@@ -508,7 +526,7 @@ The charset that takes effect is UTF-8.
### wDebugFlag ### wDebugFlag
| Attribute | Description | | Attribute | Description |
| -------- | ------------------ | | ------------- | ----------------------- |
| Applicable | Server Only | | Applicable | Server Only |
| Meaning | Log level of WAL module | | Meaning | Log level of WAL module |
| Value Range | same as debugFlag | | Value Range | same as debugFlag |
...@@ -517,7 +535,7 @@ The charset that takes effect is UTF-8. ...@@ -517,7 +535,7 @@ The charset that takes effect is UTF-8.
### sDebugFlag ### sDebugFlag
| Attribute | Description | | Attribute | Description |
| -------- | -------------------- | | ------------- | ------------------------ |
| Applicable | Server and Client | | Applicable | Server and Client |
| Meaning | Log level of sync module | | Meaning | Log level of sync module |
| Value Range | same as debugFlag | | Value Range | same as debugFlag |
...@@ -526,7 +544,7 @@ The charset that takes effect is UTF-8. ...@@ -526,7 +544,7 @@ The charset that takes effect is UTF-8.
### tsdbDebugFlag ### tsdbDebugFlag
| Attribute | Description | | Attribute | Description |
| -------- | ------------------- | | ------------- | ------------------------ |
| Applicable | Server Only | | Applicable | Server Only |
| Meaning | Log level of TSDB module | | Meaning | Log level of TSDB module |
| Value Range | same as debugFlag | | Value Range | same as debugFlag |
...@@ -535,7 +553,7 @@ The charset that takes effect is UTF-8. ...@@ -535,7 +553,7 @@ The charset that takes effect is UTF-8.
### tqDebugFlag ### tqDebugFlag
| Attribute | Description | | Attribute | Description |
| -------- | ----------------- | | ------------- | ---------------------- |
| Applicable | Server only | | Applicable | Server only |
| Meaning | Log level of TQ module | | Meaning | Log level of TQ module |
| Value Range | same as debugFlag | | Value Range | same as debugFlag |
...@@ -544,7 +562,7 @@ The charset that takes effect is UTF-8. ...@@ -544,7 +562,7 @@ The charset that takes effect is UTF-8.
### fsDebugFlag ### fsDebugFlag
| Attribute | Description | | Attribute | Description |
| -------- | ----------------- | | ------------- | ---------------------- |
| Applicable | Server only | | Applicable | Server only |
| Meaning | Log level of FS module | | Meaning | Log level of FS module |
| Value Range | same as debugFlag | | Value Range | same as debugFlag |
...@@ -553,7 +571,7 @@ The charset that takes effect is UTF-8. ...@@ -553,7 +571,7 @@ The charset that takes effect is UTF-8.
### udfDebugFlag ### udfDebugFlag
| Attribute | Description | | Attribute | Description |
| -------- | ------------------ | | ------------- | ----------------------- |
| Applicable | Server Only | | Applicable | Server Only |
| Meaning | Log level of UDF module | | Meaning | Log level of UDF module |
| Value Range | same as debugFlag | | Value Range | same as debugFlag |
...@@ -562,7 +580,7 @@ The charset that takes effect is UTF-8. ...@@ -562,7 +580,7 @@ The charset that takes effect is UTF-8.
### smaDebugFlag ### smaDebugFlag
| Attribute | Description | | Attribute | Description |
| -------- | ------------------ | | ------------- | ----------------------- |
| Applicable | Server Only | | Applicable | Server Only |
| Meaning | Log level of SMA module | | Meaning | Log level of SMA module |
| Value Range | same as debugFlag | | Value Range | same as debugFlag |
...@@ -571,7 +589,7 @@ The charset that takes effect is UTF-8. ...@@ -571,7 +589,7 @@ The charset that takes effect is UTF-8.
### idxDebugFlag ### idxDebugFlag
| Attribute | Description | | Attribute | Description |
| -------- | -------------------- | | ------------- | ------------------------- |
| Applicable | Server Only | | Applicable | Server Only |
| Meaning | Log level of index module | | Meaning | Log level of index module |
| Value Range | same as debugFlag | | Value Range | same as debugFlag |
...@@ -580,7 +598,7 @@ The charset that takes effect is UTF-8. ...@@ -580,7 +598,7 @@ The charset that takes effect is UTF-8.
### tdbDebugFlag ### tdbDebugFlag
| Attribute | Description | | Attribute | Description |
| -------- | ------------------ | | ------------- | ----------------------- |
| Applicable | Server Only | | Applicable | Server Only |
| Meaning | Log level of TDB module | | Meaning | Log level of TDB module |
| Value Range | same as debugFlag | | Value Range | same as debugFlag |
...@@ -591,7 +609,7 @@ The charset that takes effect is UTF-8. ...@@ -591,7 +609,7 @@ The charset that takes effect is UTF-8.
### smlChildTableName ### smlChildTableName
| Attribute | Description | | Attribute | Description |
| -------- | ------------------------- | | ------------- | ------------------------------------------ |
| Applicable | Client only | | Applicable | Client only |
| Meaning | Custom subtable name for schemaless writes | | Meaning | Custom subtable name for schemaless writes |
| Type | String | | Type | String |
...@@ -600,7 +618,7 @@ The charset that takes effect is UTF-8. ...@@ -600,7 +618,7 @@ The charset that takes effect is UTF-8.
### smlTagName ### smlTagName
| Attribute | Description | | Attribute | Description |
| -------- | ------------------------------------ | | ------------- | ------------------------------------------------------------- |
| Applicable | Client only | | Applicable | Client only |
| Meaning | Default tag for schemaless writes without tag value specified | | Meaning | Default tag for schemaless writes without tag value specified |
| Type | String | | Type | String |
...@@ -609,9 +627,9 @@ The charset that takes effect is UTF-8. ...@@ -609,9 +627,9 @@ The charset that takes effect is UTF-8.
### smlDataFormat ### smlDataFormat
| Attribute | Description | | Attribute | Description |
| -------- | ----------------------------- | | ----------- | ----------------------------------------------------------------------------------- |
| Applicable | Client only | | Applicable | Client only |
| Meaning | Whether schemaless columns are consistently ordered, depat, discarded since 3.0.3.0| | Meaning | Whether schemaless columns are consistently ordered, depat, discarded since 3.0.3.0 |
| Value Range | 0: not consistent; 1: consistent. | | Value Range | 0: not consistent; 1: consistent. |
| Default | 0 | | Default | 0 |
...@@ -620,7 +638,7 @@ The charset that takes effect is UTF-8. ...@@ -620,7 +638,7 @@ The charset that takes effect is UTF-8.
### compressMsgSize ### compressMsgSize
| Attribute | Description | | Attribute | Description |
| -------- | ----------------------------- | | ----------- | ------------------------------------------------------------------------------------------------------------------ |
| Applicable | Both Client and Server side | | Applicable | Both Client and Server side |
| Meaning | Whether RPC message is compressed | | Meaning | Whether RPC message is compressed |
| Value Range | -1: none message is compressed; 0: all messages are compressed; N (N>0): messages exceeding N bytes are compressed | | Value Range | -1: none message is compressed; 0: all messages are compressed; N (N>0): messages exceeding N bytes are compressed |
...@@ -632,7 +650,7 @@ The charset that takes effect is UTF-8. ...@@ -632,7 +650,7 @@ The charset that takes effect is UTF-8.
### enableCoreFile ### enableCoreFile
| Attribute | Description | | Attribute | Description |
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------ | | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Applicable | Server and Client | | Applicable | Server and Client |
| Meaning | Whether to generate core file when server crashes | | Meaning | Whether to generate core file when server crashes |
| Value Range | 0: false, 1: true | | Value Range | 0: false, 1: true |
...@@ -642,7 +660,7 @@ The charset that takes effect is UTF-8. ...@@ -642,7 +660,7 @@ The charset that takes effect is UTF-8.
### enableScience ### enableScience
| Attribute | Description | | Attribute | Description |
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------ | | ------------- | ------------------------------------------------------------- |
| Applicable | Only taos-CLI client | | Applicable | Only taos-CLI client |
| Meaning | Whether to show float and double with the scientific notation | | Meaning | Whether to show float and double with the scientific notation |
| Value Range | 0: false, 1: true | | Value Range | 0: false, 1: true |
...@@ -652,7 +670,7 @@ The charset that takes effect is UTF-8. ...@@ -652,7 +670,7 @@ The charset that takes effect is UTF-8.
### udf ### udf
| Attribute | Description | | Attribute | Description |
| -------- | ------------------ | | ------------- | ---------------------------------- |
| Applicable | Server Only | | Applicable | Server Only |
| Meaning | Whether the UDF service is enabled | | Meaning | Whether the UDF service is enabled |
| Value Range | 0: disable UDF; 1: enabled UDF | | Value Range | 0: disable UDF; 1: enabled UDF |
...@@ -662,7 +680,7 @@ The charset that takes effect is UTF-8. ...@@ -662,7 +680,7 @@ The charset that takes effect is UTF-8.
## 3.0 Parameters ## 3.0 Parameters
| # | **Parameter** | **Applicable to 2.x ** | **Applicable to 3.0 ** | Current behavior in 3.0 | | # | **Parameter** | **Applicable to 2.x ** | **Applicable to 3.0 ** | Current behavior in 3.0 |
| --- | :---------------------: | --------------- | --------------- | ------------------------------------------------- | | --- | :--------------------: | ---------------------- | ---------------------------- | ----------------------- |
| 1 | firstEp | Yes | Yes | | | 1 | firstEp | Yes | Yes | |
| 2 | secondEp | Yes | Yes | | | 2 | secondEp | Yes | Yes | |
| 3 | fqdn | Yes | Yes | | | 3 | fqdn | Yes | Yes | |
......
...@@ -80,11 +80,11 @@ taos --dump-config ...@@ -80,11 +80,11 @@ taos --dump-config
确保集群中所有主机在端口 6030 上的 TCP 协议能够互通。(详细的端口情况请参见下表) 确保集群中所有主机在端口 6030 上的 TCP 协议能够互通。(详细的端口情况请参见下表)
::: :::
| 协议 | 默认端口 | 用途说明 | 修改方法 | | 协议 | 默认端口 | 用途说明 | 修改方法 |
| :--- | :-------- | :---------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------- | | :--- | :------- | :----------------------------------------------- | :------------------------------------------------------------------------------------------------- |
| TCP | 6030 | 客户端与服务端之间通讯,多节点集群的节点间通讯。 | 由配置文件设置 serverPort 决定。 | | TCP | 6030 | 客户端与服务端之间通讯,多节点集群的节点间通讯。 | 由配置文件设置 serverPort 决定。 |
| TCP | 6041 | 客户端与服务端之间的 RESTful 通讯。 | 随 serverPort 端口变化。注意 taosAdapter 配置或有不同,请参考相应[文档](/reference/taosadapter/)。 | | TCP | 6041 | 客户端与服务端之间的 RESTful 通讯。 | 随 serverPort 端口变化。注意 taosAdapter 配置或有不同,请参考相应[文档](/reference/taosadapter/)。 |
| TCP | 6043 | taosKeeper 监控服务端口。 | 随 taosKeeper 启动参数设置变化。 | | TCP | 6043 | taosKeeper 监控服务端口。 | 随 taosKeeper 启动参数设置变化。 |
| TCP | 6044 | 支持 StatsD 的数据接入端口。 | 随 taosAdapter 启动参数设置变化| | TCP | 6044 | 支持 StatsD 的数据接入端口。 | 随 taosAdapter 启动参数设置变化 |
| UDP | 6045 | 支持 collectd 数据接入端口。 | 随 taosAdapter 启动参数设置变化 | | UDP | 6045 | 支持 collectd 数据接入端口。 | 随 taosAdapter 启动参数设置变化 |
| TCP | 6060 | 企业版内 Monitor 服务的网络端口。 | | | TCP | 6060 | 企业版内 Monitor 服务的网络端口。 | |
...@@ -97,6 +97,24 @@ taos --dump-config ...@@ -97,6 +97,24 @@ taos --dump-config
| 取值范围 | 10-50000000 | | 取值范围 | 10-50000000 |
| 缺省值 | 5000 | | 缺省值 | 5000 |
### numOfRpcSessions
| 属性 | 说明 |
| -------- | ---------------------------- |
| 适用范围 | 客户端和服务端都适用 |
| 含义 | 一个客户端能创建的最大连接数 |
| 取值范围 | 100-100000 |
| 缺省值 | 10000 |
### timeToGetAvailableConn
| 属性 | 说明 |
| -------- | -------------------------- |
| 适用范围 | 客户端和服务端都适用 |
| 含义 | 获得可用连接的最长等待时间 |
| 取值范围 | 10-50000000(单位为毫秒) |
| 缺省值 | 500000 |
## 监控相关 ## 监控相关
:::note :::note
...@@ -140,18 +158,18 @@ taos --dump-config ...@@ -140,18 +158,18 @@ taos --dump-config
### telemetryReporting ### telemetryReporting
| 属性 | 说明 | | 属性 | 说明 |
| -------- | -------------------------------------------- | | -------- | ------------------------ |
| 适用范围 | 仅服务端适用 | | 适用范围 | 仅服务端适用 |
| 含义 |是否上传 telemetry | | 含义 | 是否上传 telemetry |
| 取值范围 | 0,1 0: 不上传;1:上传 | | 取值范围 | 0,1 0: 不上传;1:上传 |
| 缺省值 | 1 | | 缺省值 | 1 |
### crashReporting ### crashReporting
| 属性 | 说明 | | 属性 | 说明 |
| -------- | -------------------------------------------- | | -------- | ------------------------ |
| 适用范围 | 仅服务端适用 | | 适用范围 | 仅服务端适用 |
| 含义 |是否上传 crash 信息 | | 含义 | 是否上传 crash 信息 |
| 取值范围 | 0,1 0: 不上传;1:上传 | | 取值范围 | 0,1 0: 不上传;1:上传 |
| 缺省值 | 1 | | 缺省值 | 1 |
...@@ -160,7 +178,7 @@ taos --dump-config ...@@ -160,7 +178,7 @@ taos --dump-config
### queryPolicy ### queryPolicy
| 属性 | 说明 | | 属性 | 说明 |
| -------- | ----------------------------- | | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 适用范围 | 仅客户端适用 | | 适用范围 | 仅客户端适用 |
| 含义 | 查询语句的执行策略 | | 含义 | 查询语句的执行策略 |
| 单位 | 无 | | 单位 | 无 |
...@@ -170,12 +188,12 @@ taos --dump-config ...@@ -170,12 +188,12 @@ taos --dump-config
### querySmaOptimize ### querySmaOptimize
| 属性 | 说明 | | 属性 | 说明 |
| -------- | -------------------- | | -------- | ---------------------------------------------------------------------------------------------------------------- |
| 适用范围 | 仅客户端适用 | | 适用范围 | 仅客户端适用 |
| 含义 | sma index 的优化策略 | | 含义 | sma index 的优化策略 |
| 单位 | 无 | | 单位 | 无 |
| 缺省值 | 0 | | 缺省值 | 0 |
| 补充说明 |0: 表示不使用 sma index,永远从原始数据进行查询; 1: 表示使用 sma index,对符合的语句,直接从预计算的结果进行查询 | | 补充说明 | 0: 表示不使用 sma index,永远从原始数据进行查询; 1: 表示使用 sma index,对符合的语句,直接从预计算的结果进行查询 |
### maxNumOfDistinctRes ### maxNumOfDistinctRes
...@@ -189,7 +207,7 @@ taos --dump-config ...@@ -189,7 +207,7 @@ taos --dump-config
### keepColumnName ### keepColumnName
| 属性 | 说明 | | 属性 | 说明 |
| -------- | -------------------------------- | | -------- | ----------------------------------------------------------- |
| 适用范围 | 仅客户端适用 | | 适用范围 | 仅客户端适用 |
| 含义 | Last、First、LastRow 函数查询时,返回的列名是否包含函数名。 | | 含义 | Last、First、LastRow 函数查询时,返回的列名是否包含函数名。 |
| 取值范围 | 0 表示包含函数名,1 表示不包含函数名。 | | 取值范围 | 0 表示包含函数名,1 表示不包含函数名。 |
...@@ -198,7 +216,7 @@ taos --dump-config ...@@ -198,7 +216,7 @@ taos --dump-config
### countAlwaysReturnValue ### countAlwaysReturnValue
| 属性 | 说明 | | 属性 | 说明 |
| -------- | -------------------------------- | | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| 适用范围 | 仅服务端适用 | | 适用范围 | 仅服务端适用 |
| 含义 | count/hyperloglog函数在输入数据为空或者NULL的情况下是否返回值 | | 含义 | count/hyperloglog函数在输入数据为空或者NULL的情况下是否返回值 |
| 取值范围 | 0:返回空行,1:返回 0 | | 取值范围 | 0:返回空行,1:返回 0 |
...@@ -315,7 +333,7 @@ charset 的有效值是 UTF-8。 ...@@ -315,7 +333,7 @@ charset 的有效值是 UTF-8。
### dataDir ### dataDir
| 属性 | 说明 | | 属性 | 说明 |
| -------- | ------------------------------------------ | | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 适用范围 | 仅服务端适用 | | 适用范围 | 仅服务端适用 |
| 含义 | 数据文件目录,所有的数据文件都将写入该目录 | | 含义 | 数据文件目录,所有的数据文件都将写入该目录 |
| 缺省值 | /var/lib/taos | | 缺省值 | /var/lib/taos |
...@@ -324,7 +342,7 @@ charset 的有效值是 UTF-8。 ...@@ -324,7 +342,7 @@ charset 的有效值是 UTF-8。
### tempDir ### tempDir
| 属性 | 说明 | | 属性 | 说明 |
| -------- | ------------------------------------------ | | -------- | ------------------------------------------------ |
| 适用范围 | 仅服务端适用 | | 适用范围 | 仅服务端适用 |
| 含义 | 该参数指定所有系统运行过程中的临时文件生成的目录 | | 含义 | 该参数指定所有系统运行过程中的临时文件生成的目录 |
| 缺省值 | /tmp | | 缺省值 | /tmp |
...@@ -341,7 +359,7 @@ charset 的有效值是 UTF-8。 ...@@ -341,7 +359,7 @@ charset 的有效值是 UTF-8。
### minimalDataDirGB ### minimalDataDirGB
| 属性 | 说明 | | 属性 | 说明 |
| -------- | ------------------------------------------------ | | -------- | ---------------------------------------------- |
| 适用范围 | 仅服务端适用 | | 适用范围 | 仅服务端适用 |
| 含义 | dataDir 指定的时序数据存储目录所需要保留的最小 | | 含义 | dataDir 指定的时序数据存储目录所需要保留的最小 |
| 单位 | GB | | 单位 | GB |
...@@ -382,7 +400,7 @@ charset 的有效值是 UTF-8。 ...@@ -382,7 +400,7 @@ charset 的有效值是 UTF-8。
### minimalLogDirGB ### minimalLogDirGB
| 属性 | 说明 | | 属性 | 说明 |
| -------- | -------------------------------------------- | | -------- | ------------------------------------------------------ |
| 适用范围 | 服务端和客户端均适用 | | 适用范围 | 服务端和客户端均适用 |
| 含义 | 当日志文件夹所在磁盘可用空间大小小于该值时,停止写日志 | | 含义 | 当日志文件夹所在磁盘可用空间大小小于该值时,停止写日志 |
| 单位 | GB | | 单位 | GB |
...@@ -591,7 +609,7 @@ charset 的有效值是 UTF-8。 ...@@ -591,7 +609,7 @@ charset 的有效值是 UTF-8。
### smlChildTableName ### smlChildTableName
| 属性 | 说明 | | 属性 | 说明 |
| -------- | ------------------------- | | -------- | ------------------------------- |
| 适用范围 | 仅客户端适用 | | 适用范围 | 仅客户端适用 |
| 含义 | schemaless 自定义的子表名的 key | | 含义 | schemaless 自定义的子表名的 key |
| 类型 | 字符串 | | 类型 | 字符串 |
...@@ -609,7 +627,7 @@ charset 的有效值是 UTF-8。 ...@@ -609,7 +627,7 @@ charset 的有效值是 UTF-8。
### smlDataFormat ### smlDataFormat
| 属性 | 说明 | | 属性 | 说明 |
| -------- | ----------------------------- | | -------- | -------------------------------------------------------- |
| 适用范围 | 仅客户端适用 | | 适用范围 | 仅客户端适用 |
| 含义 | schemaless 列数据是否顺序一致,从3.0.3.0开始,该配置废弃 | | 含义 | schemaless 列数据是否顺序一致,从3.0.3.0开始,该配置废弃 |
| 值域 | 0:不一致;1: 一致 | | 值域 | 0:不一致;1: 一致 |
...@@ -630,7 +648,7 @@ charset 的有效值是 UTF-8。 ...@@ -630,7 +648,7 @@ charset 的有效值是 UTF-8。
### enableScience ### enableScience
| 属性 | 说明 | | 属性 | 说明 |
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------ | | -------- | ---------------------------- |
| 适用范围 | 仅客户端 TAOS-CLI 适用 | | 适用范围 | 仅客户端 TAOS-CLI 适用 |
| 含义 | 是否开启科学计数法显示浮点数 | | 含义 | 是否开启科学计数法显示浮点数 |
| 取值范围 | 0:否,1:是 | | 取值范围 | 0:否,1:是 |
...@@ -650,7 +668,7 @@ charset 的有效值是 UTF-8。 ...@@ -650,7 +668,7 @@ charset 的有效值是 UTF-8。
### compressMsgSize ### compressMsgSize
| 属性 | 说明 | | 属性 | 说明 |
| -------- | ----------------------------- | | -------- | ------------------------------------------------------------------------------- |
| 适用于 | 服务端和客户端均适用 | | 适用于 | 服务端和客户端均适用 |
| 含义 | 是否对 RPC 消息进行压缩 | | 含义 | 是否对 RPC 消息进行压缩 |
| 取值范围 | -1: 所有消息都不压缩; 0: 所有消息都压缩; N (N>0): 只有大于 N 个字节的消息才压缩 | | 取值范围 | -1: 所有消息都不压缩; 0: 所有消息都压缩; N (N>0): 只有大于 N 个字节的消息才压缩 |
...@@ -659,7 +677,7 @@ charset 的有效值是 UTF-8。 ...@@ -659,7 +677,7 @@ charset 的有效值是 UTF-8。
## 3.0 中有效的配置参数列表 ## 3.0 中有效的配置参数列表
| # | **参数** | **适用于 2.X ** | **适用于 3.0 ** | 3.0 版本的当前行为 | | # | **参数** | **适用于 2.X ** | **适用于 3.0 ** | 3.0 版本的当前行为 |
| --- | :---------------------: | --------------- | --------------- | ------------------------------------------------- | | --- | :--------------------: | --------------- | ------------------------------- | ------------------ |
| 1 | firstEp | 是 | 是 | | | 1 | firstEp | 是 | 是 | |
| 2 | secondEp | 是 | 是 | | | 2 | secondEp | 是 | 是 | |
| 3 | fqdn | 是 | 是 | | | 3 | fqdn | 是 | 是 | |
...@@ -716,7 +734,7 @@ charset 的有效值是 UTF-8。 ...@@ -716,7 +734,7 @@ charset 的有效值是 UTF-8。
## 2.x->3.0 的废弃参数 ## 2.x->3.0 的废弃参数
| # | **参数** | **适用于 2.X ** | **适用于 3.0 ** | 3.0 版本的当前行为 | | # | **参数** | **适用于 2.X ** | **适用于 3.0 ** | 3.0 版本的当前行为 |
| --- | :---------------------: | --------------- | --------------- | ------------------------------------------------- | | --- | :---------------------: | --------------- | --------------- | ---------------------------------------------------- |
| 1 | arbitrator | 是 | 否 | 通过 RAFT 协议选主 | | 1 | arbitrator | 是 | 否 | 通过 RAFT 协议选主 |
| 2 | numOfThreadsPerCore | 是 | 否 | 有其它参数设置多种线程池的大小 | | 2 | numOfThreadsPerCore | 是 | 否 | 有其它参数设置多种线程池的大小 |
| 3 | numOfMnodes | 是 | 否 | 通过 create mnode 命令动态创建 mnode | | 3 | numOfMnodes | 是 | 否 | 通过 create mnode 命令动态创建 mnode |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册