rqlite

The fault-tolerant relational database built on SQLite.
High availability, without the hassle.

$ curl -fsSL https://rqlite.io/install.sh | sh

Linux · macOS via brew install rqlite · Windows, Docker & Kubernetes

Up and running

From zero to a fault-tolerant cluster

No external dependencies, no coordination service, no separate consensus layer to operate. Drop the binary on a machine and run it.

  1. Start a node One process, one data directory. You now have SQLite behind an HTTP API.
  2. Join two more Raft handles leader election and replication. Any node can fail without taking the database offline.
  3. Query it from anywhere Plain HTTP and JSON, so there are no drivers to install — though client libraries are available.
rqlite
# 1. Start a node
$ rqlited -node-id 1 data/

# 2. Join two more, and a node can now fail with no downtime
$ rqlited -node-id 2 -http-addr localhost:4003 \
      -raft-addr localhost:4004 -join localhost:4002 data2/
$ rqlited -node-id 3 -http-addr localhost:4005 \
      -raft-addr localhost:4006 -join localhost:4002 data3/

# 3. Query over HTTP, no driver required
$ curl -G 'localhost:4001/db/query' \
      --data-urlencode 'q=SELECT * FROM foo'
{"results":[{"columns":["id","name"],
  "types":["integer","text"],
  "values":[[1,"fiona"]]}]}

Why rqlite

The simplicity of SQLite, made highly available

Whether you are deploying resilient services in the cloud or reliable applications at the edge, rqlite gives you a relational database that is genuinely easy to operate.

Simple

Powerful

Reliable

  • Clustering provides high-availability and fault-tolerance
  • Tunable read consistency, from fast to linearizable
  • Automated backups to S3, MinIO and Google Cloud

In production

Teams are replacing heavier databases with rqlite

Replacing Postgres with rqlite has simplified the software we ship to customers. Its distributed architecture and clustering capabilities have reduced storage complexity, enabling lighter, more supportable Kubernetes clusters.
Marc Campbell CTO, Replicated Replicated
rqlite serves as our read-heavy key-value store, updates in seconds, and helps us globally distribute our application with ease. I’ve yet to find a better open source tool for the job.
Steven Burgoyne CTO, Text Groove Text Groove

See your cluster

A status console, built in

Inspect nodes, Raft state and the health of your cluster from the browser. Read about the UI applications →

The rqlite status console showing cluster and node information

Ready to try it?

Get a node running in under a minute — or come and ask us anything.