[keycloak-user] Performance lag in client role creation and retrieval
sthorger at redhat.com
Fri Nov 4 01:31:27 EDT 2016
We're actually currently looking at some issues around this. Please create
a JIRA and we'll make sure your case is checked as well.
Hopefully this will be solved in the upcoming 2.4 release.
On 3 November 2016 at 12:16, Padmaka Wijaygoonawardena <teknodjs at gmail.com>
> I'm currently using Keycloak 2.2.1 with a MySQL database. The setup I'm
> using has 2 Keycloak nodes and around 4000 client roles for one client. the
> process I go through for adding is as follows:
> 1. GET call to check whether the role already exists. (takes around
> 2. POST call to create the new client role. (takes around 10000ms)
> 3. GET call to get the newly created client role(Since the create role
> call doesn't send the full client role in the response body). (takes
> The Keycloak version I used earlier was 1.9.0 with that version this
> process worked fine with one call taking around 700ms on average.
> So as shown above this is a huge performance lag. With further
> investigation I found the following points
> 1. When using only one Keycloak node this problem doesn't appear.
> Therefore it should be some issue with infinispan cache.
> 2. When I remove the get calls and only send the create calls then the
> calls return in 2000ms in average.
> 3. This lag only appears when executing a get role call soon after
> creating a client role.
> I double checked the changes for 2.3.0  since there is nothing said
> about cache or related issues I raised this issue.
> Any advice or fix would be highly appreciated. Thanks in advance.
>  - http://blog.keycloak.org/2016/10/keycloak-230cr1-released.html
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
More information about the keycloak-user