How to handle MySQL heavy traffic?

六眼飞鱼酱① 提交于 2019-12-08 03:33:06

问题


Having a MySQL site with 90,000 accounts, you need to split traffic into two or three servers, how to do this, the site runs on MySQL. The site has many queries to the database, more Insert than select. How to split this traffic into several servers, and if possible optimize the database (to reduce the number of links)?

I will add that I do not want to change the database for this time to better e.g MemSQL because I do not know about it and the current development. In the future I have such an intention.


回答1:


Your solution is to use database virtualization, you can use PAR elastic software for this.

Many consider it essential to use a NoSQL database for high data ingestion rates. This is simply not true.

While it is true that a single MySQL server in the cloud cannot ingest data at high rates; often no more than a few thousand rows a second when inserting in small batches, or tens of thousands of rows a second using a larger batch size. However, database virtualization software from ParElastic is able to scale MySQL servers to hundreds of thousands and even more than 1,000,000 (one million) rows per second.



来源:https://stackoverflow.com/questions/43362988/how-to-handle-mysql-heavy-traffic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!