-
Notifications
You must be signed in to change notification settings - Fork 3
Maintenance
At some point after installing, you'll want to upgrade to a newer version of the Liquid bundle.
Watch out for breaking changes in the configuration by looking at the changelogs (tag messages) in:
cd /opt/cluster
git fetch
git checkout vX.Y.Z
# check for new settings in `examples/cluster.ini` and add them to `cluster.ini`
bin/docker.sh --rm --pull --image liquidinvestigations/cluster:X.Y.Z
# wait for services to be ready
docker exec cluster ./cluster.py wait
cd /opt/node
git fetch
git checkout vX.Y.Z
# check for new settings in `examples/liquid.ini` and add them to `liquid.ini`
./liquid deploy
To shut down the bundle, stop the cluster container, with a generous timeout:
docker stop -t 120 cluster
If Nomad isn't configured to drain jobs (or the drain operation fails) you may also need to kill all containers it left behind:
docker stop $(docker ps -qa)
Some Nomad versions require clearing the server data for upgrades. In those cases it's best to clear the docker system images too, using the following command sequence.
docker stop -t 120 cluster
docker stop $(docker ps -qa)
docker system prune --all --force --volumes
sudo rm -rf /opt/cluster/var/nomad
... and continue with deploying normally as described in the beginning of this article:
cd /opt/cluster
bin/docker.sh --rm --pull --image liquidinvestigations/cluster:X.Y.Z
docker exec cluster ./cluster.py wait
cd /opt/node
./liquid deploy
Note: if the docker system prune --all --force --volumes
command takes too long to finish, sudo systemctl restart docker
and re-run it.
run ./liquid backup [OPTIONS] $DIR
to back up the system.
Optional parameters to specify which parts of the system will be backed up:
--no-apps
: excludes app data from backup
--no-collections
: excludes collections from backup
--no-pg
: excludes collection databases from backup
--no-es
: excludes collection es snapshots from backup
--no-blobs
: excludes collection blobs (Binary Large OBjects) from backup
--collection $NAME
: backup specific collection
When no optional parameter is given, the whole system will be backed up.
Make sure a clean system is installed before starting with the restore process.
Restoring apps: ./liquid restore-apps $DIR
Restoring collections: ./liquid restore-all-collections $DIR
Note: The collections have to be disabled in the liquid.ini
to be restored. After the restore process is finished the collections have to be enabled in the liquid.ini
again to be accessible.
To finish the restore process run ./liquid deploy
.
Use the Admin FAQ for miscellaneous operating details and the Security page on how to keep a production system secure.
Report incomplete documentation by opening a new Issue in this repository.