Damn that is so weird!
The formula for connections is worker_processes * worker_connections
which should be 12 * 768
, which would be (click clack) 9216. But your logs say 1768…
Try this on your app.yml:
## Any custom commands to run after building
run:
- exec: echo "Beginning of custom commands"
- replace:
filename: "/etc/nginx/nginx.conf"
from: "worker_connections 768"
to: "worker_connections 2000"
- replace:
filename: "/etc/nginx/nginx.conf"
from: "worker_processes auto"
to: "worker_processes 10"
Be aware that your block on post 2 is acting on the wrong file!