Skip to content

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.

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:

TerminalTerminal windowsh
leaf db plans
leaf db plans --engine postgres

The table lists one row per plan: plan id, engine, vCPU, memory, disk, whether it sleeps, and whether it is shared or dedicated.

PlanMemoryDiskConnectionsRuns onSleeps
trial-postgres512 MiB5 GiB100A server shared with other accountsIf you set a delay
trial-postgres-small256 MiB5 GiB50A server shared with other accountsIf you set a delay
dedicated-small-postgres256 MiB15 GiB50A server used only by your accountNo
dedicated-2g-postgres1024 MiB10 GiB200A server used only by your accountNo
dedicated-4g-postgres1280 MiB20 GiB250A server used only by your accountNo

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.

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.

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.

Databases are enabled per account. There is no self-serve sign-up.

  1. 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=databases if the tab is not shown.
  2. 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.
  3. 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.

Prices for dedicated plans are not published yet; ask when you request access. See Pricing and limits for the published limits.