mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 09:22:49 -05:00
docs(docker): clarify local cache retention on GELF overflow (#9323)
Overflow of the GELF delivery buffer drops lines from the live console and CloudWatch Logs streams only. Docker still writes them to the local dual-log copy, so docker logs, the RDS log-file APIs and the polling fallback can read them while they remain there. log-max-size and log-max-file bound that copy, not the delivery buffer.
This commit is contained in:
1 parent
73aa27f2aa
commit
365bad3dde
1 file changed
+1
-1
@@ -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.
|
||||
|
||||
|
||||
Reference in new issue
Block a user