Skip to content

Commit c46ebdf

Browse files
authored
Merge pull request #17934 from ronaldngounou/set-delete-collection-worker-flag
Increase delete-collections-workers flag value to speed up namespace deletion
2 parents 4bfe8a5 + f5f4a29 commit c46ebdf

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tests/e2e/scenarios/scalability/run-test.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ create_args+=("--set spec.kubeAPIServer.maxMutatingRequestsInflight=0")
108108
create_args+=("--set spec.kubeAPIServer.enableProfiling=true")
109109
create_args+=("--set spec.kubeAPIServer.enableContentionProfiling=true")
110110
create_args+=("--set spec.kubeAPIServer.logLevel=2")
111+
# increase the --delete-collection-workers to 100 to speed up delete operations
112+
create_args+=("--set spec.kubeAPIServer.deleteCollectionWorkers=100")
113+
111114
# this is required for Prometheus server to scrape metrics endpoint on APIServer
112115
create_args+=("--set spec.kubeAPIServer.anonymousAuth=true")
113116
# this is required for kindnet to use nftables
@@ -180,12 +183,12 @@ if [[ "${DELETE_CLUSTER:-}" == "true" ]]; then
180183
KUBETEST2_ARGS+=("--down")
181184
fi
182185

183-
# this is used as a label to select kube-proxy pods on kops for kube-proxy service
186+
# this is used as a label to select kube-proxy pods on kops for kube-proxy service
184187
# used by CL2 Prometheus here https://github.com/kubernetes/perf-tests/blob/master/clusterloader2/pkg/prometheus/manifests/default/kube-proxy-service.yaml#L2
185188
export PROMETHEUS_KUBE_PROXY_SELECTOR_KEY="k8s-app"
186189
export PROMETHEUS_SCRAPE_APISERVER_ONLY="true"
187190
export CL2_PROMETHEUS_TOLERATE_MASTER="true"
188-
export ETCD_PORT="4001" # we want cl2 to use this port for etcd instead of 2379
191+
export ETCD_PORT="4001" # we want cl2 to use this port for etcd instead of 2379
189192
if [[ "${CLOUD_PROVIDER}" == "aws" && "${SCALE_SCENARIO}" == "performance" ]]; then
190193
# CL2 uses KUBE_SSH_KEY_PATH path to ssh to instances for scraping metrics
191194
cat > "${GOPATH}"/src/k8s.io/perf-tests/clusterloader2/testing/load/overrides.yaml <<EOL

0 commit comments

Comments
 (0)