Open sts-ryan-holton opened 1 month ago
From the doc:
Deployer runs a task in parallel on each host. This is why the output is mixed. We can limit it to run only on one host at a time.
This should be the default. Are you saying this doesn’t work for you?
can you check -vvv?
It seems to take a long time. 41 minutes to deploy to around 20 - 25 hosts
Please try
dep deploy all -vvv
then you see wether it works parallel or not.
additionally, if something fails, then deployments to all hosts fail and are locked
This is a feature of Deployer ʕっ•ᴥ•ʔっ
Deployer tried to keep all deployment hosts in sync (as Deployer does not know if it is save to deploy only to one host and allow other to fail).
This feature was requested a few times and I think it will be nice to add a simple API to configure deploy to run deploys not in sync.
Right now you can do:
dep deploy host1 &
dep deploy host2 &
dep deploy host3 &
How do I know if parallel deploying is working with that flag?
@antonmedv It was working. Turned out I was looking at the wrong deployer version. Additionally though, linked to a newer Github issue. How can I deploy to one server in parallel model across many alias folders here:
$sites = ['site1', 'site2'];
// Site: Fudge
foreach ($sites as $site) {
host("ipv6/$site")
->set('labels', ['stage' => 'forms', 'site' => $site])
->set('repository', 'git@application-fudge:company/application-fudge')
->set('branch', 'feature/fudge_v2')
->set('remote_user', 'root')
->set('deploy_path', "/var/www/forms/fudge/$site");
}
I'm using the latest version of Deployer to deploy my Nuxt JS project to multiple ipv6 hosts. If I were to deploy one host individually, it wouldn't take no more than 5 minutes. But when defining multiple hosts, it seems that it deploys synchronously through each one, I'd like to be able to configure it to deploy to all at the same time because it takes over an hour right now, additionally, if something fails, then deployments to all hosts fail and are locked which is quite frustrating.
What are your thoughts?
This is my deployment hosts:
And I deploy running:
Upvote & Fund