Skip to main content
Version: 10.2.9

Migrate ZooKeeper datalog directory

The page guides you on migrating a ZooKeeper datalog directory to a dedicated storage for the existing Work.AI clusters. Having a dedicated disk device significantly impacts the throughput and stable latencies under high disk load and improves the product's overall stability.

The recommended storage device is an SSD disk with at least 10 GB of free space.

By default, INSTALL_DIR is set to /opt/workfusion/ on the Master server. Note that you have to execute the following commands on the same server as well.

To migrate the ZooKeeper datalog directory, follow the steps below:

  1. Connect an SSD disk to the Master server.

  2. Stop all services:

    ./install.sh stop_services full
  3. Back up the content of the datalog directory:

    mkdir -p /INSTALL_DIR/zookeeper/datalogbackup
    cp -a /INSTALL_DIR/zookeeper/datalog/. /INSTALL_DIR/zookeeper/datalogbackup/
  4. Clear the datalog directory:

    rm -r /INSTALL_DIR/zookeeper/datalog/*
  5. Mount the new partition to the datalog directory. See the instruction for more information.

  6. Set the application user as an owner of the datalog directory.

    chown -R WFUSER:WFUSER /INSTALL_DIR/zookeeper/datalog
  7. Copy the backup files back to the datalog directory:

    cp -a /INSTALL_DIR/zookeeper/datalogbackup/. /INSTALL_DIR/zookeeper/datalog/
  8. Start the services:

    ./install.sh start_services full