Skip to content

Commit 8448a44

Browse files
authored
Include anti-affinity rules when executing fio-distributed with VM workloads (#837)
1 parent 39feb56 commit 8448a44

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

roles/fio_distributed/templates/server_vm.yml.j2

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ spec:
4343
resources:
4444
requests:
4545
memory: {{ workload_args.vm_memory | default('5G') }}
46+
affinity:
47+
podAntiAffinity:
48+
preferredDuringSchedulingIgnoredDuringExecution:
49+
- weight: 100
50+
podAffinityTerm:
51+
labelSelector:
52+
matchExpressions:
53+
- key: app
54+
operator: In
55+
values:
56+
- fio-benchmark-{{ trunc_uuid }}
57+
topologyKey: "kubernetes.io/hostname"
4658
volumes:
4759
- name: registrydisk
4860
containerDisk:

0 commit comments

Comments
 (0)