Skip to main content

Maintaining a Service Locator

The Service Locator continually saves znode snapshot files and, optionally, transactional logs in a Data Directory to enable you to recover data. It is a good idea to back up the Service Locator data directory periodically. Although the Service Locator is highly reliable due to persistent copies being replicated on each server, recovering from backups may be necessary in cases of catastrophic failure.

The Service Locator server does not remove snapshots and log files, so they will accumulate over time. This directory will need to be cleaned up periodically based on your backup schedules and processes. To help automate a cleanup, a zkCleanup.sh script is provided in the bin directory. Modify this script as necessary for your situation. In general, you will want to run this as a cron task based on your backup schedule.

The data directory is specified by the dataDir parameter in the Service Locator server configuration file, and the data log directory is specified by the dataLogDir parameter. For more information, see Ongoing Data Directory Cleanup.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!