Migrate Elasticsearch data directory
This page guides you on migrating the Elasticsearch data directory to dedicated storage for existing IA Cloud Enterprise 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 100 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 Elasticsearch's data directory:
Connect an SSD disk to the Master server.
Stop all services:
./install.sh stop_services fullBack up the content of the data directory:
mkdir -p /INSTALL_DIR/elasticsearch/databackup cp -a /INSTALL_DIR/elasticsearch/data/. /INSTALL_DIR/elasticsearch/databackup/Clear the data directory:
rm -r /INSTALL_DIR/elasticsearch/data/*Mount the new partition to the data directory. See the instruction for more information.
Set the application user as an owner of the data directory.
chown -R WFUSER:WFUSER /INSTALL_DIR/elasticsearch/dataCopy the backup files back to the datalog directory:
cp -a /INSTALL_DIR/elasticsearch/databackup/. /INSTALL_DIR/elasticsearch/data/Start the services:
./install.sh start_services full