Skip to content

Commit

Permalink
Reduce ClientSecrets scenario load (#1021)
Browse files Browse the repository at this point in the history
* Current performance run is (over)loading the DB too much (98% CPU)
* Reduce the total number of clients to 10k (75% cache hit ratio)
* Reduce the requests per second to 750 (25% reduction)

Closes #1018

Signed-off-by: Pedro Ruivo <pruivo@redhat.com>
  • Loading branch information
pruivo authored Oct 24, 2024
1 parent 7192ec7 commit d2cc514
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/rosa-scaling-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on:
numberOfClientsPerSecond:
description: 'Client credential grants per second'
type: number
default: 1000
default: 750
measurement:
description: 'Measurement period (seconds)'
type: number
Expand Down Expand Up @@ -73,7 +73,7 @@ on:
numberOfClientsPerSecond:
description: 'Client credential grants per second'
type: number
default: 1000
default: 750
measurement:
description: 'Measurement period (seconds)'
type: number
Expand All @@ -93,7 +93,7 @@ env:
PROJECT_PREFIX: runner- # same as default
PROJECT: runner-keycloak
ANSIBLE_CUSTOM_VARS_ARG: '-e @env_rosa_benchmark.yml'
CLIENTS_PER_REALM: 20000
CLIENTS_PER_REALM: 10000

jobs:
run:
Expand Down
2 changes: 2 additions & 0 deletions provision/rosa-cross-dc/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,7 @@ tasks:
vars:
SCENARIO: '{{.SCENARIO | default "keycloak.scenario.authentication.AuthorizationCode"}}'
USERS: "{{.USERS | default 20000}}"
CLIENTS: "{{.CLIENTS | default 10000}}"
USERS_PER_SEC: "{{.USERS_PER_SEC | default 150}}"
DURATION: "{{.DURATION | default 600}}"
REFRESH_TOKEN_COUNT: "{{.REFRESH_TOKEN_COUNT | default 0}}"
Expand All @@ -807,6 +808,7 @@ tasks:
--realm-name=realm-0
--logout-percentage={{.LOGOUT_PERCENTAGE}}
--users-per-realm={{.USERS}}
--clients-per-realm={{.CLIENTS}}
--ramp-up=20
--log-http-on-failure
--refresh-token-count={{.REFRESH_TOKEN_COUNT}}
Expand Down

0 comments on commit d2cc514

Please sign in to comment.