Skip to content

Commit eaa069e

Browse files
committed
Remove wrangler commands from Hyperdrive configurable connections count
1 parent e053c93 commit eaa069e

File tree

2 files changed

+4
-27
lines changed

2 files changed

+4
-27
lines changed

src/content/changelog/hyperdrive/2025-07-02-hyperdrive-configurable-connection-count.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ You can now specify the number of connections your Hyperdrive configuration uses
1010

1111
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/).
1212

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 dashboard or API.
1414

1515
Refer to the [Hyperdrive configuration documentation](/hyperdrive/configuration/) for more information.

src/content/docs/hyperdrive/configuration/connection-pooling.mdx

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ sidebar:
55
order: 5
66
---
77

8-
import { TabItem, Tabs } from "~/components";
9-
108
Hyperdrive maintains a pool of connections to your database. These are optimally placed to minimize the latency for your applications. You can configure
119
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.
1210

@@ -17,35 +15,14 @@ All configurations have a minimum of 5 connections, and with a maximum depending
1715

1816
## How Hyperdrive pools database connections
1917

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.
2119

2220
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.
2321

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:
29-
30-
<Tabs>
31-
<TabItem label="Create new configuration">
32-
```sh
33-
npx wrangler hyperdrive create my-hyperdrive \
34-
--connection-string="postgresql://user:password@host:port/database" \
35-
--origin-connection-limit=10
36-
```
37-
</TabItem>
38-
39-
<TabItem label="Update existing configuration">
40-
```sh
41-
npx wrangler hyperdrive update my-hyperdrive-id \
42-
--origin-connection-limit=15
43-
```
44-
</TabItem>
45-
</Tabs>
46-
4722
## Best practices
4823

24+
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+
4926
- **Start conservatively**: Begin with a lower connection count and increase as needed based on your application's performance.
5027
- **Monitor database metrics**: Watch your database's connection usage and performance metrics to optimize the connection count.
5128
- **Consider database limits**: Ensure your configured connection count doesn't exceed your database's maximum connection limit.

0 commit comments

Comments
 (0)