summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordalyd <david.daly@mongodb.com>2016-11-23 12:07:24 -0500
committerdalyd <david.daly@mongodb.com>2016-11-29 10:40:07 -0500
commit654d9ecf3ed44af75e6c69bc9161e88fabfb653b (patch)
tree257eeff96dc395943ec0560856a7486b7d9cac1b
parent5de23b5e043bc982b0fdd551db4c65abd641b4af (diff)
downloadmongo-654d9ecf3ed44af75e6c69bc9161e88fabfb653b.tar.gz
SERVER-27202: Mark sys-perf cluster idle after regression runs
(cherry picked from commit 159c34fe121cc472d57ccbeb70abb04f02e14208)
-rw-r--r--etc/system_perf.yml22
1 files changed, 21 insertions, 1 deletions
diff --git a/etc/system_perf.yml b/etc/system_perf.yml
index f11b49646a7..d2b8f077381 100644
--- a/etc/system_perf.yml
+++ b/etc/system_perf.yml
@@ -34,6 +34,26 @@ post:
- command: attach.results
params:
file_location: work/report.json
+ - command: shell.exec
+ params:
+ working_dir: work
+ script: |
+ source ./dsienv.sh
+ if [ -e $HOME/infrastructure_provisioning/terraform/provisioned.${cluster} ]; then
+ $DSI_PATH/bin/mark_idle.sh
+ fi
+
+ - command: shell.exec
+ params:
+ working_dir: src
+ script: |
+ # removes files from the (local) scons cache when it's over a
+ # threshold, to the $prune_ratio percentage. Ideally override
+ # these default values in the distro config in evergreen.
+
+ if [ -d "${scons_cache_path}" ]; then
+ ${python|python} buildscripts/scons_cache_prune.py --cache-dir ${scons_cache_path} --cache-size ${scons_cache_size|200} --prune-ratio ${scons_prune_ratio|0.8}
+ fi
- command: shell.cleanup
functions:
@@ -173,7 +193,7 @@ functions:
echo "No existing resources found"
fi
- command: shell.exec
- # call setup-cluster.sh, in most cases this only updates expire-on tag
+ # call setup-cluster.sh, in most cases this only updates tags
params:
working_dir: work
script: |