-
Notifications
You must be signed in to change notification settings - Fork 678
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Configuration flags | ||
|
||
TiDB is configurable through command-line flags and environment variables. | ||
|
||
The official TiDB ports are 4000 for client requests and 10080 for status report. | ||
|
||
### --store | ||
+ Storage type | ||
This comment has been minimized.
Sorry, something went wrong. |
||
+ Human-readable name for this member. | ||
+ default: "goleveldb" | ||
+ You can choose from memory, goleveldb, boltdb and tikv. The first three are all local storage. TiKV is a distributed storage. | ||
This comment has been minimized.
Sorry, something went wrong.
QueenyJin
Contributor
|
||
|
||
### --path | ||
+ Path to the data directory for local storage (goleveldb, boltdb, memory). DSN to the distributed storage (TiKV). | ||
This comment has been minimized.
Sorry, something went wrong.
QueenyJin
Contributor
|
||
+ default: "/tmp/tidb" | ||
+ If use TiKV, the path should be in this format: $Host:$Port/pd?cluster=$ClusterID | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
### -L | ||
+ Log level | ||
This comment has been minimized.
Sorry, something went wrong. |
||
+ default: "debug" | ||
+ You can choose from debug, info, warn, error, fatal. | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
### -P | ||
+ TiDB server listening port. | ||
This comment has been minimized.
Sorry, something went wrong. |
||
+ default: "4000" | ||
+ TiDB server will accept MySQL client request from this port. | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
### --status | ||
+ TiDB server status report port. | ||
This comment has been minimized.
Sorry, something went wrong. |
||
+ default: "10080" | ||
+ This is used for get server status. | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
### --lease | ||
+ Schema lease time in second. | ||
This comment has been minimized.
Sorry, something went wrong. |
||
+ default: "1" | ||
+ It is schema lease time used in online schema change. Its value will affact DDL statement running time. It is very dangerous to change it if you don't understand the internal mechanism. | ||
This comment has been minimized.
Sorry, something went wrong.
QueenyJin
Contributor
|
||
|
||
### --socket | ||
+ The socket file to use for connection. | ||
This comment has been minimized.
Sorry, something went wrong. |
||
+ default: "" | ||
+ example: "/tmp/tidb.sock" | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
### --perfschema | ||
+ Enable(1) or disable(0) performance schema. | ||
This comment has been minimized.
Sorry, something went wrong. |
||
+ default: "0" | ||
+ If set this to 1, it will affect performance. | ||
This comment has been minimized.
Sorry, something went wrong.
QueenyJin
Contributor
|
||
|
||
### TIDB_PPROF environment variable | ||
This comment has been minimized.
Sorry, something went wrong. |
||
+ Enable runtime profiling data via HTTP server. Address is at client URL + "/debug/pprof/" | ||
This comment has been minimized.
Sorry, something went wrong.
QueenyJin
Contributor
|
||
+ If set $TIDB_PPROF to 0, TiDB will disable pprof. Otherwise TiDB will enable pprof. | ||
This comment has been minimized.
Sorry, something went wrong.
QueenyJin
Contributor
|
the storage engine type