What the Developer plan includes
- High availability: a primary and a replica, each on a
shared-cpu-1xMachine with 256MB of memory, with automatic failover. - Daily backups: one full backup a day, kept for 1 day. See 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.
- Everything else in Managed Postgres: encryption, extensions, metrics, and access from your organizationās private network.
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. 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: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 withpg_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. With flyctl:fly version upgrade if your flyctl doesnāt list the Developer plan.
Your cluster gets a 1GB volume by default.
Connect to your cluster
Attach your app to the cluster: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.
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:
SET, advisory locks or LISTEN/NOTIFY, keep the direct URL, or change the pool mode to session first. See Connection pooling.
See Connect your client.