Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 12 additions & 13 deletions src/content/docs/hyperdrive/platform/limits.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,23 @@ pcx_content_type: concept
title: Limits
sidebar:
order: 2

---

The following limits apply to Hyperdrive configuration, connections, and queries made to your configured origin databases.

| Feature | Limit |
| ---------------------------------------------- | ------------------------------------------------------------------------------------- |
| Maximum configured databases | 25 per account |
| Initial connection timeout | 15 seconds |
| Idle connection timeout | 10 minutes |
| Maximum cached query response size | 50 MB |
| Maximum query (statement) duration | 60 seconds |
| Maximum username length | 63 characters (bytes) [^1] |
| Maximum database name length | 63 characters (bytes) [^1] |
| Maximum potential origin database connections | approx. \~100 connections [^2] |
| Feature | Free | Paid |
| -------------------------------------------------- | ------------------------ | ------------------------- |
| Maximum configured databases | 10 per account | 25 per account |
| Initial connection timeout | 15 seconds | 15 seconds |
| Idle connection timeout | 10 minutes | 10 minutes |
| Maximum cached query response size | 50 MB | 50 MB |
| Maximum query (statement) duration | 60 seconds | 60 seconds |
| Maximum username length [^1] | 63 characters (bytes) | 63 characters (bytes) |
| Maximum database name length [^1] | 63 characters (bytes) | 63 characters (bytes) |
| Maximum potential origin database connections [^2] | approx. \~20 connections | approx. \~100 connections |

:::note
Hyperdrive does not have a hard limit on the number of concurrent *client* connections made from your Workers.
Hyperdrive does not have a hard limit on the number of concurrent _client_ connections made from your Workers.

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.
:::
Expand All @@ -31,4 +30,4 @@ As many hosted databases have limits on the number of unique connections they ca

:::note
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.
:::
:::
23 changes: 19 additions & 4 deletions src/content/docs/hyperdrive/platform/pricing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,30 @@ pcx_content_type: concept
title: Pricing
sidebar:
order: 1

---

**Hyperdrive is free and included in every [Workers Paid](/workers/platform/pricing/#workers) plan**.
import { Render } from "~/components";

<Render file="hyperdrive_pricing" product="workers" />

Hyperdrive limits are automatically adjusted when subscribed to a Workers Paid plan. Hyperdrive's [connection pooling and query caching](/hyperdrive/configuration/how-hyperdrive-works/) are included in Workers Paid plan, so do not incur any additional charges.

## Pricing FAQ

### Does connection pooling or query caching incur additional charges?

No. Hyperdrive's built-in cache and connection pooling are included within the stated plans above. There are no hidden limits other than those [published](/hyperdrive/platform/limits/).

### Are cached queries counted the same as uncached queries?

Yes, any query made through Hyperdrive, whether cached or uncached, whether query or mutation, is counted according to the limits above.

### Does Hyperdrive charge for data transfer / egress?

Hyperdrive is automatically enabled when subscribed to a Workers Paid plan, and does not require you to pay any additional fees to use. Hyperdrive's [connection pooling and query caching](/hyperdrive/configuration/how-hyperdrive-works/) do not incur any additional charges, and there are no hidden limits other than those [published](/hyperdrive/platform/limits/).
No.

:::note

For questions about pricing, refer to the [pricing FAQs](/hyperdrive/reference/faq/#pricing).

:::
:::
14 changes: 12 additions & 2 deletions src/content/docs/workers/platform/pricing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ description: Workers plans and pricing information.

import { GlossaryTooltip, Render } from "~/components";

By default, users have access to the Workers Free plan. The Workers Free plan includes limited usage of Workers, Pages Functions and Workers KV. Read more about the [Free plan limits](/workers/platform/limits/#worker-limits).
By default, users have access to the Workers Free plan. The Workers Free plan includes limited usage of Workers, Pages Functions, Workers KV and Hyperdrive. Read more about the [Free plan limits](/workers/platform/limits/#worker-limits).

The Workers Paid plan includes Workers, Pages Functions, Workers KV, and Durable Objects usage for a minimum charge of $5 USD per month for an account. The plan includes increased initial usage allotments, with clear charges for usage that exceeds the base plan.
The Workers Paid plan includes Workers, Pages Functions, Workers KV, Hyperdrive, and Durable Objects usage for a minimum charge of $5 USD per month for an account. The plan includes increased initial usage allotments, with clear charges for usage that exceeds the base plan.

All included usage is on a monthly basis.

Expand Down Expand Up @@ -150,6 +150,16 @@ To learn more about KV, refer to the [KV documentation](/kv/).

:::

## Hyperdrive

<Render file="hyperdrive_pricing" />

:::note[KV documentation]

To learn more about Hyperdrive, refer to the [Hyperdrive documentation](/hyperdrive/).

:::

## Queues

<Render file="queues_pricing" />
Expand Down
19 changes: 19 additions & 0 deletions src/content/partials/workers/hyperdrive_pricing.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
{}
---

import { Markdown } from "~/components";

Hyperdrive is included in both the Free and Paid [Workers plans](/workers/platform/pricing/).

| | Free plan<sup>1</sup> | Paid plan |
| ---------------------------- | --------------------- | --------- |
| Database queries<sup>2</sup> | 100,000 / day | Unlimited |

<sup>1</sup> The Workers Free plan includes limited Hyperdrive usage. All limits
reset daily at 00:00 UTC. If you exceed any one of these limits, further
operations of that type will fail with an error.

<sup>2</sup> Database queries refers to any database statement made via
Hyperdrive, whether a query (`SELECT`), a modification (`INSERT`,`UPDATE`, or
`DELETE`) or a schema change (`CREATE`, `ALTER`, `DROP`).