Skip to content

Instantly share code, notes, and snippets.

@masayag
masayag / run_jmeter.sh
Last active November 29, 2021 12:52
Using JMeter for testing K4E scalability
#!/bin/bash
cd /home/test/apache-jmeter-5.4.1
export KUBECONFIG=/root/kubeconfig
Usage() {
echo "Usage:"
echo `basename $0` "<test-run-number> <edge-devices-count> <ramp-up-time-seconds> <iterations>"
}
@masayag
masayag / setup-cnv-chaos-cluster.sh
Last active November 20, 2020 16:55
Use assisted-installer for cnv chaos testing
# Run from a user which is a passwordless sudoer
#----------------------------------------------
# Install assisted-installer and deploy cluster
#----------------------------------------------
dnf install -y git make
git clone https://github.com/openshift/assisted-test-infra.git
cd assisted-test-infra
# for the first time only
export BM_INVENTORY_SERVER=$(hostname)
# to be run on assisted-test-infra env
alias list-nodes='sudo virsh net-dhcp-leases test-infra-net'
list-clusters() {
curl -s http://$BM_INVENTORY_SERVER:6008/api/assisted-install/v1/clusters/ | jq '.[] | {ID: .id, Name: .name}'
}
list-hosts() {
# Build CDI from source
git clone git@github.com:kubevirt/containerized-data-importer.git
cd containerized-data-importer/
make all
# Replace $USER with quay, make sure images are public or provider a secret
make manifests DOCKER_PREFIX=quay.io/$USER
make push DOCKER_PREFIX=quay.io/$USER
# Deploy CDI + CDI Operator on k8s cluster