Skip to Content
Get StartedManaged Databases

Managed Databases

redu.cloud provides dedicated managed PostgreSQL and Redis servers under Managed in the sidebar.


1. Create a PostgreSQL database

Go to Managed → Databases → New database.

FieldDescription
NameIdentifier for the server (lowercase, hyphens allowed)
Database nameName of the initial database (default: app)
UsernameDatabase user (default: appuser)
PasswordLeave empty to auto-generate a secure password
PostgreSQL version16 recommended
Server sizeMedium (4GB) for most apps, Large (8GB) for heavy workloads
SSH keypairRequired for server access

Click Create database. Provisioning takes ~5 minutes.


2. Save your credentials

After creation, a credentials panel appears once. Copy the connection string — the password will not be shown again.

postgresql://appuser:YOUR_PASSWORD@SERVER_IP:5432/app

If you miss it, SSH into the server to retrieve the password from /etc/postgresql/*/main/pg_hba.conf or the setup log at /var/log/db-setup.log.


3. Connect to your database

import { Pool } from 'pg'; const pool = new Pool({ connectionString: 'postgresql://appuser:PASSWORD@SERVER_IP:5432/app', });

4. Create a Redis instance

Go to Managed → Redis → New Redis.

FieldDescription
NameIdentifier for the server
PasswordLeave empty to auto-generate
VersionRedis 7 recommended
Server sizeSmall (2GB) handles most caching workloads
SSH keypairRequired for server access

5. Connect to Redis

import Redis from 'ioredis'; const redis = new Redis('redis://:PASSWORD@SERVER_IP:6379');

Backups

Use the Snapshots feature to take a point-in-time backup of the server. Go to Compute → Snapshots, find the database server by name, and create a snapshot.


Last updated on