From 7b94edf02b548634d182b5cda5943affe5241302 Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Mon, 8 Apr 2024 16:00:20 +0800 Subject: [PATCH] tiup: add additional_args (#16114) (#17024) --- tiup/tiup-cluster-topology-reference.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tiup/tiup-cluster-topology-reference.md b/tiup/tiup-cluster-topology-reference.md index 4bda50a37a1b..6682a03d267e 100644 --- a/tiup/tiup-cluster-topology-reference.md +++ b/tiup/tiup-cluster-topology-reference.md @@ -415,6 +415,7 @@ pump_servers: - `os`:`host` 字段所指定的机器的操作系统,若不指定该字段,则默认为 `global` 中的 `os` - `arch`:`host` 字段所指定的机器的架构,若不指定该字段,则默认为 `global` 中的 `arch` - `resource_control`:针对该服务的资源控制,如果配置了该字段,会将该字段和 `global` 中的 `resource_control` 内容合并(若字段重叠,以本字段内容为准),然后生成 systemd 配置文件并下发到 `host` 指定机器。`resource_control` 的配置规则同 `global` 中的 `resource_control` +- `additional_args`:从 TiUP v1.15.0 开始引入,用于配置 Prometheus 额外运行参数。该字段是一个数组,数组元素为 Prometheus 运行参数。例如,要开启 Prometheus 热加载功能,可以将该字段配置为 `--web.enable-lifecycle` 以上所有字段中,部分字段部署完成之后不能再修改。如下所示: @@ -607,6 +608,8 @@ tispark_workers: monitoring_servers: - host: 10.0.1.11 rule_dir: /local/rule/dir + additional_args: + - --web.enable-lifecycle remote_config: remote_write: - queue_config: