-
Notifications
You must be signed in to change notification settings - Fork 10.3k
[Hyperdrive] Hyperdrive pool placement improvement + ip address egress #20239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
thomasgauvin
merged 19 commits into
production
from
thomasgauvin-add-hyperdrive-ip-address-ranges-egress
Mar 7, 2025
Merged
Changes from 5 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
c54060c
thomasgauvin: Hyperdrive pool placement improvement + ip address egress
thomasgauvin a3971ad
thomasgauvin: add details to how hyperdrive works with changes
thomasgauvin b70a3cc
Update src/content/changelog/hyperdrive/2025-02-26-hyperdrive-pooling…
thomasgauvin cb753ab
thomasgauvin: add docs on networking, firewall and ip addresses
thomasgauvin 409dd16
small changes to phrasing, update date, include screenshot
thomasgauvin 925deb8
Update src/content/changelog/hyperdrive/2025-03-04-hyperdrive-pooling…
thomasgauvin 2e85d45
Update src/content/changelog/hyperdrive/2025-03-04-hyperdrive-pooling…
thomasgauvin 70edf81
Update src/content/release-notes/hyperdrive.yaml
thomasgauvin 13132d0
Update src/content/docs/hyperdrive/reference/faq.mdx
thomasgauvin 17380d8
Update src/content/docs/hyperdrive/configuration/how-hyperdrive-works…
thomasgauvin 6b4263d
Update src/content/release-notes/hyperdrive.yaml
thomasgauvin 912000e
Update src/content/changelog/hyperdrive/2025-03-04-hyperdrive-pooling…
thomasgauvin 687dac9
Update src/content/release-notes/hyperdrive.yaml
thomasgauvin 56a4817
Update src/content/release-notes/hyperdrive.yaml
thomasgauvin 6443d45
Update src/content/changelog/hyperdrive/2025-03-04-hyperdrive-pooling…
thomasgauvin f346d3b
Update src/content/changelog/hyperdrive/2025-03-04-hyperdrive-pooling…
thomasgauvin 85a4861
Update src/content/changelog/hyperdrive/2025-03-04-hyperdrive-pooling…
thomasgauvin 82c8047
Update src/content/changelog/hyperdrive/2025-03-04-hyperdrive-pooling…
thomasgauvin 3f74dc6
Update src/content/docs/hyperdrive/configuration/firewall-and-network…
thomasgauvin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file added
BIN
+163 KB
...erdrive/configuration/hyperdrive-regional-pooling-query-latency-improvement.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions
19
.../hyperdrive/2025-03-04-hyperdrive-pooling-near-database-and-ip-range-egress.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| --- | ||
| title: Hyperdrive reduces query latency by up to 90%, uses Cloudflare's IP addresses for egress | ||
| description: Hyperdrive now pools database connections closer to your database to reduce latency and connects using Cloudflare's IP address ranges. | ||
thomasgauvin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| products: | ||
| - hyperdrive | ||
| date: 2025-03-06T18:00:00Z | ||
thomasgauvin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| --- | ||
|
|
||
| Hyperdrive now pools database connections in one or more regions close to your database. This means that your uncached queries and new database connections have up to 90% less latency as measured from connection pools. | ||
|
|
||
|  | ||
|
|
||
| By improving placement of Hyperdrive database connection pools, Workers smart placement is now more effective when used with Hyperdrive, ensuring that your Worker can be placed as close to your database as possible. | ||
thomasgauvin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| With this update, Hyperdrive also uses [Cloudflare's standard IP address ranges](https://www.cloudflare.com/ips/) to connect to your database. This enables you to configure the firewall policies of your database to allow access to this limited IP address range. | ||
thomasgauvin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Refer to [documentation on how Hyperdrive makes connecting to regional databases from Cloudflare Workers fast](/hyperdrive/configuration/how-hyperdrive-works/). | ||
|
|
||
| This improvement is enabled on all Hyperdrive configurations. | ||
16 changes: 16 additions & 0 deletions
16
...content/docs/hyperdrive/configuration/firewall-and-networking-configuration.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| --- | ||
| pcx_content_type: concept | ||
| title: Firewall and networking configuration | ||
| sidebar: | ||
| order: 7 | ||
| --- | ||
|
|
||
| import { TabItem, Tabs, Render, WranglerConfig } from "~/components"; | ||
|
|
||
| Hyperdrive uses the [Cloudflare IP address ranges](https://www.cloudflare.com/ips/) to connect to your database. If you decide to restrict the IP addresses that can access your database with firewall rules, the IP address ranges listed in this reference need to be allow-listed in your database's firewall and networking configurations. | ||
|
|
||
| You can connect to your database from Hyperdrive using any of the 3 following networking configurations: | ||
|
|
||
| 1. Configure your database to allow inbound connectivity from the public Internet (all IP address ranges). | ||
| 2. Configure your database to allow inbound connectivity from the public Internet, with only the IP address ranges used by Hyperdrive allow-listed. | ||
thomasgauvin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 3. Configure your database to allow inbound connectivity from a private network, and run a Cloudflare Tunnel instance in your private network to enable Hyperdrive to connect from the Cloudflare network to your private network. Refer to [documentation on connecting to a private database using Tunnel](/hyperdrive/configuration/connect-to-private-database/). | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.