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)
- kernel: dh895xcc 0000:60:00.0: Process nginx exit with orphan rings HOT 5
- Tengine支持的底层lib最新版本 HOT 4
- bug: 日志文件出现"async del conn epoll_ctl",文件fd出现泄漏吗? HOT 1
- 如何查看tengine是否利用上qat HOT 2
- 各位,问一下ngx_http_reqstat_module模块捕获不到下载文件和上传文件的流量吗?
- 修改源码隐藏headers 中server 信息,403报错中没有隐藏。其他请求中隐藏了
- tengine + xquic 上传文件超过 200K 后出现文件内容损坏 HOT 4
- 希望能够将tengine的nginx升级至1.26.1 HOT 3
- 如何实现通过tengine直接上传文件和查看文件上传进度 HOT 5
- 能否支持自定义http code 的统计监控
- xquic 下载大文件会消耗同等文件大小的内存 HOT 1
- 使用tengine的dyups module做动态负载均衡时,Nginx升级到1.19.2以上后,dyups模块出现读body数据偶发不完整的问题 HOT 2
- Tengine Xquic 模块支持校验客户端证书
- ngx_http_reqstat_module 模块无法统计 xquic 入向流量 bytes_in 大小
- tengine健康检查模块支持stream中使用
- 动态配置更新支持新增Server块和Listen吗? HOT 2
- HOW TO CONFIGURE TENGINE SERVER HOT 3
- dtls集成,nginx发生崩溃 HOT 6
- 基于Tongsuo的证书压缩功能使用 HOT 1
- auto/lib/openssl/make: no-threads选项与enable-async选项似乎是冲突的, 导致异步模式无法生效
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.