Comments (3)
你好,这个问题不仅仅是健康检查的问题,就算健康检查能更新,upstream块里面的server地址也不会更新。
后端服务器动态更新模块我们正在开发 (https://github.com/yzprofile/ngx_http_dyups_module ),但是可能跟你的想法有点不一样,我们的做法是动态更新服务器,而不需要reload。
你们的需求或许可以通过正向代理的方法来解决,比如类似这样:
location / {
resolver 8.8.8.8;
proxy_pass http://$host;
}
它可以定期查询后端的DNS服务器,动态更新服务器的IP。
from tengine.
不知道现在还有没有人回答我这个问题~.~ tengine-2.2.0 upstream http携带主机头check,当后端对应两个站点时,其中一个down掉,另外一个正常,健康检查也是正常的。。配置如下:
check interval=1000 rise=2 fall=1 timeout=1000 type=http;
check_http_expect_alive http_2xx http_3xx http_4xx http_5xx;
check_keepalive_requests 100;
check_http_send "HEAD / HTTP/1.1\r\nConnection: keep-alive\r\nHost: 123.123.info\r\n\r\n";
其中check_http_expect_alive如果不加http_4xx 和http_5xx,还会报502错误
from tengine.
监控检查时源站是返回了4xx或者5xx了吧?
from tengine.
Related Issues (20)
- dubbo 连接瞬间超时 HOT 13
- Tengine ngx_http_reqstat_module在统计信息时出现问题
- nginx实现一个对外端口同时支持tls和quic协议访问(第四层,并非第7层 HOT 1
- Tengine是否支持QUIC以及是否支持在QUIC中使用国密套件? HOT 4
- ngx_stream_multi_upstream_module 应用示例 HOT 1
- Reverse proxy Too much Tcp Connection issue HOT 3
- Tengine with XQUIC will buffer the entire response body into RAM HOT 2
- Tengine 3.1.0 中 ngx_http_upstream_check_module 和 ngx_http_upstream_dynamic_module 配合使用 Bug HOT 1
- Tengine属于信创软件吗? HOT 1
- Support ssl_ciphers with Chinese SM2, SM3, SM4, ZUC and etc. in HTTP3 HOT 1
- tengine+xquic+tongsuo+QAT性能无提升
- YoReader 404 Not found HOT 2
- tengine ipv6 resolv.conf
- tengine xquic 如何实现被lvs的 udp的健康检查探测到 HOT 2
- Tengine/3.1.0 + Tongsuo-8.4.0 +国密证书+国际证书:加上ssl_reject_handshake on 时国密无法连接。
- Project dead? HOT 3
- dyups module: 多worker问题场景下worker挂掉后新拉齐的worker是否有之前动态加载的upstream数据? HOT 1
- upstream_addr 字段 打印多个端口的问题。
- What are the advantages of using ngx_ingress_module over ngx_http_lua_module? HOT 2
- quikc start get some other vendor module error HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tengine.