由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - One million HTTP RPS w/o load balancing is easy
相关主题
Surprise! Java is fastest for server-side Web apps请教goodbug等大神几个AWS的问题
go这么屌?请教高手一个C++问题
看看google买的量子计算机的benchmark这该是什么统计术语?
a hello world questionPHP有前途吗?
How to make sure that I get the original object or only a copy (not original) in such situation?准备上Spray了
another c++ interview questionundertow是最新出现的牛web framework?
[c++] static function in a classj2ee是最好的技术,所有在美國找工作的华人都应该学
C++做题,麻烦师傅们再看看。有没有谁真的做web的用FP在production上主要产品
相关话题的讨论汇总
话题: http话题: server话题: instances话题: requests话题: million
进入Programming版参与讨论
1 (共1页)
z****e
发帖数: 54598
1
http://www.techempower.com/blog/2014/03/04/one-million-http-rps
关键字undertow
As we and our collaborators prepare Round 9 of our Framework Benchmarks
project, we had an epiphany:
With high-performance software, a single modern server processes over 1
million HTTP requests per second.
Five months ago, Google talked about load-balancing to achieve 1 million
requests per second. We understand their excitement is about the performance
of their load balancer1. Part of what we do is performance consulting—so
we are routinely deep in request-per-second data—and we recognized a
million requests per second as an impressive milestone.
But fast-forward to today, where we see the same response rate from a single
server. We had been working with virtual servers and our modest
workstations for so long that these data were a bit of a surprise.
The mind immediately begins painting a world of utter simplicity, where our
applications' scores of virtual servers are rendered obsolete. Especially
poignant is the reduced architectural complexity that an application can
reap if its performance requirement can be satisfied by a single server. You
probably still want at least two servers for resilience, but even after
accounting for resilience, your architectural complexity will likely remain
simpler than with hundreds of instances.
Our project's new hardware
For Round 9 of our benchmarks project, Peak Hosting has generously provided
us with a number of Dell R720xd servers each powered by dual Xeon E5-2660 v2
CPUs and 10-gigabit Ethernet. Loaded up with disks, these servers are
around $8,000 a piece direct from Dell. Not cheap.
But check out what they can do:
techempower@lg01:~$ wrk -d 30 -c 256 -t 40 http://10.0.3.2:8080/byte
Running 30s test @ http://10.0.3.2:8080/byte
40 threads and 256 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 247.05us 3.52ms 624.37ms 99.90%
Req/Sec 27.89k 6.24k 50.22k 71.15%
31173283 requests in 29.99s, 3.83GB read
Socket errors: connect 0, read 0, write 0, timeout 9
Requests/sec: 1039305.27
Transfer/sec: 130.83MB
This is output from Wrk testing a single server running Undertow using
conditions similar to Google's test (1-byte response body, no HTTP
pipelining, no special request headers). 1.039 million requests per second.
Obviously there are myriad variables that make direct comparison to Google's
achievement an impossibility. Nevertheless, achieving a million HTTP
requests per second over a network without pipelining to a single server
says something about the capacity of modern hardware.
It's possible even higher numbers would be reported had we tested a purpose-
built static web server such as nginx. Undertow is the lightweight Java web
application server used in WildFly. It just happens to be quite quick at
HTTP. Here's the code we used for this test:
public class ByteHandler implements HttpHandler {
private static final String aByte = "a";
@Override
public void handleRequest(HttpServerExchange exchange)
throws Exception {
exchange.getResponseHeaders().put(
Headers.CONTENT_TYPE, TEXT_PLAIN);
exchange.getResponseSender().send(aByte);
}
}
In Round 9 (coming soon, we swear!), you'll be able to see the other test
types on Peak's hardware alongside our i7 workstations and the EC2 instances
we've tested in all previous rounds. Spoiler: I feel bad for our
workstations.
Incidentally, if you think $8,000 is not cheap, you might want to run the
monthly numbers on 200 virtual server instances. Yes, on-demand capacity and
all the usual upsides of cloud deployments are real. But the simplified
system architecture and cost advantage of high-performance options deserve
some time in the sun.
1. Not only that, Google expressly said they were not using this exercise to
demonstrate the capacity of their instances but rather to showcase their
load balancer's performance. However, the scenario they created achieved
massive request-per-second scale by load balancing hundreds of instances. We
are simply providing a counter-point that the massive scale achieved by
hundreds of instances can be trivially mimicked by a single modern server
with modern tools. The capacity of a single server may not be surprising to
some, but it may come as a surprise to others.
Posted by bhauer at 6:10 AM
n******t
发帖数: 4406
2
1-byte response, 这种benchmark除了骗人和装13,还有任何别的用粗马?

performance

【在 z****e 的大作中提到】
: http://www.techempower.com/blog/2014/03/04/one-million-http-rps
: 关键字undertow
: As we and our collaborators prepare Round 9 of our Framework Benchmarks
: project, we had an epiphany:
: With high-performance software, a single modern server processes over 1
: million HTTP requests per second.
: Five months ago, Google talked about load-balancing to achieve 1 million
: requests per second. We understand their excitement is about the performance
: of their load balancer1. Part of what we do is performance consulting—so
: we are routinely deep in request-per-second data—and we recognized a

1 (共1页)
进入Programming版参与讨论
相关主题
有没有谁真的做web的用FP在production上主要产品How to make sure that I get the original object or only a copy (not original) in such situation?
有人用clj写web么?比如用luminus,ring这些框架another c++ interview question
vert.x 下使用ORM的疑问[c++] static function in a class
选择C#/.Net做Backend较之Linux有什么Advantage吗?C++做题,麻烦师傅们再看看。
Surprise! Java is fastest for server-side Web apps请教goodbug等大神几个AWS的问题
go这么屌?请教高手一个C++问题
看看google买的量子计算机的benchmark这该是什么统计术语?
a hello world questionPHP有前途吗?
相关话题的讨论汇总
话题: http话题: server话题: instances话题: requests话题: million