Naijacloud
Docs

Managed databases

A managed database is provisioned rather than built. You choose an engine, a size and a region, and get an instance with scheduled backups, live metrics and a browser-based editor.

4 min read

Available engines

EngineTypically used as
PostgreSQLPrimary relational store
MySQLPrimary relational store
RedisCache, queue, session store

Creating a database

Choose New service → Database.

The new database form, with name, engine, connection details and size, and a summary panel showing the estimated cost
Name, engine and size. The credentials are generated for you.

You provide:

  1. Engine and version.
  2. Name. How the database appears in the project.
  3. Region. Put it in the same region as the services that read it.
  4. Size. Databases have their own tiers, including a small Dev size for non-production environments.

Database name, user and password can be left blank to be generated. Generated credentials are strong and unique, which is what you want unless you are migrating and need to match an existing configuration.

Put the database in the same region as the app that queries it. Applications make many queries per request, so a cross-region database multiplies the network cost by the number of queries. See Instance types & regions.

The overview

Once provisioned, the database's overview shows what it is, how it is doing and how much room is left.

A database overview showing its engine, its connection details, and charts for CPU, open connections and storage used
Connection details, with CPU, connections and storage below.

Two numbers to keep an eye on:

  • Connections, against the instance's limit. Exhausting connections is the most common production database failure, and it usually means the application is opening connections per request instead of using a pool.
  • Storage, against the size included with the tier.

Private by default

Databases are provisioned to be reachable by your own services, not published to the internet. A database with a public endpoint only needs one leaked password to become someone else's.

See Connecting to a database for how your services reach it, and how to work with it yourself.

Next steps