Skip to content

Commit

Permalink
Spsh 1371 - Performance optimization (#97)
Browse files Browse the repository at this point in the history
* Spsh 1158 test loadtest drivers (#80)

configure keycloak for scaling

* DBP-1079-keyloak-headless-and-non-headless-service (#82)

DBP-1079-keyloak-headless-and-non-headless-service (#82)

* add loa mapping for silver

* Spsh 740 (#73)

SPSH-740

* make kc stateful

* enable autoscaling

* dbg: undo statefulset

* increase requests, remove cpu limit

* dev: resource config

* test lower thread limit

* Revert "enable autoscaling"

This reverts commit 24355cc.

* add threadpool to deployment

* env should be string

* env should be string #2

---------

Co-authored-by: aimee-889 <[email protected]>
Co-authored-by: Kristoff Kiefer <[email protected]>
  • Loading branch information
3 people authored Dec 10, 2024
1 parent 1a80bd7 commit 216c13d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ WORKDIR /opt/keycloak
COPY --from=deployment-build /opt/keycloak/lib/quarkus/ /opt/keycloak/lib/quarkus/

# Set entrypoint for deployment mode
ENTRYPOINT ["/opt/keycloak/bin/kc.sh", "start"]
ENTRYPOINT ["/opt/keycloak/bin/kc.sh", "start"]
2 changes: 1 addition & 1 deletion charts/dbildungs-iam-keycloak/dev-realm-spsh.json
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@
"oauth2.device.authorization.grant.enabled": "false",
"display.on.consent.screen": "false",
"backchannel.logout.revoke.offline.tokens": "false",
"acr.loa.map": "{\"gold\":\"10\"}",
"acr.loa.map": "{\"gold\":\"10\", \"silver\":\"15\"}",
"default.acr.values": "0"
},
"authenticationFlowBindingOverrides": {
Expand Down
4 changes: 3 additions & 1 deletion charts/dbildungs-iam-keycloak/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ spec:
env:
- name: JAVA_OPTS_APPEND
value: "-Djgroups.dns.query={{ template "common.names.name" . }}-headless.{{ template "common.names.namespace" . }}.svc.cluster.local"
- name: KC_HTTP_POOL_MAX_THREADS
value: "{{ .Values.threadPool }}"
- name: KEYCLOAK_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -176,4 +178,4 @@ spec:
name: {{ .Values.realm.name }}
{{- with .Values.extraVolumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/dbildungs-iam-keycloak/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ resources:
memory: "1Gi"
cpu: "150m"

# should be about 4 times the cpu count
threadPool: 16

startupProbe:
enabled: true
httpGet:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ passwordRequirementDigit=Mindestens 1 Ziffer enthalten
passwordRequirementHistory=Nicht dem bisherigen Passwort entsprechen
passwordRequirementNoWhitespace=Keine Leerzeichen enthalten
systemStatus=Systemstatus
userNotFound=Diese Aktion setzt eine Zweifaktor-Authentifizierung (2FA) voraus. Bitte melden Sie sich im Schulportal an und richten dort eine 2FA ein oder wenden Sie sich an Ihre schulischen Administratorinnen und Administratoren.
userNotFound=Diese Aktion setzt eine Zweifaktor-Authentifizierung (2FA) voraus. Bitte melden Sie sich im Schulportal an und richten dort eine 2FA ein oder wenden Sie sich an Ihre schulischen Administratorinnen und Administratoren.
2 changes: 1 addition & 1 deletion src/themes/schulportal/login/template.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,4 @@
<div class="dark-footer"></div>
</body>
</html>
</#macro>
</#macro>

0 comments on commit 216c13d

Please sign in to comment.