Skip to content

Commit

Permalink
Merge pull request #1053 from anarkiwi/hc99
Browse files Browse the repository at this point in the history
add healthcheck config for torchserve.
  • Loading branch information
anarkiwi authored Dec 19, 2023
2 parents 7e834b4 + 42b6c3a commit 172c896
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
17 changes: 11 additions & 6 deletions orchestrator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,17 @@ services:
# nvidia container toolkit etc must be installed.
# Comment out "deploy" if on non-x86 platform (e.g. Pi4)
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
# if torchserve is not being used, comment out the
# dependency.
depends_on:
torchserve:
condition: service_healthy
volumes:
- '${VOL_PREFIX}:/logs'
command:
Expand Down
4 changes: 3 additions & 1 deletion torchserve-cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ services:
torchserve:
restart: always
image: iqtlabs/cuda-torchserve:v0.0.6
healthcheck:
start_period: 120s
networks:
- gamutrf
ports:
- '8080:8080'
- '8081:8081'
volumes:
- '${VOL_PREFIX}/model_store:/model_store'
- '/root/.cache:/root/.cache'
- '/root/.cache/pip:/root/.cache/pip'
deploy:
resources:
reservations:
Expand Down
4 changes: 3 additions & 1 deletion torchserve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ services:
torchserve:
restart: always
image: iqtlabs/torchserve:v0.0.6
healthcheck:
start_period: 120s
networks:
- gamutrf
ports:
- '8080:8080'
- '8081:8081'
volumes:
- '${VOL_PREFIX}/model_store:/model_store'
- '/root/.cache:/root/.cache'
- '/root/.cache/pip:/root/.cache/pip'
command:
- --models mini2_snr=mini2_snr.mar

0 comments on commit 172c896

Please sign in to comment.