# Keycloak performance on Kubernates

**URL:** <https://forum.keycloak.org/t/keycloak-performance-on-kubernates/5694>\
**Category:** Getting advice\
**Created:** [October 31, 2020, 9:02am UTC](https://forum.keycloak.org/t/keycloak-performance-on-kubernates/5694 "2020-10-31T09:02:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DmitriyVorobey](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dmitriyvorobey/32/1601_2.png) [@DmitriyVorobey](https://forum.keycloak.org/u/DmitriyVorobey)\
**Post date:** [October 31, 2020, 9:02am UTC](https://forum.keycloak.org/t/keycloak-performance-on-kubernates/5694/1 "2020-10-31T09:02:59Z")

</div>

I run load tests for the latest keycloak version: 11.0.2 in Azure Kubernetes. I am using this official image [https://hub.docker.com/r/jboss/keycloak](https://hub.docker.com/r/jboss/keycloak). The test just calls authorize endpoint n times per second. Here is an example:  
curl   
-d “client\_id=admin-cli”   
-d “username=admin”   
-d “password=password”   
-d “grant\_type=password”   
“[http://my-host/auth/realms/master/protocol/openid-connect/token](http://my-host/auth/realms/master/protocol/openid-connect/token)”

Node count: 1  
VM: DS4 v2 (8 cores)  
Pods: 3  
The database contains only default data (1 user, 1 realm)

60 Logins per second hits CPU of VM to 100 % and the average response time became 60 seconds.  
Is it misconfiguration of keycloak on Kubernetes or expected behavior?

---

<div class="post-metadata">

**Author:** ![ArmanGhost](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/armanghost/32/1403_2.png) [@ArmanGhost](https://forum.keycloak.org/u/ArmanGhost)\
**Post date:** [November 2, 2020, 4:28am UTC](https://forum.keycloak.org/t/keycloak-performance-on-kubernates/5694/2 "2020-11-02T04:28:57Z")

</div>

Hi  
Are you using H2 integrated database or external SQL?
