
#AUTOPURGE ZOOKEEPER .OUT FILE CODE#
If that file does not exist, create it.Ĭonf_log4j_=10MBĬonf_log4j_=50 # max open filesĮxcept as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. Edit /opt/apigee/customer/application/zookeeper.properties to set theįollowing properties.To set the maximum file size and file count. ZooKeeper logs or that the logs are very large you can modify ZooKeeper's log4j properties Normally, logįile maintenance should not be required, but if you find that there are an excessive number of opt/apigee/apigee-service/bin/apigee-service apigee-zookeeper restartĪpache Zookeeper log files are kept in /opt/apigee/var/log/apache-zookeeper. Restart ZooKeeper by using the command:.Make sure the file is owned by the "apigee" user:Ĭhown apigee:apigee /opt/apigee/customer/application/zookeeper.properties.Set the following properties in zookeeper.properties:.Edit /opt/apigee/customer/application/zookeeper.properties.To set these properties to different values: # Set to "0" to disable auto purge feature. opt/apigee/apigee-zookeeper/conf/zoo.cfg control this process: # The number of snapshots to retain in dataDir: Which accumulate as updates to the system are made. Removing old snapshot filesĪpache ZooKeeper automatically performs periodic maintenance to remove old snapshot files

Details on the four-letter commands can be found in theĪpache ZooKeeper commands reference. Nc, telnet or another utility that has the ability to send commands to a

Apache ZooKeeper has a number of "four-letter commands" that can be helpful in determining theĬurrent status of ZooKeeper voter and observer nodes.
