Skip to content

Commit c6c8ab4

Browse files
authored
perf: Disable memballon driver on KVM control and compute nodes (#265)
Exclude the memory balloon device, because this is recommended in the OCP docs (chapter: "Recommended host practices for IBM Z & IBM LinuxONE environments". --------- Signed-off-by: Klaus Smolin <smolin@de.ibm.com>
1 parent 6fa846d commit c6c8ab4

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

roles/create_compute_node/tasks/main.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
${CPU_MODEL} \
6767
--vcpus {{ env.cluster.nodes.compute.vcpu }} \
6868
--network network={{ env.vnet_name }}{{ (',mac=' + param_compute_node.vm_mac) if (param_compute_node.vm_mac is defined and env.use_dhcp) }} \
69+
--memballoon none \
6970
--graphics none \
7071
--console pty,target_type=serial \
7172
--wait -1 \

roles/create_compute_nodes/tasks/main.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
--extra-args "{{ ('--nameserver=' + env.cluster.networking.nameserver2) if env.cluster.networking.nameserver2 is defined else '' }}" \
2828
--extra-args "coreos.inst.ignition_url=http://{{ env.bastion.networking.ip }}:8080/ignition/worker.ign" \
2929
--extra-args "{{ _vm_console }}" \
30+
--memballoon none \
31+
--graphics none \
3032
--wait=-1 \
3133
--noautoconsole
3234
timeout: 360
@@ -57,6 +59,8 @@
5759
--extra-args "{{ ('--nameserver=' + env.cluster.networking.nameserver2) if env.cluster.networking.nameserver2 is defined else '' }}" \
5860
--extra-args "coreos.inst.ignition_url=http://{{ env.bastion.networking.ip }}:8080/ignition/worker.ign" \
5961
--extra-args "{{ _vm_console }}" \
62+
--memballoon none \
63+
--graphics none \
6064
--wait=-1 \
6165
--noautoconsole
6266
with_sequence: start=0 end={{ ( env.cluster.nodes.infra.hostname | length ) - 1}} stride=1
@@ -110,6 +114,8 @@
110114
--extra-args "{{ ('--nameserver=' + env.cluster.networking.nameserver2) if env.cluster.networking.nameserver2 is defined else '' }}" \
111115
--extra-args "coreos.inst.ignition_url=http://{{ env.bastion.networking.ip }}:8080/ignition/worker.ign" \
112116
--extra-args "{{ _vm_console }}" \
117+
--memballoon none \
118+
--graphics none \
113119
--wait=-1 \
114120
--noautoconsole
115121
loop: "{{ compute_name | zip(compute_hostname, compute_ip) | list }}"
@@ -139,6 +145,8 @@
139145
--extra-args "{{ ('--nameserver=' + env.cluster.networking.nameserver2) if env.cluster.networking.nameserver2 is defined else '' }}" \
140146
--extra-args "coreos.inst.ignition_url=http://{{ env.bastion.networking.ip }}:8080/ignition/worker.ign" \
141147
--extra-args "{{ _vm_console }}" \
148+
--memballoon none \
149+
--graphics none \
142150
--wait=-1 \
143151
--noautoconsole
144152
loop: "{{ infra_name | zip(infra_hostname, infra_ip) | list }}"

roles/create_control_nodes/tasks/main.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
--extra-args "{{ ('--nameserver=' + env.cluster.networking.nameserver2) if env.cluster.networking.nameserver2 is defined else '' }}" \
2626
--extra-args "coreos.inst.ignition_url=http://{{ env.bastion.networking.ip }}:8080/ignition/master.ign" \
2727
--extra-args "{{ _vm_console }}" \
28+
--memballoon none \
2829
--graphics none \
2930
--console pty,target_type=serial \
3031
--wait=-1 \
@@ -62,6 +63,7 @@
6263
--extra-args "{{ ('--nameserver=' + env.cluster.networking.nameserver2) if env.cluster.networking.nameserver2 is defined else '' }}" \
6364
--extra-args "coreos.inst.ignition_url=http://{{ env.bastion.networking.ip }}:8080/ignition/master.ign" \
6465
--extra-args "{{ _vm_console }}" \
66+
--memballoon none \
6567
--graphics none \
6668
--wait=-1 \
6769
--noautoconsole
@@ -92,6 +94,7 @@
9294
--extra-args "{{ ('--nameserver=' + env.cluster.networking.nameserver2) if env.cluster.networking.nameserver2 is defined else '' }}" \
9395
--extra-args "coreos.inst.ignition_url=http://{{ env.bastion.networking.ip }}:8080/ignition/master.ign" \
9496
--extra-args "{{ _vm_console }}" \
97+
--memballoon none \
9598
--graphics none \
9699
--wait=-1 \
97100
--noautoconsole
@@ -122,6 +125,7 @@
122125
--extra-args "{{ ('--nameserver=' + env.cluster.networking.nameserver2) if env.cluster.networking.nameserver2 is defined else '' }}" \
123126
--extra-args "coreos.inst.ignition_url=http://{{ env.bastion.networking.ip }}:8080/ignition/master.ign" \
124127
--extra-args "{{ _vm_console }}" \
128+
--memballoon none \
125129
--graphics none \
126130
--wait=-1 \
127131
--noautoconsole

0 commit comments

Comments
 (0)