Skip to content

Commit

Permalink
fastcgi: Lower memory_max and pm.max_children and use count = 2
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 committed Oct 9, 2024
1 parent 6308af9 commit cee5349
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions jobs/fastcgi.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ job "fastcgi" {
datacenters = ["dc1"]

group "fastcgi" {
count = 1
count = 2

task "await_mysql" {
lifecycle {
Expand Down Expand Up @@ -97,7 +97,7 @@ job "fastcgi" {
destination = "local/www.conf"
mode = "file"

options { checksum = "md5:8ce9afeeee1ae1ff893b58be8dc7c3ec" }
options { checksum = "md5:fa11e91ebb96995b117b9a7408c3f315" }
}

template {
Expand Down Expand Up @@ -155,7 +155,7 @@ job "fastcgi" {
resources {
cpu = 3000
memory = 400
memory_max = 600
memory_max = 400
}

env {
Expand Down
2 changes: 1 addition & 1 deletion php/www.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ user = www-data
group = www-data
listen = 127.0.0.1:9000
pm = dynamic
pm.max_children = 20
pm.max_children = 10
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
Expand Down

0 comments on commit cee5349

Please sign in to comment.