Skip to content

Commit

Permalink
reference: add a description of max-index-length (pingcap#2748) (ping…
Browse files Browse the repository at this point in the history
…cap#2766)

Co-authored-by: Lynn <zimu_xia@126.com>
  • Loading branch information
sre-bot and zimulala authored Apr 15, 2020
1 parent e2270be commit 23beea4
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions reference/configuration/tidb-server/configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,19 @@ TiDB 配置文件比命令行参数支持更多的选项。你可以在 [config/
+ 默认值:[]
+ 默认情况下,该 list 名单为空,表示没有所需修复的坏表信息。

### `max-server-connections`

+ TiDB 中同时允许的最大客户端连接数,用于资源控制。
+ 默认值:0
+ 默认情况下,TiDB 不限制客户端连接数。当本配置项的值大于 `0` 且客户端连接数到达此值时,TiDB 服务端将会拒绝新的客户端连接。

### `max-index-length`

+ 用于设置新建索引的长度限制。
+ 默认值:3072
+ 单位:byte。
+ 目前的合法值范围 `[3072, 3072*4]`。MySQL 和 TiDB v3.0.11 之前版本(不包含 v3.0.11)没有此配置项,不过都对新建索引的长度做了限制。MySQL 对此的长度限制为 `3072`,TiDB 在 v3.0.7 以及之前版本该值为 `3072*4`,在 v3.0.7 之后版本(包含 v3.0.8、v3.0.9 和 v3.0.10)的该值为 `3072`。为了与 MySQL 和 TiDB 之前版本的兼容,添加了此配置项。

## log

日志相关的配置项。
Expand Down Expand Up @@ -160,12 +173,6 @@ TiDB 配置文件比命令行参数支持更多的选项。你可以在 [config/
+ 默认值:4096
+ 当语句的长度大于 `query-log-max-len`,将会被截断输出。

### `max-server-connections`

+ TiDB 中同时允许的最大客户端连接数,用于资源控制。
+ 默认值:0
+ 默认情况下,TiDB 不限制客户端连接数。当本配置项的值大于 `0` 且客户端连接数到达此值时,TiDB 服务端将会拒绝新的客户端连接。

## log.file

日志文件相关的配置项。
Expand Down

0 comments on commit 23beea4

Please sign in to comment.