Skip to content

Commit

Permalink
tiflash: Clean deprecated configs; align style of flash.proxy (#16071) (
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot committed Jan 30, 2024
1 parent c727bb2 commit 88ad97b
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions tiflash/tiflash-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,36 +140,37 @@ 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]
## 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 = "/tidb-deploy/tiflash-9000/log/tiflash.log"
errorlog = "/tidb-deploy/tiflash-9000/log/tiflash_error.log"
## 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

0 comments on commit 88ad97b

Please sign in to comment.