feat: run ps:restore in parallel by default

This will speed up restores in cases where app containers disappear on reboot or have new IPs, which primarily impacts the docker-local scheduler in conjunction with nginx.

Closes #4967
This commit is contained in:
Jose Diaz-Gonzalez
2023-10-15 03:34:16 -04:00
parent fe6a0f796e
commit ab8a957786

View File

@@ -18,7 +18,7 @@ start on filesystem and started docker
script
sleep 2 # give docker some time
sudo -i -u dokku $dokku_path ps:restore
sudo -i -u dokku $dokku_path ps:restore --parallel -1
end script
EOF
fi
@@ -33,7 +33,7 @@ After=docker.service
[Service]
Type=simple
User=dokku
ExecStart=$dokku_path ps:restore
ExecStart=$dokku_path ps:restore --parallel -1
[Install]
WantedBy=docker.service