全球主机交流论坛

标题: Varnish-cache反代discuz [打印本页]

作者: edear    时间: 2012-3-31 13:16
标题: Varnish-cache反代discuz
buyvm 15刀的vps做前台,GD免费空间做后台,
可以正常发帖,上传附件。
从测试数据来看,可以支持几千IP的DZ论坛

用apache自带的AB工具做压力测试:

# ab -n 2000 -c 100 http://www.××××.com/forum.php
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking www..××××.com (be patient)
Completed 200 requests
Completed 400 requests
Completed 600 requests
Completed 800 requests
Completed 1000 requests
Completed 1200 requests
Completed 1400 requests
Completed 1600 requests
Completed 1800 requests
Completed 2000 requests
Finished 2000 requests


Server Software:        Apache
Server Hostname:        www..××××.com
Server Port:            80

Document Path:          /forum.php
Document Length:        13256 bytes

Concurrency Level:      100
Time taken for tests:   13.277 seconds
Complete requests:      2000
Failed requests:        8
   (Connect: 0, Receive: 0, Length: 8, Exceptions: 0)
Write errors:           0
Non-2xx responses:      2
Total transferred:      28061231 bytes
HTML transferred:       26486332 bytes
Requests per second:    150.64 [#/sec] (mean)
Time per request:       663.854 [ms] (mean)
Time per request:       6.639 [ms] (mean, across all concurrent requests)
Transfer rate:          2063.97 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   2.3      0      19
Processing:   139  631 656.5    391    5242
Waiting:      139  631 656.5    391    5242
Total:        139  632 656.6    391    5243

Percentage of the requests served within a certain time (ms)
  50%    391
  66%    475
  75%    588
  80%   1179
  90%   1416
  95%   2214
  98%   2553
  99%   3249
100%   5243 (longest request)

作者: _____________Cc    时间: 2012-3-31 13:16
看不懂的小白路过
作者: chrome    时间: 2012-3-31 13:17
看不懂的小白路过

作者: czc111222    时间: 2012-3-31 13:22
看不懂的小白路过

作者: house    时间: 2012-3-31 13:27
求教程
作者: chairo    时间: 2012-3-31 13:28
求教程
作者: shineme    时间: 2012-3-31 13:32
貌似很给力啊
作者: sol_lu    时间: 2012-3-31 13:33
和nginx 比起来varnish 有啥好处?
作者: edear    时间: 2012-3-31 13:39
house 发表于 2012-3-31 13:27
求教程

等我多测试几个数据大的论坛,再放出教程
作者: edear    时间: 2012-3-31 13:40
sol_lu 发表于 2012-3-31 13:33
和nginx 比起来varnish 有啥好处?

应该是各有所长,varnish更擅长缓存
作者: ericls    时间: 2012-3-31 13:41
Varnish确实不错
作者: moonkid    时间: 2012-3-31 13:42
怎么配置的
作者: fhs    时间: 2012-3-31 14:04
看起来很牛逼的样子
作者: ATOM    时间: 2012-3-31 14:20
有必要吗?




欢迎光临 全球主机交流论坛 (https://sunk.eu.org/) Powered by Discuz! X3.4