Shared Database
Flux Shared DB is a decentralized, persistent database service built on FluxCloud. It bundles standard DB engines with a custom “operator” that:
- Discovers peers via FluxCloud
- Forms a Master‑Slave cluster
- Exposes a native DB interface on port 3307
Overview
- High‑Availability Cluster
Replicates automatically across ≥3 FluxNodes. No single point of failure. - Master‑Slave Replication
- Master handles writes, stamps and sequences them.
- Slaves replicate the Master’s data.
- Reads served locally by any node.
- Scalability & Fault Tolerance
- Reads scale horizontally with added nodes.
- Writes remain globally ordered by the Master.
Figure: Cluster architecture
Clients connect on port 3307; Master sequences writes (red) and replicates to Slaves; any node can serve reads (green).
Supported Engines
- ✅ MySQL (fully supported)
- 🚧 MongoDB (in progress)
- 🚧 PostgreSQL (in progress)
How To Deploy
- Sign in at cloud.runonflux.com → Register New Application
- Complete, in order:
- Details
- Component
- Review