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 >
2023-05-25 12:05:44 +00:00
< x - forms . button 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 " >
2024-01-12 12:47:01 +00:00
< x - forms . input placeholder = " 1.5 "
2024-03-24 15:00:25 +00:00
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>. "
2024-01-12 12:47:01 +00:00
label = " Number of CPUs " id = " resource.limits_cpus " />
< x - forms . input placeholder = " 0-2 "
2024-03-24 15:00: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='dark:text-white underline' target='_blank' href='https://docs.docker.com/engine/reference/run/#cpu-share-constraint'>here</a>. "
2024-01-12 12:47:01 +00:00
label = " CPU sets to use " id = " resource.limits_cpuset " />
< x - forms . input placeholder = " 1024 "
2024-03-24 15:00:25 +00:00
helper = " More info <a class='dark:text-white underline' target='_blank' href='https://docs.docker.com/engine/reference/run/#cpu-share-constraint'>here</a>. "
2024-01-12 12:47:01 +00:00
label = " CPU Weight " id = " resource.limits_cpu_shares " />
2023-06-02 10:34:45 +00:00
</ div >
< h3 class = " pt-4 " > Limit Memory </ h3 >
< div class = " flex gap-2 " >
< x - forms . input placeholder = " 69b or 420k or 1337m or 1g " label = " Soft Memory Limit "
2023-08-11 18:19:42 +00:00
id = " resource.limits_memory_reservation " />
2023-06-02 10:34:45 +00:00
< x - forms . input placeholder = " 69b or 420k or 1337m or 1g " label = " Maximum Memory Limit "
2023-08-11 18:19:42 +00:00
id = " resource.limits_memory " />
2023-06-02 10:34:45 +00:00
< x - forms . input placeholder = " 69b or 420k or 1337m or 1g " label = " Maximum Swap Limit "
2023-08-11 18:19:42 +00:00
id = " resource.limits_memory_swap " />
2023-06-02 10:34:45 +00:00
< x - forms . input placeholder = " 0-100 " type = " number " min = " 0 " max = " 100 " label = " Swappiness "
2023-08-11 18:19:42 +00:00
id = " resource.limits_memory_swappiness " />
2023-06-02 10:34:45 +00:00
</ div >
2023-05-17 09:59:48 +00:00
</ form >
</ div >