nginx upstream ¸ºÔؾùºâµ÷¶È²ßÂÔ
1¡¡ÂÖѯ£¨Ä¬ÈÏ£©
ÿ¸öÇëÇó°´Ê±¼ä˳ÐòÖðÒ»·ÖÅäµ½²»Í¬µÄºó¶Ë·þÎñÆ÷£¬Èç¹ûºó¶Ë·þÎñÆ÷downµô£¬ÄÜ×Ô¶¯ÌÞ³ý¡£
2¡¡weight
Ö¸¶¨ÂÖѯ¼¸ÂÊ£¬weightºÍ·ÃÎʱÈÂʳÉÕý±È£¬ÓÃÓÚºó¶Ë·þÎñÆ÷ÐÔÄܲ»¾ùµÄÇé¿ö¡£
ÀýÈ磺
upstream bakend { server 192.168.0.88 weight=10; server 192.168.0.89 weight=10; }
3¡¡ip_hash
ÿ¸öÇëÇó°´·ÃÎÊipµÄhash½á¹û·ÖÅ䣬ÕâÑùÿ¸ö·Ã¿Í¹Ì¶¨·ÃÎÊÒ»¸öºó¶Ë·þÎñÆ÷£¬¿ÉÒÔ
½â¾ösessionµÄÎÊÌâ¡£
ÀýÈ磺
upstream bakend { ip_hash; server 192.168.0.88:80; server 192.168.0.89:80; }
4¡¡fair£¨µÚÈý·½£©
°´ºó¶Ë·þÎñÆ÷µÄÏìӦʱ¼äÀ´·ÖÅäÇëÇó£¬ÏìӦʱ¼ä¶ÌµÄÓÅÏÈ·ÖÅä¡£
ÀýÈ磺
upstream bakend { server 192.168.0.88:80; server 192.168.0.89:80; fair; }
5¡¡url_hash£¨µÚÈý·½£©
°´·ÃÎÊurlµÄhash½á¹ûÀ´·ÖÅäÇëÇó£¬Ê¹Ã¿¸öurl¶¨Ïòµ½Í¬Ò»¸öºó¶Ë·þÎñÆ÷£¬ºó¶Ë·þÎñ
Æ÷Ϊ»º´æʱ±È½ÏÓÐЧ¡£
ÀýÈ磺
upstream backend { server 192.168.0.88:3128; server 192.168.0.89:3128; hash $request_uri; hash_method crc32; }
ÍƼöÐÅÏ¢
- linuxÃüÁîѧϰ±Ê¼Ç£¨11£©£ºnlÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨5£©£ºrmÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨4£©£ºmkdirÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨1£©£ºlsÃüÁî
- ½«CentosµÄyumÔ´¸ü»»Îª¹úÄڵİ¢ÀïÔÆÔ´
- ʹÓÃNginxÌí¼Óheader·ÀÖ¹ÍøÒ³±»frame
- linuxϼÓËÙscp´«Êä´óÎļþµÄËÙ¶È
- linuxϵͳÉ϶ÔnginxÈÕÖ¾·Ö¸î´¦Àí
- lnmp/nginxϵͳÕæÕýÓÐЧµÄͼƬ·ÀµÁÁ´ÍêÕûÉèÖÃÏê½â
- Í»ÆÆÊ®Íò²¢·¢µÄNginxµÄÅäÖü°ÓÅ»¯
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- ²éÕÒ²¢É¾³ý.svnĿ¼Îļþ
- redis ÆßÖÖÊý¾ÝÀàÐ͵ÄʹÓó¡¾°
- linux ÏÂÎļþ¸´ÖƵ½windowsÏÂÂÒÂëµÄ½â¾ö°ì·¨
- nginx³öÏÖ502 upstream sent too big he....
- linuxÏÂsudoÅäÖÃÏê½â
- linuxÃüÁîѧϰ±Ê¼Ç£¨15£©£ºtailÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨14£©£ºheadÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨13£©£ºlessÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨12£©£ºmoreÃüÁî
- ¼ÓÃÜËã·¨±È½Ï3DES AES RSA ECC MD5 SHA1µÈ
ÆÀÂÛ