-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: refactor the storage perf manifests
Signed-off-by: Paul Bastide <[email protected]>
- Loading branch information
Showing
16 changed files
with
121 additions
and
8 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
[write-and-verify] | ||
[seq-write] | ||
time_based | ||
readwrite=write | ||
bs=256k | ||
direct=1 | ||
direct=0 | ||
ioengine=libaio | ||
iodepth=32 | ||
iodepth=16 | ||
numjobs=4 | ||
verify=crc32c | ||
# verify=crc32c | ||
directory=/pv | ||
filename=testfile | ||
filename_format=$jobname-$clientuid-$filenum | ||
group_reporting=1 | ||
runtime=3600 | ||
ramp_time=5 | ||
size=10TB | ||
# 30 minutes | ||
runtime=1800 | ||
size=100GB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
#!/bin/bash | ||
|
||
echo "The nodes are: " | ||
oc get nodes -lnode-role.kubernetes.io/worker -oname | ||
echo "" | ||
|
||
echo "[ConfigMap] setup fio" | ||
cat << EOF | oc apply -f - | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: fio | ||
namespace: openshift-power-workload | ||
data: | ||
test.fio: | | ||
[write-and-verify] | ||
time_based | ||
readwrite=write | ||
bs=256k | ||
direct=0 | ||
ioengine=libaio | ||
iodepth=16 | ||
numjobs=4 | ||
#verify=crc32c | ||
directory=/pv | ||
#filename=testfile | ||
filename_format=$jobname-$filenum | ||
group_reporting=1 | ||
runtime=600 | ||
size=1TB | ||
EOF | ||
echo "" | ||
|
||
COUNT_WORKER_NODES=$(oc get nodes -lnode-role.kubernetes.io/worker -oname | wc -l) | ||
|
||
echo "Creating PVCs for all workers" | ||
IDX=0 | ||
for WORKER_NODE in $(oc get nodes -lnode-role.kubernetes.io/worker -oname | sed 's|node/||g') | ||
do | ||
echo "PVC: workloads-pvc-${IDX}" | ||
cat << EOF | oc apply -f - | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: workloads-pvc-${IDX} | ||
namespace: openshift-power-workload | ||
spec: | ||
storageClassName: ibm-spectrum-scale-data-rwo-sc | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 4000Gi | ||
EOF | ||
IDX=$((IDX+1)) | ||
done | ||
echo "" | ||
|
||
echo "Creating the job" | ||
IDX=0 | ||
for WORKER_NODE in $(oc get nodes -lnode-role.kubernetes.io/worker -oname | sed 's|node/||g') | ||
do | ||
echo "WORKER_NODE: ${WORKER_NODE} | INDEX: ${IDX}" | ||
cat << EOF | oc apply -f - | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: job-${IDX} | ||
namespace: openshift-power-workload | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: fio | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: kubernetes.io/hostname | ||
operator: In | ||
values: | ||
- db2u-worker0101.iias.mille.pl | ||
image: quay.io/powercloud/ocp4-power-workload-tools:main | ||
imagePullPolicy: IfNotPresent | ||
command: ["fio","/scripts/test.fio"] | ||
resources: | ||
limits: | ||
cpu: 4000m | ||
memory: 4Gi | ||
requests: | ||
cpu: 100m | ||
memory: 100Mi | ||
volumeMounts: | ||
- name: fio-volume | ||
mountPath: /scripts | ||
- name: pv | ||
mountPath: /pv | ||
restartPolicy: Never | ||
volumes: | ||
- name: pv | ||
persistentVolumeClaim: | ||
claimName: workloads-pvc-${IDX} | ||
- name: fio-volume | ||
configMap: | ||
name: fio | ||
backoffLimit: 0 | ||
EOF | ||
|
||
IDX=$((IDX+1)) | ||
done | ||
echo "" | ||
|
||
echo "Finished" |