How do you ship container logs to a central system?
IntermediateProductionResource Limits, Health & Reliability
Answer
Options: (1) node agent (Fluent Bit, Vector, Promtail, Filebeat) tailing json-file logs, the most robust; (2) logging driver (awslogs, fluentd, gelf) sending directly; (3) app-level shipping. We prefer agents because drivers can block the app when the endpoint is down unless mode: non-blocking is set.
More on Resource Limits, Health & Reliability
How do you set memory and CPU limits, and what happens when they are exceeded?BeginnerWhat is the difference between `--cpus`, `--cpu-shares` and `--cpuset-cpus`?BeginnerWhat does `--memory-reservation` do?AdvancedHow do you diagnose an OOM-killed container?IntermediateWhy do JVM and Node services in containers need explicit memory flags?IntermediateWhat is CPU throttling, and how do you detect it?Advanced