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

Increase memory of production API containers to 2GiB #936

Merged
merged 1 commit into from
Dec 1, 2023
Merged
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
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"]

}
Loading