From 52255a9a2ca37b8adcf4f0faaea0896e93703135 Mon Sep 17 00:00:00 2001 From: pvisweswar Date: Mon, 9 Oct 2023 11:46:17 +0530 Subject: [PATCH] removing pgbouncer_c1 from production environment --- environments/production/inventory.ini | 3 --- environments/production/inventory.ini.j2 | 2 -- environments/production/postgresql.yml | 11 ----------- environments/production/terraform.yml | 10 ---------- 4 files changed, 26 deletions(-) diff --git a/environments/production/inventory.ini b/environments/production/inventory.ini index 24e46353fd..373cf51a0c 100644 --- a/environments/production/inventory.ini +++ b/environments/production/inventory.ini @@ -70,8 +70,6 @@ mobile_webworkers 10.202.41.209 hostname=pgbouncer-b2-production ufw_private_interface=ens5 ansible_python_interpreter=/usr/bin/python3 ec2_instance_id=i-0401d2bda17749fb5 root_encryption_mode=aws pgbouncer_processes=2 [pgbouncer_b3] 10.202.41.227 hostname=pgbouncer-b3-production ufw_private_interface=ens5 ansible_python_interpreter=/usr/bin/python3 ec2_instance_id=i-06b0e8333a5597559 root_encryption_mode=aws pgbouncer_processes=2 -[pgbouncer_c1] -10.202.42.16 hostname=pgbouncer-c1-production ufw_private_interface=ens5 ansible_python_interpreter=/usr/bin/python3 ec2_instance_id=i-079250a517f8cf507 root_encryption_mode=aws pgbouncer_processes=2 [pgbouncer13] 10.202.40.97 hostname=pgbouncer13-production ufw_private_interface=ens5 ansible_python_interpreter=/usr/bin/python3 ec2_instance_id=i-00081ab490dce797c root_encryption_mode=aws pgbouncer_processes=2 [pgbouncer14] @@ -147,7 +145,6 @@ pgbouncer_a5 pgbouncer_a6 pgbouncer_b2 pgbouncer_b3 -pgbouncer_c1 pgbouncer13 pgbouncer14 pgformplayer_nlb diff --git a/environments/production/inventory.ini.j2 b/environments/production/inventory.ini.j2 index 55faeca230..7f786223d0 100644 --- a/environments/production/inventory.ini.j2 +++ b/environments/production/inventory.ini.j2 @@ -33,7 +33,6 @@ mobile_webworkers {{ __pgbouncer_a6__ }} pgbouncer_processes=2 {{ __pgbouncer_b2__ }} pgbouncer_processes=2 {{ __pgbouncer_b3__ }} pgbouncer_processes=2 -{{ __pgbouncer_c1__ }} pgbouncer_processes=2 {{ __pgbouncer13__ }} pgbouncer_processes=2 {{ __pgbouncer14__ }} pgbouncer_processes=2 @@ -91,7 +90,6 @@ pgbouncer_a5 pgbouncer_a6 pgbouncer_b2 pgbouncer_b3 -pgbouncer_c1 pgbouncer13 pgbouncer14 pgformplayer_nlb diff --git a/environments/production/postgresql.yml b/environments/production/postgresql.yml index c0dd1f4172..97c1e88f11 100644 --- a/environments/production/postgresql.yml +++ b/environments/production/postgresql.yml @@ -48,7 +48,6 @@ dbs: - pgbouncer_a5 - pgbouncer_b2 - pgbouncer_b3 - - pgbouncer_c1 - pgbouncer13 - pgbouncer14 formplayer: @@ -60,7 +59,6 @@ dbs: - pgbouncer_a5 - pgbouncer_b2 - pgbouncer_b3 - - pgbouncer_c1 - pgbouncer13 - pgbouncer14 ucr: @@ -73,7 +71,6 @@ dbs: - pgbouncer_a5 - pgbouncer_b2 - pgbouncer_b3 - - pgbouncer_c1 - pgbouncer13 - pgbouncer14 query_stats: True @@ -85,7 +82,6 @@ dbs: - pgbouncer_a5 - pgbouncer_b2 - pgbouncer_b3 - - pgbouncer_c1 - pgbouncer13 - pgbouncer14 auditcare: @@ -98,7 +94,6 @@ dbs: - pgbouncer_a5 - pgbouncer_b2 - pgbouncer_b3 - - pgbouncer_c1 - pgbouncer13 - pgbouncer14 repeaters: @@ -111,7 +106,6 @@ dbs: - pgbouncer_a5 - pgbouncer_b2 - pgbouncer_b3 - - pgbouncer_c1 - pgbouncer13 - pgbouncer14 form_processing: @@ -130,7 +124,6 @@ dbs: - pgbouncer_a5 - pgbouncer_b2 - pgbouncer_b3 - - pgbouncer_c1 - pgbouncer13 - pgbouncer14 p2: @@ -142,7 +135,6 @@ dbs: - pgbouncer_a5 - pgbouncer_b2 - pgbouncer_b3 - - pgbouncer_c1 - pgbouncer13 - pgbouncer14 p3: @@ -154,7 +146,6 @@ dbs: - pgbouncer_a5 - pgbouncer_b2 - pgbouncer_b3 - - pgbouncer_c1 - pgbouncer13 - pgbouncer14 p4: @@ -166,7 +157,6 @@ dbs: - pgbouncer_a5 - pgbouncer_b2 - pgbouncer_b3 - - pgbouncer_c1 - pgbouncer13 - pgbouncer14 p5: @@ -178,6 +168,5 @@ dbs: - pgbouncer_a5 - pgbouncer_b2 - pgbouncer_b3 - - pgbouncer_c1 - pgbouncer13 - pgbouncer14 diff --git a/environments/production/terraform.yml b/environments/production/terraform.yml index 3f23a60c38..3bb5098bcf 100644 --- a/environments/production/terraform.yml +++ b/environments/production/terraform.yml @@ -366,14 +366,6 @@ servers: volume_encrypted: yes group: "postgresql" os: jammy - - server_name: "pgbouncer_c1-production" # pgbouncer_host for pgmain, formplayer - server_instance_type: t3a.large - network_tier: "db-private" - az: "c" - volume_size: 80 - volume_encrypted: yes - group: "postgresql" - os: jammy - server_name: "pgbouncer13-production" # pgbouncer_host for ucr dbs server_instance_type: t3a.large network_tier: "db-private" @@ -592,12 +584,10 @@ pgbouncer_nlbs: targets: - pgbouncer_a4-production - pgbouncer_b2-production - - pgbouncer_c1-production - name: pgmain_nlb-production targets: - pgbouncer_a4-production - pgbouncer_b2-production - - pgbouncer_c1-production - name: pgucr_nlb-production targets: - pgbouncer13-production