mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Run 1000 node Kubemark experiments on Jenkins
This commit is contained in:
parent
7324cd68d2
commit
a16350853e
@ -22,7 +22,7 @@
|
|||||||
GCLOUD=gcloud
|
GCLOUD=gcloud
|
||||||
ZONE=${KUBE_GCE_ZONE:-us-central1-b}
|
ZONE=${KUBE_GCE_ZONE:-us-central1-b}
|
||||||
MASTER_SIZE=${MASTER_SIZE:-n1-standard-4}
|
MASTER_SIZE=${MASTER_SIZE:-n1-standard-4}
|
||||||
NUM_MINIONS=${NUM_MINIONS:-4000}
|
NUM_MINIONS=${NUM_MINIONS:-100}
|
||||||
MASTER_DISK_TYPE=pd-ssd
|
MASTER_DISK_TYPE=pd-ssd
|
||||||
MASTER_DISK_SIZE=${MASTER_DISK_SIZE:-20GB}
|
MASTER_DISK_SIZE=${MASTER_DISK_SIZE:-20GB}
|
||||||
REGISTER_MASTER_KUBELET=${REGISTER_MASTER:-false}
|
REGISTER_MASTER_KUBELET=${REGISTER_MASTER:-false}
|
||||||
|
@ -630,6 +630,8 @@ case ${JOB_NAME} in
|
|||||||
NUM_MINIONS=3
|
NUM_MINIONS=3
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
# Run Kubemark test on a fake 100 node cluster to have a comparison
|
||||||
|
# to the real results from scalability suite
|
||||||
kubernetes-kubemark-gce)
|
kubernetes-kubemark-gce)
|
||||||
: ${E2E_CLUSTER_NAME:="kubernetes-kubemark"}
|
: ${E2E_CLUSTER_NAME:="kubernetes-kubemark"}
|
||||||
: ${E2E_NETWORK:="kubernetes-kubemark"}
|
: ${E2E_NETWORK:="kubernetes-kubemark"}
|
||||||
@ -638,9 +640,15 @@ case ${JOB_NAME} in
|
|||||||
: ${E2E_DOWN:="true"}
|
: ${E2E_DOWN:="true"}
|
||||||
: ${E2E_TEST:="false"}
|
: ${E2E_TEST:="false"}
|
||||||
: ${USE_KUBEMARK:="true"}
|
: ${USE_KUBEMARK:="true"}
|
||||||
: ${NUM_MINIONS:="10"}
|
# Override defaults to be indpendent from GCE defaults and set kubemark parameters
|
||||||
|
NUM_MINIONS="10"
|
||||||
|
MASTER_SIZE="n1-standard-2"
|
||||||
|
MINION_SIZE="n1-standard-1"
|
||||||
|
KUBEMARK_MASTER_SIZE="n1-standard-4"
|
||||||
|
KUBEMARK_NUM_MINIONS="100"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
# Run big Kubemark test, this currently means a 1000 node cluster and 16 core master
|
||||||
kubernetes-kubemark-gce-scale)
|
kubernetes-kubemark-gce-scale)
|
||||||
: ${E2E_CLUSTER_NAME:="kubernetes-kubemark-scale"}
|
: ${E2E_CLUSTER_NAME:="kubernetes-kubemark-scale"}
|
||||||
: ${E2E_NETWORK:="kubernetes-kubemark-scale"}
|
: ${E2E_NETWORK:="kubernetes-kubemark-scale"}
|
||||||
@ -649,12 +657,15 @@ case ${JOB_NAME} in
|
|||||||
: ${E2E_DOWN:="true"}
|
: ${E2E_DOWN:="true"}
|
||||||
: ${E2E_TEST:="false"}
|
: ${E2E_TEST:="false"}
|
||||||
: ${USE_KUBEMARK:="true"}
|
: ${USE_KUBEMARK:="true"}
|
||||||
: ${NUM_MINIONS:="40"}
|
# Override defaults to be indpendent from GCE defaults and set kubemark parameters
|
||||||
: ${E2E_ZONE:="asia-east1-a"}
|
NUM_MINIONS="8"
|
||||||
: ${MASTER_SIZE:="n1-standard-32"} # Note: not available in all zones
|
MASTER_SIZE="n1-standard-4"
|
||||||
: ${MINION_SIZE="n1-standard-16"} # Note: can fit about 17 hollow nodes per core
|
MINION_SIZE="n1-standard-8" # Note: can fit about 17 hollow nodes per core
|
||||||
# so NUM_MINIONS x cores_per_minion should
|
# so NUM_MINIONS x cores_per_minion should
|
||||||
# be set accordingly.
|
# be set accordingly.
|
||||||
|
E2E_ZONE="asia-east1-a"
|
||||||
|
KUBEMARK_MASTER_SIZE="n1-standard-16"
|
||||||
|
KUBEMARK_NUM_MINIONS="1000"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -850,9 +861,10 @@ fi
|
|||||||
if [[ "${USE_KUBEMARK:-}" == "true" ]]; then
|
if [[ "${USE_KUBEMARK:-}" == "true" ]]; then
|
||||||
export RUN_FROM_DISTRO=true
|
export RUN_FROM_DISTRO=true
|
||||||
NUM_MINIONS_BKP=${NUM_MINIONS}
|
NUM_MINIONS_BKP=${NUM_MINIONS}
|
||||||
# We need to unset NUM_MINIONS to be able to use kubemark default settings.
|
MASTER_SIZE_BKP=${MASTER_SIZE}
|
||||||
unset NUM_MINIONS
|
|
||||||
./test/kubemark/stop-kubemark.sh
|
./test/kubemark/stop-kubemark.sh
|
||||||
|
NUM_MINIONS=${KUBEMARK_NUM_MINIONS:-$NUM_MINIONS}
|
||||||
|
MASTER_SIZE=${KUBEMARK_MASTER_SIZE:-$MASTER_SIZE}
|
||||||
./test/kubemark/start-kubemark.sh
|
./test/kubemark/start-kubemark.sh
|
||||||
./test/kubemark/run-scalability-test.sh && exitcode=0 || exitcode=$?
|
./test/kubemark/run-scalability-test.sh && exitcode=0 || exitcode=$?
|
||||||
if [[ "${E2E_PUBLISH_GREEN_VERSION:-}" == "true" && ${exitcode} == 0 && -n ${githash:-} ]]; then
|
if [[ "${E2E_PUBLISH_GREEN_VERSION:-}" == "true" && ${exitcode} == 0 && -n ${githash:-} ]]; then
|
||||||
@ -861,9 +873,11 @@ if [[ "${USE_KUBEMARK:-}" == "true" ]]; then
|
|||||||
gsutil cp ${WORKSPACE}/githash.txt gs://kubernetes-release/ci/latest-green.txt
|
gsutil cp ${WORKSPACE}/githash.txt gs://kubernetes-release/ci/latest-green.txt
|
||||||
fi
|
fi
|
||||||
./test/kubemark/stop-kubemark.sh
|
./test/kubemark/stop-kubemark.sh
|
||||||
unset RUN_FROM_DISTRO
|
|
||||||
NUM_MINIONS=${NUM_MINIONS_BKP}
|
NUM_MINIONS=${NUM_MINIONS_BKP}
|
||||||
|
MASTER_SIZE=${MASTER_SIZE_BKP}
|
||||||
|
unset RUN_FROM_DISTRO
|
||||||
unset NUM_MINIONS_BKP
|
unset NUM_MINIONS_BKP
|
||||||
|
unset MASTER_SIZE_BKP
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# TODO(zml): We have a bunch of legacy Jenkins configs that are
|
# TODO(zml): We have a bunch of legacy Jenkins configs that are
|
||||||
|
Loading…
Reference in New Issue
Block a user