X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/90ecfcca3bcfd82b91d396c271e19698ae970715..0c888bcc93b559339c8abbce784bdcc44746bca2:/apps/workbench/app/views/projects/_compute_node_status.html.erb diff --git a/apps/workbench/app/views/projects/_compute_node_status.html.erb b/apps/workbench/app/views/projects/_compute_node_status.html.erb index 5342a17df4..3de2ab67ab 100644 --- a/apps/workbench/app/views/projects/_compute_node_status.html.erb +++ b/apps/workbench/app/views/projects/_compute_node_status.html.erb @@ -1,48 +1,20 @@ -
+<%# Copyright (C) The Arvados Authors. All rights reserved. - <% nodes = Node.all %> +SPDX-License-Identifier: AGPL-3.0 %> -
-
- - - - - - - - - - - - - - - - - - - -
0<%= nodes.select {|n| n.crunch_worker_state.in? ["busy", "idle"] }.size %><%= nodes.select {|n| n.crunch_worker_state == "busy" }.size %><%= nodes.select {|n| n.crunch_worker_state == "idle" }.size %>
QueueNodesBusyIdle
-
-
-
-
- <% nodes.sort_by { |n| n.hostname || "" }.each do |n| %> - <% if n.crunch_worker_state.in? ["busy", "idle"] %> -
- - <%= n.hostname %> - -
- state: <%= n.crunch_worker_state %>
- <% [:total_cpu_cores, :total_ram_mb, :total_scratch_mb].each do |i| %> - <%= i.to_s.gsub '_', ' ' %>: <%= n.info[i] %>
- <% end %> -
+

Node status

+
+ <% nodes.each do |n| %> +
+ + <%= n.hostname %> + +
+ state: <%= n.crunch_worker_state %>
+ <% [:total_cpu_cores, :total_ram_mb, :total_scratch_mb].each do |i| %> + <%= i.to_s.gsub '_', ' ' %>: <%= n.properties[i] %>
+ <% end %>
- <% end %> - <% end %> -
-
+
+ <% end %>