Skip to content

Commit 411ed41

Browse files
New server formatting
Fixed auto-sizing for resource mangemnet Moved them in logical order(CPU->RAM->Disk) with advanced stuff to the right.
1 parent 323c3e4 commit 411ed41

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

resources/views/admin/servers/new.blade.php

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,31 @@
127127
<h3 class="box-title">Resource Management</h3>
128128
</div>
129129
<div class="box-body row">
130-
<div class="form-group col-sm-4">
130+
<div class="form-group col-xs-6">
131+
<label for="pCPU">CPU Limit</label>
132+
<div class="input-group">
133+
<input type="text" class="form-control" value="{{ old('cpu', 0) }}" name="cpu" id="pCPU" />
134+
<span class="input-group-addon">%</span>
135+
</div>
136+
<p class="text-muted small">If you do not want to limit CPU usage, set the value to <code>0</code>. To determine a value, take the number of <em>physical</em> cores and multiply it by 100. For example, on a quad core system <code>(4 * 100 = 400)</code> there is <code>400%</code> available. To limit a server to using half of a single core, you would set the value to <code>50</code>. To allow a server to use up to two physical cores, set the value to <code>200</code>. BlockIO should be a value between <code>10</code> and <code>1000</code>. Please see <a href="https://docs.docker.com/engine/reference/run/#/block-io-bandwidth-blkio-constraint" target="_blank">this documentation</a> for more information about it.<p>
137+
</div>
138+
<div class="form-group col-xs-6">
139+
<label for="pThreads">CPU Threads</label>
140+
<div>
141+
<input type="text" class="form-control" value="{{ old('threads') }}" name="threads" id="pThreads" />
142+
</div>
143+
<p class="text-muted small"><strong>Advanced:</strong> Enter the specific CPU cores that this process can run on, or leave blank to allow all cores. This can be a single number, or a comma seperated list. Example: <code>0</code>, <code>0-1,3</code>, or <code>0,1,3,4</code>.</p>
144+
</div>
145+
</div>
146+
<div class="box-body row">
147+
<div class="form-group col-xs-6">
131148
<label for="pMemory">Memory</label>
132149
<div class="input-group">
133150
<input type="text" value="{{ old('memory') }}" class="form-control" name="memory" id="pMemory" />
134151
<span class="input-group-addon">MB</span>
135152
</div>
136153
</div>
137-
<div class="form-group col-sm-4">
154+
<div class="form-group col-xs-6">
138155
<label for="pSwap">Swap</label>
139156
<div class="input-group">
140157
<input type="text" value="{{ old('swap', 0) }}" class="form-control" name="swap" id="pSwap" />
@@ -146,38 +163,21 @@
146163
<p class="text-muted small">If you do not want to assign swap space to a server, simply put <code>0</code> for the value, or <code>-1</code> to allow unlimited swap space. If you want to disable memory limiting on a server, simply enter <code>0</code> into the memory field.<p>
147164
</div>
148165
<div class="box-body row">
149-
<div class="form-group col-sm-4">
166+
<div class="form-group col-xs-6">
150167
<label for="pDisk">Disk Space</label>
151168
<div class="input-group">
152-
<input type="text" class="form-control" value="{{ old('disk') }}" name="disk" id="pDisk" />
153-
<span class="input-group-addon">MB</span>
154-
</div>
155-
</div>
156-
<div class="form-group col-sm-4">
157-
<label for="pCPU">CPU Limit</label>
158-
<div class="input-group">
159-
<input type="text" class="form-control" value="{{ old('cpu', 0) }}" name="cpu" id="pCPU" />
160-
<span class="input-group-addon">%</span>
161-
</div>
162-
</div>
163-
<div class="form-group col-sm-4">
164-
<label for="pThreads">CPU Threads</label>
165-
<div>
166-
<input type="text" class="form-control" value="{{ old('threads') }}" name="threads" id="pThreads" />
169+
<input type="text" class="form-control" value="{{ old('disk') }}" name="disk" id="pDisk" />
170+
<span class="input-group-addon">MB</span>
167171
</div>
168-
<p class="text-muted small"><strong>Advanced:</strong> Enter the specific CPU cores that this process can run on, or leave blank to allow all cores. This can be a single number, or a comma seperated list. Example: <code>0</code>, <code>0-1,3</code>, or <code>0,1,3,4</code>.</p>
169172
</div>
170-
<div class="form-group col-sm-4">
173+
<div class="form-group col-xs-6">
171174
<label for="pIO">Block IO Weight</label>
172175
<div>
173176
<input type="text" class="form-control" value="{{ old('io', 500) }}" name="io" id="pIO" />
174177
</div>
175178
<p class="text-muted small"><strong>Advanced</strong>: The IO performance of this server relative to other <em>running</em> containers on the system. Value should be between <code>10</code> and <code>1000</code>.</code></p>
176179
</div>
177180
</div>
178-
<div class="box-footer no-border no-pad-top no-pad-bottom">
179-
<p class="text-muted small">If you do not want to limit CPU usage, set the value to <code>0</code>. To determine a value, take the number of <em>physical</em> cores and multiply it by 100. For example, on a quad core system <code>(4 * 100 = 400)</code> there is <code>400%</code> available. To limit a server to using half of a single core, you would set the value to <code>50</code>. To allow a server to use up to two physical cores, set the value to <code>200</code>. BlockIO should be a value between <code>10</code> and <code>1000</code>. Please see <a href="https://docs.docker.com/engine/reference/run/#/block-io-bandwidth-blkio-constraint" target="_blank">this documentation</a> for more information about it.<p>
180-
</div>
181181
</div>
182182
</div>
183183
</div>

0 commit comments

Comments
 (0)