R
Railwayβ€’12mo ago
Harris

Setting up PgBouncer

hey everyone! I'm currently in the process of setting up PgBouncer for my postgres. I cloned https://railway.app/template/L09YMd and modified it to support PRIVATE_DATABASE_URL and have gotten it to stand up, but have a few questions. 1.) It says it's listening to 0.0.0.0:6432, but the Dockerfile says expose 5432 (postgres). Do I need to change any of these to PORT for Railway networking to work? I need to be able to create a connection string for my prisma clients in NextJS Serverless functions to use 2.) Do I only need 1 replica of pgbouncer? Based on my understanding it consumes all available connections to postgres and pools them together, so having multiple replicas wouldn't make sense right? 3.) For my long running applications (10 replicas of Bun, should I bypass pgbouncer and connect directly to the postgres via private network?) I think I need to carve out those connections so they're not consumed by PgBouncer?
No description
No description
No description
225 Replies
Percy
Percyβ€’12mo ago
Project ID: f0b123dd-49d4-4bfc-b063-9a5238f876ef
Harris
HarrisOPβ€’12mo ago
Railway
404 - Page not found
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
Harris
HarrisOPβ€’12mo ago
hmmm
Harris
HarrisOPβ€’12mo ago
Prisma
YouTube
Prisma Accelerate: One THOUSAND Times Faster Database Queries!
Discover the power of Prisma Accelerate, now available to everyone! In this video, we explore how Prisma Accelerate simplifies connection pooling and data caching, making your database operations faster and more efficient. Learn how to boost your application's performance effortlessly with Prisma Accelerate's easy-to-use features. Prisma Accel...
Harris
HarrisOPβ€’12mo ago
prisma accelerate looks nice and handles connection pooling might be worth to just use that and have it in the same region
Brody
Brodyβ€’12mo ago
It says it's listening to 0.0.0.0:6432, but the Dockerfile says expose 5432 (postgres). Do I need to change any of these to PORT for Railway networking to work? I need to be able to create a connection string for my prisma clients in NextJS Serverless functions to use
i dont know what exactly you would need to change / add to make it work, but you would need to do some modification as the template is not uh perfect for lack of a better word
Do I only need 1 replica of pgbouncer? Based on my understanding it consumes all available connections to postgres and pools them together, so having multiple replicas wouldn't make sense right?
makes sense, though its not like ive used pgbouncer before
For my long running applications (10 replicas of Bun, should I bypass pgbouncer and connect directly to the postgres via private network?) I think I need to carve out those connections so they're not consumed by PgBouncer?
im not sure the best way to go about this tbh
Harris
HarrisOPβ€’12mo ago
@Brody is there a good resource to read about PORT that railway adds? I think the docker container by itself tries to expose the main postgres port 5432 to act like a passthrough for the postgres that it connects to
Brody
Brodyβ€’12mo ago
if you dont set a PORT yourself, railway will set a random one for you, not all that much to read about
Harris
HarrisOPβ€’12mo ago
well I don't think it's getting used by the pgbouncer container rn
Brody
Brodyβ€’12mo ago
the EXPOSE keyword in a dockerfile does not actually expose anything, its mearly to say "hey this docker container likely has an app running on x port"
Harris
HarrisOPβ€’12mo ago
ah true forgot
Brody
Brodyβ€’12mo ago
pgbouncer would use tcp connections right?
Harris
HarrisOPβ€’12mo ago
i don't know
Harris
HarrisOPβ€’12mo ago
No description
Harris
HarrisOPβ€’12mo ago
am a little confused because the ini file says port 6432
Harris
HarrisOPβ€’12mo ago
No description
Harris
HarrisOPβ€’12mo ago
but it obviously intends to use 5432
Harris
HarrisOPβ€’12mo ago
No description
Harris
HarrisOPβ€’12mo ago
am currently watching https://www.youtube.com/watch?v=tsOHw2T1HvI to learn more
Prisma
YouTube
Deploying a Prisma app to Vercel and setting up connection pooling ...
In this video, Daniel shows how to deploy a Prisma app to Vercel and connect it to a PostgreSQL database in DigitalOcean, set up connection pooling with PgBouncer, and load test the API with K6. 00:00 - Intro 02:00 - Exploring the REST API 05:50 - Creating the PostgreSQL database in DigitalOcean 07:20 - Setting up PgBouncer in DigitalOcean 09:...
Brody
Brodyβ€’12mo ago
for all intensive purposes, you can ignore EXPOSE for tcp, the PORT variable is irrelevant, as you just set the tcp proxy up with what port the apps does listen on
Harris
HarrisOPβ€’12mo ago
what is PORT for then?
Brody
Brodyβ€’12mo ago
http apps
Harris
HarrisOPβ€’12mo ago
oh i see for anything that needs 443?
Brody
Brodyβ€’12mo ago
for anything http
Harris
HarrisOPβ€’12mo ago
gotcha so ignore port for now then
Brody
Brodyβ€’12mo ago
yes, does pgbouncer have a tcp proxy?
Harris
HarrisOPβ€’12mo ago
not sure never knew what pgbouncer really was till today
Brody
Brodyβ€’12mo ago
pgbouncer does indeed use tcp, same as postgres itself, give this a quick read https://docs.railway.app/deploy/exposing-your-app#tcp-proxying
Harris
HarrisOPβ€’12mo ago
ahhh wait so I wouldn't create a domain for it?
Brody
Brodyβ€’12mo ago
nope, domains are for http
Harris
HarrisOPβ€’12mo ago
gotcha can the tcp proxy support production loads? maybe i'm confusing it with the generated domain limitations
Brody
Brodyβ€’12mo ago
the domains are only for http traffic, pgbouncer uses tcp
Harris
HarrisOPβ€’12mo ago
i see that makes sense ok, now need to figure out why pgbouncer is listening to 6432 rather than 5432 @Brody can applications only have 1 proxy?
Brody
Brodyβ€’12mo ago
thats correct public at least, the private network has no such limitations, with the private network there is no proxy or firewall on the services what so ever
Harris
HarrisOPβ€’12mo ago
and I should be able to connect over monorail.proxy.rlwy.net? publically
Brody
Brodyβ€’12mo ago
if you set it up right, yes
Harris
HarrisOPβ€’12mo ago
am trying to connect to the db through pgbouncer but not having any luck hmm know why hehe one second ok, I'm able to connect to the database directly now going to try to connect via pgbouncer
Brody
Brodyβ€’12mo ago
haha dont make me fix the template
No description
Harris
HarrisOPβ€’12mo ago
πŸ‘€ fix how
Harris
HarrisOPβ€’12mo ago
No description
Harris
HarrisOPβ€’12mo ago
ok can confirm am not able to connect hmm
Brody
Brodyβ€’12mo ago
you seem to be doing a lot of messing about, templates should be usable out of the gate this template is clearly not
Harris
HarrisOPβ€’12mo ago
the main thing was that it didn't work with DATABASE_PRIVATE_URL also I didn't use the template, I cloned it and then added it to my project
Brody
Brodyβ€’12mo ago
it doesnt have one lol
Harris
HarrisOPβ€’12mo ago
ik, that's why I had to modify it cause i want it to use private network
Brody
Brodyβ€’12mo ago
why didnt you just deploy it into your project and add whats missing after the fact, i know not ideal but thats the best flow
Harris
HarrisOPβ€’12mo ago
i had to change the code
Brody
Brodyβ€’12mo ago
why?
Harris
HarrisOPβ€’12mo ago
because it doesn't read DATABASE_PRIVATE_URL in the script at all
Harris
HarrisOPβ€’12mo ago
No description
Harris
HarrisOPβ€’12mo ago
had to change this section of the sh script
Brody
Brodyβ€’12mo ago
dont think it needs to
Harris
HarrisOPβ€’12mo ago
for it to use private networking it does, right?
Brody
Brodyβ€’12mo ago
eh not really
Harris
HarrisOPβ€’12mo ago
i mean i could make variables but i thought i had to keep it as a refernce variable in case it updates
Brody
Brodyβ€’12mo ago
you can do both let me test
Harris
HarrisOPβ€’12mo ago
also his parsing code wasn't quite right it doesn't parse postgres.railway.internal as a proper host
Brody
Brodyβ€’12mo ago
why do you need to lol
Harris
HarrisOPβ€’12mo ago
because I want pgbouncer to use the private network when connecting to postgres? i'm really confused what you mean lol i don't want it to connect over tcp proxy
Brody
Brodyβ€’12mo ago
im stalling in hopes it will click
Brody
Brodyβ€’12mo ago
No description
Brody
Brodyβ€’12mo ago
Harris
HarrisOPβ€’12mo ago
i think that'd work assuming it bypasses the parsing code
Brody
Brodyβ€’12mo ago
i dont even know what any of that code does, or why its needed overcomplicating it
Harris
HarrisOPβ€’12mo ago
it creates the pgbouncer ini
Brody
Brodyβ€’12mo ago
yeah i get that part
Harris
HarrisOPβ€’12mo ago
No description
Harris
HarrisOPβ€’12mo ago
the code above it was to handle if it got a database_url instead of the 5 split out variables
Harris
HarrisOPβ€’12mo ago
No description
Brody
Brodyβ€’12mo ago
dont see why ^
Harris
HarrisOPβ€’12mo ago
hmm true i can go back and change it to your way so i don't need my own repo but also doesn't quite fix the deployment issue i can't seem to connect to pgbouncer sadcat sure why, it looks like it stood up properly
Brody
Brodyβ€’12mo ago
railway clones the repo so you have your own repo regardless lmao
Harris
HarrisOPβ€’12mo ago
fair enough lol
Brody
Brodyβ€’12mo ago
i think it would be cool to have an option to not clone still testing stuff tho
Harris
HarrisOPβ€’12mo ago
oh hmm i overcomplicated this huh this thing looks fully modifable via env variables is this how you do reference variables to other services?
Harris
HarrisOPβ€’12mo ago
No description
Brody
Brodyβ€’12mo ago
yep, these are ref variables
Harris
HarrisOPβ€’12mo ago
why Postgres.5432?
Brody
Brodyβ€’12mo ago
haha typo, should have just been 5432
Harris
HarrisOPβ€’12mo ago
oh wait can you not deploy templates into existing projects?
Brody
Brodyβ€’12mo ago
i think youre running into a bug there leave beta
Harris
HarrisOPβ€’12mo ago
how?
Brody
Brodyβ€’12mo ago
No description
Brody
Brodyβ€’12mo ago
ctrl / cmd + k
Harris
HarrisOPβ€’12mo ago
all good, already redeployed it in my project can u send me this raw real quick please
Brody
Brodyβ€’12mo ago
haha its long gone
Harris
HarrisOPβ€’12mo ago
no worries
Harris
HarrisOPβ€’12mo ago
No description
Brody
Brodyβ€’12mo ago
lmfao that works too
Harris
HarrisOPβ€’12mo ago
No description
Brody
Brodyβ€’12mo ago
missed the dollar signs tho
Harris
HarrisOPβ€’12mo ago
where does railway private domain come from u added?
Brody
Brodyβ€’12mo ago
its a variables thats automatically available https://docs.railway.app/develop/variables#railway-provided-variables
Harris
HarrisOPβ€’12mo ago
interesting so that would return postgres.railway.internal
Brody
Brodyβ€’12mo ago
indeed
Harris
HarrisOPβ€’12mo ago
cool alrighty, redeploying
Harris
HarrisOPβ€’12mo ago
No description
Harris
HarrisOPβ€’12mo ago
cool worked first try now to see if i can connect hmmm
Brody
Brodyβ€’12mo ago
dns resolution error eh
Harris
HarrisOPβ€’12mo ago
No description
Brody
Brodyβ€’12mo ago
check pgbouncers logs
Harris
HarrisOPβ€’12mo ago
it doesn't note it
No description
Brody
Brodyβ€’12mo ago
im still testing
Harris
HarrisOPβ€’12mo ago
ur the best
Brody
Brodyβ€’12mo ago
got a public connection to pgbouncer working with this image https://hub.docker.com/r/bitnami/pgbouncer
Harris
HarrisOPβ€’12mo ago
oh you weren't able to connect in the template image?
Brody
Brodyβ€’12mo ago
i forget haha i like docker images more
Harris
HarrisOPβ€’12mo ago
ok i'll try that image
Harris
HarrisOPβ€’12mo ago
No description
Harris
HarrisOPβ€’12mo ago
woah these logs are so much more colofurl nice
Brody
Brodyβ€’12mo ago
think i got it working
| PGBOUNCER_PRIVATE_URL | pgbouncer.railway.internal | postgres | Error | db.Ping error: pq: | 12.414346984s |
| | | | | unsupported startup parameter: | |
| | | | | extra_float_digits | |
| PGBOUNCER_PUBLIC_URL | viaduct.proxy.rlwy.net | postgres | Error | db.Ping error: pq: | 12.663225282s |
| | | | | unsupported startup parameter: | |
| | | | | extra_float_digits | |
| PGBOUNCER_PRIVATE_URL | pgbouncer.railway.internal | postgres | Error | db.Ping error: pq: | 12.414346984s |
| | | | | unsupported startup parameter: | |
| | | | | extra_float_digits | |
| PGBOUNCER_PUBLIC_URL | viaduct.proxy.rlwy.net | postgres | Error | db.Ping error: pq: | 12.663225282s |
| | | | | unsupported startup parameter: | |
| | | | | extra_float_digits | |
now yes theres an error, but thats an issue with the client
Harris
HarrisOPβ€’12mo ago
docker hub is so nice i used to use it more but i forgot how nice it is just to be able to pull lego blocks down
Brody
Brodyβ€’12mo ago
indeed, going to do some more tests and then will make you a template
Harris
HarrisOPβ€’12mo ago
No description
Harris
HarrisOPβ€’12mo ago
need to calculate number of connections and stuff oops RAILWAY comes first
Harris
HarrisOPβ€’12mo ago
No description
Harris
HarrisOPβ€’12mo ago
hmm
Brody
Brodyβ€’12mo ago
don't worry I'm on the job
Harris
HarrisOPβ€’12mo ago
salute
Brody
Brodyβ€’12mo ago
updated the client in my testing software and
| PGBOUNCER_PRIVATE_URL | pgbouncer.railway.internal | postgres | Success | N/A | 127.300133ms |
| PGBOUNCER_PUBLIC_URL | viaduct.proxy.rlwy.net | postgres | Success | N/A | 126.634847ms |
| PGBOUNCER_PRIVATE_URL | pgbouncer.railway.internal | postgres | Success | N/A | 127.300133ms |
| PGBOUNCER_PUBLIC_URL | viaduct.proxy.rlwy.net | postgres | Success | N/A | 126.634847ms |
Harris
HarrisOPβ€’12mo ago
πŸ˜„ HUGE
Brody
Brodyβ€’12mo ago
making template now
Brody
Brodyβ€’12mo ago
comes with pre configured ref variables, but it assumes your database is named "Postgres"
Harris
HarrisOPβ€’12mo ago
@Brody i left priority boarding but it still wants to deploy the template to a new project? oh i have to do it through the project
Brody
Brodyβ€’12mo ago
exactly
Harris
HarrisOPβ€’12mo ago
beautiful
Brody
Brodyβ€’12mo ago
let me know if you run into any issues
Harris
HarrisOPβ€’12mo ago
No description
Harris
HarrisOPβ€’12mo ago
just got it deployed
Brody
Brodyβ€’12mo ago
though I did try deploying the template into a project that already had a postgres database and it worked no config needed
Harris
HarrisOPβ€’12mo ago
@Brody if it's the same as the docker image, we should be able to alter other settings via env var right?
Brody
Brodyβ€’12mo ago
absolutely
Harris
HarrisOPβ€’12mo ago
πŸ˜„ πŸ˜„ πŸ˜„ πŸ˜„ πŸ˜„ πŸ˜„ πŸ˜„ awesome you. are. the. best. thank you
Brody
Brodyβ€’12mo ago
but you know, just test it as it is for now
Harris
HarrisOPβ€’12mo ago
of course, but i'll need to switch it to transaction mode in order to work with prisma + serverless rather than the default of session
Brody
Brodyβ€’12mo ago
true true
Harris
HarrisOPβ€’12mo ago
also, i'm not sure if it's configured for the correct pool size something something core count * 2?
Brody
Brodyβ€’12mo ago
default is 20
Harris
HarrisOPβ€’12mo ago
could be higher right?
Brody
Brodyβ€’12mo ago
yep, but ill leave my template at the defaults, will add them to the template so the user can config them during deploy if need be
No description
Harris
HarrisOPβ€’12mo ago
No description
Harris
HarrisOPβ€’12mo ago
hype!!! we're connected ty
Brody
Brodyβ€’12mo ago
no problem i wish i was able to remove the previous pgbouncer template that doesnt work
Harris
HarrisOPβ€’12mo ago
is it possible to add conditionals into variables?
Harris
HarrisOPβ€’12mo ago
prisma for example needs this query param and pool mode set to transaction
No description
Harris
HarrisOPβ€’12mo ago
I guess I can just add that on my prisma end
Harris
HarrisOPβ€’12mo ago
No description
Harris
HarrisOPβ€’12mo ago
or just create my own directurl variable
Brody
Brodyβ€’12mo ago
you could add them on the reference variable on your app's service (not the pgbouncer service)
Harris
HarrisOPβ€’12mo ago
well so I'll need it synced to vercel or i can have doppler send it down to vercel but needs to get somewhere
Harris
HarrisOPβ€’12mo ago
No description
Harris
HarrisOPβ€’12mo ago
i think that'll do it for me
Harris
HarrisOPβ€’12mo ago
No description
Harris
HarrisOPβ€’12mo ago
not sure why it picks the vars it does
Brody
Brodyβ€’12mo ago
haha you wont be able to use the private url, but yeah
Harris
HarrisOPβ€’12mo ago
yeah bezoslaugh wasn't expecting too on the nextjs side of things that's ok tho it's kind of an interesting setup why does it pick the vars it does?
Brody
Brodyβ€’12mo ago
zero clue, i dont use vercel, frontends go on railway too πŸ™‚
Harris
HarrisOPβ€’12mo ago
nextjs features act weird not on vercel
Brody
Brodyβ€’12mo ago
they did make the framework after all
Harris
HarrisOPβ€’12mo ago
@Brody on a pro plan what should I consider core_count?
No description
Harris
HarrisOPβ€’12mo ago
32 vCPU * 2 = max db 64 connections? * 2 = 64 connections?
Brody
Brodyβ€’12mo ago
uh whats spindle count?
Harris
HarrisOPβ€’12mo ago
No description
Harris
HarrisOPβ€’12mo ago
TIL
Brody
Brodyβ€’12mo ago
uh well volumes are SSDs so just set it to 64 and call it a day, remember pgbouncer reuses those 64 connections
Harris
HarrisOPβ€’12mo ago
supposedly it actually hurts performance if you have connection count too high because you want pgbouncer to handle things not pg
Brody
Brodyβ€’12mo ago
good to know, then leave at 20 hey im learning with you!
Harris
HarrisOPβ€’12mo ago
are vCPUs actually CPU cores? or are they like hyperthreaded
Harris
HarrisOPβ€’12mo ago
No description
Harris
HarrisOPβ€’12mo ago
Medium
Database Connections: Less is More
As far as architectural aphorisms go, Mies van der Rohe’s β€˜Less is More’ seems to succinctly define a modernist ethic. What’s less well…
Harris
HarrisOPβ€’12mo ago
No description
Harris
HarrisOPβ€’12mo ago
hmm actually this is hyper optimizing i won't fiddle with this
Brody
Brodyβ€’12mo ago
a team member told me the answer to this, but i forget, sorry
Harris
HarrisOPβ€’12mo ago
i'll leave it at defaults for now
Brody
Brodyβ€’12mo ago
lmao i was just gonna tell you this defaults are fine lol
Harris
HarrisOPβ€’12mo ago
i mean this whole journey is hyper optimization so far moving postgres from neon to railway
Brody
Brodyβ€’12mo ago
true, bun
Harris
HarrisOPβ€’12mo ago
but hey, it's finished πŸ˜„ thanks for all the help
Brody
Brodyβ€’12mo ago
ofc, its been fun and ive learnt lots
Harris
HarrisOPβ€’12mo ago
@Brody just learned something new that might be worth mentioning in your template
Harris
HarrisOPβ€’12mo ago
GitHub
Fully support prepared statements with pgbouncer 1.21.0 Β· Issue #21...
Problem Today, the way prepared statements are supported with pgbouncer is suboptimal. Prisma will clear all prepared statements in the connection to avoid mismatches. Now that pgbouncer supports p...
Harris
HarrisOPβ€’12mo ago
the latest version of pgbouncer (1.21.0) which the template uses, will cause prisma to break if you don't have ?pgbouncer=true in the connection string and max_prepared_statements = 0 but you get significant performance gains by removing the pgbouncer=true from the connection string and setting max_prepared_statements to a non-zero value
Brody
Brodyβ€’12mo ago
is max_prepared_statements a query parameter? and what's a good "non-zero" value anyway?
Javier Fuentes Mora
Javier Fuentes Moraβ€’12mo ago
hey @Brody is this working? https://railway.app/template/L09YMd
Brody
Brodyβ€’12mo ago
no it's not, use mine https://railway.app/template/OpUzwe if you don't already have a postgres database, first deploy postgres on your own, and then deploy that template into the same project
Javier Fuentes Mora
Javier Fuentes Moraβ€’12mo ago
ok done , will that automatically take the database that I have in the same project?
Brody
Brodyβ€’12mo ago
indeed
Javier Fuentes Mora
Javier Fuentes Moraβ€’12mo ago
No description
Brody
Brodyβ€’12mo ago
you now reference the url variables that the pgbouncer service has
Javier Fuentes Mora
Javier Fuentes Moraβ€’12mo ago
that will be this one right?
No description
Brody
Brodyβ€’12mo ago
yep!
Javier Fuentes Mora
Javier Fuentes Moraβ€’12mo ago
I can not get connected 😦
Javier Fuentes Mora
Javier Fuentes Moraβ€’12mo ago
No description
Brody
Brodyβ€’12mo ago
well you would need to use the public url to connect to it publicly and then use the internal url to connect to it from another service in the same project
Javier Fuentes Mora
Javier Fuentes Moraβ€’12mo ago
yes , you are right now it is working
Brody
Brodyβ€’12mo ago
awesome
Javier Fuentes Mora
Javier Fuentes Moraβ€’12mo ago
qq how do I make sure pg bouncer it is working in transaction mode?
Javier Fuentes Mora
Javier Fuentes Moraβ€’12mo ago
I guess I need to change it here ?
No description
Brody
Brodyβ€’12mo ago
correct simply set it to transaction you can read about more environment variable options here https://hub.docker.com/r/bitnami/pgbouncer
Javier Fuentes Mora
Javier Fuentes Moraβ€’12mo ago
thank you
Brody
Brodyβ€’12mo ago
no problem!
Javier Fuentes Mora
Javier Fuentes Moraβ€’12mo ago
I don't know what I'm doing wrong or maybe it is just Prisma, with nextjs (vercel) , I added the pg-bouncer and changed the configuration as they suggested and im still getting these errors(image) is this normal? I thought the pg-bouncer was in charge of avoiding these errors 😭https://www.prisma.io/docs/orm/prisma-client/setup-and-configuration/databases-connections/pgbouncer
Prisma
Configure Prisma Client with PgBouncer
Configure Prisma Client with PgBouncer
No description
Brody
Brodyβ€’12mo ago
well are you sure you are using the url from pgbouncer in code?
Javier Fuentes Mora
Javier Fuentes Moraβ€’12mo ago
yes
Javier Fuentes Mora
Javier Fuentes Moraβ€’12mo ago
No description
Javier Fuentes Mora
Javier Fuentes Moraβ€’12mo ago
i updated the env variables on vercel too
Javier Fuentes Mora
Javier Fuentes Moraβ€’12mo ago
No description
Brody
Brodyβ€’12mo ago
well ill be honest, i dont use pgbouncer, next, or vercel myself so im not too sure what the problem is, i only know how to make templates and i made the template for harris and im sure they would have let me know if it didnt work
Javier Fuentes Mora
Javier Fuentes Moraβ€’12mo ago
😭 @Harris do you have any idea?
Harris
HarrisOPβ€’12mo ago
I think I know what your issue is newest version of prisma does not need the connection pooler in URL enabled it aactually breaks it so make sure you don't ahve that
Harris
HarrisOPβ€’12mo ago
GitHub
Fully support prepared statements with pgbouncer 1.21.0 Β· Issue #21...
Problem Today, the way prepared statements are supported with pgbouncer is suboptimal. Prisma will clear all prepared statements in the connection to avoid mismatches. Now that pgbouncer supports p...
Harris
HarrisOPβ€’12mo ago
although actually, usually that'd show an error of "prepared statement s1 does not exist" or something if you're pgbouncer is setup to connect to pg correctly and you're correctly connecting to pgbouncer u shouldn't have client issues
Harris
HarrisOPβ€’12mo ago
No description
Harris
HarrisOPβ€’12mo ago
is my setup
Javier Fuentes Mora
Javier Fuentes Moraβ€’12mo ago
I noticed you dont have these 2 values that appeared by default to me
No description
Brody
Brodyβ€’12mo ago
i added them after they deployed my template all the values i have set are the default
Javier Fuentes Mora
Javier Fuentes Moraβ€’12mo ago
@Harris thanks that help at least now I see a different error, looks like know at certain point they can not connect with the pgboucer any idea on how to solve this?
No description
No description
No description
Brody
Brodyβ€’12mo ago
any errors in the logs of pgbouncer?
Javier Fuentes Mora
Javier Fuentes Moraβ€’12mo ago
No description
Brody
Brodyβ€’12mo ago
doesnt look like anything bad, im out of ideas 🀣
Javier Fuentes Mora
Javier Fuentes Moraβ€’12mo ago
😭
Brody
Brodyβ€’12mo ago
you can still access it publicly with database software right?
Javier Fuentes Mora
Javier Fuentes Moraβ€’12mo ago
yes even with vercel after few moments , I think it just reaches a limit and then it rejects the connections ? πŸ€·πŸ»β€β™‚οΈ
Brody
Brodyβ€’12mo ago
i honestly have no clue, sorry
Want results from more Discord servers?
Add your server