Mike
07/27/2018, 10:18 PMObtaining exclusive agent lock...
The second prisma instance can’t get the lock because there are 2 instances active and it crashes. Are there any plans to make prisma work with horizontal scaling? I understand that there are issues with using the cli-based prisma deploy
model because it will only deploy to one server, but you could adopt a master/slave model where one server handles the management API and the other one just serves requests. That’s pretty much what Kubernetes does. Also, you could allow us to use prisma without the prisma CLI by just building a docker image with all our data models already included and then handling migrations separately through a CLI (likely in a one-off container/dyno) similar to heroku run rake db:migrate
or docker exec -t rake db:migrate
. That’s a probably easier for the prisma team to implement and it’s a little more devops work for your users, but anyone who wants to scale horizontally in the first place probably won’t mind the extra work.divyendu
07/28/2018, 4:10 AMMike
08/01/2018, 4:29 PMObtaining exclusive agent lock...
that does exactly that. It obtains an exclusive lock on the DB and only one Prisma instance can have that lock. The second Prisma server will refuse to start if there’s already one running. That’s how Prisma’s code works today. I’d appreciate a serious response from someone on the Prisma team rather than you telling me something that’s just not true.divyendu
08/01/2018, 4:36 PMdivyendu
08/01/2018, 4:36 PMMike
08/01/2018, 4:59 PMdivyendu
08/01/2018, 5:02 PMMike
08/01/2018, 5:50 PMdivyendu
08/01/2018, 6:02 PMTeri
08/01/2018, 7:12 PMdivyendu
08/01/2018, 7:15 PMdivyendu
08/02/2018, 9:47 AM