8000 python/etl: fix etl server commands · NVIDIA/aistore@de0df5c · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit de0df5c

Browse files
python/etl: fix etl server commands
Signed-off-by: Abhishek Gaikwad <gaikwadabhishek1997@gmail.com>
1 parent 38bf47a commit de0df5c

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

python/aistore/sdk/etl/etl_templates.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
ports:
1717
- name: default
1818
containerPort: 8000
19-
command: ["python", "/code/md5_server.py"]
19+
command: ["uvicorn", "fastapi_server:fastapi_app", "--host", "0.0.0.0", "--port", "8000", "--workers", "4"]
2020
readinessProbe:
2121
httpGet:
2222
path: /health
@@ -41,22 +41,14 @@
4141
ports:
4242
- name: default
4343
containerPort: 8000
44-
command: ["python", "/code/hello_world_server.py"]
44+
command: ["uvicorn", "fastapi_server:fastapi_app", "--host", "0.0.0.0", "--port", "8000", "--workers", "4"]
4545
env:
4646
- name: ARG_TYPE
4747
value: "{arg_type}"
4848
readinessProbe:
4949
httpGet:
5050
path: /health
5151
port: default
52-
volumeMounts:
53-
- name: ais
54-
mountPath: /tmp/
55-
volumes:
56-
- name: ais
57-
hostPath:
58-
path: /tmp/
59-
type: Directory
6052
"""
6153

6254
# Returns "Hello World!" on any request.
@@ -150,14 +142,6 @@
150142
httpGet:
151143
path: /health
152144
port: default
153-
volumeMounts:
154-
- name: ais
155-
mountPath: /tmp/
156-
volumes:
157-
- name: ais
158-
hostPath:
159-
path: /tmp/
160-
type: Directory
161145
"""
162146

163147
# Returns the transformed TensorFlow compatible data for the input TAR files. For

0 commit comments

Comments
 (0)
0