mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-14 02:55:00 -05:00
[PR #1276] [CLOSED] Better ollama load balancing #7421
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/1276
Author: @asedmammad
Created: 3/24/2024
Status: ❌ Closed
Base:
dev← Head:feat/ollama-load-balance📝 Commits (6)
bcf772aWIP: Add load balancing to backend ollama appb05f37aWIP: Add UI to select load balancer policy04f70f6feat(lb): Get ollama lb values from the backend055f97cMerge branch 'dev' into feat/ollama-load-balancef816fc0fix: Formatting4c92b69fix: Rename get load balancer function📊 Changes
7 files changed (+270 additions, -19 deletions)
View changed files
📝
.env.example(+3 -1)➕
backend/apps/ollama/load_balancer.py(+73 -0)📝
backend/apps/ollama/main.py(+63 -11)📝
backend/config.py(+8 -0)📝
backend/dev.sh(+0 -0)📝
src/lib/apis/ollama/index.ts(+68 -0)📝
src/lib/components/chat/Settings/Connections.svelte(+55 -7)📄 Description
Pull Request Checklist
Description
This introduces a load balancer scheme in ollama app of the backend, resolving issue #1081. The implementation allows setting different strategies in the
.envfile, with support for RoundRobin and WeightedRoundRobin currently available.Changelog Entry
Added
Implemented load balancer scheme for ollama backend
Added RoundRobin and WeightedRoundRobin strategies
Configured strategies in
.env.examplefile for easy customization🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.