Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

[cherry-pick] add tiflash proxy status port config (#1140) #1141

Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions group_vars/tiflash_servers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ http_port: 8123
interserver_http_port: 9009
flash_service_port: 3930
flash_proxy_port: 20170
flash_proxy_status_port: 20292
1 change: 1 addition & 0 deletions roles/tiflash/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ tcp_port: 9000
http_port: 8123
flash_service_port: 3930
flash_proxy_port: 20170
flash_proxy_status_port: 20292
2 changes: 1 addition & 1 deletion roles/tiflash/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
1 change: 1 addition & 0 deletions roles/tiflash/templates/tiflash_learner.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down