Skip to content

Commit 0c4f66e

Browse files
committed
deploy: remove hot-standby server
When updating the hosts, the differences between configuring hot-standby on postgresql 9.5 -> 16 are just too great. I think the hot-standby feature was of questionable value anyway, and it super-complicates the update procedure, and shaman is due for some major architectural changes soon anyway. If this horribly affects performance we can circle back, but I very much doubt it will. Signed-off-by: Dan Mick <dan.mick@redhat.com>
1 parent e5934a8 commit 0c4f66e

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

deploy/playbooks/roles/common/templates/prod_db.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sqlalchemy_w = {
99
}
1010

1111
sqlalchemy_ro = {
12-
'url': 'postgresql+psycopg2://{{ app_name }}:{{ postgresql_app_user_password }}@{{ standby_ip }}/{{ app_name }}',
12+
'url': 'postgresql+psycopg2://{{ app_name }}:{{ postgresql_app_user_password }}@{{ master_ip }}/{{ app_name }}',
1313
'echo': False,
1414
'echo_pool': False,
1515
'pool_recycle': 3600,

deploy/playbooks/roles/postgresql/tasks/main.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,3 @@
2222
when: "'postgresql_master' in group_names"
2323
become_user: postgres
2424
become: true
25-
26-
- import_tasks: standby.yml
27-
when: "'postgresql_standby' in group_names"

deploy/playbooks/roles/postgresql/templates/postgresql.conf.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,7 @@ xmlbinary = '{{ postgresql_cfg_xmlbinary }}'
679679
xmloption = '{{ postgresql_cfg_xmloption }}'
680680
{% endif %}
681681

682+
682683
#------------------------------------------------------------------------------
683684
# CUSTOMIZED OPTIONS
684685
#------------------------------------------------------------------------------

deploy/playbooks/roles/postgresql/templates/recovery.conf.j2

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)