ClickhouseProblem & solution
Why Trainy migrated from Amazon RDS Postgres to ClickHouse Managed Postgres
Summary
Trainy’s Pluto is an open-source experiment tracker that separates analytics metrics in ClickHouse Cloud from relational run metadata in Postgres. Its original metadata store, Amazon RDS Postgres, was too expensive for the volume observed and contributed to slower initial page loads, so Trainy migrated roughly 40–50 GB to ClickHouse Managed Postgres, which uses local NVMe storage and keeps both databases in one account. After migration, initial page loads became 2–3 times faster, while a complex query reported as taking 10–15 minutes previously returned in five seconds; visualization queries over runs with hundreds of thousands of steps typically return in 50–100 milliseconds at the P50. Trainy reports 100% reliable ingestion with zero dropped data points and says the unified stack could support future joins between GPU metrics and run metadata, as well as governed agent access.
Context
Pluto’s metadata layer on Amazon RDS Postgres had two explicit problems: its initial defaults were too expensive for the volume Trainy was seeing, and fetching experiment metadata contributed to slower initial page loads. Trainy also wanted to keep its analytics and relational data services within the same ClickHouse account and vendor.
Approach / What changed
Trainy moved Pluto’s approximately 40–50 GB metadata layer from Amazon RDS Postgres to ClickHouse Managed Postgres while retaining metrics and analytics in ClickHouse Cloud. The managed Postgres service uses local NVMe storage, and the combined setup keeps the OLAP and OLTP databases under one account. Trainy is also considering CDC replication and governed agent access for future cross-database workflows.
Takeaways
Pluto places observability-style metrics in ClickHouse and relational run data, including creation times and hyperparameters, in Postgres.
ClickHouse Managed Postgres runs on local NVMe storage rather than the network-attached storage used by most managed Postgres services, keeping storage next to compute.
ClickHouse query insights give Trainy 80–90% of the way toward identifying whether slow queries originate in application services or query optimization.
Source and freshness
- Source
- clickhouse.com
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.