Aggregation Patterns (1) 1-level aggregation (2) 2-level aggregation pros: pros: simple configuration less connections cons: lower load for aggr. fixed aggr. address cons: many connections a bit more container high load for aggregator
Aggregation Patterns (1) 1-level aggregation (2) 2-level aggregation Apps sends logs there're some patterns. . over fluent-logger or . .
(1) Network transferring Apps sends logs: app > using fluent-logger-* > over TCP over inter-container network Pros: > no performance penalty Cons: > logs of docker is out of scope > a bit complex apps for logging
(2) Container logger & tail app Apps write logs to STDOUT: > docker writes it to log file > fluentd container reads file log file Pros: > simple conf for apps & docker > logs include container logs Cons: > in_tail performance penalty http://www.fluentd.org/guides/recipes/docker-logging