Repository navigation
Large volume copies on spinning disks
This release fixes updates that rolled back while copying a large volume on spinning disks.
Not proven on the bench
The volumes of the bench are too small to show the problem. The fix will be checked on the machine where it happened.
What is fixed
A copy reported as failed while it was being written to disk
Before an update, Palier copies the data of the services it changes. On a machine with a lot of memory, the copy of a few gigabytes went to the page cache and finished in seconds. Docker then wrote it to disk while it removed the copy container, and stopped answering about that container in the meantime. On spinning disks this took more than a minute, and Palier stopped the update with:
copying gitlab (/var/opt/gitlab): Get "http://docker/containers/…/json": net/http: timeout awaiting response headers
then rolled the stack back. The copy and the restore now write everything to disk before their container exits. Palier keeps following the copy while it does, and the copy is on disk before the update starts.