diff --git a/benchmark/classic/hotandcold.sh b/benchmark/classic/hotandcold.sh new file mode 100644 index 0000000..5a8d45f --- /dev/null +++ b/benchmark/classic/hotandcold.sh @@ -0,0 +1,19 @@ +#! /usr/bin/env bash + +kuberhost=10.98.63.121 + +while true; do + +echo -e "Firing" + +curl -s --output /dev/null --write-out "%{time_total}\n" --header "Host: helloworld-go.default.example.com" http://$kuberhost/ >> cold-go.csv +curl -s --output /dev/null --write-out "%{time_total}\n" --header "Host: helloworld-go.default.example.com" http://$kuberhost/ >> hot-go.csv + +curl -s --output /dev/null --write-out "%{time_total}\n" --header "Host: isprime-py.default.example.com" http://$kuberhost/ >> cold-py.csv +curl -s --output /dev/null --write-out "%{time_total}\n" --header "Host: isprime-py.default.example.com" http://$kuberhost/ >> hot-py.csv + +echo -e "Sleeping" + +sleep 2m + +done diff --git a/deploy/kubernetes_install.sh b/deploy/kubernetes_install.sh index 1ed6810..7634c5f 100644 --- a/deploy/kubernetes_install.sh +++ b/deploy/kubernetes_install.sh @@ -24,13 +24,13 @@ fi DOCKER_INSTALLED=$(which docker) if [ "$DOCKER_INSTALLED" = "" ] then - apt-get remove docker docker-engine docker.io - apt-get update - apt-get install -y apt-transport-https ca-certificates curl software-properties-common + apt remove docker docker-engine docker.io + apt update + apt install -y apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" - apt-get update - apt-get install -y docker-ce + apt update + apt install -y docker-ce fi @@ -42,8 +42,8 @@ then touch /etc/apt/sources.list.d/kubernetes.list chmod 666 /etc/apt/sources.list.d/kubernetes.list echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list - apt-get update - apt-get install -y kubelet=1.15.4-00 kubeadm=1.15.4-00 kubectl kubernetes-cni + apt update + apt install -y kubelet=1.15.4-00 kubeadm=1.15.4-00 kubectl kubernetes-cni fi #Disabling swap for Kubernetes