Databases overview
LeafCloud runs managed databases on servers in India. Each database has its own hostname under
db.leafcloud.app and is reached over TLS. You choose Bengaluru (blr) or Delhi (del) when you create
one. The connection guide has the details for psql and application clients.
Engines
Section titled “Engines”Postgres is available to customers now. MySQL and Valkey are coming soon: new databases can only be Postgres. The connection steps for an existing MySQL or Valkey database are in the connection guide.
Run leaf db plans to see the plans your account can use:
leaf db plansleaf db plans --engine postgresThe table lists one row per plan: plan id, engine, vCPU, memory, disk, whether it sleeps, and whether it is shared or dedicated.
| Plan | Memory | Disk | Connections | Runs on | Sleeps |
|---|---|---|---|---|---|
trial-postgres | 512 MiB | 5 GiB | 100 | A server shared with other accounts | If you set a delay |
trial-postgres-small | 256 MiB | 5 GiB | 50 | A server shared with other accounts | If you set a delay |
dedicated-small-postgres | 256 MiB | 15 GiB | 50 | A server used only by your account | No |
dedicated-2g-postgres | 1024 MiB | 10 GiB | 200 | A server used only by your account | No |
dedicated-4g-postgres | 1280 MiB | 20 GiB | 250 | A server used only by your account | No |
A dedicated plan runs on a database node reserved for your account; a small node may also host your
apps. The larger dedicated plans are sized for the live database and its restore copy. Restores on
dedicated-small-postgres must fit the node’s remaining capacity. The dedicated plans appear in
leaf db plans only when your account has such a server.
Sleep when idle is not available to customers yet; databases stay running until you stop or pause them. Once it is available, a database that sleeps shuts down after a quiet period and wakes on the next connection, without losing its data, address or password. Dedicated databases never sleep. See Sleep when idle.
Your account has a quota for the number of databases and the total disk. leaf db create refuses a
database that would exceed it, and the dashboard says when the quota is full.
Multi-AZ
Section titled “Multi-AZ”A dedicated Postgres database can run with a second server in another city as a synchronous standby. LeafCloud then fails over automatically if the primary stops. The database keeps its hostname. See Multi-AZ.
Backups
Section titled “Backups”Every database is backed up automatically. A restore point can be any second in the restore window, and a restore creates a new database, so the original stays available. See Backups and restore.
Getting access
Section titled “Getting access”Databases are enabled per account. There is no self-serve sign-up.
- Sign in to the dashboard and open its Databases page. Until your account has access, the page shows
an invite-only screen: open
https://leafcloud.in/dashboard/?tab=databasesif the tab is not shown. - Choose Request access, write what you will use the database for (optional), then Send request. The page then shows Request pending until we review it.
- We review requests by hand. When access is enabled, the Databases tab appears for your account.
If you would rather email, write to admin@leafcloud.in. You can also use it if a request was declined.
Limits and prices
Section titled “Limits and prices”Prices for dedicated plans are not published yet; ask when you request access. See Pricing and limits for the published limits.