-
Notifications
You must be signed in to change notification settings - Fork 161
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
Built in idp fast startup #55
Draft
dhontecillas
wants to merge
2
commits into
built-in-idp
Choose a base branch
from
built-in-idp-fast-startup
base: built-in-idp
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker logs -f playground-community-keycloak-1 2025-01-10 18:01:45,050 INFO [org.keycloak.quarkus.runtime.storage.infinispan.CacheManagerFactory] (main) Starting Infinispan embedded cache manager 2025-01-10 18:01:45,778 INFO [org.infinispan.CONTAINER] (ForkJoinPool.commonPool-worker-1) ISPN000556: Starting user marshaller 'org.infinispan.commons.marshall.ImmutableProtoStreamMarshaller' 2025-01-10 18:01:46,175 WARN [org.jgroups.stack.Configurator] (ForkJoinPool.commonPool-worker-1) JGRP000014: ThreadPool.thread_dumps_threshold has been deprecated: ignored 2025-01-10 18:01:46,192 INFO [org.infinispan.CLUSTER] (ForkJoinPool.commonPool-worker-1) ISPN000078: Starting JGroups channel `ISPN` with stack `udp` 2025-01-10 18:01:46,194 INFO [org.jgroups.JChannel] (ForkJoinPool.commonPool-worker-1) local_addr: 5500bd9f-c68d-482d-a775-cfb871075247, name: 63d0250041fa-16824 2025-01-10 18:01:46,202 WARN [org.jgroups.protocols.UDP] (ForkJoinPool.commonPool-worker-1) JGRP000015: the send buffer of socket MulticastSocket was set to 1MB, but the OS only allocated 212.99KB 2025-01-10 18:01:46,205 WARN [org.jgroups.protocols.UDP] (ForkJoinPool.commonPool-worker-1) JGRP000015: the receive buffer of socket MulticastSocket was set to 20MB, but the OS only allocated 212.99KB 2025-01-10 18:01:46,206 WARN [org.jgroups.protocols.UDP] (ForkJoinPool.commonPool-worker-1) JGRP000015: the send buffer of socket MulticastSocket was set to 1MB, but the OS only allocated 212.99KB 2025-01-10 18:01:46,206 WARN [org.jgroups.protocols.UDP] (ForkJoinPool.commonPool-worker-1) JGRP000015: the receive buffer of socket MulticastSocket was set to 25MB, but the OS only allocated 212.99KB 2025-01-10 18:01:46,215 INFO [org.jgroups.protocols.FD_SOCK2] (ForkJoinPool.commonPool-worker-1) server listening on *.29320 2025-01-10 18:01:48,037 INFO [org.keycloak.quarkus.runtime.storage.database.liquibase.QuarkusJpaUpdaterProvider] (main) Initializing database schema. Using changelog META-INF/jpa-changelog-master.xml 2025-01-10 18:01:48,228 INFO [org.jgroups.protocols.pbcast.GMS] (ForkJoinPool.commonPool-worker-1) 63d0250041fa-16824: no members discovered after 2008 ms: creating cluster as coordinator 2025-01-10 18:01:48,240 INFO [org.infinispan.CLUSTER] (ForkJoinPool.commonPool-worker-1) ISPN000094: Received new cluster view for channel ISPN: [63d0250041fa-16824|0] (1) [63d0250041fa-16824] 2025-01-10 18:01:48,382 INFO [org.infinispan.CLUSTER] (ForkJoinPool.commonPool-worker-1) ISPN000079: Channel `ISPN` local address is `63d0250041fa-16824`, physical addresses are `[172.21.0.9:44856]` UPDATE SUMMARY Run: 148 Previously run: 0 Filtered out: 0 ------------------------------- Total change sets: 148 2025-01-10 18:01:52,370 WARN [io.agroal.pool] (main) Datasource '<default>': JDBC resources leaked: 1 ResultSet(s) and 0 Statement(s) 2025-01-10 18:01:52,790 INFO [org.keycloak.connections.infinispan.DefaultInfinispanConnectionProviderFactory] (main) Node name: 63d0250041fa-16824, Site name: null 2025-01-10 18:01:52,963 INFO [org.keycloak.broker.provider.AbstractIdentityProviderMapper] (main) Registering class org.keycloak.broker.provider.mappersync.ConfigSyncEventListener 2025-01-10 18:01:53,003 INFO [org.keycloak.exportimport.dir.DirImportProvider] (main) Importing from directory /opt/keycloak/bin/../data/import 2025-01-10 18:01:53,008 INFO [org.keycloak.services] (main) KC-SERVICES0050: Initializing master realm 2025-01-10 18:01:55,437 INFO [org.keycloak.services] (main) KC-SERVICES0030: Full model import requested. Strategy: OVERWRITE_EXISTING 2025-01-10 18:01:58,692 INFO [org.keycloak.exportimport.util.ImportUtils] (main) Realm 'krakend' imported 2025-01-10 18:01:58,773 INFO [org.keycloak.services] (main) KC-SERVICES0032: Import finished successfully 2025-01-10 18:01:58,774 WARN [org.keycloak.services] (main) KC-SERVICES0110: Environment variable 'KEYCLOAK_ADMIN' is deprecated, use 'KC_BOOTSTRAP_ADMIN_USERNAME' instead 2025-01-10 18:01:58,775 WARN [org.keycloak.services] (main) KC-SERVICES0110: Environment variable 'KEYCLOAK_ADMIN_PASSWORD' is deprecated, use 'KC_BOOTSTRAP_ADMIN_PASSWORD' instead 2025-01-10 18:01:58,934 INFO [org.keycloak.services] (main) KC-SERVICES0077: Created temporary admin user with username admin 2025-01-10 18:01:58,992 WARN [io.agroal.pool] (main) Datasource '<default>': JDBC resources leaked: 1 ResultSet(s) and 0 Statement(s) 2025-01-10 18:01:59,144 INFO [io.quarkus] (main) Keycloak 26.0.7 on JVM (powered by Quarkus 3.15.1) started in 18.538s. Listening on: http://0.0.0.0:8080. Management interface listening on http://0.0.0.0:9000. 2025-01-10 18:01:59,145 INFO [io.quarkus] (main) Profile prod activated. 2025-01-10 18:01:59,145 INFO [io.quarkus] (main) Installed features: [agroal, cdi, hibernate-orm, jdbc-h2, keycloak, narayana-jta, opentelemetry, reactive-routes, rest, rest-jackson, smallrye-context-propagation, smallrye-health, vertx]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tried to follow the recommendation under the Optimize the Keycloak startup section here: https://www.keycloak.org/server/configuration , but I am not sure we are getting a real benefit from the changes. I would say it takes more or less the same time, between 15 and 25 seconds to have the full startup.
Just leaving a draft here in case someone want to play a little bit trying to optimize it, or just so someone else does not try the same thing.