米聊所采用的一些技术
nginx upstream fallback 设置
upstream backend_openapi.miliao.com{server 192.168.1.99:8090 weight=1 max_fails=2 fail_timeout=10s; #连续失败2次,暂时停止使用10sserver 192.168.1.100:8090 weight=1 max_fails=2 fail_timeout=10s;}[error]4597#0: *512 readv() failed(104:Connection reset by peer) while reading upstream上游在过程中干掉了链接,一般情况是后端的代码有问题