Http workers stay in "invalid" status after ttl is reached #1668
-
Hello, I am having issues with Output from command This is the config that i am using: version: '3'
server:
command: "php public/index.php"
env:
- APP_RUNTIME: Baldinof\RoadRunnerBundle\Runtime\Runtime
- APP_ENV: prod
rpc:
listen: tcp://127.0.0.1:6001
http:
address: 0.0.0.0:80
middleware: [ "static", "gzip" ]
uploads:
forbid: [ ".php", ".exe", ".bat", ".sh" ]
static:
dir: "public"
forbid: [ ".php", ".htaccess" ]
pool:
num_workers: 12
debug: false
max_jobs: 100
supervisor:
watch_tick: 1s
ttl: 1800s
idle_ttl: 0s
max_worker_memory: 350
exec_ttl: 180s
status:
address: localhost:2114
logs:
mode: production
output: stderr
metrics:
address: "0.0.0.0:9180" Thanks for this wonderful project. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hey @Aleksa1996 👋🏻 |
Beta Was this translation helpful? Give feedback.
-
Wow, that answer speed, hello there :) In this Then i upgraded to this Here are the logs:
|
Beta Was this translation helpful? Give feedback.
-
Ive been playing a little with ttl option and this is what i discovered: Set ttl to 30s. When workers reach ttl (30 seconds), they go into invalid state and sit in invalid state until new request arrives. Im using docker with the following healthcheck:
Healthchecks are not passing because workers are in invalid state.
But when request arrives on |
Beta Was this translation helpful? Give feedback.
@Aleksa1996 Done: