def space_free(self):
return self.data.space_free
- @property
- def overload(self):
- if not self.cpu_count or not self.loadavg1:
- return None
-
- return self.loadavg1 >= self.cpu_count
-
@property
def host_key_id(self):
return self.data.host_key_id
cpu_arch text,
cpu_bogomips double precision,
memory bigint DEFAULT 0 NOT NULL,
- overload builders_overload DEFAULT 'N'::builders_overload NOT NULL,
free_space bigint DEFAULT 0 NOT NULL,
host_key_id text,
time_created timestamp without time zone DEFAULT now() NOT NULL,
</div>
{% end %}
- {% if builder.overload %}
- <div class="alert alert-block alert-warning">
- <h4 class="alert-heading">{{ _("Warning") }}!</h4>
- {{ _("This builder is overloaded.") }}
- {{ _("That means it will not take any additional jobs although it has not reached its threshold of running jobs, yet.") }}
- {{ _("New jobs will be started automatically after the load decreased.") }}
- </div>
- {% end %}
-
<div class="row">
<div class="span5">
<table class="table table-striped table-hover">
<td>{{ _("Load average") }}</td>
<td>
{{ builder.loadavg or _("N/A") }}
- {% if builder.overload %}
- <span class="label label-important">{{ _("Overload") }}</span>
- {% end %}
</td>
</tr>
<tr>
</td>
<td>
<a href="/builder/{{ builder.name }}">{{ builder.name }}</a>
- {% if builder.overload %}
- <span class="label label-important pull-right">{{ _("Overload") }}</span>
- {% end %}
<br>
{{ builder.cpu_model or _("Unknown CPU") }}
{% if builder.mem_total %}