diff --git a/.travis.yml b/.travis.yml index a0c806f..ad62893 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,3 @@ - language: python dist: bionic cache: pip diff --git a/benchmark/classic/benchmark.sh b/benchmark/classic/benchmark.sh index 6ab0877..cd2b70a 100644 --- a/benchmark/classic/benchmark.sh +++ b/benchmark/classic/benchmark.sh @@ -5,7 +5,6 @@ functions=(isprime-kubeless-go-sc) connections=(45) times=(30s) kuberhost="node1:31299" -maxthreads=40 kubeless=true rps=500 #Climb mode configuration diff --git a/cluster-deploy b/cluster-deploy index 47876ee..6da72eb 100644 --- a/cluster-deploy +++ b/cluster-deploy @@ -1,14 +1,4 @@ #!/bin/bash -# @author: Daniel Keszei -# @description: Kubernetes deployer -# @created: 2019-02-15 -# @version: 1.0 -# @origin: https://github.com/szefoka/openfaas_lab - - -# Variable(s) - -# Script variable(s) PID=$$ SCRIPTNAME="$(basename $0)" WORKER_LIST="worker.list" @@ -16,23 +6,6 @@ EXTERNAL=false MASTER_IP="" TOKEN="" HASH="" - - -# Functions - -function usage { -cat << EOF -Usage: $SCRIPTNAME [--external|-e] ---external|-e : Initizalize Kubernetes on the external network - instead of on an internal one -Available plugins: - * Calico - * Cilium - * Flannel - * WeaveNet -EOF -} - ## Send error messages to stderr function echo_err { echo "Error: $@" >&2 @@ -75,18 +48,6 @@ if [ "$#" -lt 1 ]; then echo_err "Missing CNI plugin name as an argument." exit 1 fi - -## Check for help parameter -for i in "$@" -do - ### Make the letters of the argument lowercase - i=$(tr '[:upper:]' '[:lower:]' <<< $i) - case $i in - ### Print out help message - help|h|-h|--help) usage; exit 0;; - esac -done - ## Check parameters and setup variables for Kubernetes installation for i in "$@" do @@ -151,9 +112,6 @@ HASH=sha256:$(openssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt | openssl dgst -sha256 -hex | sed 's/^.* //') -#FIXME Do I need local docker-registry? -#./deploy/docker_registry_setup.sh $IP:5000 - # Join the worker nodes for WORKERNAME in ${WORKER[@]}; do echo "[worker:$WORKERNAME] Deploying..." diff --git a/cluster-withdraw b/cluster-withdraw index d742c8a..b9a6f07 100644 --- a/cluster-withdraw +++ b/cluster-withdraw @@ -1,26 +1,8 @@ #!/bin/bash -# @author: Daniel Keszei -# @description: Kubernetes cluster withdrawer -# @created: 2019-02-26 -# @version: 1.0 - - -# Variable(s) - -# Script variable(s) PID=$$ SCRIPTNAME="$(basename $0)" WORKER_LIST="worker.list" -# Functions - -#FIXME Write usage message -function usage { -cat << EOF -EOF - -} - ## Send error messages to stderr function echo_err { echo "Error: $@" >&2 @@ -46,9 +28,6 @@ readarray WORKER < $WORKER_LIST ./withdraw/node_reset.sh rm -rf ~/.kube -#FIXME Does local docker-registry needs removal -#./deploy/docker_registry_setup.sh $IP:5000 - # Reset the workers0 for LINE in $(cat $WORKER_LIST | grep -vE "^#"); do WORKERNAME=`echo $LINE | awk -F"/" '{print $NF}'` @@ -56,8 +35,5 @@ for LINE in $(cat $WORKER_LIST | grep -vE "^#"); do echo "[worker:$WORKERNAME] Evicating..." ssh $WORKERNAME -o "StrictHostKeyChecking no" "bash -s" < ./withdraw/node_reset.sh - #FIXME Does local docker-registry needs removal -# ssh $WORKERNAME -o "StrictHostKeyChecking no" "bash -s" < ./deploy/docker_registry_setup.sh $IP:5000 - echo "[worker:$WORKERNAME] Eviction is completed." done