Open rdmpage opened 5 years ago
Attempted solution:
Open shell at Bitnami
Use top
to get PID of log rotate
sudo kill <pid>
sudo nice -n12 find /opt/bitnami/couchdb/var/log/couchdb -name couchdb.stderr-*.gz -delete
to delete all the log files
sudo nano /opt/bitnami/config/logrotate/logrotate.d/couchdb.conf
to edit the config file replacing 150 with 20:
/opt/bitnami/couchdb/var/log/couchdb/couchdb.* {
weekly
rotate 150
dateext
compress
copytruncate
missingok
}
sudo monit reload
The CouchDB instance running on Google's Cloud (via Bitnami) will regularly show 100% CPU usage. This appears to be a Bitnami bug, see https://community.bitnami.com/t/logrotate-creating-masses-of-couchdb-stderr-20160911-gz-files-leading-to-100-cpu/46849 and https://community.bitnami.com/t/default-configuration-for-couchdb-logrotate-incorrect/56196