|
@@ -280,6 +280,14 @@
|
|
|
|
|
|
<script type="text/x-dust-template" id="tmpl-datanode">
|
|
|
<div class="page-header"><h1>Datanode Information</h1></div>
|
|
|
+<div>
|
|
|
+ <ul class="dfshealth-node-legend">
|
|
|
+ <li class="dfshealth-node-icon dfshealth-node-alive">In service</li>
|
|
|
+ <li class="dfshealth-node-icon dfshealth-node-down">Down</li>
|
|
|
+ <li class="dfshealth-node-icon dfshealth-node-decommisioned">Decommisioned</li>
|
|
|
+ <li class="dfshealth-node-icon dfshealth-node-down-decommisioned">Decommissioned & dead</li>
|
|
|
+ </ul>
|
|
|
+</div>
|
|
|
<div class="page-header"><h1><small>In operation</small></h1></div>
|
|
|
<small>
|
|
|
<table class="table">
|
|
@@ -287,41 +295,34 @@
|
|
|
<tr>
|
|
|
<th>Node</th>
|
|
|
<th>Last contact</th>
|
|
|
- <th>Admin State</th>
|
|
|
- <th>Capacity</th>
|
|
|
- <th>Used</th>
|
|
|
- <th>Non DFS Used</th>
|
|
|
- <th>Remaining</th>
|
|
|
+ <th style="width:180px; text-align:center">Capacity</th>
|
|
|
<th>Blocks</th>
|
|
|
<th>Block pool used</th>
|
|
|
- <th>Failed Volumes</th>
|
|
|
<th>Version</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
{#LiveNodes}
|
|
|
<tr>
|
|
|
- <td>{name} ({xferaddr})</td>
|
|
|
- <td>{lastContact}</td>
|
|
|
- <td>{adminState}</td>
|
|
|
- <td>{capacity|fmt_bytes}</td>
|
|
|
- <td>{used|fmt_bytes}</td>
|
|
|
- <td>{nonDfsUsedSpace|fmt_bytes}</td>
|
|
|
- <td>{remaining|fmt_bytes}</td>
|
|
|
+ <td class="dfshealth-node-icon dfshealth-node-{state}">{name} ({xferaddr})</td>
|
|
|
+ <td ng-value="{lastContact}">{#helper_relative_time value="{lastContact}"/}</td>
|
|
|
+ <td ng-value="{usedPercentage}">
|
|
|
+ <div>
|
|
|
+ <div style="display:inline-block; float: left; padding-right: 10px;">{capacity|fmt_bytes}</div>
|
|
|
+ <div class="clearfix progress dfshealth-node-capacity-bar" title="Non DFS: {nonDfsUsedSpace|fmt_bytes}, Used: {used|fmt_bytes}">
|
|
|
+ <div class="progress-bar {#helper_usage_bar value="{usedPercentage}"/}" style="width: {usedPercentage}%">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
<td>{numBlocks}</td>
|
|
|
<td>{blockPoolUsed|fmt_bytes} ({blockPoolUsedPercent|fmt_percentage})</td>
|
|
|
- <td>{volfails}</td>
|
|
|
<td>{version}</td>
|
|
|
</tr>
|
|
|
{/LiveNodes}
|
|
|
{#DeadNodes}
|
|
|
<tr class="danger">
|
|
|
- <td>{name} ({xferaddr})</td>
|
|
|
- <td>{#helper_lastcontact_tostring value="{lastContact}"/}</td>
|
|
|
- <td>Dead{?decommissioned}, Decommissioned{/decommissioned}</td>
|
|
|
- <td>-</td>
|
|
|
- <td>-</td>
|
|
|
- <td>-</td>
|
|
|
- <td>-</td>
|
|
|
+ <td class="dfshealth-node-icon dfshealth-node-{state}">{name} ({xferaddr})</td>
|
|
|
+ <td>{#helper_relative_time value="{lastContact}"/}</td>
|
|
|
<td>-</td>
|
|
|
<td>-</td>
|
|
|
<td>-</td>
|
|
@@ -418,6 +419,7 @@ There are no reported volume failures.
|
|
|
|
|
|
<script type="text/javascript" src="/static/jquery-1.10.2.min.js">
|
|
|
</script><script type="text/javascript" src="/static/bootstrap-3.0.2/js/bootstrap.min.js">
|
|
|
+</script><script type="text/javascript" src="/static/moment.min.js">
|
|
|
</script><script type="text/javascript" src="/static/dust-full-2.0.0.min.js">
|
|
|
</script><script type="text/javascript" src="/static/dust-helpers-1.1.1.min.js">
|
|
|
</script><script type="text/javascript" src="/static/dfs-dust.js">
|