diff --git a/group_vars/tiflash_servers.yml b/group_vars/tiflash_servers.yml index 255fd6264..e30fea252 100644 --- a/group_vars/tiflash_servers.yml +++ b/group_vars/tiflash_servers.yml @@ -5,3 +5,4 @@ http_port: 8123 interserver_http_port: 9009 flash_service_port: 3930 flash_proxy_port: 20170 +flash_proxy_status_port: 20292 diff --git a/roles/tiflash/defaults/main.yml b/roles/tiflash/defaults/main.yml index e1bf4aea8..e27684b61 100644 --- a/roles/tiflash/defaults/main.yml +++ b/roles/tiflash/defaults/main.yml @@ -17,3 +17,4 @@ tcp_port: 9000 http_port: 8123 flash_service_port: 3930 flash_proxy_port: 20170 +flash_proxy_status_port: 20292 diff --git a/roles/tiflash/tasks/main.yml b/roles/tiflash/tasks/main.yml index e737502bb..208180dae 100644 --- a/roles/tiflash/tasks/main.yml +++ b/roles/tiflash/tasks/main.yml @@ -63,4 +63,4 @@ - name: prepare firewalld white list set_fact: - firewalld_ports: "{{ [tcp_port ~ '/tcp', http_port ~ '/tcp', flash_service_port ~ '/tcp', flash_proxy_port ~ '/tcp'] + firewalld_ports }}" + firewalld_ports: "{{ [tcp_port ~ '/tcp', http_port ~ '/tcp', flash_service_port ~ '/tcp', flash_proxy_port ~ '/tcp', flash_proxy_status_port ~ '/tcp'] + firewalld_ports }}" diff --git a/roles/tiflash/templates/tiflash_learner.toml.j2 b/roles/tiflash/templates/tiflash_learner.toml.j2 index a58f3bd18..0181cd9f0 100644 --- a/roles/tiflash/templates/tiflash_learner.toml.j2 +++ b/roles/tiflash/templates/tiflash_learner.toml.j2 @@ -18,6 +18,7 @@ labels = { "tiflash_http_port" = "{{ http_port }}" } engine-addr = "{{ ansible_host | default(inventory_hostname) }}:{{ flash_service_port }}" addr = "{{ ansible_host | default(inventory_hostname) }}:{{ flash_proxy_port }}" advertise-addr = "{{ ansible_host | default(inventory_hostname) }}:{{ flash_proxy_port }}" +status-addr = "{{ ansible_host | default(inventory_hostname) }}:{{ flash_proxy_status_port }}" {% for item, value in tiflash_learner_conf.server | dictsort -%} {% if item == "labels" %} {{ item }} = {{ value | tikv_server_labels_format }}