[文章作者:张宴 本文版本:v1.0 最后修改:2008.09.21 转载请注明原文链接:http://blog.zyan.cc/post/369/]

  9月20日下午,我应邀参加了 ChinaUnix 举办的以“如何搞定服务器负载均衡?”为主题的技术沙龙(http://linux.chinaunix.net/bbs/thread-1019366-1-1.html),很高兴能够跟诸多业界精英一起探讨交流,很荣幸能够与Unix资深系统工程师──田逸、HonestQiao,以及F5资深技术工程师──杨明非,同台演讲。

  点击在新窗口中浏览此图片



  《使用Nginx轻松实现开源负载均衡》是我的演讲PPT(PowerPiont),现提供下载。

  PPT分为四个部分:
  1、介绍Nginx的基本特征,以及使用Nginx做负载均衡器的理由。

  2、用实例,来介绍Nginx负载均衡在大型网站的典型应用。

  3、以实现网站动静分离为原型,对NetScaler硬件七层负载均衡和Nginx软件负载均衡做一个对比。

  ①、NetScaler负载均衡交换机动静分离系统架构图
  点击在新窗口中浏览此图片

  ②、Nginx反向代理负载均衡器动静分离系统架构图
  点击在新窗口中浏览此图片

  ③、PHP利用Memcached实现session共享,程序无需作任何修改:
  修改php.ini(需要memcache.so扩展)
session.save_handler = memcache
session.save_path = tcp://192.168.1.2:11211


  4、介绍如何亲自动手,按照步骤,在“五分钟内搞定 Nginx 负载均衡”。



  PPT下载:



  点击在新窗口中浏览此图片


技术大类 » 系统架构与硬件 | 评论(48) | 引用(0) | 阅读(78228)
学习
2008-12-1 17:20
upstream  web.abc.com  {
       server   192.168.1.10:80;
       server   192.168.1.11:80;
       server   192.168.1.12:80;
       server   192.168.1.13:81;
   }
看了你的PPT,个人有个愚蠢的问题,请教一下,abc.com的A记录是分别指到10、11、12、13上吗?如果是这样的话,会不会bind9自己就轮询了?如果是指向一台服务器,例如A记录指向:192.168.1.10,然后所有的访问都到这台服务器上之后,Nginx再向不同IP的服务器上分配吗?
bailongshi
2009-1-13 16:29
谢谢张老师的分享。
feng
2009-2-19 14:01
为什么 我的niginx 在 fastcgi模式下  奇慢(apmserv)???? 安装discuz7 拖死了。。。cry 谢谢啊!!!
zyu00041 Email
2009-4-23 21:39
谢谢分享,,
inchengshi
2009-10-12 15:41
负载均衡后,对于用户上传的文件怎么处理?改程序用分布式文件系统?
kangte
2009-10-18 03:59
强烈建议写一篇配合Squid的文件
kagome
2009-12-14 13:07
教程很详细,我菜鸟都是照着做的 呵呵 感谢
JeremyWei
2010-3-15 20:51
请问 如果前端nginx挂了 怎么办? 这个单点问题要怎么解决?
康康
2010-5-10 18:01
"proxy_pass" directive is not allowed here in ../conf/nginx.conf 问题解决
解决方法:
location / {
        if ($request_uri   ~*   ".*\.(js|css|gif|jpg|jpeg|png|bmp|swf)$")
        {
                proxy_pass http://squid.abc.com;
        }
        if ($request_uri   ~*   "^/view/(.*)$")
        {
                proxy_pass http://squid.abc.com;
        }
                proxy_pass http://web.abc.com;
smysky@163.com
2011-3-21 17:46
请问下服务器方面是怎样搭建的呢?  文件同步这方面是怎样实现的呢?  张宴大哥  拜托传授点知识
iablee Email Homepage
2011-4-15 10:09
呵呵,学习了,一直想往架构师方面发展,结果却跑到了管理岗位上,但技术还是我的一大爱好,能够看到您这么好的文章,真的是受益匪浅。谢谢!
淘金吧-淘您想淘
Hogan
2012-5-10 18:14
Ci sono diversi motivi principali per cui si può sicuramente trovare sul proprio volere le soluzioni contabili che coinvolgono tutta Stansted, anche se alcune persone potrebbero uomini e donne, probabilmente si dovrà disporre di soluzioni contabili rispetto con la gente. Stai con me per scoprire di più su molti dei motivi per prendere in considerazione l'impiego contabili in tutta Hogan Stansted. Costruire un businessIf vi capita di essere in funzione, è abbastanza possibile che si può fare uso di soluzioni contabili. Non date per scontato tutte le società hanno abbastanza soldi per utilizzare a tempo pieno il personale fiscali, così utilizzando una conditi insieme con l'agenzia affidabile che coinvolge tutta commercialisti Stansted potrebbe rendere meno difficili problemi.
coach factory outlet Email Homepage
2012-5-17 11:45
Today, following half a century, mentor leather-bases coach factory outlet continues to be the delicate craft of leather-based master is accountable for,Would you like to meet more friends, or go with the times? If yes, coach factory online is opening welcome doors to you.in the market you definitely can find various colorways that are designed in as well as the high quality that applied in. For most of you would like to come. So just come to our coach factory outlet online store to choose one.
louis vuitton sale Email Homepage
2012-5-17 11:45
Louis Vuitton belt at louis vuitton sale is one kind of fashion accessory with high cost performance among the Louis Vuitton accessories.Offering quality LV products with favorable prices, louis vuitton outlet store is at your service. Hurry up, or you can not seize the chance.in fact, louis vuitton is one of the most famous fashion design master.he opened the fist suitcase shop called after his name.
coach outlet online Email Homepage
2012-5-17 11:45
I heard of coach outlet online through the advertisement when I was shopping. And now I often brow the webpage and buy Coach bags online.It is a symbol regarding position not to mention nature.Here I would like to launch a excellent bags pertaining to business men.Which may be coach outlet store.coach outlet has always been simple,durable style features to win consumers.The products are more flexible,with easy bleaching,wear characteristics,and simply use a damp cloth.
coach outlet, Email Homepage
2012-5-17 11:45
Remember the coach outlet provide coach bags which won't be deteriorated into its overall styles by any means. It will maintain its looks, colors, and uniqueness for long time.coach outlet store online has been voted by Hour Detroit magazine readers as the Best of Detroit in their 12th annual readers'poll.Lots of women like which usually amount normally include a coach outlet online ,it provides coziness to many girls that don't even think it is a great bushel of great interest directly to them.
xujie777 Email
2012-5-18 17:02
We aim to make all our customers satisfy with our products. You will find a variety of Men's fashion louis vuitton uk, fashion Women's cheap Louis Vuitton bags in our store at affordable price.Thinking of interesting ways to cost a milestone birthday? louis vuitton online shop had one of the most distinctive distinctive celebrations.bakery along with living room operated by means of about three moment louis vuitton online Most effective Pastry Chef’s of the year Rammy Nominee Chef’s.
xujie777 Email
2012-5-18 17:02
The choices are likely to be basically countless seeing that louis vuitton outlet occurs with the help of completely new and also incredible concepts once in a while.Louis vuitton Wholesale Monogram Canvas HandbagsLouis Vuitton Collection Beach Handbags louis vuitton bags outlet Damier Canvas HandbagsLouis vuitton Mahina HandbagsLouis Vuitton Monogram Mini Lin HandbagsLouis Vuitton Monogram Multicolore HandbagsLouis vuitton Monogram Vernis HandbagsLouis Vuitton Wholesale Epi Leather HandbagsLouis Vuitton For Men HandbagsLouis Vuitton Damier Canvas WalletsLouis Vuitton Epi Leather WalletsLouis Vuitton Monogram Canvas WalletsLouis Vuitton Monogram Vernis WalleLouis Vuitton ShoesLouis Vuitton Men wallets.As the Authentic Louis Vuitton are so high-priced, so came the louis vuitton handbags outlet.
xujie777 Email
2012-5-18 17:02
coach outlet has become a popular shopping experience for consumers around the world, and a desirable distribution channel for manufacturer's and retailers.Getting your hands on coach outlet store online can be a hefty investment of hundreds of dollars.But do not despair,the Coach Outlet store could be the answer to your prayers.coach outlet online is your smart choice when you want to get the discount Coach accessory. You can find the exact Coach Bags and other accessory you want at a low price that's right for you. My dear friends, let the coach outlet online pave your way into the world of high fashion with their ultimate fashion factory.
xujie123
2012-5-21 11:23
Our online store offers you discounted Designer louis vuitton replica wallet at present. You could find them in desirable quality and price. If you don't mind high class louis vuitton uk, have a good time here.louis vuitton Store Online Handbags can also bring great accuracy as well as practical applicability and fashionable.Have you ever dreamed of being as charming as Madonna? Have you ever thought of becoming an envy of all your friends? If so, come to louis vuitton outlet.<br/>
分页: 2/3 第一页 上页 1 2 3 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]