Trevor Dilley
08/01/2022, 10:45 PMprisma migrate deploy as one of the first commands during a load balanced deployment (Say AWS ECS with multiple servers) will the multiple servers stomp on each other when deploying to the same database?
In the past I think a Java dev mentioned Flywheel is able to manage migrations on LoadBalanced fleets, so I'm curious if I need a separate pipeline step to deploy migrations before updating servers, or will the first server to come up manage the migration and the other servers will wait for it to complete? Thanks!Nurul
08/02/2022, 8:15 AMprisma migrate deploy
This safeguard ensures that multiple commands cannot run at the same time - for example, if you merge two pull requests in quick succession.
Advisory locking has a 10 second timeout (not configurable), and uses the default advisory locking mechanism available in the underlying provider.Trevor Dilley
08/02/2022, 5:51 PMprisma migrate deploy and it's run at the same time by 3 servers, assuming nothing weird like a 10 second delay, then only one server will apply the migration? (Also thanks for responding!)Nurul
08/03/2022, 7:52 AM