我如何在 wamp 中对 mysql 进行基准测试?
我即将部署一个大学网站。它生成了大约 2200 个用户配置文件 - 每个学生一个 - 因此我决定评估服务器负载和容量。问题是我不知道到底该怎么做——在我的开发机器上我使用 WAMPserver。如果我们在生产端也将其托管在 WAMP 上是否可以,还是应该切换?
如果 WAMP 没问题,那么您建议我们如何对 MySQL 进行基准测试?
I'm about to deploy a college website. It has around 2200 user profiles generated - one for every student- so i decided to gauge the server load and capacity. Problem is I cant figure out how exactly to do it- on my development machine i use WAMPserver. Is it alright if we host it on WAMP on production side as well or should we switch?
And if WAMP is alright, then how do you recommend we benchmark MySQL?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果可能的话,首先在生产机器上对整个设置进行基准测试。
Apache jMeter 是一个简单的工具,它允许您拥有并行用户、启动周期和报告负载。这并不容易,但只要遵循任何教程,您就应该可以快速启动并运行。
从网络上的另一台计算机运行测试,以获得更好的速度测试(包括网络延迟)。
如果您发现性能足够好,则无需对 Apache 或 MySQL 进行详细测试。
Start with benchmarking the entire setup, if possible on the production machines.
One simple tool is the Apache jMeter that allows you to have parallel users, ramp up periods and loads of reports. It isn't super easy but just follow any tutorial and you should be up and running fast.
Run the tests from another machine on the network to get a better test of speed including network delays.
If you find the performance good enough then there is no need for detailed tests of Apache or MySQL.
一个很好的 MySQL 基准测试工具是 mysqlslap 但正如其他人指出的那样出来后,您可能需要做一个完整的基准测试来检测优点和缺点。
A good tool to benchmark MySQL is mysqlslap but as other has pointed out, you may want to do a complete benchmark to detect strengths and weaknesses.