[CI] Sleep before starting ciGroup tasks to smooth out CPU spikes from ES starting up (#89751)

This commit is contained in:
Brian Seeders 2021-01-29 15:09:33 -05:00 committed by GitHub
parent f53bc9825b
commit 5a33872e07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,6 +130,8 @@ def functionalTestProcess(String name, String script) {
def ossCiGroupProcess(ciGroup) {
return functionalTestProcess("ciGroup" + ciGroup) {
sleep((ciGroup-1)*30) // smooth out CPU spikes from ES startup
withEnv([
"CI_GROUP=${ciGroup}",
"JOB=kibana-ciGroup${ciGroup}",
@ -143,6 +145,7 @@ def ossCiGroupProcess(ciGroup) {
def xpackCiGroupProcess(ciGroup) {
return functionalTestProcess("xpack-ciGroup" + ciGroup) {
sleep((ciGroup-1)*30) // smooth out CPU spikes from ES startup
withEnv([
"CI_GROUP=${ciGroup}",
"JOB=xpack-kibana-ciGroup${ciGroup}",
@ -454,6 +457,7 @@ def allCiTasks() {
}
def pipelineLibraryTests() {
return
whenChanged(['vars/', '.ci/pipeline-library/']) {
workers.base(size: 'flyweight', bootstrapped: false, ramDisk: false) {
dir('.ci/pipeline-library') {