9

我正在为一个新的动态网站项目设计一个 AWS 部署解决方案。我已经获得了一个用于测试环境的 EC2 实例。在如何对 Ec2 实例进行负载测试以确定它可以安全处理多少 HTTP 请求时需要一些帮助... PS 我是 AWS 平台的新手。

谢谢...

4

4 回答 4

4

RedLine 提供了一个EC2 负载测试解决方案,可以在您自己的 EC2 实例上自动分配负载测试。

于 2013-07-25T00:06:01.093 回答
4

聚会迟到但将来可以帮助某人:

Apache JMeter是一种可能的负载测试、压力测试工具,不管你怎么称呼它们,但还有很多替代品。

一个简单的启动设置,在这个关于 DigitalOcean 的优秀教程中进一步解释,可以存在一个线程组,其中包含一个HTTP 请求采样器和一个表监听器中的视图结果线程组可用于配置要模拟的“客户端”数量。Request Sampler将用于配置服务器的属性(主机名、路径等)。Table View Listener输出一个方便的CSV 文件,可用于计算平均值、比较不同类型的 EC2 实例,...

JMeter 是一个漂亮的程序,带有 GUI,可以在本地工作站上运行,生成一个 XML 文件,可以在另一个 EC2 实例上执行,例如。如有必要,您甚至可以事后对服务器上的 XML 文件进行简单的手动编辑。

看看亚马逊的测试政策,确保你没有做任何违法的事情。

于 2018-07-09T15:05:16.160 回答
2

A couple of quick points;

  • Set the environment up exactly like it's supposed to run. If there's a database involved, you'll want to involve that in the testing too. Synthetic <?php echo "ok"; CPU based benchmarks won't help you much since normally very little of the time spent replying to HTTP requests is actual CPU time.

  • A recommendation is to use a service for the benchmarking. Setting load testing up is not without its complexities, and unless you consider benchmarking your core business, you're probably better off using something like Neustar to load and measure your site (there are many services, they're not necessarily what fits you best, just pulled one out of memory)

Of course you can set a load test up yourself, but getting that done right is not anything that can be described in a few sentences. There are very well paid people that only do that for a living :)

于 2013-07-22T11:14:02.843 回答
0

在使用 curl-loader aka Davilka 工具方面有很好的经验,也在 Amazon EC2 环境 http://curl-loader.sourceforge.net

于 2014-07-23T07:45:42.250 回答