Hello @maikefischer
If you have configured docker proxy at ~/.docker/config.json
you can just mount this file to /root/.docker/config.json
inside the manager container.
Otherwise you can set it up using this docker documentation -> https://docs.docker.com/network/proxy/ and mount the configuration file.
@maikefischer sorry for the late reply - didn't get the notification :(
it' depends on your cluster deployment method. e.g. you can edit your docker-compose file to mount the file. With kubernetes you can use ConfigMap mount in deployment.
https://docs.docker.com/compose/compose-file/#volumes
https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/
Hi @AgrawalAmey.
Sorry for the late reply. Monitoring service is not available as OSS right now, it's an enterprise feature. If you want, we can make a demo for you showing off monitoring service with various metrics, data profiling, reqstore. Please, submit a request via site https://hydrosphere.io/ for a more detailed discussion.
can i suggest updating https://hydrosphere.io/serving/ ? It says "Automated versioning, monitoring and testing functionality are included." and "Everything is open source. No premium features and enterprise versions. No hidden costs and learning curve can be as smooth as it gets."
Hello everyone!
I am trying to finish this tutorial: https://hydrosphere.io/serving-docs/latest/getting-started/serving-simple-model.html, but I have the following error:
sorry for late reply, didn't get a notification of your message.
Yeah, sometimes gitter does that. I didn't get them either ¯_(ツ)_/¯
There is possibility that the infrastructure didn't start up properly, and nginx can't pass requests.
Assuming that you deployed hydroserving on docker-compose, could you please send the result of docker ps -a
with hydroserving containers and logs of postgres
manager
and managerui
containers
f9317f35aed2 f5895cade5d0 "/bin/sh -c 'pip ins…" 2 days ago Exited (1) 2 days ago angry_lederberg
82059c92a976 164367ad044d "/bin/sh -c 'pip ins…" 2 days ago Exited (1) 2 days ago objective_mcclintock
339e4f6ac31e 359e7316378e "/bin/sh -c 'pip ins…" 4 days ago Exited (1) 4 days ago musing_torvalds
d89f5281975e 3c997be69bd0 "/bin/sh -c 'pip ins…" 4 days ago Exited (1) 4 days ago upbeat_sinoussi
217b0f30723a 2241f577786f "/bin/sh -c 'pip ins…" 4 days ago Exited (1) 4 days ago keen_satoshi
d26cc60be162 hydrosphere/serving-manager-ui:2.2.0 "/bin/sh -c 'envsubs…" 3 weeks ago Up 45 seconds 0.0.0.0:80->80/tcp managerui
c450de23219e hydrosphere/serving-gateway:2.2.0 "/hydro-serving/app/…" 3 weeks ago Up 46 seconds gateway
5088293cf1f4 hydrosphere/serving-manager:2.2.0 "/hydro-serving/app/…" 3 weeks ago Up 46 seconds 0.0.0.0:19090->9090/tcp, 0.0.0.0:19091->9091/tcp manager
ef61cd999b3e postgres:9.6-alpine "docker-entrypoint.s…" 3 weeks ago Up 46 seconds postgres
@danikgan hi!
I have just checked your logs
Thread starvation or clock leap detected.
Seems like there are not enough resources for containers and it keeps failing because of connection leaks
Could you try to allocate more resources to the containers and check if it fixes the issue?
debug: Current cluster: {'cluster': {'server': 'http://localhost'}, 'name': 'local'}
debug: Payload src/ is resolved as /Users/danikgan/Desktop/Hydrosphere/increment_model/src
debug: Payload requirements.txt is resolved as /Users/danikgan/Desktop/Hydrosphere/increment_model/requirements.txt
debug: Popen(['git', 'version'], cwd=/Users/danikgan/Desktop/Hydrosphere/increment_model, universal_newlines=False, shell=None, istream=None)
debug: Popen(['git', 'version'], cwd=/Users/danikgan/Desktop/Hydrosphere/increment_model, universal_newlines=False, shell=None, istream=None)
debug: Error while extracting .git metadata: /Users/danikgan/Desktop/Hydrosphere/increment_model
debug: Can't extract DVC metadata: No module named 'dvc'
Parsed model definition
Name: increment_model
Runtime: hydrosphere/serving-runtime-python-3.6:2.2.1
Install command: pip install -r requirements.txt
Host selector: None
Training data: None
Signature name: increment
Inputs:
| name | shape | type | profile |
|--------|---------|----------|-----------|
| number | [-1] | DT_INT32 | NUMERICAL |
Outputs:
| name | shape | type | profile |
|--------|---------|----------|-----------|
| number | [-1] | DT_INT32 | NUMERICAL |
Monitoring:
None
Metadata:
Payload:
/Users/danikgan/Desktop/Hydrosphere/increment_model/src
/Users/danikgan/Desktop/Hydrosphere/increment_model/requirements.txt
================================
debug: Creating archive: /Users/danikgan/Desktop/Hydrosphere/increment_model/.hs/increment_model/increment_model.tar.gz
debug: Archiving /Users/danikgan/Desktop/Hydrosphere/increment_model/src as src
debug: Archiving /Users/danikgan/Desktop/Hydrosphere/increment_model/requirements.txt as requirements.txt
Uploading model to http://localhost
================================
debug: MULTIPART POST: http://localhost/api/v2/model/upload. Parts: {'metadata': '{"contract": {"modelName": "model", "predict": {"signatureName": "increment", "inputs": [{"name": "number", "profile": "NUMERICAL", "shape": {"dim": [{"size": -1, "name": ""}], "unknownRank": false}, "dtype": "DT_INT32"}], "outputs": [{"name": "number", "profile": "NUMERICAL", "shape": {"dim": [{"size": -1, "name": ""}], "unknownRank": false}, "dtype": "DT_INT32"}]}}, "hostSelectorName": null, "runtime": {"tag": "2.2.1", "name": "hydrosphere/serving-runtime-python-3.6"}, "name": "increment_model", "installCommand": "pip install -r requirements.txt", "metadata": {}}', 'payload': ('filename', <_io.BufferedReader name='/Users/danikgan/Desktop/Hydrosphere/increment_model/.hs/increment_model/increment_model.tar.gz'>)}
debug: Starting new HTTP connection (1): localhost:80
debug: http://localhost:80 "POST /api/v2/model/upload HTTP/1.1" 200 650
debug: Starting new HTTP connection (1): localhost:80
debug: http://localhost:80 "GET /api/v2/model/version/73/logs HTTP/1.1" 200 None
debug: Initialized SSE client from event source <Response [200]>
Build logs:
debug: Dispatching Log event #0, no data...
debug: Dispatching Log event #1, 60 bytes...
Step 1/6 : FROM hydrosphere/serving-runtime-python-3.6:2.2.1
debug: Dispatching Log event #2, 103 bytes...
manifest for hydrosphere/serving-runtime-python-3.6:2.2.1 not found: manifest unknown: manifest unknown
debug: Dispatching EndOfStream event, no data...
================================
debug: Starting new HTTP connection (1): localhost:80
debug: http://localhost:80 "GET /api/v2/model/version/increment_model/7 HTTP/1.1" 200 702
error: Model build failed
debug: Current cluster: {'cluster': {'server': 'http://localhost'}, 'name': 'local'}
debug: Payload src/ is resolved as /Users/danikgan/Desktop/Hydrosphere/linear_regression/src
debug: Payload requirements.txt is resolved as /Users/danikgan/Desktop/Hydrosphere/linear_regression/requirements.txt
debug: Payload model.h5 is resolved as /Users/danikgan/Desktop/Hydrosphere/linear_regression/model.h5
debug: Popen(['git', 'version'], cwd=/Users/danikgan/Desktop/Hydrosphere/linear_regression, universal_newlines=False, shell=None, istream=None)
debug: Popen(['git', 'version'], cwd=/Users/danikgan/Desktop/Hydrosphere/linear_regression, universal_newlines=False, shell=None, istream=None)
debug: Error while extracting .git metadata: /Users/danikgan/Desktop/Hydrosphere/linear_regression
debug: Can't extract DVC metadata: No module named 'dvc'
Parsed model definition
Name: linear_regression
Runtime: hydrosphere/serving-runtime-python-3.7:2.2.0
Install command: pip install -r requirements.txt
Host selector: None
Training data: None
Signature name: infer
Inputs:
| name | shape | type | profile |
|--------|---------|-----------|-----------|
| x | [-1, 2] | DT_DOUBLE | NUMERICAL |
Outputs:
| name | shape | type | profile |
|--------|---------|-----------|-----------|
| y | [-1] | DT_DOUBLE | NUMERICAL |
Monitoring:
None
Metadata:
Payload:
/Users/danikgan/Desktop/Hydrosphere/linear_regression/src
/Users/danikgan/Desktop/Hydrosphere/linear_regression/requirements.txt
/Users/danikgan/Desktop/Hydrosphere/linear_regression/model.h5
================================
debug: Creating archive: /Users/danikgan/Desktop/Hydrosphere/linear_regression/.hs/linear_regression/linear_regression.tar.gz
debug: Archiving /Users/danikgan/Desktop/Hydrosphere/linear_regression/src as src
debug: Archiving /Users/danikgan/Desktop/Hydrosphere/linear_regression/requirements.txt as requirements.txt
debug: Archiving /Users/danikgan/Desktop/Hydrosphere/linear_regression/model.h5 as model.h5
Uploading model to http://localhost
================================
debug: MULTIPART POST: http://localhost/api/v2/model/upload. Parts: {'metadata': '{"contract": {"modelName": "model", "predict": {"signatureName": "infer", "inputs": [{"name": "x", "profile": "NUMERICAL", "shape": {"dim": [{"size": -1, "name": ""}, {"size": 2, "name": ""}], "unknownRank": false}, "dtype": "DT_DOUBLE"}], "outputs": [{"name": "y", "profile": "NUMERICAL", "shape": {"dim": [{"size": -1, "name": ""}], "unknownRank": false}, "dtype": "DT_DOUBLE"}]}}, "hostSelectorName": null, "runtime": {"tag": "2.2.0", "name": "hydrosphere/serving-runtime-python-3.7"}, "name": "linear_regression", "installCommand": "pip install -r requirements.txt", "metadata": {}}', 'payload': ('filename', <_io.BufferedReader name='/Users/danikgan/Desktop/Hydrosphere/linear_regression/.hs/linear_regression/linear_regression.tar.gz'>)}
debug: Starting new HTTP connection (1): localhost:80
debug: http://localhost:80 "POST /api/v2/model/upload HTTP/1.1" 200 665
debug: Starting new HTTP connection (1): localhost:80
debug: http://localhost:80 "GET /api/v2/model/version/74/logs HTTP/1.1" 200 None
debug: Initialized SSE client from event source <Response [200]>
Build logs:
debug: Dispatching Log event #0, no data...
debug: Dispatching Log event #1, 60 bytes...
Step 1/6 : FROM hydrosphere/serving-runtime-python-3.7:2.2.0
debug: Dispatching Log event #2, 103 bytes...
manifest for hydrosphere/serving-runtime-python-3.7:2.2.0 not found: manifest unknown: manifest unknown
debug: Dispatching EndOfStream event, no data...
================================
debug: Starting new HTTP connection (1): localhost:80
debug: http://localhost:80 "GET /api/v2/model/version/linear_regression/35 HTTP/1.1" 200 717
error: Model build failed