Allocate Timeout
RoadRunner allocates workers like regular processes (via fork + exec syscalls). While RoadRunner is creating a worker (connecting to pipes, TCP, etc.), part of the worker may freeze during the initial handshake. RoadRunner waits pool.allocate_timeout for the handshake to complete and returns this error if pool.allocate_timeout is exceeded.
How to fix that?
Check the
pool.allocate_timeoutoption. It should be in the formpool.allocate_timeout: 1sorpool.allocate_timeout: 1h; always specify units. Also note that1smight be too small—try increasing it.xdebugmight freeze the worker spawn while improperly configured. See this tutorial: linkIf you use a server relay other than
pipes, check these options. They control the initial handshake timeout between RR and the PHP process when usingsocketsorTCP.
What is allocate_timeout pool option?
allocate_timeout pool option?The pool.allocate_timeout controls two things in RoadRunner: first, the timeout to allocate a PHP worker when RoadRunner starts (initializing workers); second, the timeout to take a worker from the internal worker container when a request arrives.
Last updated
Was this helpful?