dask-gateway icon indicating copy to clipboard operation
dask-gateway copied to clipboard

Support both TLS and TCP connections between schedulers and workers

Open orf opened this issue 3 years ago • 2 comments

This attempts to support both TLS and TCP connections between schedulers and workers. Closes #449

orf avatar Oct 08 '21 19:10 orf

This seems very, very convoluted. There are assumptions baked in everywhere about the protocol, and some of these are implicit (i.e relying on the existence of a keypair).

It doesn't seem possible to have the scheduler listen on TCP, whilst the gateway accepts connections via TLS (which is required due to some SNI routing in the go proxy?). But this seems quite convoluted.

orf avatar Oct 08 '21 20:10 orf

Looking at this now.

It doesn't seem possible to have the scheduler listen on TCP, whilst the gateway accepts connections via TLS

I think the idea is that you could have TLS termination in the proxy level; but agree that there is no principled reason that the API server and the dask-scheduler should be using the same protocol.

One major comment: actually we support other protocols in dask, particularly UCX. @quasiben : is it possible to have the schduler and workers within the cluster talk UCX, but TCP or TLS for client-scheduler? Or does UCX just figure it all out, magically?

martindurant avatar Feb 22 '22 17:02 martindurant