How can Langflow be configured for high availability (HA)? #10506
Replies: 9 comments
-
|
To configure Langflow version 1.4.2 for high availability without encountering a network error when starting two pods, ensure both instances are set up to share the same PostgreSQL database. Here's a step-by-step guide:
This setup ensures both Langflow instances are connected to the same database, allowing for high availability. Verify that the network settings and ports are correctly configured to avoid network errors [1]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
-
|
When deploying Langflow in a Kubernetes cluster using langflow-helm-charts and configuring multiple Pods to share the same PostgreSQL database via environment variables, a network connection error occurs when starting two Pods. |
Beta Was this translation helpful? Give feedback.
-
|
Set environment variables 'LANGFLOW_EVENT_DELIVERY=direct' |
Beta Was this translation helpful? Give feedback.
-
|
event_delivery EventDeliveryType Are there any differences between the three types? I don't see explain on the langflow website |
Beta Was this translation helpful? Give feedback.
-
|
@lianlian1212 |
Beta Was this translation helpful? Give feedback.
-
|
okay,thanks |
Beta Was this translation helpful? Give feedback.
-
|
as per 1.3.3 i experienced memory leaks, like every 2-4k api calls langflow shold be restarted - and i have ~24GB RAM. |
Beta Was this translation helpful? Give feedback.
-
|
as per latest nightly version, and as per latest release, HA right now is not possible with langflow due to memory leaks. |
Beta Was this translation helpful? Give feedback.
-
|
Set environment variables 'LANGFLOW_EVENT_DELIVERY=direct' langflow version:v1.4.3 2025/08/26 08:58:24 [error] 11#11: *704970 upstream prematurely closed connection while reading upstream, client: 10.42.0.160, server: , request: "POST /api/v1/build/74838bbc-bb5c-433e-9d89-2bc4670104e9/flow?start_component_id=ChatInput-BbGox&log_builds=true&event_delivery=direct HTTP/1.1", upstream: "http://10.99.148.138:7860/api/v1/build/74838bbc-bb5c-433e-9d89-2bc4670104e9/flow?start_component_id=ChatInput-BbGox&log_builds=true&event_delivery=direct", host: "xxx.com", referrer: "https://xxx.com/flow/74838bbc-bb5c-433e-9d89-2bc4670104e9/folder/639aa740-7d4f-4d07-9a36-84e430891950" |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How can Langflow be configured for high availability (HA)?
Version 1.4.2 still throws an error when starting 2 pods
Error Building Component
Network error. Please check the connection to the server.
Beta Was this translation helpful? Give feedback.
All reactions