HikariCP has two configuration parameters for connection count: minimumIdle and maximumPoolSize. By default minimumIdle will be the same value as maximumPoolSize, so when you set maximumPoolSize to 10, then HikariCP will create 10 connections when the pool starts.
If you set minimumIdle to 5 then only 5 connections will be created on pool start and the pool will increase to 10 connections dynamically once work load increases.
-- J.