This repository has been archived by the owner on Jun 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 275
reduce config items #978
Merged
Merged
reduce config items #978
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,16 +7,9 @@ global: | |
# The socket file to use for connection. | ||
# socket: "" | ||
|
||
# Run ddl worker on this tidb-server. | ||
# run-ddl: true | ||
|
||
# Schema lease duration, very dangerous to change only if you know what you do. | ||
# lease: "45s" | ||
|
||
# When create table, split a separated region for it. It is recommended to | ||
# turn off this option if there will be a large number of tables created. | ||
# split-table: true | ||
|
||
# The limit of concurrent executed sessions. | ||
# token-limit: 1000 | ||
|
||
|
@@ -27,12 +20,6 @@ global: | |
# Set the memory quota for a query in bytes. Default: 32GB | ||
# mem-quota-query: 34359738368 | ||
|
||
# Enable coprocessor streaming. | ||
# enable-streaming: false | ||
|
||
# Set system variable 'lower_case_table_names' | ||
# lower-case-table-names: 2 | ||
|
||
# Make "kill query" behavior compatible with MySQL. It's not recommend to | ||
# turn on this option when TiDB server is behind a proxy. | ||
# compatible-kill-query: false | ||
|
@@ -44,57 +31,25 @@ log: | |
# Log level: debug, info, warn, error, fatal. | ||
# level: "info" | ||
|
||
# Log format, one of json, text, console. | ||
# format: "text" | ||
|
||
# Disable automatic timestamps in output | ||
# disable-timestamp: false | ||
|
||
# Queries with execution time greater than this value will be logged. (Milliseconds) | ||
# slow-threshold: 300 | ||
|
||
# Queries with internal result greater than this value will be logged. | ||
# expensive-threshold: 10000 | ||
|
||
# Maximum query length recorded in log. | ||
# query-log-max-len: 2048 | ||
|
||
# File logging. | ||
file: | ||
# Max log file size in MB. (upper limit to 4096MB). | ||
# max-size: 300 | ||
|
||
# Max log file keep days. No clean up by default. | ||
# max-days: 0 | ||
|
||
# Maximum number of old log files to retain. No clean up by default. | ||
# max-backups: 0 | ||
|
||
# Rotate log by day | ||
# log-rotate: true | ||
|
||
security: | ||
# Path of file that contains list of trusted SSL CAs for connection with mysql client. | ||
# ssl-ca: "" | ||
|
||
# Path of file that contains X509 certificate in PEM format for connection with mysql client. | ||
# ssl-cert: "" | ||
|
||
# Path of file that contains X509 key in PEM format for connection with mysql client. | ||
# ssl-key: "" | ||
|
||
# Path of file that contains list of trusted SSL CAs for connection with cluster components. | ||
# cluster-ssl-ca: "" | ||
status: | ||
# TiDB status host. | ||
# status-host = "0.0.0.0" | ||
|
||
# Path of file that contains X509 certificate in PEM format for connection with cluster components. | ||
# cluster-ssl-cert: "" | ||
# Prometheus pushgateway address, leaves it empty will disable prometheus push. | ||
# TiDB status port. | ||
# status-port = 10080 | ||
|
||
# Path of file that contains X509 key in PEM format for connection with cluster components. | ||
# cluster-ssl-key: "" | ||
# Prometheus pushgateway address, leaves it empty will disable prometheus push. | ||
# metrics-addr = "" | ||
|
||
status: | ||
# If enable status report HTTP service. | ||
# report-status: true | ||
# Prometheus client push interval in second, set \"0\" to disable prometheus push. | ||
# metrics-interval = 15 | ||
|
||
performance: | ||
# Max CPUs to use, 0 use number of CPUs in the machine. | ||
|
@@ -106,39 +61,10 @@ performance: | |
# StmtCountLimit limits the max count of statement inside a transaction. | ||
# stmt-count-limit: 5000 | ||
|
||
# Set keep alive option for tcp connection. | ||
# tcp-keep-alive: true | ||
|
||
# Whether support cartesian product. | ||
# cross-join: true | ||
|
||
# Stats lease duration, which influences the time of analyze and stats load. | ||
# stats-lease: "3s" | ||
|
||
# Run auto analyze worker on this tidb-server. | ||
# run-auto-analyze: true | ||
|
||
# Probability to use the query feedback to update stats, 0 or 1 for always false/true. | ||
# feedback-probability: 0.05 | ||
|
||
# The max number of query feedback that cache in memory. | ||
# query-feedback-limit: 1024 | ||
|
||
# Pseudo stats will be used if the ratio between the modify count and | ||
# row count in statistics of a table is greater than it. | ||
# pseudo-estimate-ratio: 0.8 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's better to keep them in the config files:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://docs.google.com/spreadsheets/d/1fmY3MSklHb9jYQOv3Djcrhj3Uz97fI06soaMy4OKcRs/edit#gid=0 PM think they should not be visible to user |
||
|
||
# Force the priority of all statements in a specified priority. | ||
# The value could be "NO_PRIORITY", "LOW_PRIORITY", "HIGH_PRIORITY" or "DELAYED". | ||
# force-priority: "NO_PRIORITY" | ||
|
||
proxy_protocol: | ||
# PROXY protocol acceptable client networks. | ||
# Empty string means disable PROXY protocol, * means all networks. | ||
# networks: "" | ||
|
||
# PROXY protocol header read timeout, unit is second | ||
# header-timeout: 5 | ||
|
||
prepared_plan_cache: | ||
# enabled: false | ||
|
@@ -224,10 +150,6 @@ tikv_client: | |
# batch-wait-size: 8 | ||
|
||
txn_local_latches: | ||
# Enable local latches for transactions. Enable it when | ||
# there are lots of conflicts between transactions. | ||
# enabled: false | ||
# capacity: 2048000 | ||
|
||
binlog: | ||
# WriteTimeout specifies how long it will wait for writing binlog to pump. | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we confirm that all the removed items is mentioned in documents?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I'll check it