RE: Fwd: [CPeX] 豆瓣的 We b 服务器

cunheise <[email protected]>
Newsgroups gmane.comp.python.chinese
Message-ID <[email protected]>
不知道这里的动态pv只的是那些
每个request都要读db,然后generate html page吗?


Date: Thu, 17 Jan 2008 21:57:39 +0800From: cougar2008-Re5JQEeQqe/[email protected]: python-chinese-CRN2QmnblHvWVfz6xQswd5Vdfy/[email protected]: Re: [python-chinese] Fwd: [CPeX] 豆瓣的 Web 服务器



apache现在被严重鄙视啊,难道真的老了?
 




cougar2008
2008-01-17



发件人: Lich_Ray
发送时间: 2008-01-17 21:03:36
收件人: [email protected]
抄送: cpug-eastchina-/[email protected]; Python.cn@google; [email protected]
主题: Re: [python-chinese]Fwd: [CPeX] 豆瓣的 Web 服务器
 
非常非常的佩服,虽然已经猜到是lighttpd,但这个能量,不知道是不是使用了Python的轻量级线程库。
在08-1-17,Zoom. Quiet < [email protected]> 写道: 
已经有人持续关注成功的Py 网站了哪,好看也可以f同豆瓣,PK 一下响应增长和系统结构的经验了哪,BPyUG 的会课,豆瓣消失很久了,招唤哪^__^---------- Forwarded message ----------From: ? < [email protected]>Date: 2008/1/17 Subject: [CPeX] 豆瓣的 Web 服务器To: Copy&Paste Exchange小组 <mindex-/[email protected]>Sent to you by ? via Google Reader:豆瓣的 Web 服务器 via DBA notes by Fenng on 1/16/08作者:Fenng 发布在 dbanotes.net. 订阅 DBA notes豆瓣最近发布新功能有些"疯狂",所以服务器也有新的部署。看到阿北同学在豆瓣广播里说: 豆瓣的第二台应用服务器终于投入了使用。Hongqn 忙了一晚上就完成了部署。第一台服务器支撑到 500 万动态PV/天,服务 On Demand 即时分布式部署...... 500 万 PV , 还是动态 PV, 是个很惊人的数字。因为,如果都能达到一台机器支撑 500 万,那么国内稍有点规模的网站(就说动态PV 上亿的吧),只需要 20 台 Web 服务器就够了。事实上,即使比较强调技术的网站怕也要上百台 Web 服务器的规模。我们知道豆瓣用 Lighttpd 做 Web 服务器。 从侦测到的数据看,目前线上有两个版本。 $ curl -I http://www.douban.comHTTP/1.1 200 OK.....(无关内容略)Server: lighttpd/1.4.15另外一个版本: $ curl -I http://www.douban.com/people/ahbei/HTTP/1.1 200 OK .....(无关内容略)Server: lighttpd/1.4.18其实豆瓣服务器还有个更为惊人的性能数字。从这个 Powered by Lighttpd 的列表来看,豆瓣在一台 Gentoo服务器上的记录是 1200 万/天的点击量。这应该是动、静态页面混合情况下的吧。有同事对这个数据有些好奇,问我到底豆瓣是用啥做的服务器,其实这个问题我也问过阿北,他们就是自己攒的 PC 服务器,然后把性能发挥到极致。阿北也表示过,即使现在豆瓣流量激增个十倍啥的性能也不会是问题。这也是从起始就考虑扩展性的收益吧。这里这位老兄用 七个 Mongrels 实例(也是一台Server)跑了 55 万 PV (thanks Robin 纠正)就蛮自豪的,所以豆瓣的一台跑了"500 万动态 PV" 的确非常惊人。Updated 2008-1-17 0:57:09阿北留言了。主要是上面的有的数据还是旧的: Lighty网站上的数字很久没有去更新了。现在豆瓣的web服务器(lighttpd)每天估计2500万 Hits, 高峰时间大约1000 req/s(这里说的是主要输出HTML/CSS/JS和小图片的一台前端。大图片有另外的web服务器)。我在广播里说500万PV/天的是应用服务器,就是lighty和mysql之间跑python的那台。现在豆瓣大多数PV来自注册用户,每个页面都需要几到十几种类的动态数据。 现在的服务器只是单片双核的opteron。换4核的话,应该能到一台1000万PV/ 天。友情提醒,留言很精彩,敬请查看。不过在这个 Blog 上留言的确用户体验很糟糕(我也很烦),相信本周末能得到解决。 --EOF--相关文章|Related ArticlesAWStats 6.7 正式版发布网站统计系统--中国雅虎新产品图片防盗链应适可而止Web 2.0 站点扩展性问题随感评论数量(15)|Add Comments本文网址:http://www.dbanotes.net/arch/douban_web_server.html 最近作者还说了什么? Follow Twitter / FenngThings you can do from here:Subscribe to DBA notes using Google ReaderGet started using Google Reader to easily keep up with all your favorite sites  --~--~---------~--~----~------------~-------~--~----~ "Copy&Paste Exchange" group.http://groups-beta.google.com/group/mindex?hl=zh-CN -~----------~----~----~----~------~----~------~--~--- --'''Time is unimportant, only life important!过程改进乃是开始催生可促生靠谱的人的组织!''' http://zoomquiet.org博 @ http://blog.zoomquiet.org/pyblosxom/维 @ http://wiki.woodpecker.org.cn/moin/ZoomQuiet 豆 @ http://www.douban.com/people/zoomq/ 看 @ http://zoomq.haokanbu.com/^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Pls. usage OOo to replace M$ Office. http://zh.openoffice.org Pls. usage 7-zip to replace WinRAR/WinZip.  http://7-zip.orgYou can get the truely Freedom 4 software._______________________________________________python-chinesePost: send [email protected]: send subscribe to python-chinese-request-CRN2QmnblHt2I5sfN3b+ZQ@public.gmane.orgnUnsubscribe: send unsubscribe to   python-chinese-request-CRN2QmnblHt2I5sfN3b+ZQ@public.gmane.orgnDetail Info: http://python.cn/mailman/listinfo/python-chinese -- Ray Stinger, nickname Lich_RayGod is in his heaven, all's right with the world.-------------------------------------------------let focus = 'computing' in where: http://lichray.javaeye.comlet focus = 'computing' in here:http://lichray.bokeland.com 
_________________________________________________________________
MSN 中文网,最新时尚生活资讯,白领聚集门户。
http://cn.msn.com

_______________________________________________
python-chinese
Post: send [email protected]
Subscribe: send subscribe to [email protected]
Unsubscribe: send unsubscribe to  [email protected]
Detail Info: http://python.cn/mailman/listinfo/python-chinese
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.