Skip to content

Commit

Permalink
chore: use separated volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-van-woerkens committed Nov 7, 2024
1 parent 4c46a59 commit e45122f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def indentString(input_string, indent_level=4):
# up docker compose services
docker compose up -d --build
docker exec ollama-ollama-service-1-1 ollama run {modelName}
docker exec ollama-ollama-service-2-1 ollama run {modelName}
touch /tmp/runcmd_finished
- path: /etc/ssh/sshd_config.d/90-custom-settings.conf
Expand Down
4 changes: 2 additions & 2 deletions templates/docker-compose.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ services:
device_ids: [{{ $gpuListQuoted }}]
capabilities: [gpu]
volumes:
# - "./.ollama-service-{{ add $i 1 }}:/root/.ollama"
- "./.ollama-service:/root/.ollama"
- "./.ollama-service-{{ add $i 1 }}:/root/.ollama"
# - "./.ollama-service:/root/.ollama"
networks:
- ollama-network
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import http from "k6/http";
import { check } from "k6";

export const options = { vus: 4, iterations: 40 };
export const options = { vus: 4, iterations: 16 };

const url = `https://${__ENV.HOST_IP}.nip.io/api/generate`;

Expand Down

0 comments on commit e45122f

Please sign in to comment.