Skip to content

Commit

Permalink
refactor(api): optimize resources
Browse files Browse the repository at this point in the history
  • Loading branch information
hugotiburtino committed Aug 8, 2024
1 parent 47ece53 commit b8eeb6b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
11 changes: 5 additions & 6 deletions modules/api/server/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -363,13 +363,12 @@ resource "kubernetes_deployment" "server" {
}

resources {
limits = {
cpu = "600m"
memory = "750Mi"
}

requests = {
cpu = "400m"
cpu = "75m"
memory = "300Mi"
}
limits = {
cpu = "100m"
memory = "500Mi"
}
}
Expand Down
11 changes: 5 additions & 6 deletions modules/api/swr-queue-worker/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -251,15 +251,14 @@ resource "kubernetes_deployment" "server" {
}

resources {
limits = {
cpu = "200m"
memory = "200Mi"
}

requests = {
cpu = "100m"
cpu = "20m"
memory = "100Mi"
}
limits = {
cpu = "50m"
memory = "150Mi"
}
}
}
}
Expand Down

0 comments on commit b8eeb6b

Please sign in to comment.