Catalogue / polarsignals-2025-frostdb-cloud

Polar Signals' cloud FrostDB gave up its no-disk, cheap and simple goals one by one, adding a WAL, replication and node coordination after preemptions lost data

Polar Signals, 2025. Multi-tenant cloud database for continuous profiling data, built around FrostDB.

Organisation
Polar Signals
Evidence
Reported from production
Source
Best Laid Plans: What we learned from building a database

Polar Signals blog, published 2025-06-10

Records

Decision#d1

Partition writes across FrostDB instances that flush Parquet to object storage, with no Kafka in front

Decision#d2

Run the database nodes on preemptible instances to save money

Failure#f1

Preempted nodes could not flush in-memory data to object storage before termination, losing data

Decision#d3

Add a write-ahead log on local disks, accepting state on the nodes

Decision#d4

Move to SSDs and then replicate data across nodes so a replaying node does not block queries

Decision#d5

Add a coordination layer so a recovering node fetches missed transactions from its cluster peers

Failure#f2

Simultaneous preemption of several nodes could set off a recovery loop of memory blowups and OOM kills

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.