How can I deploy Chainlit with multiple instances
How can I deploy Chainlit with multiple instances for load balancing, and ensure session or chat state is shared across all instances?
this is my nginx conf
How can I deploy Chainlit with multiple instances for load balancing, and ensure session or chat state is shared across all instances?
![]()
One simple solution is to set transport=websocket in your toml file.
One simple solution is to set transport=websocket in your toml file.
Thank you, but when I upload an image and check the history, the image does not appear on other devices.
Same here. This is a must fix issue to take Chainlit apps to production.
In addition to using nginx to solve this problem, is there a way similar to redis caching to achieve multi-instance session sharing? Are there any brothers who can share
This was brought up a few times before, in #1513 and #1872. There were some suggestions for resolving this in these threads, but nothing concrete as of yet.
So I run with 3x pods on EKS, and solved it with enabling stickiness.. Not a perfect solution (since the load balancer cant move people around pods, but it works just fine)
https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_TargetGroupAttribute.html
This issue is stale because it has been open for 14 days with no activity.
This issue was closed because it has been inactive for 7 days since being marked as stale.