Skip to content

Process to restore Clickhouse state from S3 raw events? #4763

Answered by Steffen911
yuyuma asked this question in Support
Discussion options

You must be logged in to vote

Hey @yuyuma ,
Right now, it's technically possible (and we've used it manually at times), but not automated anywhere within Langfuse. Our approach so far was to extract all events that happened within a given timeframe - via our application logs or the S3 access logs - and to emit a new message into the ingestion-queue on Redis. The worker will pick it up and perform a full merge of all updates that reside within S3.
One could also do it by recursively iterating through all directories within S3, but that would probably be an expensive operation given the S3 API pricing.

Overall, we strongly recommend to perform ClickHouse backups on a regular basis (https://clickhouse.com/docs/en/operati…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by marcklingen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants