{"id":153476,"date":"2019-08-24T08:12:46","date_gmt":"2019-08-24T00:12:46","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=153476"},"modified":"2019-08-12T17:14:33","modified_gmt":"2019-08-12T09:14:33","slug":"nginx-efficient-load-balancing","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/nginx-efficient-load-balancing.html","title":{"rendered":"Nginx\u8d1f\u8f7d\u5747\u8861\u9ad8\u53ef\u7528"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | nginx\u4f5c\u4e3a\u8d1f\u8f7d\u5747\u8861\u5668\uff0c\u6240\u6709\u8bf7\u6c42\u90fd\u5230\u4e86nginx\uff0c\u53ef\u89c1nginx\u5904\u4e8e\u975e\u5e38\u91cd\u70b9\u7684\u4f4d\u7f6e\uff0c\u5982\u679cnginx\u670d\u52a1\u5668\u5b95\u673a\u540e\u7aefweb\u670d\u52a1\u5c06\u65e0\u6cd5\u63d0\u4f9b\u670d\u52a1\uff0c\u5f71\u54cd\u4e25\u91cd\u3002\u8981\u5b9e\u73b0nginx\u7684\u9ad8\u53ef\u7528\uff0c\u9700\u8981\u5b9e\u73b0\u5907\u4efd\u673a\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n 1.1. \u4ec0\u4e48\u662f\u8d1f\u8f7d\u5747\u8861\u9ad8\u53ef\u7528<\/strong><\/div>\n nginx\u4f5c\u4e3a\u8d1f\u8f7d\u5747\u8861\u5668\uff0c\u6240\u6709\u8bf7\u6c42\u90fd\u5230\u4e86nginx\uff0c\u53ef\u89c1nginx\u5904\u4e8e\u975e\u5e38\u91cd\u70b9\u7684\u4f4d\u7f6e\uff0c\u5982\u679cnginx\u670d\u52a1\u5668\u5b95\u673a\u540e\u7aefweb\u670d\u52a1\u5c06\u65e0\u6cd5\u63d0\u4f9b\u670d\u52a1\uff0c\u5f71\u54cd\u4e25\u91cd\u3002 1.2. keepalived+nginx\u5b9e\u73b0\u4e3b\u5907<\/strong><\/div>\n 1.2.1. \u4ec0\u4e48\u662fkeepalived<\/strong><\/span><\/div>\n keepalived\u662f\u96c6\u7fa4\u7ba1\u7406\u4e2d\u4fdd\u8bc1\u96c6\u7fa4\u9ad8\u53ef\u7528\u7684\u4e00\u4e2a\u670d\u52a1\u8f6f\u4ef6\uff0c\u7528\u6765\u9632\u6b62\u5355\u70b9\u6545\u969c\u3002 1.2.2. keepalived\u5de5\u4f5c\u539f\u7406<\/strong><\/span><\/div>\n keepalived\u662f\u4ee5VRRP\u534f\u8bae\u4e3a\u5b9e\u73b0\u57fa\u7840\u7684\uff0cVRRP\u5168\u79f0Virtual Router Redundancy Protocol\uff0c\u5373\u865a\u62df\u8def\u7531\u5197\u4f59\u534f\u8bae\u3002 1.2.3. keepalived+nginx\u5b9e\u73b0\u4e3b\u5907\u8fc7\u7a0b<\/strong><\/span><\/div>\n \u521d\u59cb\u72b6\u6001 \u4e24\u53f0nginx\uff0c\u4e00\u4e3b\u4e00\u5907\uff1a192.168.101.3\u548c192.168.101.4\r\n\u4e24\u53f0tomcat\u670d\u52a1\u5668\uff1a192.168.101.5\u3001192.168.101.6\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":" |