6 |
6 |
<%= text_f f, :entrypoint, :size => 'col-md-4', :placeholder => '/bin/sh -c by default' %>
|
7 |
7 |
<hr>
|
8 |
8 |
<h3><%= _("Compute options") %></h3>
|
9 |
|
<%= selectable_f f, :cpu_set, 1..f.object.compute_resource.max_cpu_count, { }, :class => "col-md-2", :label => _('Cores') %>
|
10 |
|
<%= text_f f, :cpu_shares, :class => "col-md-2", :label => _('CPU shares') %>
|
11 |
|
<%= selectable_f f, :memory, memory_options(f.object.compute_resource.max_memory), { }, :class => "col-md-2", :label => _('Memory') %>
|
|
9 |
<%= text_f f, :cpu_set, :class => "col-md-2", :label => _('CPU sets'),
|
|
10 |
:placeholder => '0-2,16 represents CPUs 0, 1, 2, and 16.',
|
|
11 |
:help_block => link_to(_("learn more about CPU sets"), 'http://docs.fedoraproject.org/en-US/Fedora/17/html/Resource_Management_Guide/sec-cpuset.html') %>
|
|
12 |
<%= text_f f, :cpu_shares, :class => "col-md-2", :label => _('CPU shares'),
|
|
13 |
:placeholder => 'relative share of CPU time in cgroup',
|
|
14 |
:help_block => link_to(_("learn more about CPU shares"), 'http://docs.fedoraproject.org/en-US/Fedora/17/html/Resource_Management_Guide/sec-cpuset.html') %>
|
|
15 |
<%= text_f f, :memory, :class => "col-md-2", :label => _('Memory'), :placeholder => '512m limits container memory usage to 512 MB' %>
|
12 |
16 |
<%= render :partial => 'form_buttons' %>
|
13 |
17 |
<% end %>
|
14 |
18 |
<% end %>
|
Fixes #8096 #8097: Improve cpuset cpushare form