mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-09 20:37:52 +00:00
added perf test
This commit is contained in:
parent
23980af634
commit
92d491682d
8 changed files with 35 additions and 6 deletions
|
|
@ -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/*
|
||||
11
.gitlab/.perf-able-gitlab-ci.yml
Normal file
11
.gitlab/.perf-able-gitlab-ci.yml
Normal 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
|
||||
|
|
@ -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
|
||||
|
|
@ -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..."
|
||||
|
|
@ -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
|
||||
7
qa/scripts/perf/able/script.js
Normal file
7
qa/scripts/perf/able/script.js
Normal 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);
|
||||
}
|
||||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue