def gpu_utilization_doc(scheduler, extra, doc): with log_errors(): gpu_load = GPUCurrentLoad(scheduler, sizing_mode="stretch_both") gpu_load.update() add_periodic_callback(doc, gpu_load, 100) doc.add_root(gpu_load.utilization_figure) doc.theme = BOKEH_THEME
def status_doc(worker, extra, doc): with log_errors(): statusdb = StatusDashboard(worker, sizing_mode="stretch_both") doc.title = "Adit: Status Dashboard" add_periodic_callback(doc, statusdb, 1000) doc.add_root(statusdb.root) doc.template = env.get_template("aditdata.html") doc.template_variables.update(extra) doc.theme = BOKEH_THEME
def datafeed_doc(webserver, extra, doc): with log_errors(): datamonitor = DataFeedDashboard(webserver, sizing_mode="stretch_both") doc.title = "Adit: FX Data Feed" add_periodic_callback(doc, datamonitor, 1000) doc.add_root(datamonitor.root) doc.template = env.get_template("aditdata.html") doc.template_variables.update(extra) doc.theme = BOKEH_THEME
def counters_doc(server, extra, doc): with log_errors(): doc.title = "Dask Worker Counters" counter = Counters(server, sizing_mode="stretch_both") add_periodic_callback(doc, counter, 500) doc.add_root(counter.root) doc.template = env.get_template("simple.html") doc.template_variables["active_page"] = "counters" doc.template_variables.update(extra) doc.theme = BOKEH_THEME
def systemmonitor_doc(worker, extra, doc): with log_errors(): sysmon = SystemMonitor(worker, sizing_mode="scale_width") doc.title = "Dask Worker Monitor" add_periodic_callback(doc, sysmon, 500) doc.add_root(sysmon.root) doc.template = env.get_template("simple.html") doc.template_variables["active_page"] = "system" doc.template_variables.update(extra) doc.theme = BOKEH_THEME
def gpu_doc(scheduler, extra, doc): with log_errors(): gpu_load = GPUCurrentLoad(scheduler, sizing_mode="stretch_both") gpu_load.update() add_periodic_callback(doc, gpu_load, 100) doc.add_root(gpu_load.memory_figure) doc.add_root(gpu_load.utilization_figure) doc.title = "Dask: GPU" doc.theme = BOKEH_THEME doc.template = env.get_template("gpu.html") doc.template_variables.update(extra)
def crossfilter_doc(worker, extra, doc): with log_errors(): statetable = StateTable(worker) crossfilter = CrossFilter(worker) doc.title = "Dask Worker Cross-filter" add_periodic_callback(doc, statetable, 500) add_periodic_callback(doc, crossfilter, 500) doc.add_root(column(statetable.root, crossfilter.root)) doc.template = env.get_template("simple.html") doc.template_variables["active_page"] = "crossfilter" doc.template_variables.update(extra) doc.theme = BOKEH_THEME
def status_doc(worker, extra, doc): with log_errors(): statetable = StateTable(worker) executing_ts = ExecutingTimeSeries(worker, sizing_mode="scale_width") communicating_ts = CommunicatingTimeSeries(worker, sizing_mode="scale_width") communicating_stream = CommunicatingStream(worker, sizing_mode="scale_width") xr = executing_ts.root.x_range communicating_ts.root.x_range = xr communicating_stream.root.x_range = xr doc.title = "Dask Worker Internal Monitor" add_periodic_callback(doc, statetable, 200) add_periodic_callback(doc, executing_ts, 200) add_periodic_callback(doc, communicating_ts, 200) add_periodic_callback(doc, communicating_stream, 200) doc.add_root( column( statetable.root, executing_ts.root, communicating_ts.root, communicating_stream.root, sizing_mode="scale_width", )) doc.template = env.get_template("simple.html") doc.template_variables["active_page"] = "status" doc.template_variables.update(extra) doc.theme = BOKEH_THEME
def status_doc(worker, extra, doc): statetable = StateTable(worker) executing_ts = ExecutingTimeSeries(worker, sizing_mode="scale_width") communicating_ts = CommunicatingTimeSeries(worker, sizing_mode="scale_width") communicating_stream = CommunicatingStream(worker, sizing_mode="scale_width") xr = executing_ts.root.x_range communicating_ts.root.x_range = xr communicating_stream.root.x_range = xr add_periodic_callback(doc, statetable, 200) add_periodic_callback(doc, executing_ts, 200) add_periodic_callback(doc, communicating_ts, 200) add_periodic_callback(doc, communicating_stream, 200) doc.add_root( column( statetable.root, executing_ts.root, communicating_ts.root, communicating_stream.root, sizing_mode="scale_width", ))
def gpu_memory_doc(scheduler, extra, doc): gpu_load = GPUCurrentLoad(scheduler, sizing_mode="stretch_both") gpu_load.update() add_periodic_callback(doc, gpu_load, 100) doc.add_root(gpu_load.memory_figure) doc.theme = BOKEH_THEME
def counters_doc(server, extra, doc): counter = Counters(server, sizing_mode="stretch_both") add_periodic_callback(doc, counter, 500) doc.add_root(counter.root)
def systemmonitor_doc(worker, extra, doc): sysmon = SystemMonitor(worker, sizing_mode="scale_width") add_periodic_callback(doc, sysmon, 500) doc.add_root(sysmon.root)
def crossfilter_doc(worker, extra, doc): statetable = StateTable(worker) crossfilter = CrossFilter(worker) add_periodic_callback(doc, statetable, 500) add_periodic_callback(doc, crossfilter, 500) doc.add_root(column(statetable.root, crossfilter.root))