Skip to content

Commit

Permalink
deployment: Update resources
Browse files Browse the repository at this point in the history
  • Loading branch information
schneefux committed Mar 1, 2024
1 parent f269062 commit 158ce6a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions deployment/jobs/brawltime-media.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ job "brawltime-media" {
PORT = "${NOMAD_PORT_http}"
ASSET_DIR = "/assets/"
DD_AGENT_HOST = "${attr.unique.network.ip-address}"
NODE_OPTIONS = "--max-old-space-size=${NOMAD_MEMORY_LIMIT}" # excess capacity is for sharp
NODE_OPTIONS = "--max-old-space-size=${512}" # sharp will use about 300MB more
}

config {
Expand All @@ -141,8 +141,8 @@ job "brawltime-media" {

resources {
cpu = 512
memory = 512
memory_max = 768 # sharp will use as much memory as available
memory = 896
memory_max = 1024
}
}

Expand Down
6 changes: 3 additions & 3 deletions deployment/jobs/mariadb.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ job "mariadb" {
}

resources {
cpu = 196
memory = 196
memory_max = 256
cpu = 512
memory = 256
memory_max = 512
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions deployment/jobs/nginx.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ job "nginx" {
}

resources {
cpu = 1536
memory = 512
memory_max = 1024
cpu = 1024
memory = 768
memory_max = 1280
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions deployment/jobs/redis.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ job "redis" {
resources {
# reserve 3-4x to handle spikes
cpu = 1024 # typically 192
memory = 3072 # typically 768
memory_max = 3328
memory = 2560 # typically 768-2048
memory_max = 2816
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions deployment/jobs/traefik.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ job "traefik" {

resources {
cpu = 1536
memory = 512
memory_max = 1536
memory = 256
memory_max = 1280
}
}
}
Expand Down

0 comments on commit 158ce6a

Please sign in to comment.