You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we use the HTTPServer hidden in the Bokeh server, if we create the dashboard. We then hang various additional routes on the Tornado web application in this server for additional things, like the info pages, and prometheus.
I suggest that we instead create a default HTTP server for the Dask server, and then attach new Tornado applications to that server as needed (like bokeh, prometheus, ...) This might be a bit more aligned to how we actually think about things. Additionally, if we needed to set things up like SSL, it's a bit simpler to do this within the core dask code rather than route various keywords through the bokeh code.
I'm making Bokeh a little better about handling this in bokeh/bokeh#9833 , but short term we would need to bring some of that logic into our codebase (unless we wanted to depend on latest release Bokeh, which I don't think that we want to do).
I'm getting a bit further along in this. I propose the following:
Schedulers and Workers run a Tornado HTTPServer by default. This hosts info pages, health checks, Prometheus metrics, and we make it easy for people to add more routes with configuration We move this code from /dashboard to /http.
For the Bokeh dashboard we no longer create a Bokeh Server, but instead make a Bokeh Tornado Application (called BokehTornado in that library), and register that application with the existing HTTP Server. It's a bit janky to add a new application to a running server, but it doesn't seem impossible.
Activity
mrocklin commentedon Mar 28, 2020
I'm getting a bit further along in this. I propose the following:
Schedulers and Workers run a Tornado HTTPServer by default. This hosts info pages, health checks, Prometheus metrics, and we make it easy for people to add more routes with configuration We move this code from
/dashboardto/http.For the Bokeh dashboard we no longer create a Bokeh Server, but instead make a Bokeh Tornado Application (called BokehTornado in that library), and register that application with the existing HTTP Server. It's a bit janky to add a new application to a running server, but it doesn't seem impossible.
Example attempt