You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mpg/overview.html.md
+49-21Lines changed: 49 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ nav: firecracker
5
5
toc: false
6
6
---
7
7
8
-
<divclass="important icon">Managed Postgres is currently in Technical Preview. To request access, please contact <ahref="mailto:beta@Fly.io">[email protected]</a></div>
8
+
<divclass="important icon">Managed Postgres is currently in Technical Preview. This means it's suitable for production workloads, but could be subject to unplanned maintenance or unexpected hiccups. Contact Fly.io support if you're having issues.</div>
9
9
10
10
<figureclass="flex justify-center">
11
11
<imgsrc="/static/images/Managed_Postgres.png"alt="Illustration by Annie Ruygt of a balloon doing a lot of tasks"class="max-w-lg">
@@ -15,24 +15,31 @@ toc: false
15
15
16
16
Fly.io's Managed Postgres is our database-as-a-service offering where we handle:
17
17
18
-
- Automatic backups and point-in-time recovery (coming soon)
19
-
- High availability and failover
20
-
- Security patches and version upgrades
21
-
- Performance monitoring
18
+
- Automatic backups and recovery
19
+
- High availability with automatic failover
20
+
- Performance monitoring and metrics
22
21
- Resource scaling (CPU, RAM, storage)
23
22
- 24/7 support and incident response
23
+
- Automatic encryption of data at rest and in transit
24
24
25
25
### What's included
26
26
27
-
If you're enrolled in the Technical Preview, you'll be able to access:
27
+
You'll be able to access:
28
28
29
29
- A highly-available Postgres cluster within your Fly.io organization's [private network](/docs/networking/private-networking/)
30
30
- A single database on that cluster
31
31
- Fly.io Support Portal to log tickets and get help
32
+
- The `pgvector` extension for vector similarity search
32
33
33
34
### What's not there yet
34
35
35
-
At the moment, backups are still under development and we haven't opened up access to them just yet. You also can't currently create more databases or schemas on a cluster (though you can create more clusters). You won't yet be able to add Postgres extensions, either.
36
+
At the moment, the following features are under development:
37
+
38
+
- Security patches and version upgrades
39
+
- Multiple databases or schemas per cluster
40
+
- Postgres extensions besides `pgvector`
41
+
- Customer-facing monitoring and alerting
42
+
- Database migration tools
36
43
37
44
We're working on expanding these capabilities and will provide updates as they become available.
38
45
@@ -42,10 +49,13 @@ To create a new Managed Postgres cluster, visit your Fly.io dashboard and click
42
49
43
50
You'll be prompted to choose:
44
51
45
-
- Cluster name
46
-
- Region
47
-
- A plan with predefined hardware resources (CPU, Memory)
48
-
- Storage size
52
+
- Cluster name (must be unique within your organization)
53
+
- Region (see available regions below)
54
+
- A plan with predefined hardware resources:
55
+
- Launch: 2 vCPUs, 4GB RAM
56
+
- Performance: 4 vCPUs, 8GB RAM
57
+
- Enterprise: 8 vCPUs, 16GB RAM
58
+
- Storage size (up to 500GB at creation)
49
59
50
60
<div>
51
61
<img src="/static/images/create-mpg.webp" alt="A screenshot of the Managed Postgres creation page.">
@@ -55,14 +65,16 @@ You'll be prompted to choose:
55
65
56
66
To connect your Fly.io application to your Managed Postgres instance:
57
67
58
-
- After creation, the "Connection" tab will display your connection string
59
-
- Set it as a secret in your Fly.io application:
68
+
1. After creation, the "Connection" tab will display your connection string
69
+
2. Set it as a secret in your Fly.io application:
60
70
61
71
```cmd
62
72
fly secrets set DATABASE_URL="postgres://username:password@host:port/database"
63
73
```
64
74
65
-
- Your application can now use the `DATABASE_URL` environment variable to connect
75
+
3. Your application can now use the `DATABASE_URL` environment variable to connect
76
+
77
+
For security, the connection string uses SSL by default. Make sure your application's Postgres client is configured to use SSL.
66
78
67
79
## Using flyctl with Managed Postgres
68
80
@@ -76,7 +88,7 @@ To connect directly to your Managed Postgres database using psql:
76
88
fly mpg connect [flags]
77
89
```
78
90
79
-
This command will establish a direct connection to your database using the psql client.
91
+
This command will establish a direct connection to your database using the psql client. You'll need psql installed locally.
80
92
81
93
### Setting up a Proxy Connection
82
94
@@ -86,20 +98,36 @@ To create a proxy connection to your Managed Postgres database:
86
98
fly mpg proxy [flags]
87
99
```
88
100
89
-
This command is useful when you want to connect to your database from your local machine using tools other than psql.
101
+
This command is useful when you want to connect to your database from your local machine using tools other than psql, such as database management tools or your application in development.
90
102
91
103
## Regions
92
104
93
-
The current regions available for deploying Fly.io Managed Postgres are fra, gru, iad, lax, ord, and syd. We'll be rolling out more regions as soon as we can.
105
+
The current regions available for deploying Fly.io Managed Postgres are:
106
+
107
+
-`fra` - Frankfurt, Germany
108
+
-`gru` - São Paulo, Brazil
109
+
-`iad` - Ashburn, USA
110
+
-`lax` - Los Angeles, USA
111
+
-`ord` - Chicago, USA
112
+
-`syd` - Sydney, Australia
113
+
114
+
We'll be rolling out more regions as soon as we can. Choose a region close to your application for optimal performance.
94
115
95
116
## Database Storage
96
117
97
-
Our Managed Postgres comes with an auto-grow disk, so you don't have to worry about manually scaling your storage. Storage grows automatically with your data, with an upper limit of **1 TB**. When you create a cluster, the maximum storage size you can set is **500 GB**.
118
+
Managed Postgres storage features:
119
+
120
+
- Maximum storage limit: 1 TB
121
+
- Initial storage size: Up to 500 GB at creation
122
+
- Storage is replicated across all nodes in your cluster
123
+
- Storage growth is monitored and managed automatically
98
124
99
125
## Pricing
100
126
101
-
Currently, everyone with access to the Technical Preview has been given credits sufficient for two full months' worth of use of the "Launch" plan ($282/month).
127
+
The price of running Fly.io Managed Postgres depends on:
102
128
103
-
The price of running Fly.io Managed Postgres depends on the CPU/Memory configuration you choose and the region in which you're deploying.
129
+
- CPU/Memory configuration (Launch, Performance, or Enterprise plans)
130
+
- Region in which you're deploying
131
+
- Storage usage
104
132
105
-
Database storage is priced at **$0.30 per GB for a 30-day month**, with each node (primary + replica) incurring its own cost.
133
+
Database storage is priced at **$0.30 per GB for a 30-day month**, with each node (primary + replica) incurring its own cost. You can view detailed pricing in your Fly.io dashboard.
0 commit comments