Catalogue / pinterest-2023-goku-recovery-time

Pinterest cuts Goku time series database recovery from hours by pulling from per-shard Kafka partitions, local disks and bulk-loadable files

Pinterest, 2023. Goku time series database for metrics (GokuS short term and GokuL long term storage).

Organisation
Pinterest
Evidence
Reported from production
Source
Improving Efficiency Of Goku Time Series Database at Pinterest (Part — 1)

Pinterest Engineering Blog, published 2023-11-22

Records

Decision#d1

Switch GokuS from push ingestion with EFS persistence to pulling per-shard Kafka partitions with local disk and S3 backup

Decision#d2

Route queries by each shard's Kafka lag instead of by synthetic metrics checked for a whole cluster

Decision#d3

Write a separate SST file per key type so new GokuL hosts can bulk-ingest their data and bootstrap faster

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.