added perf test

This commit is contained in:
pokeeffe-molecula 2022-02-11 15:38:33 -06:00
parent 23980af634
commit 92d491682d
8 changed files with 35 additions and 6 deletions

View file

@ -12,6 +12,7 @@ stages:
- build
- integration
- gauntlet
- performance
- post build
smoke build:
@ -467,3 +468,11 @@ s3 dump:
- job: build for darwin arm64
- job: build for linux amd64
- job: build for linux arm64
perf_able:
stage: performance
trigger:
include: .perf-able-gitlab-ci.yml
rules:
- changes:
- featurebase/*

View file

@ -0,0 +1,11 @@
stages:
- loadtest
loadtest:
image:
name: loadimpact/k6:latest
entrypoint: ['']
stage: loadtest
script:
- echo "executing local k6 in k6 container..."
- k6 run ./qa/scripts/perf/able/script.js

View file

@ -11,6 +11,6 @@ else
echo "TF_VAR_cluster_prefix is set to '$TF_VAR_cluster_prefix'";
fi
$SCRIPT_DIR/ableSetupGauntlet.sh
$SCRIPT_DIR/ableTestGauntlet.sh
$SCRIPT_DIR/ableTeardownGauntlet.sh
$SCRIPT_DIR/ableSetup.sh
$SCRIPT_DIR/ableTest.sh
$SCRIPT_DIR/ableTeardown.sh

View file

@ -1,6 +1,6 @@
#!/bin/bash
# To run script: ./SetupGauntlet.sh
# To run script: ./ableSetup.sh
export TF_IN_AUTOMATION=1
if [ -z ${TF_VAR_cluster_prefix+x} ]; then
@ -11,7 +11,7 @@ else
fi
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
source $SCRIPT_DIR/utilCluster.sh
source $SCRIPT_DIR/../..utilCluster.sh
pushd ./qa/tf/gauntlet/able
echo "Running terraform init..."

View file

@ -1,6 +1,6 @@
#!/bin/bash
# To run script: ./ableTeardownGauntlet.sh
# To run script: ./ableTeardown.sh
cd qa/tf/gauntlet/able
export TF_IN_AUTOMATION=1

View file

@ -0,0 +1,7 @@
import http from 'k6/http';
import { sleep } from 'k6';
export default function () {
http.get('https://test.k6.io');
sleep(1);
}

View file

@ -38,6 +38,7 @@ resource "aws_instance" "fb_cluster_nodes" {
volume_type = var.fb_data_disk_type
volume_size = var.fb_data_disk_size_gb
iops = var.fb_data_disk_iops
encrypted = true
}
tags = {
@ -70,6 +71,7 @@ resource "aws_instance" "fb_ingest" {
volume_type = var.fb_ingest_disk_type
volume_size = var.fb_ingest_disk_size_gb
iops = var.fb_ingest_disk_iops
encrypted = true
}
tags = {