Skip to content

Fix race condition in local_archive strategy on parallel deploys#4235

Open
rockschtar wants to merge 1 commit into
deployphp:masterfrom
rockschtar:fix/local-archive-race
Open

Fix race condition in local_archive strategy on parallel deploys#4235
rockschtar wants to merge 1 commit into
deployphp:masterfrom
rockschtar:fix/local-archive-race

Conversation

@rockschtar

Copy link
Copy Markdown

When deploying to multiple hosts in parallel, deploy:update_code runs once per host in its own worker, but all workers shared the same local archive file. The first host to finish unlinked it, so slower hosts failed with "No such file or directory"; a rebuild could also truncate an in-flight upload. Build the archive into a unique per-host file instead.

Refs #4232

When deploying to multiple hosts in parallel, deploy:update_code runs once
per host in its own worker, but all workers shared the same local archive
file. The first host to finish unlinked it, so slower hosts failed with
"No such file or directory"; a rebuild could also truncate an in-flight
upload. Build the archive into a unique per-host file instead.

Refs deployphp#4232
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant