mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
[RayClient] Add the guide for k8s Ingress (#17736)
Co-authored-by: Dmitri Gekhtman <62982571+DmitriGekhtman@users.noreply.github.com> Co-authored-by: seungjaebaek <seungjaebaek@linecorp.com>
This commit is contained in:
parent
58e35a21b4
commit
c6b24fcb5d
1 changed files with 32 additions and 0 deletions
|
@ -121,3 +121,35 @@ Starting a connection on older Ray versions
|
|||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
If you encounter ``socket.gaierror: [Errno -2] Name or service not known`` when using ``ray.init("ray://...")`` then you may be on a version of Ray prior to 1.5 that does not support starting client connections through ``ray.init``. If this is the case, see the `1.4.1 docs <https://docs.ray.io/en/releases-1.4.1/cluster/ray-client.html>`_ for Ray client.
|
||||
|
||||
Connection through the Ingress
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
If you encounter the following error message when connecting to the ``Ray Cluster`` using an ``Ingress``, it may be caused by the Ingress's configuration.
|
||||
|
||||
..
|
||||
.. code-block:: python
|
||||
|
||||
grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with:
|
||||
status = StatusCode.INVALID_ARGUMENT
|
||||
details = ""
|
||||
debug_error_string = "{"created":"@1628668820.164591000","description":"Error received from peer ipv4:10.233.120.107:443","file":"src/core/lib/surface/call.cc","file_line":1062,"grpc_message":"","grpc_status":3}"
|
||||
>
|
||||
Got Error from logger channel -- shutting down: <_MultiThreadedRendezvous of RPC that terminated with:
|
||||
status = StatusCode.INVALID_ARGUMENT
|
||||
details = ""
|
||||
debug_error_string = "{"created":"@1628668820.164713000","description":"Error received from peer ipv4:10.233.120.107:443","file":"src/core/lib/surface/call.cc","file_line":1062,"grpc_message":"","grpc_status":3}"
|
||||
>
|
||||
|
||||
|
||||
If you are using the ``nginx-ingress-controller``, you may be able to resolve the issue by adding the following Ingress configuration.
|
||||
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
metadata:
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/server-snippet: |
|
||||
underscores_in_headers on;
|
||||
ignore_invalid_headers on;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue