Skip to content
This repository was archived by the owner on Jun 24, 2021. It is now read-only.

Commit 1043c3d

Browse files
committed
reduce config items (#978)
Signed-off-by: lucklove <gnu.crazier@gmail.com>
1 parent 6773cfe commit 1043c3d

File tree

6 files changed

+21
-581
lines changed

6 files changed

+21
-581
lines changed

conf/pd.yml

+1-17
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,11 @@ global:
55
# lease: 3
66
# tso-save-interval: "3s"
77

8-
# namespace-classifier: "table"
9-
10-
# enable-prevote: true
11-
128
security:
13-
# Path of file that contains list of trusted SSL CAs. if set, following four settings shouldn't be empty
14-
# cacert-path: ""
15-
# Path of file that contains X509 certificate in PEM format.
16-
# cert-path: ""
17-
# Path of file that contains X509 key in PEM format.
18-
# key-path: ""
199

2010
log:
2111
#level: "info"
2212

23-
# log format, one of json, text, console
24-
# format: "text"
25-
26-
# disable automatic timestamps in output
27-
# disable-timestamp: false
28-
2913
# file logging
3014
file:
3115
# max log file size in MB
@@ -38,7 +22,7 @@ log:
3822
# log-rotate: true
3923

4024
metric:
41-
25+
4226
schedule:
4327
# max-merge-region-size: 20
4428
# max-merge-region-keys: 200000

conf/tidb.yml

+10-88
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,9 @@ global:
77
# The socket file to use for connection.
88
# socket: ""
99

10-
# Run ddl worker on this tidb-server.
11-
# run-ddl: true
12-
1310
# Schema lease duration, very dangerous to change only if you know what you do.
1411
# lease: "45s"
1512

16-
# When create table, split a separated region for it. It is recommended to
17-
# turn off this option if there will be a large number of tables created.
18-
# split-table: true
19-
2013
# The limit of concurrent executed sessions.
2114
# token-limit: 1000
2215

@@ -27,12 +20,6 @@ global:
2720
# Set the memory quota for a query in bytes. Default: 32GB
2821
# mem-quota-query: 34359738368
2922

30-
# Enable coprocessor streaming.
31-
# enable-streaming: false
32-
33-
# Set system variable 'lower_case_table_names'
34-
# lower-case-table-names: 2
35-
3623
# Make "kill query" behavior compatible with MySQL. It's not recommend to
3724
# turn on this option when TiDB server is behind a proxy.
3825
# compatible-kill-query: false
@@ -44,57 +31,25 @@ log:
4431
# Log level: debug, info, warn, error, fatal.
4532
# level: "info"
4633

47-
# Log format, one of json, text, console.
48-
# format: "text"
49-
50-
# Disable automatic timestamps in output
51-
# disable-timestamp: false
52-
5334
# Queries with execution time greater than this value will be logged. (Milliseconds)
5435
# slow-threshold: 300
5536

5637
# Queries with internal result greater than this value will be logged.
5738
# expensive-threshold: 10000
5839

59-
# Maximum query length recorded in log.
60-
# query-log-max-len: 2048
61-
62-
# File logging.
63-
file:
64-
# Max log file size in MB. (upper limit to 4096MB).
65-
# max-size: 300
66-
67-
# Max log file keep days. No clean up by default.
68-
# max-days: 0
69-
70-
# Maximum number of old log files to retain. No clean up by default.
71-
# max-backups: 0
72-
73-
# Rotate log by day
74-
# log-rotate: true
75-
76-
security:
77-
# Path of file that contains list of trusted SSL CAs for connection with mysql client.
78-
# ssl-ca: ""
79-
80-
# Path of file that contains X509 certificate in PEM format for connection with mysql client.
81-
# ssl-cert: ""
82-
83-
# Path of file that contains X509 key in PEM format for connection with mysql client.
84-
# ssl-key: ""
85-
86-
# Path of file that contains list of trusted SSL CAs for connection with cluster components.
87-
# cluster-ssl-ca: ""
40+
status:
41+
# TiDB status host.
42+
# status-host = "0.0.0.0"
8843

89-
# Path of file that contains X509 certificate in PEM format for connection with cluster components.
90-
# cluster-ssl-cert: ""
44+
# Prometheus pushgateway address, leaves it empty will disable prometheus push.
45+
# TiDB status port.
46+
# status-port = 10080
9147

92-
# Path of file that contains X509 key in PEM format for connection with cluster components.
93-
# cluster-ssl-key: ""
48+
# Prometheus pushgateway address, leaves it empty will disable prometheus push.
49+
# metrics-addr = ""
9450

95-
status:
96-
# If enable status report HTTP service.
97-
# report-status: true
51+
# Prometheus client push interval in second, set \"0\" to disable prometheus push.
52+
# metrics-interval = 15
9853

9954
performance:
10055
# Max CPUs to use, 0 use number of CPUs in the machine.
@@ -106,39 +61,10 @@ performance:
10661
# StmtCountLimit limits the max count of statement inside a transaction.
10762
# stmt-count-limit: 5000
10863

109-
# Set keep alive option for tcp connection.
110-
# tcp-keep-alive: true
111-
112-
# Whether support cartesian product.
113-
# cross-join: true
114-
11564
# Stats lease duration, which influences the time of analyze and stats load.
11665
# stats-lease: "3s"
11766

118-
# Run auto analyze worker on this tidb-server.
119-
# run-auto-analyze: true
120-
121-
# Probability to use the query feedback to update stats, 0 or 1 for always false/true.
122-
# feedback-probability: 0.05
123-
124-
# The max number of query feedback that cache in memory.
125-
# query-feedback-limit: 1024
126-
127-
# Pseudo stats will be used if the ratio between the modify count and
128-
# row count in statistics of a table is greater than it.
129-
# pseudo-estimate-ratio: 0.8
130-
131-
# Force the priority of all statements in a specified priority.
132-
# The value could be "NO_PRIORITY", "LOW_PRIORITY", "HIGH_PRIORITY" or "DELAYED".
133-
# force-priority: "NO_PRIORITY"
134-
13567
proxy_protocol:
136-
# PROXY protocol acceptable client networks.
137-
# Empty string means disable PROXY protocol, * means all networks.
138-
# networks: ""
139-
140-
# PROXY protocol header read timeout, unit is second
141-
# header-timeout: 5
14268

14369
prepared_plan_cache:
14470
# enabled: false
@@ -224,10 +150,6 @@ tikv_client:
224150
# batch-wait-size: 8
225151

226152
txn_local_latches:
227-
# Enable local latches for transactions. Enable it when
228-
# there are lots of conflicts between transactions.
229-
# enabled: false
230-
# capacity: 2048000
231153

232154
binlog:
233155
# WriteTimeout specifies how long it will wait for writing binlog to pump.

0 commit comments

Comments
 (0)