[mysqld] # ── Connection-log noise ──────────────────────────────────────────────────────────────────── # PHP/Laravel closes DB connections WITHOUT the MySQL COM_QUIT handshake whenever a long-lived # worker (queue:work / schedule:work / reverb:start) is recycled, a php-fpm worker is retired, or # a container restarts. MariaDB records each such disconnect as # [Warning] Aborted connection ... (Got an error/timeout reading communication packets) # but ONLY at log_warnings >= 2 (the image default). These are protocol-normal — here ~2/day with # a non-persistent PDO pool and no connection leak — not a fault. Drop to level 1 so genuine errors # still log while the expected-disconnect noise stops. (The DB is bound to the internal network # only, so dropping the level-2 access-denied notes carries no real exposure.) log_warnings = 1 # Give a momentarily-stalled read on a long-lived worker connection more slack before the server # aborts it, which further reduces the "timeout reading communication packets" variant. Job runtime # is already bounded by `queue:work --timeout=90`, so this only affects idle/stall tolerance. net_read_timeout = 120