Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Auto Purge behavior of Zookeeper #18

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

mikewchicago13
Copy link

Zookeeper 3.4.0 added two settings for automatically purging snapshots and transaction log files after a specified interval. I have found it necessary to use these settings to enable Zookeeper to stay running without running out of disk space.

Mike Weliczko added 14 commits December 17, 2015 08:47
…tar.gz now gives an HTTP 404 Not Found. Upgrading to 3.4.7
… can debug exactly what is failing"

This reverts commit 4797d2b.
…hat actually is being changed to see if it takes effect because I changed the new two settings, but it was not reflected in zoo.cfg

$ docker exec zookeeper1 cat //opt/exhibitor/defaults.conf
zookeeper-data-directory=/opt/zookeeper/snapshots
zookeeper-install-directory=/opt/zookeeper
zookeeper-log-directory=/opt/zookeeper/transactions
log-index-directory=/opt/zookeeper/transactions
cleanup-period-ms=300000
check-ms=30000
backup-period-ms=600000
client-port=2181
cleanup-max-files=20
backup-max-store-ms=21600000
connect-port=2888
observer-threshold=0
election-port=3888
zoo-cfg-extra=tickTime\=2000&initLimit\=10&syncLimit\=5&quorumListenOnAllIPs\=true&autopurge.snapRetainCount\=4&autopurge.purgeInterval\=17
auto-manage-instances-settling-period-ms=0
auto-manage-instances=1
auto-manage-instances-fixed-ensemble-size=0
backup-extra=throttle\=&bucket-name\=run-local-bucket-2015-12-17-10-31-02&key-prefix\=cluster-prefix-2015-12-17-10-31-02&max-retries\=4&retry-sleep-ms\=30000

$ docker exec zookeeper1 cat //opt/zookeeper/conf/zoo.cfg
#Auto-generated by Exhibitor - Thu Dec 17 16:33:45 UTC 2015
#Thu Dec 17 16:33:45 UTC 2015
autopurge.purgeInterval=1
server.1=192.168.99.101\:2888\:3888
initLimit=10
syncLimit=5
autopurge.snapRetainCount=5
clientPort=2181
tickTime=2000
quorumListenOnAllIPs=true
dataDir=/opt/zookeeper/snapshots
dataLogDir=/opt/zookeeper/transactions
…-extra that actually is being changed to see if it takes effect because I changed the new two settings, but it was not reflected in zoo.cfg"

This reverts commit d294ac4.
lamdor pushed a commit to Banno/docker-zk-exhibitor that referenced this pull request Jan 8, 2016
mbabineau#18 for upgrading
zk to 3.4.7 and enable new autopurge configurations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant