Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add max_slot_wal_keep_size config to dev postgres DB #1670

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion terraform/aks/config/dev.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"run_recurring_jobs": false,
"enable_logit": true,
"postgres_flexible_server_sku": "GP_Standard_D2ads_v5",
"postgres_azure_storage_mb": 65536
"postgres_azure_storage_mb": 65536,
"postgres_max_slot_wal_keep_size": 8192
}
7 changes: 7 additions & 0 deletions terraform/aks/databases.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,10 @@ resource "azurerm_postgresql_flexible_server_configuration" "hot_standby_feedbac
server_id = module.postgres.azure_server_id
value = "on"
}

resource "azurerm_postgresql_flexible_server_configuration" "max_slot_wal_keep_size" {
count = var.postgres_max_slot_wal_keep_size == null ? 0 : 1
name = "max_slot_wal_keep_size"
server_id = module.postgres.azure_server_id
value = var.postgres_max_slot_wal_keep_size
}
5 changes: 5 additions & 0 deletions terraform/aks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ variable "app_name" { default = null }

variable "app_name_suffix" { default = null }

variable "postgres_max_slot_wal_keep_size" {
type = string
default = null
}

locals {
app_name_suffix = var.app_name == null ? var.environment_name : var.app_name
}
Loading