|
8 | 8 | <h3 class="pt-4">Limit CPUs</h3>
|
9 | 9 | <div class="flex gap-2">
|
10 | 10 | <x-forms.input placeholder="1.5"
|
11 |
| - helper="0 means use all CPUs. Floating point number, like 0.002 or 1.5. More info <a class='dark:text-white underline' target='_blank' href='https://docs.docker.com/engine/reference/run/#cpu-share-constraint'>here</a>." |
| 11 | + helper="0 means use all CPUs. Floating point number, like 0.002 or 1.5. More info <a class='underline dark:text-white' target='_blank' href='https://docs.docker.com/engine/reference/run/#cpu-share-constraint'>here</a>." |
12 | 12 | label="Number of CPUs" id="resource.limits_cpus" />
|
13 | 13 | <x-forms.input placeholder="0-2"
|
14 |
| - helper="Empty means, use all CPU sets. 0-2 will use CPU 0, CPU 1 and CPU 2. More info <a class='dark:text-white underline' target='_blank' href='https://docs.docker.com/engine/reference/run/#cpu-share-constraint'>here</a>." |
| 14 | + helper="Empty means, use all CPU sets. 0-2 will use CPU 0, CPU 1 and CPU 2. More info <a class='underline dark:text-white' target='_blank' href='https://docs.docker.com/engine/reference/run/#cpu-share-constraint'>here</a>." |
15 | 15 | label="CPU sets to use" id="resource.limits_cpuset" />
|
16 | 16 | <x-forms.input placeholder="1024"
|
17 |
| - helper="More info <a class='dark:text-white underline' target='_blank' href='https://docs.docker.com/engine/reference/run/#cpu-share-constraint'>here</a>." |
| 17 | + helper="More info <a class='underline dark:text-white' target='_blank' href='https://docs.docker.com/engine/reference/run/#cpu-share-constraint'>here</a>." |
18 | 18 | label="CPU Weight" id="resource.limits_cpu_shares" />
|
19 | 19 | </div>
|
20 | 20 | <h3 class="pt-4">Limit Memory</h3>
|
21 |
| - <div class="flex gap-2"> |
22 |
| - <x-forms.input placeholder="69b or 420k or 1337m or 1g" label="Soft Memory Limit" |
23 |
| - id="resource.limits_memory_reservation" /> |
24 |
| - <x-forms.input placeholder="69b or 420k or 1337m or 1g" label="Maximum Memory Limit" |
25 |
| - id="resource.limits_memory" /> |
26 |
| - <x-forms.input placeholder="69b or 420k or 1337m or 1g" label="Maximum Swap Limit" |
27 |
| - id="resource.limits_memory_swap" /> |
28 |
| - <x-forms.input placeholder="0-100" type="number" min="0" max="100" label="Swappiness" |
29 |
| - id="resource.limits_memory_swappiness" /> |
| 21 | + <div class="flex flex-col gap-2"> |
| 22 | + <div class="flex gap-2"> |
| 23 | + <x-forms.input |
| 24 | + helper="Examples: 69b (byte) or 420k (kilobyte) or 1337m (megabyte) or 1g (gigabyte).<br>More info <a class='underline dark:text-white' target='_blank' href='https://docs.docker.com/compose/compose-file/05-services/#mem_reservation'>here</a>." |
| 25 | + label="Soft Memory Limit" id="resource.limits_memory_reservation" /> |
| 26 | + <x-forms.input |
| 27 | + helper="0-100.<br>More info <a class='underline dark:text-white' target='_blank' href='https://docs.docker.com/compose/compose-file/05-services/#mem_swappiness'>here</a>." |
| 28 | + type="number" min="0" max="100" label="Swappiness" |
| 29 | + id="resource.limits_memory_swappiness" /> |
| 30 | + </div> |
| 31 | + <div class="flex gap-2"> |
| 32 | + <x-forms.input |
| 33 | + helper="Examples: 69b (byte) or 420k (kilobyte) or 1337m (megabyte) or 1g (gigabyte).<br>More info <a class='underline dark:text-white' target='_blank' href='https://docs.docker.com/compose/compose-file/05-services/#mem_limit'>here</a>." |
| 34 | + label="Maximum Memory Limit" id="resource.limits_memory" /> |
| 35 | + <x-forms.input |
| 36 | + helper="Examples:69b (byte) or 420k (kilobyte) or 1337m (megabyte) or 1g (gigabyte).<br>More info <a class='underline dark:text-white' target='_blank' href='https://docs.docker.com/compose/compose-file/05-services/#memswap_limit'>here</a>." |
| 37 | + label="Maximum Swap Limit" id="resource.limits_memory_swap" /> |
| 38 | + |
| 39 | + </div> |
30 | 40 | </div>
|
31 | 41 | </form>
|
32 | 42 | </div>
|
0 commit comments