When are connections to the cluster available during the moving of a branch?

For several minutes the branches are moving to a newly provisioned cluster. When are new connections to the branch made to the cluster?
30 Replies
tsg
tsg3w ago
hi, looking into it now I see the branch move error out, I'm going to cancel it for now as it might be a transient issue
Michael Schaufelberger
could it be a version mismatch? i accidentally provisioned the cluster 1 minor version below what the shared cluster has
tsg
tsg3w ago
for now the error is a connectivity issue, like at networking level. I'm checking if it's maybe something transient or a mis-configuraion on our side
Michael Schaufelberger
The goal is to scale more since we went live and ran into scalability issues due to max concurrent connections.
tsg
tsg3w ago
aha, let me then see if I can increase that temporarily for you on the shared cluster, while we figure this out one sec
Michael Schaufelberger
thank you! the affected branch is called "main"
tsg
tsg3w ago
and dbname is partner-tool, right?
Damiano
Damiano3w ago
Yes, that's correct.
tsg
tsg3w ago
do you have a rough idea of how many connection you'd need? Also double checking: you are hitting an issue with the connections over the wire protocol, not the concurrency limit over the API, correct?
Michael Schaufelberger
the problem is, with vercel we have no idea how many serverless functions are actually created. yes, we are directly connecting over tcp.
tsg
tsg3w ago
ok, I've increased it to 50, let me know if that seems to help from vercel it might be better to use our SQL over HTTP proxy for this reason
Michael Schaufelberger
we have also reduced the pg pooling "max" setting from 5 to 3. the problem is, we are frequently using transactions where we run code in between (drizzle-orm)
tsg
tsg3w ago
I see, gotcha
Michael Schaufelberger
this is something we cannot currently do over http afaik
tsg
tsg3w ago
yes, that's correct ok, then let's see if 50 helps, in the meantime we'll see what went wrong with the branch move let me know what you see on your side
Want results from more Discord servers?
Add your server