Managed Databases
Fully managed PostgreSQL, MySQL, and Redis with automated backups, PITR, and read replicas
Managed Databases
Fugoku Managed Databases provide fully managed PostgreSQL, MySQL, and Redis with automated backups, point-in-time recovery, read replicas, and zero egress fees.
Access database management at: console.fugoku.com/databases
Supported Engines
| Engine | Versions | Key Features | Ideal For |
|---|---|---|---|
| PostgreSQL | 14, 15, 16 | PostGIS, pgvector, logical replication, partitioning | OLTP, analytics, geospatial, AI |
| MySQL | 8.0 | InnoDB, GTID replication, JSON, invisible indexes | Web apps, e-commerce, CMS |
| Redis | 7.2 | Cluster mode, persistence (RDB/AOF), ACLs, Lua scripting | Caching, sessions, queues, pub/sub |
All engines run on dedicated resources — no shared tenancy, consistent performance.
Creating a Database
Console
- Navigate to Databases
- Click Create Database
- Select Engine: PostgreSQL, MySQL, or Redis
- Select Version: Choose supported version
- Configure Instance:
- Name:
prod-postgres-main - Region:
ashburn-1(must match your VPC) - Plan: Choose CPU/RAM/storage (see plans below)
- High Availability: Enable for automatic failover (PostgreSQL/MySQL)
- Private Network: Attach to your VPC (required)
- Backup Window: Daily backup time (UTC)
- Retention: 7-35 days (PITR)
- Name:
- Click Create Database — Ready in 2-5 minutes
CLI
# PostgreSQL
fugoku databases create \
--name prod-pg \
--engine postgresql \
--version 16 \
--plan db-standard-4 \
--region ashburn-1 \
--network backend-net \
--enable-ha \
--backup-window "03:00" \
--retention 14
# MySQL
fugoku databases create \
--name prod-mysql \
--engine mysql \
--version 8.0 \
--plan db-standard-4 \
--region ashburn-1 \
--network backend-net \
--enable-replicas 2
# Redis
fugoku databases create \
--name session-cache \
--engine redis \
--version 7.2 \
--plan db-redis-standard \
--region ashburn-1 \
--network backend-net \
--cluster-mode enabledAPI
curl -X POST https://api.fugoku.com/v1/databases \
-H "Authorization: Bearer $FUGOKU_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"data": {
"type": "databases",
"attributes": {
"name": "prod-pg",
"engine": "postgresql",
"version": "16",
"plan": "db-standard-4",
"site": "ashburn-1",
"network_id": "net-abc123",
"high_availability": true,
"backup_window": "03:00",
"retention_days": 14
}
}
}'Plans & Pricing
PostgreSQL / MySQL Plans
| Plan | vCPU | RAM | Storage | Max Connections | HA | Hourly | Monthly |
|---|---|---|---|---|---|---|---|
| db-standard-1 | 1 | 2 GB | 20 GB | 100 | Optional | $0.025 | $18 |
| db-standard-2 | 2 | 4 GB | 50 GB | 200 | Optional | $0.050 | $36 |
| db-standard-4 | 4 | 8 GB | 100 GB | 400 | Included | $0.100 | $72 |
| db-standard-8 | 8 | 16 GB | 200 GB | 800 | Included | $0.200 | $144 |
| db-standard-16 | 16 | 32 GB | 400 GB | 1600 | Included | $0.400 | $288 |
| db-memory-4 | 4 | 32 GB | 200 GB | 400 | Included | $0.180 | $130 |
| db-memory-8 | 8 | 64 GB | 400 GB | 800 | Included | $0.360 | $260 |
| db-storage-4 | 4 | 16 GB | 1 TB | 400 | Included | $0.150 | $108 |
Redis Plans
| Plan | vCPU | RAM | Storage | Cluster | Hourly | Monthly |
|---|---|---|---|---|---|---|
| db-redis-standard | 2 | 4 GB | 20 GB | Optional | $0.040 | $29 |
| db-redis-standard-8 | 4 | 8 GB | 50 GB | Optional | $0.080 | $58 |
| db-redis-cluster-4 | 4 | 16 GB | 100 GB | Included | $0.180 | $130 |
| db-redis-cluster-8 | 8 | 32 GB | 200 GB | Included | $0.360 | $260 |
All plans include:
- Automated daily backups + PITR (7-35 days)
- Encryption at rest (AES-256) + TLS in transit
- Zero egress fees
- Automated patching (configurable window)
High Availability (PostgreSQL/MySQL)
Enable HA for automatic failover:
Architecture:
- Primary — Accepts reads/writes
- Standby — Synchronous replication, same region
- Witness — Quorum for split-brain prevention
Failover:
- Automatic on primary failure (< 30s)
- DNS flip via internal load balancer
- No application changes needed
CLI:
# Enable HA on existing database
fugoku databases enable-ha prod-pg
# Promote standby (manual failover)
fugoku databases promote-standby prod-pgRead Replicas (PostgreSQL/MySQL)
Scale reads with async replicas:
# Create read replica
fugoku databases create-replica prod-pg \
--name prod-pg-replica-1 \
--region ashburn-1 \
--plan db-standard-4
# Promote replica to primary
fugoku databases promote-replica prod-pg-replica-1Features:
- Async replication (sub-second lag typical)
- Up to 5 replicas per primary
- Cross-region replicas for DR
- Promote to primary in < 60s
Redis Cluster Mode
Enable horizontal scaling:
fugoku databases create \
--name redis-cluster \
--engine redis \
--version 7.2 \
--plan db-redis-cluster-8 \
--region ashburn-1 \
--network backend-net \
--cluster-mode enabled \
--shards 3 \
--replicas-per-shard 1Features:
- Automatic sharding across shards
- Multi-AZ replica placement
- Automatic failover with Redis Sentinel
- Lua scripting, Pub/Sub, Streams supported
Backups & Point-in-Time Recovery (PITR)
Automated Backups
- Daily full backup — Configurable window (default 03:00 UTC)
- Continuous WAL archiving — PostgreSQL/MySQL
- RDB snapshots — Redis (configurable frequency)
Point-in-Time Recovery (PITR)
Restore to any second within retention window:
# Restore to specific timestamp
fugoku databases restore prod-pg \
--pitr "2024-01-15T14:30:00Z" \
--name prod-pg-restored
# Restore to latest
fugoku databases restore prod-pg --latest --name prod-pg-restoredRetention: 7-35 days (configurable per database)
Manual Snapshots
# Create manual snapshot
fugoku databases snapshot prod-pg --name before-migration
# List snapshots
fugoku databases snapshots prod-pg
# Restore from snapshot
fugoku databases restore prod-pg --snapshot snap-abc123 --name prod-pg-restoredConnection & Security
Connection Details
# Get connection info
fugoku databases get prod-pg
# Output:
# Host: prod-pg.ashburn-1.fugoku.cloud
# Port: 5432
# Database: fugoku
# User: fugoku
# Password: (shown once, or reset)
# TLS: Required (cert provided)SSL/TLS
- TLS 1.2+ required for all connections
- Server certificate provided for verification
- Client certificates optional (mutual TLS)
Access Control
- Private network only — Databases only accessible from attached VPC
- Security groups — Firewall rules per database
- IAM authentication — Optional, integrate with your IdP
- Database users — Create via console/CLI/API
# Create database user
fugoku databases user create prod-pg \
--username app_user \
--password auto-generate \
--permissions read_writeEncryption
- At rest: AES-256 (default), customer-managed keys (CMK) available
- In transit: TLS 1.2+ (enforced)
- Backup encryption: Separate keys, same standards
Monitoring & Metrics
Key Metrics
| Metric | PostgreSQL | MySQL | Redis |
|---|---|---|---|
| CPU utilization | ✓ | ✓ | ✓ |
| Memory usage | ✓ | ✓ | ✓ |
| Disk usage | ✓ | ✓ | ✓ |
| Connections | ✓ | ✓ | ✓ |
| Query latency (p50/p95/p99) | ✓ | ✓ | ✓ |
| Cache hit ratio | ✓ | ✓ | ✓ |
| Replication lag | ✓ | ✓ | ✓ |
| Cache evictions | — | — | ✓ |
View Metrics
Console: Database detail → Metrics tab
CLI:
fugoku databases metrics prod-pg --period 1hSet Up Alerts
fugoku alerts create \
--database prod-pg \
--metric cpu \
--threshold 80 \
--duration 5m \
--notify email:ops@yourcompany.com
fugoku alerts create \
--database prod-pg \
--metric connections \
--threshold 80 \
--duration 5m \
--notify email:ops@yourcompany.comMaintenance & Patching
Automated Patching
- Minor versions — Auto-applied in maintenance window
- Major versions — Opt-in, scheduled
- Maintenance window — Configurable (default: Sun 03:00-05:00 UTC)
- Notifications — 7 days advance notice for major upgrades
Manual Maintenance
# Trigger minor upgrade
fugoku databases upgrade prod-pg --version 16.2
# Schedule maintenance window
fugoku databases schedule-maintenance prod-pg \
--day sunday \
--time 04:00 \
--duration 2hImport / Export
Import Data
# From SQL dump
fugoku databases import prod-pg --file dump.sql
# From another Fugoku database
fugoku databases clone prod-pg --name prod-pg-cloneExport Data
# To SQL dump
fugoku databases export prod-pg --format sql --output dump.sql
# To CSV (specific table)
fugoku databases export prod-pg --table users --format csv --output users.csvCompliance & Security
| Standard | PostgreSQL | MySQL | Redis |
|---|---|---|---|
| SOC 2 Type II | ✓ | ✓ | ✓ |
| HIPAA | ✓ (BAA) | ✓ (BAA) | ✓ (BAA) |
| GDPR | ✓ | ✓ | ✓ |
| PCI DSS | ✓ | ✓ | ✓ |
| Encryption at rest | AES-256 | AES-256 | AES-256 |
| TLS in transit | 1.2+ | 1.2+ | 1.2+ |
| Customer-managed keys | ✓ | ✓ | ✓ |
Audit Logging
All administrative actions logged:
- Database create/delete/modify
- User create/delete/permission changes
- Backup/restore operations
- Configuration changes
- Access via console: Audit Logs page
Migration
From Self-Hosted
# 1. Create target database on Fugoku
fugoku databases create --name prod-pg --engine postgresql --version 16 ...
# 2. Dump source
pg_dump -h source-host -U postgres -d mydb > dump.sql
# 3. Import to Fugoku
fugoku databases import prod-pg --file dump.sql
# 4. Update DNS / connection stringsFrom Other Cloud
- AWS RDS → Use
pg_dump/mysqldump+ import - Google Cloud SQL → Use Cloud SQL export + import
- Azure Database → Use Azure export + import
Troubleshooting
| Issue | Resolution |
|---|---|
| High CPU | Check slow queries, add indexes, consider read replica |
| High memory | Check work_mem, shared_buffers, connection count |
| Slow queries | Enable pg_stat_statements, analyze with EXPLAIN ANALYZE |
| Replication lag | Check network, reduce write load, check standby resources |
| Connection refused | Check VPC attachment, security groups, DNS |
| Backup failed | Check disk space, WAL archiving, retention settings |
CLI Reference
# Create
fugoku databases create --name <name> --engine <pg|mysql|redis> --version <v> --plan <plan> --region <region> --network <network>
# List
fugoku databases list
# Get
fugoku databases get <name>
# Update
fugoku databases update <name> --plan <new-plan>
# Delete
fugoku databases delete <name> --confirm
# HA
fugoku databases enable-ha <name>
fugoku databases disable-ha <name>
# Replicas
fugoku databases create-replica <name> --name <replica-name> --plan <plan>
fugoku databases promote-replica <replica-name>
# Backups
fugoku databases snapshot <name> --name <snapshot-name>
fugoku databases restore <name> --pitr <timestamp> --name <new-name>
fugoku databases enable-backups <name> --schedule daily --retention 14
# Users
fugoku databases user create <db-name> --username <user> --password auto
fugoku databases user delete <db-name> <username>
# Metrics
fugoku databases metrics <name> --period 1h
# Import/Export
fugoku databases import <name> --file dump.sql
fugoku databases export <name> --format sql --output dump.sqlGetting Help
- Documentation: docs.fugoku.com/databases
- Support: support@fugoku.com
- Status: status.fugoku.com
- Database Engineering: databases@fugoku.com
Next Steps: