Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce startup time of keycloak #3113

Open
3 tasks
rocketeerbkw opened this issue Apr 8, 2022 · 2 comments
Open
3 tasks

Reduce startup time of keycloak #3113

rocketeerbkw opened this issue Apr 8, 2022 · 2 comments
Labels
6-images-testing Base Images & Testing subsystem

Comments

@rocketeerbkw
Copy link
Member

When keycloak starts from a blank slate, we run a start.sh script that preconfigures everything needed for lagoon. When booting with an existing database, there's still a decent wait time while it checks the config until it signals it's "ready."

This startup time can be quite long which creates annoyances in local development and wasted time in CI.

Tasks:

  • Measure current startup times for a baseline
    • Check locally and in CI
  • What is an acceptable wait?
    • Can we fail/warn tests if we exceed
  • Test/compare different solutions
    • Upgrade keycloak
    • Use native keycloak export/import
    • Parallelize startup script
    • Use a pre-loaded keycloak-db image
@rocketeerbkw rocketeerbkw added the 6-images-testing Base Images & Testing subsystem label Apr 8, 2022
@rocketeerbkw
Copy link
Member Author

Here's some results from my testing (i'll update as I test more)

Init with empty database:
keycloak 7
7:15.6
6:48.8
6:42.3
6:40.8
6:41.8

keycloak 16
4:41.8
4:26.4
4:20.2
4:19.4
4:23.5

@tobybellwood
Copy link
Member

initial poc in #3499

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6-images-testing Base Images & Testing subsystem
Projects
None yet
Development

No branches or pull requests

2 participants