Multi ollama server #12055
Multi ollama server
#12055
Replies: 2 comments 3 replies
|
@Espinaydelfin Not using Ollama would be a starter, Ollama is for small stuff, not production ready. It doesn't scale and it is a wrapper to llama.cpp. You should migrate from ollama. |
0 replies
|
I actually already found a solution to this issue in a previous discussion, but thank you all for your input and comments anyway! |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Question:
Is there a way to connect multiple instances of Ollama with load balancing to OpenWeb UI, considering the increasing number of concurrent users and the need to distribute the workload while maintaining a single web server?
Background:
Due to the growing number of concurrent users, our system is experiencing performance issues, and we require a solution that can balance the load across multiple servers. Our ideal scenario would be to implement load balancing on the Ollama server instances, which are currently overwhelmed, rather than introducing additional web servers.
Current Architecture:
Our current architecture consists of a single OpenWeb UI instance connected to a single Ollama server instance. As the number of concurrent users increases, the Ollama server becomes a bottleneck, affecting overall system performance.
Requirements:
We are looking for a solution that can:
Connect multiple Ollama instances: Allow us to connect multiple Ollama server instances to OpenWeb UI.
Load balancing: Implement load balancing across these Ollama instances to distribute the workload and improve performance.
Single web server: Maintain a single OpenWeb UI instance as the entry point for all users, if possible.
Scalability: Ensure that the solution is scalable and can handle increasing numbers of concurrent users.
Potential Solutions:
We are open to exploring different approaches, including:
Ollama clustering: Implementing Ollama clustering to distribute the workload across multiple instances.
Load balancing software: Using load balancing software (e.g., HAProxy, NGINX) to distribute traffic across multiple Ollama instances.
Has anyone implemented a similar solution in the past? What recommendations can you provide based on your experience? We're looking to set up an on-premises infrastructure, as cloud environments are not feasible for us due to high costs. Fortunately, we already have multiple local servers available for deployment. Any insights or best practices you can share would be greatly appreciated.
All reactions