mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-01-28 06:51:45 +01:00
review internal dash info card layout
This commit is contained in:
@@ -402,17 +402,17 @@
|
|||||||
<span>{[...clusterInfo?.processorTypes].join(', ')}</span>
|
<span>{[...clusterInfo?.processorTypes].join(', ')}</span>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardBody>
|
<CardBody>
|
||||||
<Table borderless>
|
<Table borderless class="mb-0">
|
||||||
<tr class="py-2">
|
<tr class="py-2">
|
||||||
<td style="font-size:x-large;">{clusterInfo?.runningJobs} Running Jobs</td>
|
<td style="font-size:x-large;">{clusterInfo?.runningJobs} Running Jobs</td>
|
||||||
<td colspan="2" style="font-size:x-large;">{clusterInfo?.activeUsers} Active Users</td>
|
<td style="font-size:x-large;">{clusterInfo?.activeUsers} Active Users</td>
|
||||||
</tr>
|
</tr>
|
||||||
<hr class="my-1"/>
|
<hr class="my-1"/>
|
||||||
<tr class="pt-2">
|
<tr class="pt-2">
|
||||||
<td style="font-size: large;">
|
<td style="font-size: large;">
|
||||||
Flop Rate (<span style="cursor: help;" title="Flops[Any] = (Flops[Double] x 2) + Flops[Single]">Any</span>)
|
Flop Rate (<span style="cursor: help;" title="Flops[Any] = (Flops[Double] x 2) + Flops[Single]">Any</span>)
|
||||||
</td>
|
</td>
|
||||||
<td colspan="2" style="font-size: large;">
|
<td style="font-size: large;">
|
||||||
Memory BW Rate
|
Memory BW Rate
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -421,49 +421,52 @@
|
|||||||
{clusterInfo?.flopRate}
|
{clusterInfo?.flopRate}
|
||||||
{clusterInfo?.flopRateUnit}
|
{clusterInfo?.flopRateUnit}
|
||||||
</td>
|
</td>
|
||||||
<td colspan="2" style="font-size:x-large;">
|
<td style="font-size:x-large;">
|
||||||
{clusterInfo?.memBwRate}
|
{clusterInfo?.memBwRate}
|
||||||
{clusterInfo?.memBwRateUnit}
|
{clusterInfo?.memBwRateUnit}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<hr class="my-1"/>
|
<hr class="my-1"/>
|
||||||
<tr class="py-2">
|
<tr class="pt-2">
|
||||||
<td>{formatNumber(clusterInfo?.allocatedNodes)} Active Nodes</td>
|
<td>{formatNumber(clusterInfo?.allocatedNodes)} Active Nodes</td>
|
||||||
<td style="min-width: 100px;"
|
|
||||||
><div class="col">
|
|
||||||
<Progress multi max={clusterInfo?.totalNodes} style="cursor: help;height:1.5rem;" title={`${formatNumber(clusterInfo?.totalNodes)} Total Nodes`}>
|
|
||||||
<Progress bar color="success" value={clusterInfo?.allocatedNodes}/>
|
|
||||||
<Progress bar color="light" value={clusterInfo?.idleNodes}/>
|
|
||||||
</Progress>
|
|
||||||
</div></td
|
|
||||||
>
|
|
||||||
<td>{formatNumber(clusterInfo?.idleNodes)} Idle Nodes</td>
|
<td>{formatNumber(clusterInfo?.idleNodes)} Idle Nodes</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="py-2">
|
<tr class="pb-2">
|
||||||
|
<td colspan="2"> <Col class="p-0">
|
||||||
|
<Progress
|
||||||
|
color="success" style="cursor:help; height:1rem;"
|
||||||
|
value={clusterInfo?.allocatedNodes} max={clusterInfo?.totalNodes}
|
||||||
|
title={`${formatNumber(clusterInfo?.totalNodes)} Total Nodes`}
|
||||||
|
/>
|
||||||
|
</Col> </td>
|
||||||
|
</tr>
|
||||||
|
<tr class="pt-2">
|
||||||
<td>{formatNumber(clusterInfo?.allocatedCores)} Active Cores</td>
|
<td>{formatNumber(clusterInfo?.allocatedCores)} Active Cores</td>
|
||||||
<td style="min-width: 100px;"
|
|
||||||
><div class="col">
|
|
||||||
<Progress multi max={clusterInfo?.totalCores} style="cursor: help;height:1.5rem;" title={`${formatNumber(clusterInfo?.totalCores)} Total Cores`}>
|
|
||||||
<Progress bar color="success" value={clusterInfo?.allocatedCores}/>
|
|
||||||
<Progress bar color="light" value={clusterInfo?.idleCores}/>
|
|
||||||
</Progress>
|
|
||||||
</div></td
|
|
||||||
>
|
|
||||||
<td>{formatNumber(clusterInfo?.idleCores)} Idle Cores</td>
|
<td>{formatNumber(clusterInfo?.idleCores)} Idle Cores</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr class="pb-2">
|
||||||
|
<td colspan="2"> <Col class="p-0">
|
||||||
|
<Progress
|
||||||
|
color="success" style="cursor:help; height:1rem;"
|
||||||
|
value={clusterInfo?.allocatedCores} max={clusterInfo?.totalCores}
|
||||||
|
title={`${formatNumber(clusterInfo?.totalCores)} Total Cores`}
|
||||||
|
/>
|
||||||
|
</Col> </td>
|
||||||
|
</tr>
|
||||||
{#if clusterInfo?.totalAccs !== 0}
|
{#if clusterInfo?.totalAccs !== 0}
|
||||||
<tr class="py-2">
|
<tr class="pt-2">
|
||||||
<td>{formatNumber(clusterInfo?.allocatedAccs)} Active Accelerators</td>
|
<td>{formatNumber(clusterInfo?.allocatedAccs)} Active Accelerators</td>
|
||||||
<td style="min-width: 100px;"
|
|
||||||
><div class="col">
|
|
||||||
<Progress multi max={clusterInfo?.totalAccs} style="cursor: help;height:1.5rem;" title={`${formatNumber(clusterInfo?.totalAccs)} Total Accelerators`}>
|
|
||||||
<Progress bar color="success" value={clusterInfo?.allocatedAccs}/>
|
|
||||||
<Progress bar color="light" value={clusterInfo?.idleAccs}/>
|
|
||||||
</Progress>
|
|
||||||
</div></td
|
|
||||||
>
|
|
||||||
<td>{formatNumber(clusterInfo?.idleAccs)} Idle Accelerators</td>
|
<td>{formatNumber(clusterInfo?.idleAccs)} Idle Accelerators</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr class="pb-2">
|
||||||
|
<td colspan="2"> <Col class="p-0">
|
||||||
|
<Progress
|
||||||
|
color="success" style="cursor:help; height:1rem;"
|
||||||
|
value={clusterInfo?.allocatedAccs} max={clusterInfo?.totalAccs}
|
||||||
|
title={`${formatNumber(clusterInfo?.totalAccs)} Total Accelerators`}
|
||||||
|
/>
|
||||||
|
</Col> </td >
|
||||||
|
</tr>
|
||||||
{/if}
|
{/if}
|
||||||
</Table>
|
</Table>
|
||||||
</CardBody>
|
</CardBody>
|
||||||
|
|||||||
Reference in New Issue
Block a user