~/talk

REX: HikariCP Optimizations in Java/Spring Boot/OpenShift

TalkinFrenchat Voxxed Days Luxembourg 2024 · 2024-06-20..06-21· [databases, java]
links:none on file
links:none on file
slides:none on file

Examines HikariCP connection-pool contention when running Spring Boot (Java 17) on OpenShift: default Hikari settings (maxPoolSize=10, connectionTimeout=30s) let an 11th request block and timeout while each DB connection spawns server processes that increase CPU/memory and kernel load. Recommends concrete fixes proven in production: keep defaults but tune SQL and pool sizing, enable leakDetectionThreshold and maxLifetime/keepalive, export Hikari metrics to APM/Grafana, and combine HPA with appropriate pod CPU/memory requests, limits and QoS so autoscaling reduces rather than increases DB contention.

AI-written summary · about

  1. 0:00Introduction
  2. 1:08Conference context
  3. 4:41Connection timeouts problem
  4. 6:28HikariCP overview
  5. 10:03Connection pool sizing
  6. 14:19Pool sizing guidelines
  7. 17:08Connection timeout effects
  8. 18:30HikariCP connection lifecycle
  9. 22:03Connection resource management
  10. 24:27Pool observability
  11. 27:57Vertical and horizontal scaling
  12. 31:07OpenShift resource management
  13. 34:59Resource limits and QoS
  14. 39:11Pod count impact
  15. 40:37Horizontal Pod Autoscaler
  16. 42:41Observability and optimization
  17. 44:49Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.