【问题标题】:Performance benchmark for static html / images : lighthttpd vs Amazon S3?静态 html / 图像的性能基准:lighthttpd 与 Amazon S3?
【发布时间】:2012-04-19 16:47:33
【问题描述】:

我想知道什么解决方案可以为高流量静态网站提供更好的性能:

EC2 实例上的 lighthttpd Web 服务器,还是直接在 Amazon S3 上托管页面?有基准吗?

谢谢。

【问题讨论】:

  • 看起来 S3 在成本、可扩展性和简单性方面是一个可靠的解决方案。尽管正确的解决方案取决于各种因素。我发现了一篇关于这个主题的好文章。 cloudcomments.net/2012/01/24/…

标签: html amazon-s3 amazon-ec2


【解决方案1】:

这里有测试和监控方法,试试这个。

在网站上创建负载的工具

  • 您可以使用“ab”对站点运行测试。

     ab is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs. This especially shows you how many requests per second your Apache installation is capable of serving. See how to use ab command.
    

衡量绩效的工具

  *   httperf is a tool to measure web server performance. It speaks the HTTP protocol both in its HTTP/1.0 and HTTP/1.1 flavors and offers a variety of workload generators.  Following command causes httperf to create a connection to host www.cyberciti.biz send and receive the reply, close the connection, and then print some performance statistics.

   httperf --hog --client=0/1 --server=SITE_NAME --port=80 --uri=/ --send-buffer=4096 --recv-buffer=16384 --num-conns=1 --num-calls=1

 * apachetop --> This is a console-based (non-gui) monitoring tool which reads the server-status pages from one or more Apache servers and combines the information onto one easy monitoring screen. It displays the current number of reads, writes, keepalives etc, plus the overall number of requests/hits processed, the amount of data transferred, the number of requests & data processed per second since the Apache servers were started, and the 'current' per second numbers

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-16
    • 1970-01-01
    • 1970-01-01
    • 2013-03-21
    • 2018-02-09
    相关资源
    最近更新 更多