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
Copy file name to clipboardExpand all lines: src/content/changelog/hyperdrive/2025-07-02-hyperdrive-configurable-connection-count.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,6 @@ You can now specify the number of connections your Hyperdrive configuration uses
10
10
11
11
All configurations have a minimum of 5 connections. The maximum connection count for a Hyperdrive configuration depends on the [Hyperdrive limits of your Workers plan](/hyperdrive/platform/limits/).
12
12
13
-
This feature allows you to right-size your connection pool based on your database capacity and application requirements. You can configure connection counts through the Cloudflare dashboard, API, or Wrangler CLI.
13
+
This feature allows you to right-size your connection pool based on your database capacity and application requirements. You can configure connection counts through the Cloudflare dashboardor API.
14
14
15
15
Refer to the [Hyperdrive configuration documentation](/hyperdrive/configuration/) for more information.
Copy file name to clipboardExpand all lines: src/content/docs/hyperdrive/configuration/connection-pooling.mdx
+3-26Lines changed: 3 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,6 @@ sidebar:
5
5
order: 5
6
6
---
7
7
8
-
import { TabItem, Tabs } from"~/components";
9
-
10
8
Hyperdrive maintains a pool of connections to your database. These are optimally placed to minimize the latency for your applications. You can configure
11
9
the amount of connections your Hyperdrive configuration uses to connect to your origin database. This enables you to right-size your connection pool based on your database capacity and application requirements.
12
10
@@ -17,35 +15,14 @@ All configurations have a minimum of 5 connections, and with a maximum depending
17
15
18
16
## How Hyperdrive pools database connections
19
17
20
-
Hyperdrive will automatically increase or decrease the amount of database connections held open by Hyperdrive depending on your traffic and the amount of load that is put on your database.
18
+
Hyperdrive will automatically scale the amount of database connections held open by Hyperdrive depending on your traffic and the amount of load that is put on your database.
21
19
22
20
The `max_size` parameter acts as a soft limit - Hyperdrive may temporarily create additional connections during network issues or high traffic periods to ensure high availability and resiliency.
23
21
24
-
## Configure connection counts with Wrangler
25
-
26
-
You can configure connection counts using the Cloudflare dashboard, Wrangler CLI, or the Cloudflare API. To configure Hyperdrive's connection count, follow these steps:
27
-
28
-
Use the `origin-connection-limit` parameter when creating or updating a Hyperdrive configuration:
You can configure connection counts using the Cloudflare dashboard or the Cloudflare API. Consider the following best practices to determine the right limit for your use-case:
25
+
49
26
-**Start conservatively**: Begin with a lower connection count and increase as needed based on your application's performance.
50
27
-**Monitor database metrics**: Watch your database's connection usage and performance metrics to optimize the connection count.
51
28
-**Consider database limits**: Ensure your configured connection count doesn't exceed your database's maximum connection limit.
0 commit comments