{{title "Allocation " this.model.name}}
{{#if this.error}}

{{this.error.title}}

{{this.error.description}}

{{/if}}

Allocation {{this.model.name}} {{this.model.clientStatus}}
{{#if this.model.isRunning}}
{{/if}}

{{this.model.id}}
Allocation Details Job {{this.model.job.name}} Client {{this.model.node.shortId}}
Resource Utilization
{{#if this.model.isRunning}}
{{else}}

Allocation isn't running

Only running allocations utilize resources.

{{/if}}
Tasks
{{#if this.sortedStates.length}} Name State Last Event Time Volumes Addresses CPU Memory {{else}}

No Tasks

Allocations will not have tasks until they are in a running state.

{{/if}}
{{#if this.network.ports.length}}
Ports
Name Dynamic? Host Address Mapped Port {{row.model.name}} {{if row.model.isDynamic "Yes" "No"}} {{this.network.ip}}:{{row.model.port}} {{row.model.to}}
{{/if}} {{#if this.services.length}}
Services
Name Port Tags Connect? Upstreams {{row.model.name}} {{row.model.portLabel}} {{join ", " row.model.tags}} {{if row.model.connect "Yes" "No"}} {{#each row.model.connect.sidecarService.proxy.upstreams as |upstream|}} {{upstream.destinationName}}:{{upstream.localBindPort}} {{/each}}
{{/if}} {{#if this.model.hasRescheduleEvents}}
Reschedule Events
{{/if}} {{#if this.model.wasPreempted}}
Preempted By
{{#if this.preempter}}
{{this.preempter.clientStatus}} {{this.preempter.name}} {{this.preempter.shortId}} Job {{this.preempter.job.name}} Priority {{this.preempter.job.priority}} Client {{this.preempter.node.shortId}} Reserved CPU {{this.preempter.resources.cpu}} MHz Reserved Memory {{this.preempter.resources.memory}} MiB
{{else}}

Allocation is gone

This allocation has been stopped and garbage collected.

{{/if}}
{{/if}} {{#if (and this.model.preemptedAllocations.isFulfilled this.model.preemptedAllocations.length)}}
Preempted Allocations
ID Task Group Created Modified Status Version Node CPU Memory
{{/if}}