ConductScience Sequences
Contents

Installation guide · Records and upkeep

Upgrades

Change the image, and keep the data volume and settings as they are.

The data volume and /etc/sequences stay as they are. Only the image changes. Back up first (see Backups), and upgrade when no searches are running, because stopping the service cancels them:

docker load -i sequences-<new version>.tar
docker run --rm conductscience/sequences:<new version> versions
docker stop sequences
docker rm sequences

Then start it with the same docker run command as before and the new version. Keep the previous image until you have checked the new one. The release notes list what each release changed.

Searches that docker stop cancels show as cancelled, and people can start them again. Searches a program sent in a batch are cancelled the same way, and the batch shows them as cancelled, so the program can send those again.

With several servers, upgrade them all together, since a coordinator refuses a worker of another release. Load the new image on every host, then:

  1. Drain each worker, then stop and remove it. See Drain and stop a worker.
  2. Stop and remove the coordinator.
  3. Start the coordinator with the new version, then the workers.

The coordinator's searches of a snapshot keep their place through the upgrade, and one it ran itself starts again. The workers take them once they join. Its other work is cancelled at its stop, as on a single server.

Only one service may use a data volume at a time, and it holds a lock (.lock) on the volume while it runs. A service that stops cleanly releases the lock at once. After a crash, the old container's lock expires 30 seconds after its last renewal. A new container waits for that, up to 50 seconds, then starts.

Guide version 1.63.0 · For Sequences 0.155.0