- Jyotin Goel (B22AI063)
tar zxvf CSL2090_PCS2_CourseProject_ollama_Linux_x86_64.tar.gz
sudo sh install.sh
jpt setserver <host>:<port> <model>
Here we take a sample of 3
docker run -d -v ollama:/root/.ollama -p 3030:11434 --name ollama1 ollama/ollama
docker run -d -v ollama:/root/.ollama -p 11432:11434 --name ollama2 ollama/ollama
docker run -d -v ollama:/root/.ollama -p 11433:11434 --name ollama3 ollama/ollama
docker exec -it <container_id> bash
#/ ollama pull gemma:2b
cd nginx_app/
docker build -t loadbalancer .
docker run -p 8080:8080 --network="host" loadbalancer
-
Docker Container
-
Least number of active connections load balancing
-
Round Robin Load balancing
jpt setserver 127.0.0.1:8080 gemma:2b
jpt setserver <hosted_ip>:8080 gemma:2b