Home > database > Request from twenty thousand to fifty thousand beats per minute interface, a link is not on the data
Request from twenty thousand to fifty thousand beats per minute interface, a link is not on the data
Time:09-26
Due to the interface need real-time data, cannot use the cache, now should be more user groups, request interface of twenty thousand to forty thousand beats per minute, appear on the program links don't database, A database in mysql 5.7. PHP 5.6 Core CPU server configuration 100 m bandwidth, 16, 32 gb of memory and bandwidth for about 70 m or so, there is no full, CPU and memory is far from work, But in this database under the condition of high concurrency, occasionally appear links don't, in a few seconds, MYSQL under the great god give advice or comments, please.
CodePudding user response:
One is the maximum number of connections set a bit bigger, the other one is the client use the connection pool
CodePudding user response:
The connect show status like '% %'; Look at the number of connections, If not the link problem, at the time of peak to see if the I/O wait