talira

CockroachDB

The cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement

source availableCockroachDB Software Licenseself-hostable

CockroachDB is a distributed SQL database from Cockroach Labs that spreads data across nodes, availability zones and regions, keeps serving through node and zone failures, and lets you control where data lives. Since version 24.3 it ships under the CockroachDB Software License: self-hosted production clusters need an Enterprise licence key, which is free (Enterprise Free) for businesses with less than $10M in annual revenue, while single-node development clusters need no key. Cockroach Labs also runs it as a managed service, Cockroach Continuum, on AWS, GCP and Azure, with Standard and Mission Critical editions billed per vCPU-hour.

Ways to install

Package managers

Problems it solves

  • my Postgres primary is a single point of failure and failover still means downtime
  • keep the database up when a whole cloud availability zone or region goes down
  • keep European users' data stored in Europe while the app stays one database
  • scale writes beyond what one database server can handle without sharding in the app
  • a SQL database that spreads itself across several data centres on its own
  • serve users on three continents with low latency from the same database
  • run a distributed database on our own servers in an air-gapped environment
  • I want strongly consistent transactions, not eventual consistency, across regions
  • a managed database with a 99.999% availability SLA
  • a free licence for a high-availability database while my company is still small

Features

  • distributed SQL across nodes, zones and regions
  • control over data placement
  • survives node and zone failures
  • row-level security and column-level encryption (Continuum)
  • change data capture
  • physical cluster replication
  • single-node and demo clusters for development
  • air-gapped self-hosted deployments
  • CockroachDB Cloud API
  • VECTOR type and vector indexes for approximate nearest neighbour search, compatible with pgvector (turned on with the feature.vector_index.enabled cluster setting)
View 1 more
  • CockroachDB operator for Kubernetes, with automatic replication across nodes

Ways to run it

Cockroach Continuum Standard

Hosted by Cockroach Labs

$0.092 per vCPU-hour (about $203/month for 2 vCPU and 100 GB); 30-day trial with $400 credit, no credit card2

Only in this edition

  • shared infrastructure with a 99.99% availability SLA
  • runs on AWS and GCP
  • usage-based storage
  • row-level security, column-level encryption and private connectivity
  • change data capture add-on
  • 1-hour P1 support response

Not included

  • dedicated infrastructure and the 99.999% multi-region SLA2

Pricing

Cockroach Continuum Mission Critical

Hosted by Cockroach Labs

$0.162 per vCPU-hour (about $1,528/month for 12 vCPU and 100 GB); credit card required2

Only in this edition

  • dedicated infrastructure
  • 99.999% availability SLA with multi-region

Pricing

CockroachDB Enterprise (self-hosted)

You run it, CockroachDB Software License (source-available)

Enterprise Free: free for businesses with less than $10M annual revenue (renewed yearly, community support); Enterprise: paid, no published price; single-node development clusters need no key3

Only in this edition

  • every CockroachDB feature
  • on-premises, private cloud, hybrid and air-gapped deployments
  • P1 support and professional services on the paid licence

Not included

  • managed operations34
  • support beyond the community on Enterprise Free3

You arrange

  • servers or a Kubernetes cluster
  • a licence key, renewed every year
  • telemetry to Cockroach Labs on Enterprise Free and Trial (turned off only with a paid licence)
  • backups, monitoring and upgrades

Self-hosting docs

Capabilities

Has an APIplan not known
Has a command line toolplan not known

Alternatives

The same job

These do what CockroachDB does.

  1. PlanetScale The world's fastest and most scalable cloud databases
  2. Google Cloud Spanner Always-on database with virtually unlimited scale
  3. Amazon RDS Easy to manage relational databases optimized for total cost of ownership
  4. PostgreSQL A powerful, open source object-relational database system
  5. TiDB Open source, MySQL-compatible distributed SQL database for transactions, analytics and vector search
  6. MySQL The world's most popular open source database

Compare CockroachDB with the top 3