{% extends "base.html" %} {% from "quota.html" import quota_cell with context %} {% from "consumption.html" import consumption_cell with context %} {% block title %}slurm-quota{% endblock %} {% block body %}
{% if user_role != "user" %} {% endif %}
Units
{% if users %}

Users

{% for row in users %} {% endfor %}
User CPU GPU Last updated
Consumed Prealloc (jobs) Quota Usage Consumed Prealloc (jobs) Quota Usage
{{ row.name }} {{ consumption_cell("user", row.name, "cpu", row.cpu) }} {{ row.cpu.preallocated }} ({{ row.job_count }}) {{ quota_cell("user", row.name, "cpu", row.cpu) }} {% set usage = row.cpu %} {% include "usage_bar.html" %} {{ consumption_cell("user", row.name, "gpu", row.gpu) }} {{ row.gpu.preallocated }} ({{ row.job_count }}) {{ quota_cell("user", row.name, "gpu", row.gpu) }} {% set usage = row.gpu %} {% include "usage_bar.html" %} {{ row.last_updated }}
{% endif %} {% if accounts %}

Accounts

{% for row in accounts %} {% endfor %}
Account CPU GPU Last updated
Consumed Prealloc (jobs) Quota Usage Consumed Prealloc (jobs) Quota Usage
{{ row.name }} {{ consumption_cell("account", row.name, "cpu", row.cpu) }} {{ row.cpu.preallocated }} ({{ row.job_count }}) {{ quota_cell("account", row.name, "cpu", row.cpu) }} {% set usage = row.cpu %} {% include "usage_bar.html" %} {{ consumption_cell("account", row.name, "gpu", row.gpu) }} {{ row.gpu.preallocated }} ({{ row.job_count }}) {{ quota_cell("account", row.name, "gpu", row.gpu) }} {% set usage = row.gpu %} {% include "usage_bar.html" %} {{ row.last_updated }}
{% endif %} {% if not users and not accounts %}

No stats returned by service.

{% endif %}
{% if user_role in ("admin", "operator") %}

Set quota

Adjust consumption

{% endif %} {% endblock %}