AJR
CDCloudflare Developers
•Created by Alex on 4/14/2025 in #hyperdrive
Screenshot 2025-04-14 at 03.56.10
tx-mode poolers get a lot of mileage out of each one, it's pretty cool to see how high some people crank their traffic before we need to give them limit overrides
77 replies
CDCloudflare Developers
•Created by Alex on 4/14/2025 in #hyperdrive
Screenshot 2025-04-14 at 03.56.10
Maybe a little, not a lot.
When a query comes in, Hyperdrive will (in order of preference):
1. take an unused connection out of the pool if one is available
2. open a new connection, if you have some left before you hit your limit
3. wait for an existing connection to free up, if you're already at your limit, up to a 15-second timeout.
With your self-imposed limit, it'll now try for 2 and fail, instead of waiting around for 3. For your scenario where your DB's limit is lower than 60 anyway, the query's going to fail at option 2 either way, and now you won't cause problems for anything else sharing your DB. What would be ideal here would be for you to get to 3 since you'd likely get a successful result that way, eventually.
Note: this isn't MySQL-specific, this is how it works for Postgres users too.
CC @thomasgauvin -- another one for user-configurable connection limits.
77 replies
CDCloudflare Developers
•Created by Alex on 4/14/2025 in #hyperdrive
Screenshot 2025-04-14 at 03.56.10
We used to do one pool per region, long story that we've written a blog about if you want the details. With regional pools, of which there could be up to ~8, we limited to 20 per region. Since then (a couple months ago) it's been 60 with some wiggle room to 120
77 replies
CDCloudflare Developers
•Created by Alex on 4/14/2025 in #hyperdrive
Screenshot 2025-04-14 at 03.56.10
Ahhhh, makes sense. Right now there's not a good way to put or change the limits on how many connections Hyperdrive will take. I'd be happy to lower yours with our next release, if you need. Though it sounds like you've already solved the problem in what would amount to the same way.
77 replies
CDCloudflare Developers
•Created by Alex on 4/14/2025 in #hyperdrive
Screenshot 2025-04-14 at 03.56.10
It should top out at 60. Maybe 120 if the overall system is stressed and you spill to a second pool
77 replies
CDCloudflare Developers
•Created by Alex on 4/14/2025 in #hyperdrive
Screenshot 2025-04-14 at 03.56.10
How many in total?
77 replies
CDCloudflare Developers
•Created by Alex on 4/14/2025 in #hyperdrive
Screenshot 2025-04-14 at 03.56.10
If you're willing to speak to it a bit, would you mind sharing what you're using Hyperdrive for, and what you used prior?
77 replies
CDCloudflare Developers
•Created by Alex on 4/14/2025 in #hyperdrive
Screenshot 2025-04-14 at 03.56.10
That is awesome to hear. Thanks for sharing, I'll pass that to the team. :MeowHeartCloudflare:
77 replies
CDCloudflare Developers
•Created by midnight on 4/21/2025 in #hyperdrive
I am working on standing up a CF tunnel
Feedback for the docs can go here, our team is here often and I've already pinged our PM Thomas in this thread. If you're of a mind to open a PR, the repo for our docs is open-source (https://github.com/cloudflare/cloudflare-docs). Not necessary, of course, but always welcome.
A how-to guide with Pulumi is a bit more of a question, I'm not sure if that's in scope for our docs. I'll let Thomas speak to the best way to publicise that one.
49 replies
CDCloudflare Developers
•Created by midnight on 4/21/2025 in #hyperdrive
I am working on standing up a CF tunnel
Nice! Fingers crossed.
49 replies
CDCloudflare Developers
•Created by midnight on 4/21/2025 in #hyperdrive
I am working on standing up a CF tunnel
Thanks! Berkeley Mono, I love it.
49 replies
CDCloudflare Developers
•Created by midnight on 4/21/2025 in #hyperdrive
I am working on standing up a CF tunnel

49 replies
CDCloudflare Developers
•Created by midnight on 4/21/2025 in #hyperdrive
I am working on standing up a CF tunnel
cc @thomasgauvin ,
We're always happy to clarify docs. This is a known-difficult process, and I appreciate you working through it and sharing the feedback.
49 replies
CDCloudflare Developers
•Created by midnight on 4/21/2025 in #hyperdrive
I am working on standing up a CF tunnel
Good luck, feel free to ping here with more questions if you have em
49 replies
CDCloudflare Developers
•Created by midnight on 4/21/2025 in #hyperdrive
I am working on standing up a CF tunnel
Happy to, sorry I can't be more help there!
49 replies
CDCloudflare Developers
•Created by midnight on 4/21/2025 in #hyperdrive
I am working on standing up a CF tunnel
Well, if that doesn't want to cooperate you can run the tunnel with
loglevel=debug
and it'll log each access attempt there49 replies
CDCloudflare Developers
•Created by midnight on 4/21/2025 in #hyperdrive
I am working on standing up a CF tunnel
Me either
49 replies