Data Migration from Clickhouse OSS (running in EKS) to Clickhouse Cloud #10956
Describe your questionWondering if anyone's gone through the process of migrating from OSS Clickhouse running in EKS to Clickhouse Cloud. If so, how did you accomplish migrating existing data over to new cloud instance? Reading through docs, traces should be first stored in S3 before loading into Clickhouse. I see a few issues/threads on using an internal script to load data from S3. Can I point my langfuse deployment to the new Clickhouse cloud service and load all traces/events/etc using this or another script? Clickhouse cloud has some docs on migrating from OSS to Cloud but was wondering if there was a documented way of doing this. Thanks in advance! Langfuse Cloud or Self-Hosted?Self-Hosted If Self-Hostedv3.100.0 OSS If Langfuse CloudNo response SDK and integration versionsNo response Pre-Submission Checklist
|
Replies: 2 comments 1 reply
|
Based on the available documentation, here's what I can confirm about migrating ClickHouse data in Langfuse: Configuration for ClickHouse CloudYou can point your Langfuse deployment to ClickHouse Cloud by updating your environment variables(1): S3/Blob Storage ArchitectureThe documentation confirms that Langfuse v3 uses S3/Blob Store to store all incoming events(2). The architecture stores events in S3/Blob storage before processing them into ClickHouse(2). Data Migration ApproachWhile the documentation doesn't provide a specific step-by-step guide for migrating existing ClickHouse data from EKS to ClickHouse Cloud, the v2 to v3 migration guide mentions that "Information will not be deleted from the S3/Blob Store. This action needs to be performed manually by an administrator"(2), suggesting that S3 serves as the source of truth for event data. What's Not DocumentedThe specific internal replay script you mentioned and the exact process for replaying S3 events into a new ClickHouse Cloud instance aren't covered in the available documentation. For this migration scenario, I'd recommend reaching out through Langfuse's support channels or opening a GitHub discussion, as this appears to be an operational procedure that may require guidance from the Langfuse team. 📚 Sources: Have another question? Just tag @inkeep. |
|
Hey @abeleon-m1 , I think pointing Langfuse to the new ClickHouse instance you'd get all new events in there and then you can try a bunch of different things to move the historic data.
Once you've tried those, let me know what worked best for you! |
Hey @abeleon-m1 ,
I would recommend to use one of the documented ways in ClickHouse as those should be significantly more performant than the script we have in the repo. This is optimized for singular backfills in case the ClickHouse nodes went down between backups and not for full history reloads.
I think pointing Langfuse to the new ClickHouse instance you'd get all new events in there and then you can try a bunch of different things to move the historic data.
I would go in the following order (from easiest to hardest):