HikariCP get Connection takes very long

25 views
Skip to first unread message

Madhuri Inuganti

unread,
Feb 21, 2019, 3:19:17 PM2/21/19
to Registry
Hello,

Hortonworks Schema Registry Version : - 0.5.4
Kubernetes Application 
Database : Mysql (db.r3.large 8 gig)

We have Hortonworks Schema registry deployed on our dev stage environments and works fine. However we tried a production roll yesterday and it was throttled and couldn't handle the load.  Our new relic logs show below. 

HikariCP get Connection is taking the most time up to 27 seconds under load. We process a load of 1200 records per second on average. We are wondering if we should increase the connection pool size and if so how do we configure that. 

Looking at the source code, we see queryTimeoutInSecs: 30 is configurable. but we don't see a way to configure the connection pool size. And even wondering if that is the right thing to do or if there is anything else to handle the volume.

CategorySlowest componentsCountDuration%
JavaHikariDataSource.getConnection()127,100 ms96%

Reply all
Reply to author
Forward
0 new messages