Varnish是一款高性能的开源HTTP加速器,挪威最大的在线报纸 Verdens Gang (vg.no) 使用3台Varnish代替了原来的12台squid,性能比以前更好。

  Varnish的作者Poul-Henning Kamp是FreeBSD的内核开发者之一,他认为现在的计算机比起1975年已经复杂许多。在1975年时,储存媒介只有两种:内存与硬盘。但现在计算机系统的内存除了主存外,还包括了cpu内的L1、L2,甚至有L3快取。硬盘上也有自己的快取装置,因此squid cache自行处理物件替换的架构不可能得知这些情况而做到最佳化,但操作系统可以得知这些情况,所以这部份的工作应该交给操作系统处理,这就是Varnish cache设计架构。

  Varnish可以在FreeBSD 6.0和Linux 2.6内核上运行。

  1、编译安装varnish HTTP加速器:
引用
wget http://blog.zyan.cc/soft/linux/varnish/varnish-1.1.1.tar.gz
tar zxvf varnish-1.1.1.tar.gz
cd varnish-1.1.1
./configure --prefix=/usr/local/varnish
make && make install

  2、简单启动varnish守护进程,用本机80端口去反向代理加速127.0.0.1:81上的Apache服务器:
引用
/usr/local/varnish/sbin/varnishd -a :8080 -b 127.0.0.1:81 -p thread_pool_max=1500 -p thread_pools=5 -p listen_depth=512 -p client_http11=on -w 1,10000,120

  Varnish官方网站:http://www.varnish-cache.org/

  另有一份PDF文档,说明Varnish原理的:http://ishare.iask.sina.com.cn/cgi-bin/fileid.cgi?fileid=2163384

  我测试了一下,在同等配置环境下,Varnish的性能确实要超过Squid,稳定性也不错,值得继续去深入研究。

Tags: , ,



技术大类 » Cache与存储 | 评论(41) | 引用(0) | 阅读(68414)
coach88888888 Email
2012-8-13 17:38
If you desire to go to Coach Factory Outlet, but have no idea in which to go, you can research online. It is no doubt that there is drastically information and details about it for the reference.Coach Factory Online are loved by many people, when you walk in the street, you could see many people take coach styles.hat experts claim Coach Outlet Online shopping is in the changes they are available in.Coach Outlet will send you a coupon in the post to use in their upon only after you type a achieve. The Coach bags are customarily somewhat many than the ones in the stores.
Speech Writing Services Email Homepage
2020-10-19 12:58
Students find Speech Writing Services as being of great assistance since they are able to seek our professional speech writing services and online custom speech writing help on time.
komal
2021-8-28 16:49
Download the McAfee antivirus Mcafee.com/activate key to protect your device from being spoiled by the harmful viruses as it starts finding the way to remove them from the device as soon as possible.If you have code, you enter mcafee activation code and if you have any problems redeeming your activation code, you can contact our team through this websiteMcafee.com/activate and get the information Can. For more information, you can visit our website mcafee.com/activate and enjoy.
komal
2021-8-28 16:50
Select the office product you want to download and install on the device. Go to the office.com/setup option. To upgrade Office, press on the products of office.com/setupand start downloading and installing Office products on the device.log in and enter office 25 digit product key to activate your office product. if you are new user then you need to create a office account to get more benefits of office.com/setup subscription.
komal
2021-8-28 16:50
Roku Streaming players are an increasingly advantageous roku.com/link and financially savvy approach to sit in front of the TV. Simply plug it into your TV, associate with the web, set up a Roku record, and start spilling your top choices. Roku gadgets are easy to set-up and simple to-utilize. roku.com/linkThey accompany a straightforward remote, and incredible highlights like Roku Search which makes it easy to discover what you need to watch.                                roku.com/link                                roku.com/link
komal
2021-8-28 16:51
Webroot Secure Anywhere Antivirus is a powerful antivirus, designed to fight malaria and other threats. You can protect your computer, PC, and other devices from malware, viruses, spyware, etc.  You can download, install and install webroot via webroot.com/safe . To install Webroot go to webroot.com/safe. If you do not have an account, go to Find My Webroot Account and create an account. If you want to know more about it, then you can visit the webroot.com/safe website.                                webroot.com/safe
komal
2021-8-28 16:51
Download System Mechanic Professional for Windows to optimize, repair, and protect your PC against Internet threats. System Mechanic is a quick, simple way to clear unwanted files from your PC .System Mechanic Download enables the users to make your device perform more efficiently and without any issues. Visit iolo system mechanic download Download and get the software for your device.
komal
2021-8-28 16:52
Download System Mechanic Professional for Windows to optimize, repair, and protect your PC against Internet threats. System Mechanic is a quick, simple way to clear unwanted files from your PC . System Mechanic Download enables the users to make your device perform more efficiently and without any issues.Visit system mechanic Download and get the software for your device.
komal
2021-8-28 16:52
Amazon Prime TV, and MyTV code. To register your device on the Amazon website you go to our website and enter the given code. The program requires the customer to have an Amazon account and a streaming device or TV. Amazon Prime Video is available on almost all streaming devices like Roku, Amazon Fire TV, Chromecast. For this, you just have to go to Amazon amazon.com/mytv with the help of the amazon activation code. You can visit our website for details of the entire process. You can do this by installing the Amazon.com/mytv Video application on your smart TV, or the digital media player or video game console connected to your TV by visiting the link provided by us in the de cription.or more information, you can contact our team at Amazon.com/mytv and get more and more information.
shz Email
2022-7-30 20:19
Cool stuff you have and you keep overhaul every one of us  Scam Risk
shzz Email
2022-7-30 20:22
Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one. Keep posting. Thanks for sharing.  Scam Risk
shz Email
2022-7-30 21:03
Your content is nothing short of brilliant in many ways. I think this is engaging and eye-opening material. Thank you so much for caring about your content and your readers.  Scam Risk
shzz Email
2022-7-30 21:03
The writer is enthusiastic about purchasing wooden furniture on the web and his exploration about best wooden furniture has brought about the arrangement of this article.  Scam Risk
shzz Email
2022-7-30 21:07
Writing with style and getting good compliments on the article is quite hard, to be honest.But you've done it so calmly and with so cool feeling and you've nailed the job. This article is possessed with style and I am giving good compliment. Best!  Scam Risk
shz Email
2022-7-30 21:07
I read your post and I found it amazing! thank!  Scam Risk
shzz Email
2022-7-30 21:11
I really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people.  Scam Risk
shz Email
2022-7-30 21:12
As a seller of legal steroids, you can buy Crazy Bulk products, explore stacks and finally get the body you’ve always wanted  Scam Risk
shzz Email
2022-7-30 21:14
This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information...  Scam Risk
shz Email
2022-7-30 21:15
I surely acquiring more difficulties from each surprisingly more little bit of it  Scam Risk
Sana Email Homepage
2022-12-5 16:03
I'm so energized for you! Cry No More is an incredible collection and you genuinely merit this! I'll watch it. Searching for the best Indirapuram Escort Agency then, at that point, contact Indirapuram Escorts for astonishing accommodation.
分页: 2/3 第一页 上页 1 2 3 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]