Add log rotation

Bug #1839403 reported by Haw Loeung
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Discourse Charm
Confirmed
Medium
Unassigned

Bug Description

Hi,

| app-path: /srv/discourse/current

| ubuntu@juju-f9feab-prod-community-ubuntu-com-8:/srv/discourse/current/log$ ls -la
| total 9516356
| drwxr-xr-x 2 www-data www-data 4096 Dec 11 2018 .
| drwxr-xr-x 21 www-data www-data 4096 Oct 21 2017 ..
| -rw-r--r-- 1 www-data www-data 0 Oct 21 2017 .gitkeep
| -rw-r--r-- 1 www-data www-data 9521394490 Aug 8 03:24 production.log
| -rw-r--r-- 1 www-data www-data 223244171 Aug 8 03:21 unicorn.stderr.log
| -rw-r--r-- 1 www-data www-data 85986 Oct 23 2017 unicorn.stdout.log

The charm should ship out a logrotate config to rotate these logs.

Tom Haddon (mthaddon)
Changed in discourse-charm:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Junien Fridrick (axino) wrote :

Related :

https://yhbt.net/unicorn/SIGNALS.html (credits @jk0ne) : "USR1 - reopen all logs owned by the master and all workers See Unicorn::Util.reopen_logs for what is considered a log."

https://github.com/discourse/discourse/blob/master/config/logrotate.conf (not super helpful...)

Worst case, we could use the "copytruncate" logrotate stanza.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.