|
127 | 127 | <h3 class="box-title">Resource Management</h3> |
128 | 128 | </div> |
129 | 129 | <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"> |
131 | 148 | <label for="pMemory">Memory</label> |
132 | 149 | <div class="input-group"> |
133 | 150 | <input type="text" value="{{ old('memory') }}" class="form-control" name="memory" id="pMemory" /> |
134 | 151 | <span class="input-group-addon">MB</span> |
135 | 152 | </div> |
136 | 153 | </div> |
137 | | - <div class="form-group col-sm-4"> |
| 154 | + <div class="form-group col-xs-6"> |
138 | 155 | <label for="pSwap">Swap</label> |
139 | 156 | <div class="input-group"> |
140 | 157 | <input type="text" value="{{ old('swap', 0) }}" class="form-control" name="swap" id="pSwap" /> |
|
146 | 163 | <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> |
147 | 164 | </div> |
148 | 165 | <div class="box-body row"> |
149 | | - <div class="form-group col-sm-4"> |
| 166 | + <div class="form-group col-xs-6"> |
150 | 167 | <label for="pDisk">Disk Space</label> |
151 | 168 | <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> |
167 | 171 | </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> |
169 | 172 | </div> |
170 | | - <div class="form-group col-sm-4"> |
| 173 | + <div class="form-group col-xs-6"> |
171 | 174 | <label for="pIO">Block IO Weight</label> |
172 | 175 | <div> |
173 | 176 | <input type="text" class="form-control" value="{{ old('io', 500) }}" name="io" id="pIO" /> |
174 | 177 | </div> |
175 | 178 | <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> |
176 | 179 | </div> |
177 | 180 | </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> |
181 | 181 | </div> |
182 | 182 | </div> |
183 | 183 | </div> |
|
0 commit comments