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:
@@ -18,7 +18,7 @@ start on filesystem and started docker
|
|||||||
|
|
||||||
script
|
script
|
||||||
sleep 2 # give docker some time
|
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
|
end script
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
@@ -33,7 +33,7 @@ After=docker.service
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=dokku
|
User=dokku
|
||||||
ExecStart=$dokku_path ps:restore
|
ExecStart=$dokku_path ps:restore --parallel -1
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=docker.service
|
WantedBy=docker.service
|
||||||
|
|||||||
Reference in New Issue
Block a user