|
| 1 | +# ⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️ |
| 2 | +# ⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️ |
| 3 | +# ⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️ |
1 | 4 |
|
2 | 5 | # NEWGPD-DB : DEPRECATED remove all content file |
| 6 | +# Note in DEV and UAT env the old version of GPD db it has already been manually removed from the portal , but not in PROD |
| 7 | + |
| 8 | +# ⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️ |
| 9 | +# ⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️ |
| 10 | +# ⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️ |
| 11 | + |
3 | 12 |
|
4 | 13 | # https://docs.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-compare-single-server-flexible-server |
5 | 14 | module "postgres_flexible_server_private" { # private only into UAT and PROD env |
@@ -97,24 +106,24 @@ resource "azurerm_postgresql_flexible_server_configuration" "apd_db_flex_min_poo |
97 | 106 | } |
98 | 107 |
|
99 | 108 | # CDC https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-logical |
100 | | -resource "azurerm_postgresql_flexible_server_configuration" "apd_db_flex_max_worker_process" { |
101 | | - count = var.pgres_flex_params.wal_level != null && var.env_short == "p" ? 1 : 0 # forced |
| 109 | +resource "azurerm_postgresql_flexible_server_configuration" "apd_db_flex_max_worker_process" { # NEWGPD-DB : not needed to enable on OLD version |
| 110 | + count = 0 # var.pgres_flex_params.wal_level != null && var.env_short == "p" ? 1 : 0 # forced |
102 | 111 |
|
103 | 112 | name = "max_worker_processes" |
104 | 113 | server_id = module.postgres_flexible_server_private[0].id |
105 | 114 | value = var.pgres_flex_params.max_worker_process # var.env_short == "d" ? 16 : 32 |
106 | 115 | } |
107 | 116 |
|
108 | | -resource "azurerm_postgresql_flexible_server_configuration" "apd_db_flex_wal_level" { |
109 | | - count = var.pgres_flex_params.wal_level != null && var.env_short == "p" ? 1 : 0 # forced ? 1 : 0 |
| 117 | +resource "azurerm_postgresql_flexible_server_configuration" "apd_db_flex_wal_level" { # NEWGPD-DB : not needed to enable on OLD version |
| 118 | + count = 0 # var.pgres_flex_params.wal_level != null && var.env_short == "p" ? 1 : 0 # forced ? 1 : 0 |
110 | 119 |
|
111 | 120 | name = "wal_level" |
112 | 121 | server_id = module.postgres_flexible_server_private[0].id |
113 | 122 | value = var.pgres_flex_params.wal_level # "logical", ... |
114 | 123 | } |
115 | 124 |
|
116 | | -resource "azurerm_postgresql_flexible_server_configuration" "apd_db_flex_shared_preoload_libraries" { |
117 | | - count = var.pgres_flex_params.wal_level != null && var.env_short == "p" ? 1 : 0 |
| 125 | +resource "azurerm_postgresql_flexible_server_configuration" "apd_db_flex_shared_preoload_libraries" { # NEWGPD-DB : not needed to enable on OLD version |
| 126 | + count = 0 # var.pgres_flex_params.wal_level != null && var.env_short == "p" ? 1 : 0 |
118 | 127 |
|
119 | 128 | name = "shared_preload_libraries" |
120 | 129 | server_id = module.postgres_flexible_server_private[0].id |
|
0 commit comments