zkCleanup.sh not added to the crontab
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hdp-zookeeper (Juju Charms Collection) |
Triaged
|
High
|
Charles Butler |
Bug Description
By default, zookeeper does not do any cleanup of its logs and snapshots. As a consequence, the data occupied by those files grows and fills in the filesystem.
On Sentiment Analysis, this crashes the machine in less than 3 days because the FS goes to 0% free.
However, zookeeper ships with a cleanup script called zkCleanup.sh. The administration guide recommends (in a very strong way) to use that script in a crontab, and says it's good to keep 3 snapshots permanently.
Part of the installation process should therefore be to add:
0 0 * * * /usr/lib/
to the crontab of the system (this would cleanup logs and snapshots once a day, and keep the last 3 files).
This is a blocker for production deployment.
Related branches
- amir sanjar: Pending requested
-
Diff: 99 lines (+31/-3)3 files modifiedhooks/common.py (+5/-0)
hooks/hooks.py (+16/-3)
tests/bundles.yaml.moved (+10/-0)
Changed in hdp-zookeeper (Juju Charms Collection): | |
importance: | Undecided → High |
assignee: | nobody → Charles Butler (lazypower) |
status: | New → Triaged |