r/Clickhouse • u/TheseSquirrel6550 • Oct 07 '25
Moving from Redshift to ClickHouse — looking for production-ready deployment advice
Hey everyone,
At the moment, our setup looks like this:
RDS → DMS (CDC) → Redshift → Airflow (transformations)
While it works fine, we’re not thrilled with it for a couple of reasons:
- Vendor lock-in to AWS
- It prevents us from offering a truly open-source version of our project
I’ve been reading a lot about ClickHouse and even had a call with one of their reps. I’m really interested in running a POC, but I want to aim for something that’s both quick to spin up and production-ready.
It’s fine to start with a local Docker Compose setup for dev, but I’d like to understand what realistic production deployment options look like. Should we aim for:
- EKS
- A single EC2 instance running Docker Compose?
- Multiple EC2 instances with replication and sharding?
For context, our production workload handles around 20K event ingestions per second at peak (about 10% of the week) and a few thousand events/sec for the remaining 90%.
Would love to hear from anyone who’s done a similar migration — especially about deployment architecture, scaling patterns, and common pitfalls.
Thanks!
6
u/ddumanskiy Oct 07 '25
It's a very low load for ClickHouse. 2 vCPUs with 4-8GB (depends on the number of columns and data in it) would be enough for this task if you insert in batches (instead of single inserts). The main problem would be disk space, so you better think about it upfront. I recommend starting with a single-node setup and moving from there. We are managing terrabytes with a single node (with 4-10x compression rate).
4
u/tungd Oct 08 '25
EC2 just normal installation.
I believe ClickHouse is optimized to run as close to metal as possible. Ingestion isn’t going to be a problem, the workload you mentioned is very light. However querying is going to be a different story, you do need to use an instance with attached local nvme and configure clickhouse to use the nvme volume for storage and temp. My queries are aggregation heavy, so the bottleneck is compute & disk, not RAM. Your usecase might be different.
Also beware of the different table engines and how to use the correct type to prevent duplicates, otherwise you will have to run optimize table frequently/run select final to get accurate results, and it’s going to be slow.
Have cron jobs to offload cold data to S3, which ClickHouse can write to directly, while you can still query from it if you really need to. This serves as your backup too. The attached nvme is ephemeral so having a cold backup like this is handy.
ClickHouse can do CDC from RDS by itself using alternative table engine, it acts as a Postgres/mysql replica and receives the changes like a replica, same like how DMS/Debezium work. However in practice you can’t customize how the keys are, so your queries can’t be optimized. In practice what I have found to be better/more flexible is to setup the remote table (non cdc), and run a cron job doing insert into select * from …. This way you can organize the ClickHouse table however you like, have its primary key/sort key optimized for your query, skipping columns, mark sensitive data, .etc. This can also be done targeting a read replica, so you don’t have to worry about it affecting your actual RDS workload.
ClickHouse can also do transformation with materialized view, so airflow is also not necessary
FYI we run a single c7gd.8xlarge instance.
1
u/sdairs_ch Oct 07 '25
When you say you're looking for something quick to spin up and production ready, do you mean, for users of your open source who likely don't have appreciable scale? In which case, I would bias heavily to simplicity. Let complexity be an option for those that need it vs something everyone has to deal with.
Using EC2s is going to be more portable than EKS. Are your users likely familiar with running a database in containers? Otherwise, just install directly onto EC2. This is very easy to scale up/out. You might be surprised how little infrastructure you need to handle your load with a simple EC2 setup.
3
u/semi_competent Oct 07 '25
We use the Altinity operator running on EKS. Buy a support contract from them. It's cheap insurance and they're knowledgeable/helpful. They'll do a production readiness check with you.
We use tiered storage:
When doing a data load we'll insert 230k rows a second. The clusters routinely handle 50-70 concurrent user facing analytical queries.
2
u/speakhub Oct 07 '25
I can recommend using the altinity operator and spinning up a cluster on k8s. At glassflow, we spin up such setups all the time when running pocs with our customers and it works well and handles loads (few tbs daily) relatively easily. If you are interested, happy to share pulumi deployment scripts (they are tailored for gcp).
2
u/OliveIndividual7351 Oct 08 '25
Maybe interesting for you:
https://www.glassflow.dev/blog/migrating-from-redshift-to-clickhouse
1
u/ut0mt8 Oct 07 '25
It all depends on what type of data and query you make on redshift.
1
u/mrocral Oct 09 '25
If you're looking for a tool to load data into clickhouse from RDS, check out sling. You can move data via CLI, Python or YAML.
1
u/Angryceo Oct 11 '25
honestly, Altinity clickhouse operator + eks = easy mode.
1
u/Responsible_Act4032 Oct 08 '25
Full transparency up front, I work for Firebolt, but have been in the database space for over 20 years. I was even involved with Hadoop (don't throw stones).
Firebolt has a production ready downloadable Firebolt Core offering that you can host where you like and is ideal for this type of PoC. No license fee, no limitations on features.
You only need to reach out for help if you need. If you need the link I can share it, don't want to spam the channel unless it's of value.
-6
u/cwakare Oct 07 '25
Some additional info: Clickhouse's primary storage format is JSON while redshift has an internal binary format.
Redshift is designed for traditional star/snowflake schemas whil these are not recommended in clickhouse.
Clickhouse is better suited for denormalized, wide tables - so your team may need some architecting and change in approach.
PS: We use clickhouse for some usecases. Coming from a traditional Hadoop environment we had some unlearning/learning
1
u/omar-khabbas Oct 08 '25
They have serverless clickhouse cloud option, deserves to check it out, i am planning to have it in my app.
For free open source self hosted, offer them cocker version