alternative lock-ing strategie #2400
Unanswered
staabm
asked this question in
Help needed
Replies: 1 comment
-
Using lock files is the easiest lock implementation. Requiring some db for locks will significantly increase complexity of majorities of users. But you definitely use any lock mechanism. One simple solution for your case is: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
when deploying to multiple hosts things can easily get out of sync, because lock files get distributed across all hosts.
in the worst case, we get into a scenario where one of the hosts is locked while others are not.
I feel like it would be an improvement if we could get a single globl lock mechanism for all hosts.
either we can deploy or we can't.
this kind of scenario could be achieved e.g. using a redis based lock or similar.
do you think it would make sense to use some kind of lock-ing abstraction in deployer instead of the file-based locking we have right now?
e.g. https://github.com/php-lock/lock looks like a good fit
Beta Was this translation helpful? Give feedback.
All reactions