Repository navigation
Add Managed Postgres Developer plan page #2667
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
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b62a021
Add Managed Postgres Developer plan page
kcmartin 033db41
Developer plan: storage included in the $4
kcmartin 9d8ebd9
Developer plan: clearer storage wording
kcmartin 7d6f236
Developer plan: dashboard steps
kcmartin 8b1386e
Developer plan: review fixes (storage limit, backups, upgrade caveat,…
kcmartin 161e8eb
Developer plan: attach sets the direct URL; per-second billing; maint…
kcmartin a96b907
Developer plan: Juliana's review (pricing wording, 1GB steps, attach …
kcmartin 6518f13
Developer plan: transaction-mode caveat for the pooled URL after upgr…
kcmartin 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
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
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
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,115 @@ | ||
| --- | ||
| title: Managed Postgres Developer plan | ||
| sidebarTitle: Developer plan | ||
| description: "Run a small, highly available Managed Postgres cluster for $4 a month on the Developer plan: what it includes, its limits, auto-pause, and how to upgrade." | ||
| --- | ||
|
|
||
| **The Developer plan is Managed Postgres for side projects, prototypes and small apps. You get a highly available, two-node Postgres cluster with daily backups for \$4 a month.** | ||
|
|
||
| ## What the Developer plan includes | ||
|
|
||
| - **High availability:** a primary and a replica, each on a `shared-cpu-1x` Machine with 256MB of memory, with automatic failover. | ||
| - **Daily backups:** one full backup a day, kept for 1 day. See [Backups](#backups). | ||
| - **Storage:** 1GB to start, growing automatically up to 5GB. | ||
| - **Up to 20 connections**, straight to Postgres. | ||
| - **Auto-pause:** the cluster pauses when nothing is connected and wakes on the next connection. See [Auto-pause](#auto-pause). | ||
| - Everything else in [Managed Postgres](/postgres): encryption, [extensions](/postgres/extensions), [metrics](/postgres/metrics), and access from your organization's [private network](/networking/private-networking). | ||
|
|
||
| ## Pricing | ||
|
|
||
| The Developer plan costs **\$4 for 30 days**, including storage, billed by the second like every Managed Postgres plan. You're billed while the cluster exists, including the time it's paused, so a cluster you delete partway through the month costs less. | ||
|
|
||
| The Developer plan is included in the [Free plan](/about/free-plan). A Free plan organization can have one Developer plan cluster, and its cost counts toward the \$5 of monthly usage. | ||
|
|
||
| ## How it differs from other plans | ||
|
|
||
| The Developer plan is smaller and simpler than the other [Managed Postgres plans](/postgres#pricing): | ||
|
|
||
| | | Developer | Basic and up | | ||
| | --- | --- | --- | | ||
| | Memory per node | 256MB | 1GB and up | | ||
| | Connection pooling (PgBouncer) | No. Clients connect to Postgres directly | Yes | | ||
| | Connections | Up to 20 | Depends on plan | | ||
| | Storage | Up to 5GB | Up to 1TB | | ||
| | Storage cost | Included in the \$4 | \$0.28/GB a month | | ||
| | Backups | One full backup a day, kept for 1 day | Kept for 10 days | | ||
| | Restore | From a backup only | From a backup or a point in time | | ||
| | Maintenance | Any time | In a [weekly window](/postgres/maintenance-windows) you choose | | ||
| | Auto-pause | Yes | No | | ||
| | Support | No direct support contact. We still respond to alerts on your cluster | Direct support from Fly.io | | ||
|
kcmartin marked this conversation as resolved.
Resolved
|
||
|
|
||
| ## Backups | ||
|
|
||
| We take one full backup of your cluster a day, and keep it for 1 day. That gives you about a day to restore from if something goes wrong, so keep your own copy of anything you can't lose, for example with `pg_dump`. | ||
|
|
||
| You can restore from a backup, but not to a point in time. On-demand backups are full backups only. `fly mpg backup create --type incr` returns an error on the Developer plan. | ||
|
|
||
| ## Maintenance | ||
|
|
||
| Developer plan clusters don't have a maintenance window. We can run maintenance at any time. We work to avoid downtime, but your app may see short interruptions, so make sure it reconnects when a connection drops. | ||
|
|
||
| ## Auto-pause | ||
|
|
||
| A Developer plan cluster pauses after 15 minutes with no client connections. While it's paused, the dashboard shows that it wakes on the next connection. | ||
|
|
||
| When a client connects, the cluster wakes. This usually takes about 15 seconds, and can take up to 25. The connection waits for the cluster to wake, so set your client's connection timeout to at least 30 seconds. | ||
|
|
||
| ## Storage limit | ||
|
|
||
| Your cluster starts with 1GB of storage and grows automatically, 1GB at a time, up to 5GB. | ||
|
|
||
| The 5GB holds your data and Postgres's write-ahead log (WAL), so your data runs out of room before it reaches 5GB. | ||
|
|
||
| When your cluster gets close to 5GB, we email you. Upgrade to Basic or a larger plan before it fills up. A full disk takes your database down: when Postgres can't write its WAL, it crashes and restarts. | ||
|
|
||
| ## Create a Developer plan cluster | ||
|
|
||
| In the dashboard, create a Managed Postgres cluster as usual and choose the **Developer** plan. See [Create and connect to a cluster](/postgres/create-and-connect). | ||
|
|
||
| With flyctl: | ||
|
|
||
| ```bash | ||
| fly mpg create --plan dev-256 | ||
| ``` | ||
|
|
||
| You need flyctl v0.5.15 or later. Run `fly version upgrade` if your flyctl doesn't list the Developer plan. | ||
|
|
||
| Your cluster gets a 1GB volume by default. | ||
|
kcmartin marked this conversation as resolved.
Resolved
|
||
|
|
||
| ## Connect to your cluster | ||
|
|
||
| Attach your app to the cluster: | ||
|
|
||
| ```bash | ||
| fly mpg attach <cluster-id> -a <app-name> | ||
| ``` | ||
|
|
||
| This sets a `DATABASE_URL` secret on your app. On the Developer plan, it's the cluster's direct URL, which connects straight to Postgres. If your app already has a `DATABASE_URL` secret, choose another name with `--variable-name`. See [`fly mpg attach`](/flyctl/cmd/fly_mpg_attach). | ||
|
|
||
| You don't need PgBouncer settings, such as disabling prepared statements for transaction mode. Keep your app's connection pool small, since all your clients share the 20 connections. | ||
|
|
||
| The direct URL keeps working if you upgrade to a larger plan. To use PgBouncer after an upgrade, attach again to get the pooled URL: | ||
|
|
||
| ```bash | ||
| fly secrets unset DATABASE_URL -a <app-name> | ||
| fly mpg attach <cluster-id> -a <app-name> | ||
| ``` | ||
|
|
||
| The pooled URL uses PgBouncer in transaction mode. If your app uses prepared statements, `SET`, advisory locks or `LISTEN/NOTIFY`, keep the direct URL, or change the pool mode to session first. See [Connection pooling](/postgres/cluster-configuration#connection-pooling). | ||
|
|
||
| See [Connect your client](/postgres/client-configuration). | ||
|
|
||
| ## Upgrade to a larger plan | ||
|
|
||
| You can move a Developer plan cluster to Basic or a larger plan at any time from the dashboard. Your disk grows to the new plan's default size, 10GB on Basic. Your app keeps using the direct URL. See [Connect to your cluster](#connect-to-your-cluster). You can't move a cluster from another plan to the Developer plan. | ||
|
|
||
| On the [Free plan](/about/free-plan), upgrade your organization to Pay As You Go before you move the cluster to a larger plan. | ||
|
|
||
| See [Changing your MPG plan](/postgres/cluster-configuration#changing-your-mpg-plan). | ||
|
|
||
| ## Related reading | ||
|
|
||
| - [Managed Postgres overview](/postgres) | ||
| - [Create and connect to a cluster](/postgres/create-and-connect) | ||
| - [Connect your client](/postgres/client-configuration) | ||
| - [Fly.io Resource Pricing](/about/pricing) | ||
Oops, something went wrong.
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.