2023-05-17 09:59:48 +00:00
< div >
2023-12-07 18:06:32 +00:00
< form wire : submit = 'submit' class = " flex flex-col " >
2023-06-02 10:34:45 +00:00
< div class = " flex items-center gap-2 " >
< h2 > Resource Limits </ h2 >
2025-08-26 08:27:31 +00:00
< x - forms . button canGate = " update " : canResource = " $resource " type = 'submit' > Save </ x - forms . button >
2023-05-18 11:26:35 +00:00
</ div >
2023-06-16 10:35:40 +00:00
< div class = " " > Limit your container resources by CPU & memory .</ div >
2023-06-02 10:34:45 +00:00
< h3 class = " pt-4 " > Limit CPUs </ h3 >
< div class = " flex gap-2 " >
2025-08-26 08:27:31 +00:00
< x - forms . input canGate = " update " : canResource = " $resource " placeholder = " 1.5 "
2024-07-22 09:33:25 +00:00
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>. "
2025-10-13 13:38:59 +00:00
label = " Number of CPUs " id = " limitsCpus " />
2025-08-26 08:27:31 +00:00
< x - forms . input canGate = " update " : canResource = " $resource " placeholder = " 0-2 "
2024-07-22 09:33:25 +00:00
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>. "
2025-10-13 13:38:59 +00:00
label = " CPU sets to use " id = " limitsCpuset " />
2025-08-26 08:27:31 +00:00
< x - forms . input canGate = " update " : canResource = " $resource " placeholder = " 1024 "
2024-07-22 09:33:25 +00:00
helper = " More info <a class='underline dark:text-white' target='_blank' href='https://docs.docker.com/engine/reference/run/#cpu-share-constraint'>here</a>. "
2025-10-13 13:38:59 +00:00
label = " CPU Weight " id = " limitsCpuShares " />
2023-06-02 10:34:45 +00:00
</ div >
< h3 class = " pt-4 " > Limit Memory </ h3 >
2026-03-28 12:52:31 +00:00
< div class = " flex gap-2 " >
< x - forms . input canGate = " update " : canResource = " $resource "
helper = " <span class='text-helper'>Examples</span><br>• 69b (byte)<br>• 420k (kilobyte)<br>• 1337m (megabyte)<br>• 1g (gigabyte)<br><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>. "
label = " Soft Memory Limit " id = " limitsMemoryReservation " />
< x - forms . input canGate = " update " : canResource = " $resource "
helper = " Value between 0-100.<br><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>. "
type = " number " min = " 0 " max = " 100 " label = " Swappiness "
id = " limitsMemorySwappiness " />
< x - forms . input canGate = " update " : canResource = " $resource "
helper = " <span class='text-helper'>Examples</span><br>• 69b (byte)<br>• 420k (kilobyte)<br>• 1337m (megabyte)<br>• 1g (gigabyte)<br><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>. "
label = " Maximum Memory Limit " id = " limitsMemory " />
< x - forms . input canGate = " update " : canResource = " $resource "
helper = " <span class='text-helper'>Examples</span><br>• 69b (byte)<br>• 420k (kilobyte)<br>• 1337m (megabyte)<br>• 1g (gigabyte)<br><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>. "
label = " Maximum Swap Limit " id = " limitsMemorySwap " />
2023-06-02 10:34:45 +00:00
</ div >
2023-05-17 09:59:48 +00:00
</ form >
</ div >