Nginx负载均衡

upstream

语法:

 upstream api8081 {
      consistent_hash $request_uri;
      server 10.0.1.3:8081;
      server 10.0.1.4:8081;
      server 10.0.1.5:8081;
    }

 

consistent_hash $remote_addr :可以根据客户端ip映射
consistent_hash $request_uri :根据客户端请求的uri映射
consistent_hash $args :根据客户端携带的参数进行映射

Nginx 监控

打造最强NGINX HTTPS

Nginx相关集合

原文地址:https://www.cnblogs.com/kamil/p/7826671.html