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.
| Field | Description |
|---|---|
| Name | Identifier for the server (lowercase, hyphens allowed) |
| Database name | Name of the initial database (default: app) |
| Username | Database user (default: appuser) |
| Password | Leave empty to auto-generate a secure password |
| PostgreSQL version | 16 recommended |
| Server size | Medium (4GB) for most apps, Large (8GB) for heavy workloads |
| SSH keypair | Required 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/appIf 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
Node.js
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.
| Field | Description |
|---|---|
| Name | Identifier for the server |
| Password | Leave empty to auto-generate |
| Version | Redis 7 recommended |
| Server size | Small (2GB) handles most caching workloads |
| SSH keypair | Required for server access |
5. Connect to Redis
Node.js
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.
Related
Last updated on