Skip to content

Commit

Permalink
Include anti-affinity rules when executing fio-distributed with VM wo…
Browse files Browse the repository at this point in the history
…rkloads (#837)
  • Loading branch information
ddomingu authored Jan 8, 2025
1 parent 39feb56 commit 8448a44
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions roles/fio_distributed/templates/server_vm.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,18 @@ spec:
resources:
requests:
memory: {{ workload_args.vm_memory | default('5G') }}
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- fio-benchmark-{{ trunc_uuid }}
topologyKey: "kubernetes.io/hostname"
volumes:
- name: registrydisk
containerDisk:
Expand Down

0 comments on commit 8448a44

Please sign in to comment.