mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
A Lambda extension's exec and the container's exit watcher each hold a Docker connection for the container's whole lifetime, and both still ran on the control-plane client. Enough warm containers, especially with extensions, could fill that pool and stall every create, start, stop and remove call, the failure the streaming split was made to prevent. Both now use the @StreamingDocker client. The exit watcher's inspect is a short call and stays on the control-plane client, with its retries. The streaming transport now replays a container wait that fails before the daemon answers, as the control-plane one does, so a stale socket does not spend one of the watcher's re-arms. Exec starts and log and attach streams are still never replayed. Each live Lambda container now holds its log follow, its exit watcher and one exec per extension on the streaming pool, so its default rises from 512 to 2048 to cover the 500 containers the runtime API port range allows with two extensions each. The control-plane default stays at 1024. Closes #2224