Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gRPC query waits indefinitely while execution giving no output #149

Closed
TechDevCode opened this issue May 5, 2018 · 3 comments
Closed

gRPC query waits indefinitely while execution giving no output #149

TechDevCode opened this issue May 5, 2018 · 3 comments

Comments

@TechDevCode
Copy link

TechDevCode commented May 5, 2018

Hi,
I am trying to run example from https://github.com/SeldonIO/seldon-core/blob/master/notebooks/kubectl_demo_gcp.ipynb for gRPC on google cloud kubernetes cluster. I am able to get token but gRPC query waits indefinitely. Finally I get following error :

{"access_token":"60b9ad42-90b9-4bb8-b90a-12308e35e584","token_type":"bearer","expires_in":42569,"scope":"read write"}
Traceback (most recent call last):
File "test_request.py", line 53, in
grpc_request()
File "test_request.py", line 50, in grpc_request
response = stub.Predict(request=request,metadata=metadata)
File "/usr/local/lib/python2.7/dist-packages/grpc/_channel.py", line 487, in call
return _end_unary_response_blocking(state, call, False, deadline)
File "/usr/local/lib/python2.7/dist-packages/grpc/_channel.py", line 437, in _end_unary_response_blocking
raise _Rendezvous(state, None, None, deadline)
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, OS Error)>

Whats the issue?

@ukclivecox
Copy link
Contributor

Are you sure you waited until seldon-apiserver is running before running the python code that setups up grpc and REST function. It runs:

SELDON_API_IP=getoutput("kubectl get svc -n "+NAMESPACE+" seldon-apiserver -o jsonpath='{.status.loadBalancer.ingress[0].ip}'")

which will only work ones an IP address is provided for a load balancer on GCP.

@TechDevCode
Copy link
Author

TechDevCode commented May 6, 2018

I get the external IP for seldon-apiserver load balancer. Then only I run gRPC query, but still I am only able to get only token and gRPC query waits indefinitely. I have also tried with https://github.com/SeldonIO/seldon-core/tree/master/notebooks/resources/model_grpc.json example deployment file. Still I get same results. I think the problem occurs at authentication step in kubernetes, else grpc works fine while doing docker test.

@ukclivecox
Copy link
Contributor

Closing as old issue. Please reopen if still applies to latest Seldon Core.

agrski pushed a commit that referenced this issue Dec 2, 2022
* add dataflow to kustomize

* install base CRDs

* specify mlserver and triton image for k8s

* configure scheduler side images

* be able to specify images for k8s deploy

* fixes to makefile

* simplify logic in util func

* one node tfsimple pipeline

* use mlserver 1.0.1

* add load pipeline to k6

* add pipeline unload

* wireup dataflow in client k6 scenario

* changes to use only one env var for dataflow test

* fix some bugs

* add jobs

* tidy up

* update makefile

* bug fixes

* fix bug

* fetch ip from env

* get ip dynamically for k6 tests

* fixes to makefile

* update prom docs

* update readme

* add secret creation

* add kafka changes

* add access to dashboards

* filter out throughput

* remove limits and rebuild with kustomize 3.8.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants