Skip to content

Commit

Permalink
Increase memory of production API containers to 2GiB (#936)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad authored Dec 1, 2023
1 parent 37ea0f5 commit 5cb3bf8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions terraform/aks/app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ module "api_application" {
web_port = 80
probe_path = "/health"
replicas = var.api_replicas
max_memory = var.api_max_memory
}

module "ui_application_configuration" {
Expand Down
12 changes: 12 additions & 0 deletions terraform/aks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,30 +79,42 @@ variable "api_replicas" {
type = number
default = 1
}

variable "api_max_memory" {
type = string
default = "1Gi"
}

variable "ui_replicas" {
type = number
default = 1
}

variable "postgres_flexible_server_sku" {
type = string
default = "B_Standard_B1ms"
}

variable "postgres_enable_high_availability" {
type = bool
default = false
}

variable "redis_capacity" {
type = number
default = 1
}

variable "redis_family" {
type = string
default = "C"
}

variable "redis_sku_name" {
type = string
default = "Standard"
}

variable "statuscake_extra_urls" {
type = list(string)
description = "List of extra URLs for StatusCake, on top of the internal teacherservices.cloud ones"
Expand Down
2 changes: 1 addition & 1 deletion terraform/aks/workspace_variables/production.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"run_dqt_reporting_service": true,
"run_recurring_jobs": true,
"api_replicas": 2,
"api_max_memory": "2Gi",
"ui_replicas": 2,
"postgres_flexible_server_sku": "GP_Standard_D2ds_v4",
"postgres_enable_high_availability": true,
"redis_capacity": 1,
"redis_family": "P",
"redis_sku_name": "Premium",
"statuscake_extra_urls": ["https://teacher-qualifications-api.education.gov.uk/health"]

}

0 comments on commit 5cb3bf8

Please sign in to comment.