Add overcommitment for CPU in Packet CI playbook (#4597)
This commit is contained in:
parent
04f2682ac6
commit
88fe3403ce
2 changed files with 8 additions and 0 deletions
|
@ -6,6 +6,11 @@ vm_cpu_sockets: 1
|
||||||
vm_cpu_threads: 2
|
vm_cpu_threads: 2
|
||||||
vm_memory: 4096Mi
|
vm_memory: 4096Mi
|
||||||
|
|
||||||
|
# Request/Limit allocation settings
|
||||||
|
|
||||||
|
cpu_allocation_ratio: 0.5
|
||||||
|
memory_allocation_ratio: 1
|
||||||
|
|
||||||
# Default path for inventory
|
# Default path for inventory
|
||||||
inventory_path: "/tmp/{{ test_name }}/inventory"
|
inventory_path: "/tmp/{{ test_name }}/inventory"
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,9 @@ spec:
|
||||||
threads: {{ vm_cpu_cores }}
|
threads: {{ vm_cpu_cores }}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
|
memory: {{ vm_memory * memory_allocation_ratio }}
|
||||||
|
cpu: {{ vm_cpu_cores * cpu_allocation_ratio }}
|
||||||
|
limits:
|
||||||
memory: {{ vm_memory }}
|
memory: {{ vm_memory }}
|
||||||
cpu: {{ vm_cpu_cores }}
|
cpu: {{ vm_cpu_cores }}
|
||||||
networks:
|
networks:
|
||||||
|
|
Loading…
Reference in a new issue