File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 11# !/usr/bin/ansible-playbook
22---
33# --------------------------------------------------------------#
4- # patroni restart pg_cls gracefully [pt_restart]
4+ # patroni restart pg_cls gracefully [pt_restart]
55# avoiding switching pg primary/standby
66# usage:
77# - ./pgsql.yml -l <pg_cls> -t pt_restart -e "pt_restart=true"
1616# - ./pgsql.yml -l <pg_cls> -t pt_restart -e "pt_restart=true"
1717# all nodes have been restarted
1818# - ./pgsql.yml -l '<ip>,&<pg_cls>' -t pt_restart -e "pt_restart=true"
19- # nodes in ansible_play_hosts_all have been restarted, other nodes in the same pg_cls ignored
19+ # nodes in ansible_play_hosts_all have been restarted,
20+ # other nodes in the same pg_cls ignored
2021# --------------------------------------------------------------#
2122
2223- name : set variable
Original file line number Diff line number Diff line change 11---
22# --------------------------------------------------------------#
33# Enable hugepage for pg and restart pg cluster [pg_hugepage]
4- # if `node_hugepage_count` or `node_hugepage_ratio` changed, it will full backup the pg_cls and restart it gracefully
4+ # if `node_hugepage_count` or `node_hugepage_ratio` changed,
5+ # it will full backup the pg_cls and restart it gracefully
56# support usage:
67# - `pig install`
78# - `bin/pgsql-add <pg_cls>`
9+ # - `bin/pgsql-add <pg_cls> <ip>`
10+ # service of nodes in ansible_play_hosts_all will be unavailable during the process,
11+ # other nodes in the same pg_cls ignored
812# - `pgsql.yml -l <pg_cls> -t pg_hugepage`
13+ # entire service of this postgres cluster will be unavailable during the process
14+ # - `pgsql.yml -l '<ip>,&<pg_cls>' -t pg_hugepage`
15+ # service of nodes in ansible_play_hosts_all will be unavailable during the process,
16+ # other nodes in the same pg_cls ignored
917# --------------------------------------------------------------#
1018# calculation rules:
1119# 1. `shared_memory_size_in_huge_pages` (from PG15+): if `node_hugepage_count` is -1 and huge_pages (from PG) != off
You can’t perform that action at this time.
0 commit comments