forked from t2-project/modulith
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusage_scenario_temurin.yml
54 lines (45 loc) · 1.65 KB
/
usage_scenario_temurin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
name: JMeter Test Plan Execution - Updated for JVMs
author: Arne Tarara <[email protected]>
description: Demonstrating the usage of JMeter executing a test plan.
services:
gcb-postgres:
image: postgres:15.4
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
setup-commands:
- sleep 20 # wait some time to ensure that the database is ready
gcb-mongo:
image: mongo:5.0
gcb-backend:
build:
context: .
dockerfile: Dockerfile.full-build
depends_on:
- gcb-postgres
- gcb-mongo
environment:
MONGO_HOST: gcb-mongo
POSTGRES_HOST: gcb-postgres
SPRING_PROFILES_ACTIVE: simple
gcb-jmeter:
image: t2project/jmeter@sha256:8d0543345f747ae512da2f0732fbd0ee760c7168415d2dce87e77d42fd14390a
environment:
JVM_XMN: 1g # maximum nursery size
JVM_XMS: 1g # initial heap size
JVM_XMX: 2g # maximum heap size
sci:
R_d: order
# One order consists of three sequential requests: get inventory, add product to cart, confirm order
flow:
- name: Execute JMeter test plan # single user orders one product with a short think time of 1 second
container: gcb-jmeter
commands:
- type: console
command: sleep 20
- type: console
command: jmeter -Jhostname=gcb-backend -Jport=8080 -JnumExecutions=5 -JnumUser=5 -JrampUp=0 -JnumProducts=5 -JthinkTimeMin=1000 -JthinkTimeAdditionalRange=0 -JpauseBeforeExecution=0 -JpauseAfterExecution=0 -JloggingEnabled=true -n -t /tmp/repo/jmeter-test-plan.jmx
log-stdout: true
read-notes-stdout: true
read-sci-stdout: true