【发布时间】:2021-12-24 18:04:52
【问题描述】:
我正在尝试将我的 dask 客户端连接到部署在我的 GKE 上的 dask 调度程序服务。
使用 Helm 完成部署,dask-scheduler 服务的类型为 LoadBalancer,因此它的类型为 externalIP。
当尝试从集群内部连接时,使用 Jupyter 可以正常工作。 从 GCE 连接时,使用:
Client('tcp://<scheduler-externalIP>:<scheduler-port>')
我收到超时错误:
`Traceback (most recent call last):
File "/home/<user>/.local/lib/python3.7/site-packages/distributed/comm/core.py", line 319, in connect
handshake = await asyncio.wait_for(comm.read(), time_left())
File "/usr/lib/python3.7/asyncio/tasks.py", line 449, in wait_for
raise futures.TimeoutError()
concurrent.futures._base.TimeoutError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "parsing.py", line 25, in <module>
client = Client('tcp://34.147.64.50:8786')
File "/home/<user>/.local/lib/python3.7/site-packages/distributed/client.py", line 763, in __init__
self.start(timeout=timeout)
File "/home/<user>/.local/lib/python3.7/site-packages/distributed/client.py", line 945, in start
sync(self.loop, self._start, **kwargs)
File "/home/<user>/.local/lib/python3.7/site-packages/distributed/utils.py", line 327, in sync
raise exc.with_traceback(tb)
File "/home/<user>/.local/lib/python3.7/site-packages/distributed/utils.py", line 310, in f
result[0] = yield future
File "/home/<user>/.local/lib/python3.7/site-packages/tornado/gen.py", line 762, in run
value = future.result()
File "/home/<user>/.local/lib/python3.7/site-packages/distributed/client.py", line 1035, in _start
await self._ensure_connected(timeout=timeout)
File "/home/<user>/.local/lib/python3.7/site-packages/distributed/client.py", line 1096, in _ensure_connected
self.scheduler.address, timeout=timeout, **self.connection_args
File "/home/<user>/.local/lib/python3.7/site-packages/distributed/comm/core.py", line 326, in connect
) from exc
OSError: Timed out during handshake while connecting to tcp://<externalIP>:8786 after 30 s`
【问题讨论】:
-
你检查你的防火墙规则了吗?如果配置错误,它们可能会阻塞流量。
-
你好@VinB。有更新吗?
标签: python google-compute-engine google-kubernetes-engine dask-distributed