Skip to content

Commit

Permalink
Update consul_services vars
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks committed Jan 28, 2023
1 parent b71473c commit 92d0391
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,30 +102,30 @@ consul_services:
- name: "{{ patroni_cluster_name }}"
id: "{{ patroni_cluster_name }}-master"
tags: ['master']
port: "{{ pgbouncer_listen_port }}" # or "{{ pgbouncer_listen_port }}" if pgbouncer_install: false
port: "{{ pgbouncer_listen_port }}" # or "{{ postgresql_port }}" if pgbouncer_install: false
checks:
- { http: "http://{{ hostvars[inventory_hostname]['inventory_hostname'] }}:8008/master", interval: "2s" }
- { http: "http://{{ inventory_hostname }}:8008/master", interval: "2s" }
- { args: ["systemctl", "status", "pgbouncer"], interval: "5s" } # comment out this check if pgbouncer_install: false
- name: "{{ patroni_cluster_name }}"
id: "{{ patroni_cluster_name }}-replica"
tags: ['replica']
port: "{{ pgbouncer_listen_port }}"
checks:
- { http: "http://{{ hostvars[inventory_hostname]['inventory_hostname'] }}:8008/replica", interval: "2s" }
- { http: "http://{{ inventory_hostname }}:8008/replica", interval: "2s" }
- { args: ["systemctl", "status", "pgbouncer"], interval: "5s" }
# - name: "{{ patroni_cluster_name }}"
# id: "{{ patroni_cluster_name }}-sync-replica"
# tags: ['sync-replica']
# port: "{{ pgbouncer_listen_port }}"
# checks:
# - { http: "http://{{ hostvars[inventory_hostname]['inventory_hostname'] }}:8008/sync", interval: "2s" }
# - { http: "http://{{ inventory_hostname }}:8008/sync", interval: "2s" }
# - { args: ["systemctl", "status", "pgbouncer"], interval: "5s" }
# - name: "{{ patroni_cluster_name }}"
# id: "{{ patroni_cluster_name }}-async-replica"
# tags: ['async-replica']
# port: "{{ pgbouncer_listen_port }}"
# checks:
# - { http: "http://{{ hostvars[inventory_hostname]['inventory_hostname'] }}:8008/async", interval: "2s" }
# - { http: "http://{{ inventory_hostname }}:8008/async", interval: "2s" }
# - { args: ["systemctl", "status", "pgbouncer"], interval: "5s" }


Expand Down

0 comments on commit 92d0391

Please sign in to comment.