Skip to content

Commit

Permalink
sriov jobs, use etcd in memory
Browse files Browse the repository at this point in the history
Currently we encounter bad performance of KIND
cluster on DinD setup, we get 'etcdserver: timeout errors'
that causes jobs to fail often.

Running etcd in memory should improve performance and
make sriov jobs more stabilized

Signed-off-by: Or Mergi <[email protected]>
  • Loading branch information
ormergi committed Nov 17, 2020
1 parent bf50816 commit fbd0ee9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ presubmits:
skip_branches:
- release-\d+\.\d+
annotations:
rehearsal.allowed: "true"
fork-per-release: "true"
k8s.v1.cni.cncf.io/networks: multus-cni-ns/sriov-passthrough-cni
always_run: true
Expand Down Expand Up @@ -224,6 +225,8 @@ presubmits:
mountPath: /sys/fs/cgroup
- name: vfio
mountPath: /dev/vfio/
- name: etcd-data-dir
mountPath: /mnt/etcd
volumes:
- name: modules
hostPath:
Expand All @@ -237,6 +240,9 @@ presubmits:
hostPath:
path: /dev/vfio/
type: Directory
- name: etcd-data-dir
emptyDir:
medium: Memory

- name: pull-kubevirt-check-tests-for-flakes
skip_branches:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ presubmits:
type: Directory
- name: check-up-kind-1.17-sriov
annotations:
rehearsal.allowed: "true"
k8s.v1.cni.cncf.io/networks: multus-cni-ns/sriov-passthrough-cni
always_run: false
optional: true
Expand Down Expand Up @@ -77,12 +78,18 @@ presubmits:
- >
apt update &&
apt install gettext-base -y &&
wget https://dl.google.com/go/go1.13.8.linux-amd64.tar.gz &&
wget https://dl.google.com/go/go1.13.8.linux-amd64.tar.gz -nv -S &&
tar -xzf go1.13.8.linux-amd64.tar.gz -C /usr/local/ &&
export PATH=/usr/local/go/bin:$PATH &&
export KUBEVIRT_PROVIDER=kind-k8s-sriov-1.17.0 &&
export KUBEVIRT_NUM_NODES=2 &&
df -h
ls /mnt/etcd
touch /mnt/etcd/hello
docker exec sriov-control-plane ls /mnt/etcd
rm -f /mnt/etcd/hello
make cluster-up
make cluster-down
# docker-in-docker needs privileged mode
securityContext:
privileged: true
Expand All @@ -98,6 +105,8 @@ presubmits:
mountPath: /sys/fs/cgroup
- name: vfio
mountPath: /dev/vfio/
- name: etcd-data-dir
mountPath: /mnt/etcd
volumes:
- name: modules
hostPath:
Expand All @@ -111,6 +120,9 @@ presubmits:
hostPath:
path: /dev/vfio/
type: Directory
- name: etcd-data-dir
emptyDir:
medium: Memory

- name: check-provision-k8s-1.18
always_run: true
Expand Down

0 comments on commit fbd0ee9

Please sign in to comment.