DBaaS · Multi-engine

🗄 Databases — DBaaS chuẩn enterprise

LotusCloud cung cấp DBaaS tương đương AWS RDS / GCP Cloud SQL / Azure Database, với connection pooling (PgBouncer-equivalent), read replica, backup cross-zone, manual failover, parameter groups, monitoring + slow log.

Engines hỗ trợ

10+ engines, đa phiên bản
EnginePhiên bảnServiceHA modeTrạng thái
PostgreSQL9.6 – 15postgres-service :8120Streaming replicationDone
AlloyDB (PG-compat HA)14+alloydb-serviceHA replica + failoverDone
MySQL / MariaDB5.7 / 8.0 / 10.xmysql-service :8121Master/Slave + GTIDDone
MongoDB4.x – 6.0mongo-service :8116Replica set + shardingDone
Redis5.x / 6.2redis-service :8122Sentinel / ClusterDone
SQL Server2017 / 2019 (Linux)sql-service (mssql)Always OnDone
ClickHouse22.3 / 24.8bigquery-serviceShardedDone
Vector DBvector-db-service :8133ReplicatedDone
Spanner-likespanner-serviceGlobally consistentDone
Oracle11g / 19csql-service (manual)ADGRoadmap
TiDB6.5RoadmapDistributedRoadmap
Elasticsearch7.16 / 8.13dataplex-serviceClusterPartial

Năng lực vận hành (5 cấp DBStack-Q)

I · Basic Install

Provisioning + parameter groups qua db-engine & per-engine service.

II · Seamless Upgrades

Rolling upgrade qua migration-service; downtime < 5s.

III · Read/Write Split + Backup

ConnectionPoolConfig, ReadReplica, backup-service, snapshot-service.

IV · Full Lifecycle

HA, auto-healing, account, audit/slow/error log: dr-service, monitor-service, audit-service.

V · Deep Insights

Alert, intelligent inspection, orchestration, auto-scaling, auto-pilot: policy-service, autoscale-service, composer-service, ai-agent-service.

Multi-tenant

Project model + X-Project-ID, RBAC + ABAC, workload identity ngắn hạn cho service-to-DB.

API tiêu biểu

# Tạo database
POST /api/v1/databases
{ "engine": "postgres", "version": "15", "size": "lc.db.medium" }

# Cấu hình connection pool (PgBouncer-equivalent)
PUT /api/v1/databases/:id/pool
{ "pool_mode": "transaction", "pool_size": 100, "idle_timeout": "300s" }

# Read replica
POST /api/v1/databases/:id/replicas
{ "region": "hn", "zone": "hn-1" }

# Manual failover
POST /api/v1/databases/:id/failover
{ "target_zone": "hcm-2" }

# Backup cross-zone
POST /api/v1/backups
{ "database_id": "...", "destination_region": "hn", "replication_mode": "async" }

Migration từ GCP / Azure / On-prem

Near-zero downtime

CDC streaming qua datastream-service; rehearsal → dual-write → cutover < 60s.

Playbook chi tiết

Xem MIGRATION-PLAYBOOK-DB.md + GHN gap closure.