You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reorganize limits into logical sections (configuration, connection, query)
with clearer descriptions of when each limit applies. Add connection error
messages with their causes and link to troubleshooting for full error list.
Hyperdrive does not have a hard limit on the number of concurrent _client_ connections made from your Workers.
12
+
These limits apply when creating or updating Hyperdrive configurations.
23
13
24
-
As many hosted databases have limits on the number of unique connections they can manage, Hyperdrive attempts to keep number of concurrent pooled connections to your origin database lower.
| Maximum database name length [^1]| 63 characters (bytes) | 63 characters (bytes) |
26
19
27
20
[^1]: This is a limit enforced by PostgreSQL. Some database providers may enforce smaller limits.
28
21
29
-
[^2]: Hyperdrive is a distributed system, so it is possible for a client to be unable to reach an existing pool. In this scenario, a new pool will be established, with its own allocation of connections. This favors availability over strictly enforcing limits, but does mean that it is possible in edge cases to overshoot the normal connection limit.
22
+
## Connection limits
30
23
31
-
:::note
32
-
You can request adjustments to limits that conflict with your project goals by contacting Cloudflare. Not all limits can be increased. To request an increase, submit a [Limit Increase Request](https://forms.gle/ukpeZVLWLnKeixDu7) and we will contact you with next steps. We also regularly monitor the Hyperdrive channel in [Cloudflare's Discord community](https://discord.cloudflare.com/) and can answer questions regarding limits and requests.
33
-
:::
24
+
These limits apply to connections between Hyperdrive and your origin database.
Hyperdrive does not limit the number of concurrent client connections from your Workers. However, Hyperdrive limits connections to your origin database because most hosted databases have connection limits.
33
+
34
+
[^2]: Hyperdrive is a distributed system, so a client may be unable to reach an existing pool. In this scenario, a new pool is established with its own connection allocation. This prioritizes availability over strict limit enforcement, which means connection counts may occasionally exceed the listed limits.
35
+
36
+
### Connection errors
37
+
38
+
When Hyperdrive cannot acquire a connection to your origin database, you may see one of the following errors:
39
+
40
+
| Error message | Cause |
41
+
| ------------- | ----- |
42
+
|`Failed to acquire a connection from the pool.`| The connection pool is exhausted because connections are held open too long. Long-running queries or transactions are a common cause. |
43
+
|`Server connection attempt failed: connection_refused`| Your origin database is rejecting connections. This can occur when a firewall blocks Hyperdrive, or when your database provider's connection limit is exceeded. |
44
+
45
+
For a complete list of error codes, refer to [Troubleshoot and debug](/hyperdrive/observability/troubleshooting/).
46
+
47
+
## Query limits
48
+
49
+
These limits apply to queries sent through Hyperdrive.
Queries exceeding the maximum duration are terminated. Query responses larger than 50 MB are not cached but are still returned to your Worker.
57
+
58
+
## Request a limit increase
59
+
60
+
You can request adjustments to limits that conflict with your project goals by contacting Cloudflare. Not all limits can be increased.
61
+
62
+
To request an increase, submit a [Limit Increase Request form](https://forms.gle/ukpeZVLWLnKeixDu7). You can also ask questions in the Hyperdrive channel on [Cloudflare's Discord community](https://discord.cloudflare.com/).
0 commit comments