mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(docker): use non-blocking GELF delivery (#9317)
Docker's GELF driver now runs in non-blocking mode, so a listener outage no longer blocks a container's log writes or skips the daemon's local log copy. docker.md describes the default 1 MB delivery buffer and the live console and CloudWatch Logs loss once it fills. Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
This commit is contained in:
1 parent
99fa7b404e
commit
d57fceb434
3 files changed
+5
No files matched your search
@@ -121,6 +121,8 @@ class GelfLogListenerTest {
|
||||
LogConfig logConfig = listener.logConfigFor("token-a", ROTATION);
|
||||
assertEquals(LogConfig.LoggingType.GELF, logConfig.getType());
|
||||
assertEquals("token-a", logConfig.getConfig().get("tag"));
|
||||
assertEquals("non-blocking", logConfig.getConfig().get("mode"),
|
||||
"failed GELF delivery must not skip the daemon's local copy");
|
||||
assertEquals("10m", logConfig.getConfig().get("cache-max-size"), "the rotation bounds the daemon's copy");
|
||||
assertEquals("3", logConfig.getConfig().get("cache-max-file"));
|
||||
String address = logConfig.getConfig().get("gelf-address");
|
||||
|
||||
Reference in new issue
Block a user