-01 towering building a stage, the primary foundation - Chapter 2 single architecture design and preparation work -2-16 Detailed data source connections

hikari minimum number of connections does not say is how much value. The default is 10. The maximum set here are 5 and 20 major fit their company everyday settings. The maximum number of connections or hardware configuration and server related. This value is not the better settings. This is multi-threaded, like, not set up 1,000 10,000 The greater the better. In fact, here is the configuration according to their own servers. Like my local machine is a quad-core here can be set to 10. If the server environment inside, reached the eight-core server, then we could be set to 20. The
minimum value, in order to control the number of connections is often too much idle. , So we will set up in 5 or inside the range of 10.5 to 10 numbers, there is no problem.
hikari author is the largest and most recommended under the same. He is to try not to set the minimum number of connections, such hikari connection pool size is fixed. Is almost no problem, after all, our system is idle situation will not arise. 0 visit is idle for a long time, this situation for Internet companies generally will not arise. Even if there is also a certain user's request in the morning. There may be some night owl or foreign users. They are likely to come back to visit. This is normal. Moreover, hikariCP is very efficient and stable.

The number of connections in two ways, the first set is arranged to be higher where the same 10 and 10. 20 and 20, 20 or the server itself. Often, then the server reaches eight-core is good.

Another is a separate minimum and maximum area. 20. The minimum setting to a maximum setting of 5 or 10.

 

End

 

Guess you like

Origin www.cnblogs.com/wangjunwei/p/12032324.html