1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
|
<div style="">
<div>
<div style="width: 24px; height: 24px; background-color: #FFF7E5; border: 3px solid #FF6132; border-radius: 5px; position: absolute;"> </div>
<div style="margin-left: 48px;">
<h3 style="margin-bottom: 0px;">{{ type }}</h3>
<p style="color: #9D9D9D; margin-bottom: 0px;">{{ id }}</p>
<table style="width: 100%; text-align: left;">
<tr>
<td style="text-align: left;">
<strong>Comm:</strong> {{ address }}
</td>
<td style="text-align: left;">
<strong>Workers:</strong> {{ workers | length }}
</td>
</tr>
<tr>
<td style="text-align: left;">
<strong>Dashboard:</strong> <a href="{{ scheduler | format_dashboard_address }}" target="_blank">{{ scheduler | format_dashboard_address }}</a>
</td>
<td style="text-align: left;">
<strong>Total threads:</strong> {{ workers.values() | map(attribute='nthreads') | sum }}
</td>
</tr>
<tr>
<td style="text-align: left;">
<strong>Started:</strong> {{ started | datetime_from_timestamp | format_time_ago }}
</td>
<td style="text-align: left;">
<strong>Total memory:</strong> {{ workers.values() | map(attribute='memory_limit') | sum | format_bytes }}
</td>
</tr>
</table>
</div>
</div>
<details style="margin-left: 48px;">
<summary style="margin-bottom: 20px;">
<h3 style="display: inline;">Workers</h3>
</summary>
{% for worker_name, worker in workers.items()|sort(attribute='1.name') %}
<div style="margin-bottom: 20px;">
<div style="width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;"> </div>
<div style="margin-left: 48px;">
<details>
<summary>
<h4 style="margin-bottom: 0px; display: inline;">{{ worker["type"] }}: {{ worker["name"] }}</h4>
</summary>
<table style="width: 100%; text-align: left;">
<tr>
<td style="text-align: left;">
<strong>Comm: </strong> {{ worker_name }}
</td>
<td style="text-align: left;">
<strong>Total threads: </strong> {{ worker["nthreads"] }}
</td>
</tr>
<tr>
<td style="text-align: left;">
<strong>Dashboard: </strong> <a href="{{ worker | format_dashboard_address }}" target="_blank">{{ worker | format_dashboard_address }}</a>
</td>
<td style="text-align: left;">
<strong>Memory: </strong> {{ worker["memory_limit"] | format_bytes }}
</td>
</tr>
<tr>
<td style="text-align: left;">
<strong>Nanny: </strong> {{ worker["nanny"] }}
</td>
<td style="text-align: left;"></td>
</tr>
<tr>
<td colspan="2" style="text-align: left;">
<strong>Local directory: </strong> {{ worker["local_directory"] }}
</td>
</tr>
{% if "gpu" in worker %}
<tr>
<td style="text-align: left;">
<strong>GPU: </strong>{{ worker["gpu"]["name"]}}
</td>
<td style="text-align: left;">
<strong>GPU memory: </strong> {{ worker["gpu"]["memory-total"] | format_bytes }}
</td>
</tr>
{% endif %}
{% if "metrics" in worker %}
<tr>
<td style="text-align: left;">
<strong>Tasks executing: </strong> {{ worker["metrics"]["executing"] }}
</td>
<td style="text-align: left;">
<strong>Tasks in memory: </strong> {{ worker["metrics"]["in_memory"] }}
</td>
</tr>
<tr>
<td style="text-align: left;">
<strong>Tasks ready: </strong> {{ worker["metrics"]["ready"] }}
</td>
<td style="text-align: left;">
<strong>Tasks in flight: </strong>{{ worker["metrics"]["in_flight"] }}
</td>
</tr>
<tr>
<td style="text-align: left;">
<strong>CPU usage:</strong> {{ worker["metrics"]["cpu"]}}%
</td>
<td style="text-align: left;">
<strong>Last seen: </strong> {{ worker["last_seen"] | datetime_from_timestamp | format_time_ago }}
</td>
</tr>
<tr>
<td style="text-align: left;">
<strong>Memory usage: </strong> {{ worker["metrics"]["memory"] | format_bytes}}
</td>
<td style="text-align: left;">
<strong>Spilled bytes: </strong> {{ worker["metrics"]["spilled_bytes"]["disk"] | format_bytes }}
</td>
</tr>
<tr>
<td style="text-align: left;">
<strong>Read bytes: </strong> {{ worker["metrics"]["host_net_io"]["read_bps"] | format_bytes }}
</td>
<td style="text-align: left;">
<strong>Write bytes: </strong> {{ worker["metrics"]["host_net_io"]["write_bps"] | format_bytes }}
</td>
</tr>
{% endif %}
</table>
</details>
</div>
</div>
{% endfor %}
</details>
</div>
|