juju, zookeeper, and disk usage

Bug #1069597 reported by Haw Loeung
This bug affects 4 people
Affects Status Importance Assigned to Milestone

Bug Description


Seems that ZooKeeper does not remove old snapshots and logs by default[1]. Would it be possible to periodically run /usr/share/zookeeper/bin/zkPurgeTxnLog.sh and also rotate the juju logs to help prevent the ZooKeeper instance from running out of disk space?



[1] http://zookeeper.apache.org/doc/r3.3.1/zookeeperAdmin.html#Ongoing+Data+Directory+Cleanup

Haw Loeung (hloeung)
tags: added: canonical-juju
tags: added: canonical-webops-juju
removed: canonical-juju
Changed in juju:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
James Page (james-page) wrote :

Does juju use the stock ubuntu packages for zookeeper?

If so a daily crontab should be installed which purges the tx log - sounds like this might be sufficient.

Revision history for this message
James Page (james-page) wrote :

Just to qualify that - the zookeeper package should be installing the crontab :-)

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Correct, the ubuntu package does install the cron job and sets it up to run daily.

Revision history for this message
Kapil Thangavelu (hazmat) wrote :

the move to zk 3.4 will resolve this as zk takes care of its own logs then.

Changed in juju:
milestone: none → 0.8
Curtis Hovey (sinzui)
Changed in juju:
status: Confirmed → Triaged
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.