nginx upstream 小理解

upstream defines a cluster that you can proxy requests to. It's commonly used for defining either a web server cluster for load balancing, or an app server cluster for routing / load balancing.
可以这么理解吗: upstream对应的是一个集群,

"https://{default}/":
    type: upstream
    upstream: "app:http"

这个地方先这样理解: https:// 这里有个load balance, 集群,
当这个站点有人访问时候, 会分发到集群里的不同机器, 集群的名字为: ‘app:http’

 

上一篇:nginx 负载均衡的配置


下一篇:利用nginx自带的反向代理以及轮询功能实现应用的负载均衡