When deploying Drupal app into 2 instances (apache), DB update has "Racing condition" as "drush updatedb" command runs in both servers

0

Hello

I have an Drupal app. There is an command

 drush updatedb 

in a post-deploy script (with other commands as well).

If I deploy the app into a single instance (of a LB), it is all fine

However if I have two instances (both of them are connected to a db) and run the deployment, I found that there is a race condition of that command in both instances causing the deployment failure

Is there a way to avoid this race condition. I could create just one instance, deploy the app then increase the instances to 2? However, it does not prevent the issue in the future

Many thanks

son
질문됨 2달 전183회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠