Skip to content

Commit

Permalink
chore: add note on zero-donwtime background migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen911 committed Dec 17, 2024
1 parent d803b57 commit 76daa23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
7 changes: 7 additions & 0 deletions pages/self-hosting/upgrade-guides/upgrade-v2-to-v3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,13 @@ Also, ensure that you run a recent version of Langfuse, ideally a version later
For a zero-downtime upgrade, we recommend that you provision new instances of the Langfuse web and worker containers
and move your traffic after validating that the new instances are working as expected.

<Callout type="warning">
If you go for the zero-downtime upgrade, we recommend to disable background migrations until you shift traffic to the new instances.
Otherwise, the migration may miss events that are ingested after the new instances were started.
Set `LANGFUSE_ENABLE_BACKGROUND_MIGRATIONS=false` in the environment variables of the new Langfuse web and worker containers until traffic is shifted.
Afterwards, remove the overwrite or set to `true`.
</Callout>

### Upgrade Steps

<Steps>
Expand Down

0 comments on commit 76daa23

Please sign in to comment.