deploy-rs icon indicating copy to clipboard operation
deploy-rs copied to clipboard

Parallel Deploys

Open lovesegfault opened this issue 3 years ago • 4 comments

Would you consider allowing deploy-rs to deploy to multiple nodes simultaneously?

I wanted to attempt implementing that, but figured I'd check before so as not to end up wasting time.

lovesegfault avatar Jan 09 '21 07:01 lovesegfault

Absolutely, but one thing to bare in mind is I would one day like to support deploying multiple profiles to the same node, which will require doing away with our profilesOrder attribute in favor of a dependency map.

I'm not suggesting you go through that hard work too (though I would obviously appreciate it), but if it ends up being relevant, if you could make your logic not too hard to develop into supporting paralell profile deployment that would make it easier for me in the future.

notgne2 avatar Jan 11 '21 06:01 notgne2

I've been playing with tokio threads lately so if the author would still like to start on this or has already please share and I'll try to help :smile:

This would really be an infinitely scalable solution for large deployments.

To @notgne2's point, I really don't think a simple implementation of proper profile dependency structure would be horribly difficult with the right mindshare :)

nrdxp avatar Aug 21 '21 00:08 nrdxp

I've also been playing around with tokio a bunch and would be interested in helping.

DieracDelta avatar Aug 26 '21 14:08 DieracDelta

I think a nice idea would be building in parallel (as this is the most work-intensive part) and deploying in serial to ensure low down times and some degree of determinism.

jzbor avatar Sep 09 '23 16:09 jzbor