{% extends "base.html" %} {% set active_page = 'clusters' %} {% block title %}Clusters - Ursa Customer Portal{% endblock %} {% block content %}
{% if error %}
{{ error }}
{% endif %}
{{ clusters | length }}
Total Clusters
{{ clusters | selectattr('compute_fleet_status', 'equalto', 'RUNNING') | list | length }}
Fleet Running
{{ regions | length }}
Regions Scanned
{{ clusters | selectattr('head_node') | selectattr('head_node.state', 'equalto', 'running') | list | length }}
Headnodes Active
Scanning regions: {{ regions | join(', ') }}
{% if clusters %}
{% for cluster in clusters %}

{{ cluster.cluster_name }}

{{ cluster.region }}
{% if is_admin %} {% endif %} {% set status_class = 'success' if cluster.cluster_status == 'CREATE_COMPLETE' else 'warning' if 'IN_PROGRESS' in cluster.cluster_status else 'error' if 'FAILED' in cluster.cluster_status else 'secondary' %} {{ cluster.cluster_status }}
{% if cluster.head_node %}

Head Node

Instance Type
{{ cluster.head_node.instance_type }}
State
{% set node_status = 'success' if cluster.head_node.state == 'running' else 'warning' if cluster.head_node.state == 'pending' else 'error' %} {{ cluster.head_node.state }}
{% if is_admin and cluster.head_node.public_ip %}
Public IP
{{ cluster.head_node.public_ip }}
{% endif %} {% if is_admin and cluster.head_node.private_ip %}
Private IP
{{ cluster.head_node.private_ip }}
{% endif %}
{% if is_admin and cluster.head_node.public_ip and cluster.head_node.state == 'running' %}
SSH Command
ssh -i ~/.ssh/lsmc-omics-{{ cluster.region }}.pem ubuntu@{{ cluster.head_node.public_ip }}
{% endif %}
{% endif %} {% if is_admin and cluster.budget_info %}

Cluster Info

{% if cluster.budget_info.error %}
{{ cluster.budget_info.error }}
{% else %}
Project
{{ cluster.budget_info.project_name or 'N/A' }}
Region
{{ cluster.budget_info.region or 'N/A' }}
{% if cluster.budget_info.reference_bucket %}
Reference Bucket
s3://{{ cluster.budget_info.reference_bucket }}
{% endif %}
AWS Budget
Admin-only. AWS Budgets are separate from customer Cost Centers (chargeback tags).
Total Budget
${{ "%.2f"|format(cluster.budget_info.total_budget or 0) }}
Used
${{ "%.2f"|format(cluster.budget_info.used_budget or 0) }}
% Used {% set pct = cluster.budget_info.percent_used or 0 %} {% set pct_class = 'success' if pct < 80 else 'warning' if pct < 100 else 'error' %}
{{ "%.1f"|format(pct) }}%
{% if cluster.budget_info.fetched_at %}
Updated: {{ cluster.budget_info.fetched_at[:19] }}
{% endif %} {% if cluster.budget_info.ssh_command %}
SSH Command {{ cluster.budget_info.ssh_command }}
{% endif %} {% endif %}
{% endif %} {% if is_admin and cluster.job_queue %}

Slurm Job Queue

{% if cluster.job_queue.error %}
{{ cluster.job_queue.error }}
{% else %}
{{ cluster.job_queue.total_jobs }} Total
{{ cluster.job_queue.running_jobs }} Running
{{ cluster.job_queue.pending_jobs }} Pending
{{ cluster.job_queue.configuring_jobs }} Config
{{ cluster.job_queue.total_cpus }} CPUs
{% if cluster.job_queue.jobs %}
{% for job in cluster.job_queue.jobs[:5] %} {% endfor %} {% if cluster.job_queue.jobs|length > 5 %} {% for job in cluster.job_queue.jobs[5:] %} {% endfor %} {% endif %}
ID Name State CPUs Time
{{ job.job_id }} {{ job.name[:20] }}{% if job.name|length > 20 %}...{% endif %} {% set job_state_class = 'success' if job.state == 'RUNNING' else 'warning' if job.state == 'PENDING' else 'info' if job.state == 'CONFIGURING' else 'secondary' %} {{ job.state_short }} {{ job.cpus }} {{ job.time_used }}
{% if cluster.job_queue.jobs|length > 5 %} {% endif %}
{% elif cluster.job_queue.total_jobs == 0 %}
No jobs in queue
{% endif %} {% if cluster.job_queue.fetched_at %}
Updated: {{ cluster.job_queue.fetched_at[:19] }}
{% endif %} {% if cluster.job_queue.ssh_command %}
SSH Command {{ cluster.job_queue.ssh_command }}
{% endif %} {% endif %}
{% endif %}
Compute Fleet
{% set fleet_status = 'success' if cluster.compute_fleet_status == 'RUNNING' else 'warning' if cluster.compute_fleet_status == 'STOPPED' else 'secondary' %} {{ cluster.compute_fleet_status }}
Scheduler
{{ cluster.scheduler_type }}
{% if cluster.version %}
PCluster Version
{{ cluster.version }}
{% endif %}
{% endfor %}
{% else %}

No Clusters Found

No ParallelCluster instances found in the configured regions.

Regions scanned: {{ regions | join(', ') if regions else 'None configured' }}

{% endif %}
{% endblock %}