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

Commit

Permalink
add tiflash proxy status port config (#1140)
Browse files Browse the repository at this point in the history
  • Loading branch information
marsishandsome authored Feb 14, 2020
1 parent 3db67c5 commit 40a4cb2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
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

0 comments on commit 40a4cb2

Please sign in to comment.