One of the interesting features of BTRFS is the dynamic snapshot generation, which grantees the possibility to have a perfect and immediate copy of a specific path.
Sometimes containers log a lot of things, and the logfile can become huge.
This happens because containers aren’t supposed to run for a long time but to be created/disposed regularly. Here’s how to fix this.
You have to instruct Docker, at launch, and tell how much you want the log file to grow before rotating and how many old logs you want to keep.
For example,
--log-opt max-size=50m --log-opt max-file=5
Sometimes servers can become unresponsive. Both physical and virtual, you may be unable to connect to them, especially when overloaded. So a watchdog can be a solution.
Hello everybody. This is the first of a series of tech posts. The idea behind this blog is to share some of the adventures I’ll be facing in the IT world.