2021-12-17 16:29:36 +00:00
|
|
|
<Breadcrumb @crumb={{this.breadcrumb}} />
|
2021-02-17 21:01:44 +00:00
|
|
|
{{page-title "Task group " this.model.name " - Job " this.model.job.name}}
|
2018-07-25 22:19:43 +00:00
|
|
|
<div class="tabs is-subnav">
|
|
|
|
<ul>
|
2022-01-06 21:01:55 +00:00
|
|
|
<li><LinkTo @route="jobs.job.task-group" @models={{array this.model.job this.model}} @activeClass="is-active">Overview</LinkTo></li>
|
2018-07-25 22:19:43 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<section class="section">
|
2020-03-24 23:22:16 +00:00
|
|
|
<h1 class="title with-flex">
|
2022-01-06 21:01:55 +00:00
|
|
|
<span>{{this.model.name}}</span>
|
2020-06-18 20:20:14 +00:00
|
|
|
<div>
|
2020-07-09 20:19:07 +00:00
|
|
|
<Exec::OpenButton @job={{this.model.job}} @taskGroup={{this.model}} />
|
|
|
|
{{#if this.model.scaling}}
|
2022-01-06 21:01:55 +00:00
|
|
|
<StepperInput
|
|
|
|
data-test-task-group-count-stepper
|
|
|
|
aria-label={{this.tooltipText}}
|
|
|
|
@min={{this.model.scaling.min}}
|
|
|
|
@max={{this.model.scaling.max}}
|
|
|
|
@value={{this.model.count}}
|
|
|
|
@class="is-primary is-small"
|
|
|
|
@disabled={{or this.model.job.runningDeployment (cannot "scale job" namespace=this.model.job.namespace.name)}}
|
|
|
|
@onChange={{action "scaleTaskGroup"}}>
|
|
|
|
Count
|
|
|
|
</StepperInput>
|
2020-06-18 20:20:14 +00:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2018-07-25 22:19:43 +00:00
|
|
|
</h1>
|
2022-01-06 21:01:55 +00:00
|
|
|
|
2018-07-25 22:19:43 +00:00
|
|
|
<div class="boxed-section is-small">
|
|
|
|
<div class="boxed-section-body inline-definitions">
|
2022-01-06 21:01:55 +00:00
|
|
|
<span class="label">Task Group Details</span>
|
|
|
|
|
|
|
|
<span class="pair" data-test-task-group-tasks><span class="term"># Tasks</span> {{this.model.tasks.length}}</span>
|
|
|
|
<span class="pair" data-test-task-group-cpu><span class="term">Reserved CPU</span> {{format-scheduled-hertz this.model.reservedCPU}}</span>
|
2021-04-28 20:38:14 +00:00
|
|
|
<span class="pair" data-test-task-group-mem>
|
2022-01-06 21:01:55 +00:00
|
|
|
<span class="term">Reserved Memory</span>
|
2021-04-28 20:38:14 +00:00
|
|
|
{{format-scheduled-bytes this.model.reservedMemory start="MiB"}}
|
|
|
|
{{#if (gt this.model.reservedMemoryMax this.model.reservedMemory)}}
|
2022-01-06 21:01:55 +00:00
|
|
|
({{format-scheduled-bytes this.model.reservedMemoryMax start="MiB"}} Max)
|
2021-04-28 20:38:14 +00:00
|
|
|
{{/if}}
|
|
|
|
</span>
|
2022-01-06 21:01:55 +00:00
|
|
|
<span class="pair" data-test-task-group-disk><span class="term">Reserved Disk</span> {{format-scheduled-bytes this.model.reservedEphemeralDisk start="MiB"}}</span>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.model.scaling}}
|
2022-01-06 21:01:55 +00:00
|
|
|
<span class="pair" data-test-task-group-min><span class="term">Count Range</span>
|
|
|
|
{{this.model.scaling.min}} to {{this.model.scaling.max}}
|
2020-06-17 07:20:29 +00:00
|
|
|
</span>
|
2022-01-06 21:01:55 +00:00
|
|
|
<span class="pair" data-test-task-group-max><span class="term">Scaling Policy?</span>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{if this.model.scaling.policy "Yes" "No"}}
|
2020-06-17 07:20:29 +00:00
|
|
|
</span>
|
|
|
|
{{/if}}
|
2017-09-19 14:47:10 +00:00
|
|
|
</div>
|
2018-07-25 22:19:43 +00:00
|
|
|
</div>
|
2022-01-06 21:01:55 +00:00
|
|
|
|
2018-07-25 22:19:43 +00:00
|
|
|
<div class="boxed-section">
|
|
|
|
<div class="boxed-section-head">
|
2022-01-06 21:01:55 +00:00
|
|
|
<div>Allocation Status <span class="badge is-white">{{this.allocations.length}}</span></div>
|
2018-07-25 22:19:43 +00:00
|
|
|
</div>
|
|
|
|
<div class="boxed-section-body">
|
2022-01-06 21:01:55 +00:00
|
|
|
<AllocationStatusBar @allocationContainer={{this.model.summary}} @class="split-view" as |chart|>
|
2018-07-25 22:19:43 +00:00
|
|
|
<ol class="legend">
|
|
|
|
{{#each chart.data as |datum index|}}
|
2022-01-06 21:01:55 +00:00
|
|
|
<li class="{{datum.className}} {{if (eq datum.label chart.activeDatum.label) "is-active"}} {{if (eq datum.value 0) "is-empty"}}">
|
2021-10-25 15:14:01 +00:00
|
|
|
<JobPage::Parts::SummaryLegendItem @datum={{datum}} @index={{index}} />
|
2018-07-25 22:19:43 +00:00
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ol>
|
2020-06-01 19:03:56 +00:00
|
|
|
</AllocationStatusBar>
|
2017-09-19 14:47:10 +00:00
|
|
|
</div>
|
2018-07-25 22:19:43 +00:00
|
|
|
</div>
|
|
|
|
<div class="boxed-section">
|
|
|
|
<div class="boxed-section-head">
|
|
|
|
Allocations
|
2021-11-20 20:07:27 +00:00
|
|
|
<div class="pull-right is-subsection">
|
|
|
|
<MultiSelectDropdown
|
|
|
|
data-test-allocation-status-facet
|
|
|
|
@label="Status"
|
|
|
|
@options={{this.optionsAllocationStatus}}
|
|
|
|
@selection={{this.selectionStatus}}
|
2021-12-18 01:41:53 +00:00
|
|
|
@onSelect={{action this.setFacetQueryParam "qpStatus"}}
|
2021-11-20 20:07:27 +00:00
|
|
|
/>
|
|
|
|
<MultiSelectDropdown
|
2021-12-17 23:45:31 +00:00
|
|
|
data-test-allocation-client-facet
|
2021-11-20 20:07:27 +00:00
|
|
|
@label="Client"
|
|
|
|
@options={{this.optionsClients}}
|
|
|
|
@selection={{this.selectionClient}}
|
2021-12-18 01:41:53 +00:00
|
|
|
@onSelect={{action this.setFacetQueryParam "qpClient"}}
|
2021-11-20 20:07:27 +00:00
|
|
|
/>
|
|
|
|
<SearchBox
|
|
|
|
@searchTerm={{mut this.searchTerm}}
|
|
|
|
@placeholder="Search allocations..."
|
|
|
|
@onChange={{action this.resetPagination}}
|
|
|
|
@class="is-padded"
|
|
|
|
@inputClass="is-compact"
|
|
|
|
/>
|
|
|
|
</div>
|
2018-07-25 22:19:43 +00:00
|
|
|
</div>
|
|
|
|
<div class="boxed-section-body is-full-bleed">
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.sortedAllocations}}
|
2020-06-01 19:03:56 +00:00
|
|
|
<ListPagination
|
2020-07-09 20:19:07 +00:00
|
|
|
@source={{this.sortedAllocations}}
|
|
|
|
@size={{this.pageSize}}
|
|
|
|
@page={{this.currentPage}}
|
2022-01-06 21:01:55 +00:00
|
|
|
@class="allocations" as |p|>
|
2020-06-01 19:03:56 +00:00
|
|
|
<ListTable
|
|
|
|
@source={{p.list}}
|
2020-07-09 20:19:07 +00:00
|
|
|
@sortProperty={{this.sortProperty}}
|
|
|
|
@sortDescending={{this.sortDescending}}
|
2022-01-06 21:01:55 +00:00
|
|
|
@class="with-foot" as |t|>
|
2020-06-01 19:03:56 +00:00
|
|
|
<t.head>
|
2019-10-24 12:05:43 +00:00
|
|
|
<th class="is-narrow"></th>
|
2022-01-06 21:01:55 +00:00
|
|
|
<t.sort-by @prop="shortId">ID</t.sort-by>
|
|
|
|
<t.sort-by @prop="createIndex" @title="Create Index">Created</t.sort-by>
|
|
|
|
<t.sort-by @prop="modifyIndex" @title="Modify Index">Modified</t.sort-by>
|
|
|
|
<t.sort-by @prop="statusIndex">Status</t.sort-by>
|
|
|
|
<t.sort-by @prop="jobVersion">Version</t.sort-by>
|
|
|
|
<t.sort-by @prop="node.shortId">Client</t.sort-by>
|
|
|
|
<th>Volume</th>
|
|
|
|
<th>CPU</th>
|
|
|
|
<th>Memory</th>
|
2020-06-01 19:03:56 +00:00
|
|
|
</t.head>
|
2020-06-19 18:27:57 +00:00
|
|
|
<t.body @key="model.id" as |row|>
|
2022-01-06 21:01:55 +00:00
|
|
|
<AllocationRow @data-test-allocation={{row.model.id}} @allocation={{row.model}} @context="taskGroup" @onClick={{action "gotoAllocation" row.model}} />
|
2020-06-01 19:03:56 +00:00
|
|
|
</t.body>
|
|
|
|
</ListTable>
|
2019-10-24 12:05:43 +00:00
|
|
|
<div class="table-foot">
|
2020-07-09 20:19:07 +00:00
|
|
|
<PageSizeSelect @onChange={{action this.resetPagination}} />
|
2019-10-24 12:05:43 +00:00
|
|
|
<nav class="pagination">
|
|
|
|
<div class="pagination-numbers">
|
2022-01-06 21:01:55 +00:00
|
|
|
{{p.startsAt}}–{{p.endsAt}} of {{this.sortedAllocations.length}}
|
2019-10-24 12:05:43 +00:00
|
|
|
</div>
|
2022-01-06 21:01:55 +00:00
|
|
|
<p.prev @class="pagination-previous">{{x-icon "chevron-left"}}</p.prev>
|
|
|
|
<p.next @class="pagination-next">{{x-icon "chevron-right"}}</p.next>
|
2019-10-24 12:05:43 +00:00
|
|
|
<ul class="pagination-list"></ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
2020-06-01 19:03:56 +00:00
|
|
|
</ListPagination>
|
2021-11-30 20:10:01 +00:00
|
|
|
{{else}}
|
2022-01-06 21:01:55 +00:00
|
|
|
{{#if this.allocations.length}}
|
|
|
|
<div class="boxed-section-body">
|
|
|
|
<div class="empty-message" data-test-empty-allocations-list>
|
|
|
|
<h3 class="empty-message-headline" data-test-empty-allocations-list-headline>No Matches</h3>
|
|
|
|
<p class="empty-message-body">No allocations match the term <strong>{{this.searchTerm}}</strong></p>
|
|
|
|
</div>
|
2018-07-25 22:19:43 +00:00
|
|
|
</div>
|
2022-01-06 21:01:55 +00:00
|
|
|
{{else}}
|
|
|
|
<div class="boxed-section-body">
|
|
|
|
<div class="empty-message" data-test-empty-allocations-list>
|
|
|
|
<h3 class="empty-message-headline" data-test-empty-allocations-list-headline>No Allocations</h3>
|
|
|
|
<p class="empty-message-body">No allocations have been placed.</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2019-10-24 12:05:43 +00:00
|
|
|
{{/if}}
|
2017-09-19 14:47:10 +00:00
|
|
|
</div>
|
2018-07-25 22:19:43 +00:00
|
|
|
</div>
|
2022-01-06 21:01:55 +00:00
|
|
|
|
2020-07-09 20:19:07 +00:00
|
|
|
<LifecycleChart @tasks={{this.model.tasks}} />
|
2022-01-06 21:01:55 +00:00
|
|
|
|
2020-07-28 04:28:37 +00:00
|
|
|
{{#if this.model.scaleState.isVisible}}
|
2020-08-05 05:54:26 +00:00
|
|
|
{{#if this.shouldShowScaleEventTimeline}}
|
|
|
|
<div data-test-scaling-timeline class="boxed-section">
|
|
|
|
<div class="boxed-section-head is-hollow">
|
|
|
|
Scaling Timeline
|
|
|
|
</div>
|
|
|
|
<div class="boxed-section-body">
|
|
|
|
<ScaleEventsChart @events={{this.sortedScaleEvents}} />
|
|
|
|
</div>
|
2020-07-28 04:28:37 +00:00
|
|
|
</div>
|
2020-08-05 05:54:26 +00:00
|
|
|
{{/if}}
|
2022-01-06 21:01:55 +00:00
|
|
|
|
2020-08-22 01:44:13 +00:00
|
|
|
<div data-test-scaling-events class="boxed-section">
|
|
|
|
<div class="boxed-section-head">
|
|
|
|
Recent Scaling Events
|
|
|
|
</div>
|
|
|
|
<div class="boxed-section-body">
|
|
|
|
<ScaleEventsAccordion @events={{this.sortedScaleEvents}} />
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-07-28 04:28:37 +00:00
|
|
|
{{/if}}
|
2022-01-06 21:01:55 +00:00
|
|
|
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.model.volumes.length}}
|
2020-02-13 07:01:25 +00:00
|
|
|
<div data-test-volumes class="boxed-section">
|
|
|
|
<div class="boxed-section-head">
|
|
|
|
Volume Requirements
|
|
|
|
</div>
|
|
|
|
<div class="boxed-section-body is-full-bleed">
|
2020-07-09 20:19:07 +00:00
|
|
|
<ListTable @source={{this.model.volumes}} as |t|>
|
2020-06-01 19:03:56 +00:00
|
|
|
<t.head>
|
2022-01-06 21:01:55 +00:00
|
|
|
<th>Name</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Source</th>
|
|
|
|
<th>Permissions</th>
|
2020-06-01 19:03:56 +00:00
|
|
|
</t.head>
|
|
|
|
<t.body as |row|>
|
2020-02-13 07:01:25 +00:00
|
|
|
<tr data-test-volume>
|
2020-03-25 12:51:26 +00:00
|
|
|
<td data-test-volume-name>
|
|
|
|
{{#if row.model.isCSI}}
|
2022-01-06 21:01:55 +00:00
|
|
|
<LinkTo @route="csi.volumes.volume" @model={{row.model.source}} @query={{hash volumeNamespace=row.model.namespace.id}}>
|
2020-03-25 12:51:26 +00:00
|
|
|
{{row.model.name}}
|
2020-06-01 19:03:56 +00:00
|
|
|
</LinkTo>
|
2020-03-25 12:51:26 +00:00
|
|
|
{{else}}
|
|
|
|
{{row.model.name}}
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
2022-01-06 21:01:55 +00:00
|
|
|
<td data-test-volume-type>{{row.model.type}}</td>
|
|
|
|
<td data-test-volume-source>{{row.model.source}}</td>
|
|
|
|
<td data-test-volume-permissions>{{if row.model.readOnly "Read" "Read/Write"}}</td>
|
2020-02-13 07:01:25 +00:00
|
|
|
</tr>
|
2020-06-01 19:03:56 +00:00
|
|
|
</t.body>
|
|
|
|
</ListTable>
|
2020-02-13 07:01:25 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2022-01-06 21:01:55 +00:00
|
|
|
</section>
|