Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tiflash: Clean deprecated configs; align style of flash.proxy (#16071) #16371

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 27 additions & 19 deletions tiflash/tiflash-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,36 +140,44 @@ delta_index_cache_size = 0
# capacity: 858993459200 # 800 GiB

[flash]
tidb_status_addr = TiDB status port and address. # Multiple addresses are separated with commas.
service_addr = The listening address of TiFlash Raft services and coprocessor services.
## The listening address of TiFlash coprocessor services.
service_addr = "0.0.0.0:3930"

## The following configuration item only takes effect for the TiFlash disaggregated storage and compute architecture mode. For details, see documentation at https://docs.pingcap.com/tidb/dev/tiflash-disaggregated-and-s3.
# disaggregated_mode = tiflash_write # The supported mode is `tiflash_write` or `tiflash_compute.

## Multiple TiFlash nodes elect a master to add or delete placement rules to PD,
## and the configurations in flash.flash_cluster control this process.
[flash.flash_cluster]
refresh_interval = Master regularly refreshes the valid period.
update_rule_interval = Master regularly gets the status of TiFlash replicas and interacts with PD.
master_ttl = The valid period of the elected master.
cluster_manager_path = The absolute path of the pd buddy directory.
log = The pd buddy log path.

[flash.proxy]
addr = The listening address of proxy. If it is left empty, 127.0.0.1:20170 is used by default.
advertise-addr = The external access address of addr. If it is left empty, "addr" is used by default.
data-dir = The data storage path of proxy.
config = The configuration file path of proxy.
log-file = The log path of proxy.
log-level = The log level of proxy. "info" is used by default.
status-addr = The listening address from which the proxy pulls metrics | status information. If it is left empty, 127.0.0.1:20292 is used by default.
advertise-status-addr = The external access address of status-addr. If it is left empty, "status-addr" is used by default.
## The listening address of proxy. If it is left empty, 127.0.0.1:20170 is used by default.
addr = "127.0.0.1:20170"
## The external access address of addr. If it is left empty, "addr" is used by default.
## Should guarantee that other nodes can access through `advertise-addr` when you deploy the cluster on multiple nodes.
advertise-addr = ""
## The listening address from which the proxy pulls metrics or status information. If it is left empty, 127.0.0.1:20292 is used by default.
status-addr = "127.0.0.1:20292"
## The external access address of status-addr. If it is left empty, the value of "status-addr" is used by default.
## Should guarantee that other nodes can access through `advertise-status-addr` when you deploy the cluster on multiple nodes.
advertise-status-addr = ""
## The data storage path of proxy.
data-dir = "/tidb-data/tiflash-9000/flash"
## The configuration file path of proxy.
config = "/tidb-deploy/tiflash-9000/conf/tiflash-learner.toml"
## The log path of proxy.
log-file = "/tidb-deploy/tiflash-9000/log/tiflash_tikv.log"
## The log level of proxy (available options: "trace", "debug", "info", "warn", "error"). The default value is "info"
# log-level = "info"

[logger]
<<<<<<< HEAD
## log level (available options: "trace", "debug", "info", "warn", "error"). The default value is "debug".
level = "debug"
log = TiFlash log path
errorlog = TiFlash error log path
=======
## log level (available options: "trace", "debug", "info", "warn", "error"). The default value is "info".
level = "info"
log = "/tidb-deploy/tiflash-9000/log/tiflash.log"
errorlog = "/tidb-deploy/tiflash-9000/log/tiflash_error.log"
>>>>>>> fde7b8ae22 (tiflash: Clean deprecated configs; align style of flash.proxy (#16071))
ran-huang marked this conversation as resolved.
Show resolved Hide resolved
## Size of a single log file. The default value is "100M".
size = "100M"
## Maximum number of log files to save. The default value is 10.
Expand Down
Loading