Controller mongodb logs aren't rotated
Bug #1997192 reported by
Barry Price
This bug affects 10 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Committed
|
High
|
Caner Derici |
Bug Description
Modern Juju ships the mongo component as a snap.
But it doesn't look like any kind of logrotate config is set up by default.
I recently came across a Juju 2.9.32 HA controller unit (amd64, running Ubuntu 20.04) with a 71GB mongodb.log:
ubuntu@
total 75G
-rw------- 1 root root 71G Nov 20 16:01 mongodb.log
ubuntu@
Ideally these would be automatically rotated and compressed.
This is with the current latest/stable juju-db snap at time of writing:
latest/stable: 4.0.27 2021-10-07 (83) 64MB -
tags: | added: canonical-is |
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
Changed in juju: | |
status: | Triaged → New |
importance: | Wishlist → High |
Changed in juju: | |
status: | New → In Progress |
Changed in juju: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
There is a work-around available since this patch landed: /github. com/juju/ juju/pull/ 14285
https:/
kill -SIGUSR1 <PID for juju-db>