diff --git a/docs/configuration/docker.md b/docs/configuration/docker.md index d26df89531..eac660a19b 100644 --- a/docs/configuration/docker.md +++ b/docs/configuration/docker.md @@ -260,7 +260,7 @@ Docker opens that connection itself, from wherever the daemon runs, so the mode The daemon's local copy of the log (dual logging, on by default since Docker Engine 20.10) is what `docker logs`, the RDS log-file APIs and the fallback below read, so keep it on; `log-max-size` and `log-max-file` bound it. -GELF delivery uses Docker's non-blocking mode so a listener outage does not block application log writes. Its per-container delivery buffer uses Docker's default size of `1m` (1 MB). When that buffer fills, Docker drops new messages: the live console and CloudWatch Logs streams are not lossless under sustained backpressure. Increasing the buffer only delays overflow. The local dual-log copy and polling fallback do not guarantee recovery of messages dropped before delivery, and `log-max-size` and `log-max-file` control local rotation, not this delivery buffer. +GELF delivery uses Docker's non-blocking mode so a listener outage does not block application log writes. Its per-container delivery buffer uses Docker's default size of `1m` (1 MB). When that buffer fills, Docker drops new messages: the live console and CloudWatch Logs streams are not lossless under sustained backpressure. Increasing the buffer only delays overflow. Overflow of the GELF delivery buffer does not discard the local dual-log copy: `docker logs`, the RDS log-file APIs and the polling fallback can still read those lines while they remain in the local cache. `log-max-size` and `log-max-file` control local rotation, not this delivery buffer. Docker keeps the listener's address in each container's log configuration and dials it every time the container starts, so the listener takes a fixed port, `log-driver-port` (12201, GELF's standard port), and Floci opens it before it starts any container. A stopped container that Floci adopts after a restart therefore starts again. The port must be free on Floci's host. A container created with another `log-driver-port` or `log-driver-host` keeps dialing the old address: Floci reads its log on a timer from the local copy and logs a warning, and once stopped it starts again only after the setting is restored or the resource is recreated.