forked from kubernetes/perf-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kubernetes#1 from kubernetes/master
update
- Loading branch information
Showing
219 changed files
with
3,767 additions
and
35,167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
aliases: | ||
sig-scalability-reviewers: | ||
- mm4tt | ||
- shyamjvs | ||
- wojtek-t | ||
sig-scalability-approvers: | ||
- mm4tt | ||
- shyamjvs | ||
- wojtek-t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
reviewers: | ||
- sig-scalability-reviewers | ||
|
||
approvers: | ||
- sig-scalability-approvers | ||
- jberkus | ||
- wojtek-t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Application Performance and Benchmarking | ||
|
||
This directory contains the files for the Application Performance and Benchmarking subproject of SIG-Scalability. The subproject's mission is: | ||
|
||
* Develop repeatable benchmarking scripts, tools, and configurations for testing the performance of applications running on Kubernetes together with stack components such as CSI drivers and network overlays | ||
* Share and publish results of benchmarking tests | ||
* Develop automated tests to monitor for application performance regressions | ||
|
||
## Discussion and Contacts | ||
|
||
- Issues: file issues in this repository | ||
- Chat: #sig-scalability in slack.k8s.io | ||
- Meetings: no meetings scheduled yet | ||
|
||
## Owners | ||
|
||
Initial subproject owners are: | ||
|
||
- Josh Berkus (@jberkus) of Red Hat | ||
- Wojciech Tyczynski (@wojtek-t) of Google | ||
|
||
Once we have built out results and test parameters, the owners list will be updated with the actual contributors to the project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
approvers: | ||
- krzysied | ||
- mborsz | ||
- mm4tt | ||
- oxddr | ||
- wojtek-t | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2020 The Kubernetes Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
print-usage-and-exit() { | ||
>&2 echo "Usage:" | ||
>&2 echo " $0 delete|list <comma-sep-projects> <comma-sep-prefixes> <days-old>" | ||
>&2 echo "Example:" | ||
>&2 echo " $0 list k8s-e2e-gce-1-1,k8s-e2e-gce-1-2 ci-e2e-scalability,ci-e2e-kubemark 30" | ||
exit $1 | ||
} | ||
|
||
list-old-snapshots() { | ||
project=$1 | ||
regexp=$2 | ||
days_old=$3 | ||
( | ||
set -o xtrace | ||
gcloud compute snapshots list \ | ||
--project "$project" \ | ||
--filter="creationTimestamp < -P${days_old}D AND name~\"${regexp}\"" \ | ||
--format="value(name)" | ||
) | ||
} | ||
|
||
process-old-snapshots() { | ||
command=$1 | ||
project=$2 | ||
regexp=$3 | ||
days_old=$4 | ||
for snapshot in $(list-old-snapshots "$project" "$regexp" "$days_old"); do | ||
if [[ "$command" == "delete" ]]; then | ||
echo "Removing $snapshot ..." | ||
gcloud compute snapshots delete -q --project "$project" "$snapshot" | ||
else | ||
echo "Found: $snapshot" | ||
fi | ||
done | ||
} | ||
|
||
main() { | ||
if [ "$#" -ne 4 ]; then | ||
>&2 echo "Wrong number of parameters, expected 4, got $#" | ||
print-usage-and-exit 1 | ||
fi | ||
|
||
command=$1 | ||
projects=$2 | ||
prefixes=$3 | ||
days_old=$4 | ||
|
||
if ! [[ "$command" =~ ^(list|delete)$ ]]; then | ||
>&2 echo "Invalid command: $command" | ||
print-usage-and-exit 2 | ||
fi | ||
if ! [[ "$projects" =~ ^[a-z0-9,-]+$ ]]; then | ||
>&2 echo "Illegal characters in projects parameter: $projects" | ||
print-usage-and-exit 3 | ||
fi | ||
if ! [[ "$prefixes" =~ ^[a-z0-9,.-]+$ ]]; then | ||
>&2 echo "Illegal characters in prefixes parameter: $prefixes" | ||
print-usage-and-exit 4 | ||
fi | ||
if ! [[ "$days_old" =~ ^[0-9]+$ ]]; then | ||
>&2 echo "Days-old parameter must be an integer: $days_old" | ||
print-usage-and-exit 5 | ||
fi | ||
|
||
prefixes_alt="${prefixes//,/|}" | ||
regexp="^(${prefixes_alt}).*-[0-9]{19}$" | ||
echo "Looking for snapshots matched by $regexp" | ||
|
||
IFS=',' read -ra projects_arr <<< "$projects" | ||
|
||
for project in "${projects_arr[@]}"; do | ||
echo "Processing project $project" | ||
process-old-snapshots "$command" "$project" "$regexp" "$days_old" | ||
done | ||
} | ||
|
||
main $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.