Nginx Upstream流程分析

源码基于nginx 1.17.8 事起于在看nginx ingress源码对lua部分的一行代码产生了疑问 1 ngx_balancer.set_more_tries(1) 于是查了api set_more_tries syntax: ok, err = balancer.set_more_tries(count) context: balancer_by_lua* Sets the tries performed when the current attempt

Nginx反代Websocket原理

最近需要用到Nginx反向代理Websocket协议,虽然Nginx配置起来了就两行配置但还是有必要来了解下它的原理。 HTTP Upgrade HTTP/1.1协