Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
dhlavac committed Jul 25, 2024
1 parent 39c136f commit 545f546
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 10 deletions.
2 changes: 1 addition & 1 deletion testsuite/tests/performance/smoke/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
@pytest.fixture(scope="module")
def number_of_agents():
"""Number of Hyperfoil agents to be spawned"""
return 1
return 4
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ phases:
sync: true
body:
fromFile: message_1kb.txt
- steadyLoad :
- steadyLoad20M :
constantRate:
duration: 2m
usersPerSec: 20
duration: 120m
usersPerSec: 115
maxSessions: 400
startAfter:
phase: rampUp
scenario: *postLargeData
- steadyLoadGet:
- steadyLoadGet20M:
constantRate:
duration: 2m
usersPerSec: 5
duration: 120m
usersPerSec: 115
maxSessions: 400
startAfter:
phase: rampUp
Expand Down Expand Up @@ -72,3 +72,81 @@ phases:
GET:
fromVar: path
sync: true
- steadyLoad30M:
constantRate:
duration: 120m
usersPerSec: 182
maxSessions: 400
startAfter:
phase: steadyLoad20M
scenario: *postLargeData
- steadyLoadGet30M:
constantRate:
duration: 120m
usersPerSec: 182
maxSessions: 400
startAfter:
phase: steadyLoadGet20M
scenario:
- getData:
- randomCsvRow:
file: 'auth_user_key.csv'
skipComments: true
removeQuotes: true
columns:
0: 0 # hostname
1: 1 # auth_user_key
2: 2 # user_key
- randomInt: randomBackend <- 0 .. 9
- randomInt: randomPath <- 0 .. 9
- template:
pattern: ${1}=${2}
toVar: param
- template:
pattern: /${randomBackend}/anything/${randomPath}?${param}
toVar: path
- httpRequest:
authority:
fromVar: 0
GET:
fromVar: path
sync: true
- steadyLoad40M:
constantRate:
duration: 120m
usersPerSec: 232
maxSessions: 400
startAfter:
phase: steadyLoad30M
scenario: *postLargeData
- steadyLoadGet40M:
constantRate:
duration: 120m
usersPerSec: 232
maxSessions: 400
startAfter:
phase: steadyLoadGet30M
scenario:
- getData:
- randomCsvRow:
file: 'auth_user_key.csv'
skipComments: true
removeQuotes: true
columns:
0: 0 # hostname
1: 1 # auth_user_key
2: 2 # user_key
- randomInt: randomBackend <- 0 .. 9
- randomInt: randomPath <- 0 .. 9
- template:
pattern: ${1}=${2}
toVar: param
- template:
pattern: /${randomBackend}/anything/${randomPath}?${param}
toVar: path
- httpRequest:
authority:
fromVar: 0
GET:
fromVar: path
sync: true
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
from testsuite.perf_utils import HyperfoilUtils

# Maximal runtime of test (need to cover all performance stages)
MAX_RUN_TIME = 5 * 60
MAX_RUN_TIME = 300 * 60

pytestmark = [pytest.mark.performance]


@pytest.fixture(scope="module")
def number_of_products():
"""Number of created services (products)"""
return 1
return 10


@pytest.fixture(scope="module")
Expand All @@ -35,7 +35,7 @@ def number_of_backends():
@pytest.fixture(scope="module")
def number_of_apps():
"""Number of created application for single service (product)"""
return 1
return 15


@pytest.fixture(scope="module")
Expand Down

0 comments on commit 545f546

Please sign in to comment.