Comments (9)
On 2011-7-8 8:58, adamdamico wrote:
In the config, we specify upstreams as hostnames, but on the check status page, what's shown is the corresponding IP address. This is true even if a PTR record exists in DNS.
Running in a public cloud, IP addresses are meaningless/random, so it would be very helpful if that page showed what was in the config file instead of what gets resolved.
I could add the upstream name in this page for each server quickly. Is
that fit you? Like this:
+--------------------------------------------------------------------------------------------------------------------+
| Index | Upstream | Name | Status | Business | Rise
counts | Fall counts | Access counts | Check type |
|-------+----------+--------------------+--------+----------+-------------+-------------+---------------+------------|
| 0 | test | 127.0.0.1:81 | down | 0 |
0 | 1 | 0 | http |
|-------+----------+--------------------+--------+----------+-------------+-------------+---------------+------------|
| 1 | test | 127.0.0.1:82 | down | 0 |
0 | 1 | 0 | http |
|-------+----------+--------------------+--------+----------+-------------+-------------+---------------+------------|
| 2 | test | 127.0.0.1:80 | up | 0 |
3 | 0 | 0 | http |
|-------+----------+--------------------+--------+----------+-------------+-------------+---------------+------------|
| 3 | blog | 220.181.31.179:80 | up | 0 |
2 | 0 | 0 | http |
|-------+----------+--------------------+--------+----------+-------------+-------------+---------------+------------|
| 4 | blog | 220.181.31.180:80 | up | 0 |
2 | 0 | 0 | http |
+--------------------------------------------------------------------------------------------------------------------+
If you really need the host name, I could add it. But the patch will be
changed.
Weibin Yao
from nginx_upstream_check_module.
Yes, even better!
from nginx_upstream_check_module.
On 2011-7-8 10:53, adamdamico wrote:
Yes, even better!
OK, try the latest revision, Hope you like it.
Weibin Yao
from nginx_upstream_check_module.
Thank you!
from nginx_upstream_check_module.
I built this and took a look. I misunderstood what you wrote above. I see the name from the upstream directive in my nginx.conf, but it still doesn't show me the names of the member servers. What I'm hoping for is not to have to look up an IP address in order to see which upstream node is which.
Since I only have one upstream directive, this doesn't provide any new info.
from nginx_upstream_check_module.
Hi Adam,
OK, try this branch:
https://github.com/yaoweibin/nginx_upstream_check_module/tree/for_adam .
I modified the source of Nginx for fitting your need. This module's
patch is changed. You should patch Nginx again. I will not merge this
branch to the master branch.
BTW: The reload problem should be fixed in the master and this branch.
If there is still any problem, let me know.
Thanks.
On 2011-7-12 7:04, adamdamico wrote:
I built this and took a look. I misunderstood what you wrote above. I see the name from the upstream directive in my nginx.conf, but it still doesn't show me the names of the member servers. What I'm hoping for is not to have to look up an IP address in order to see which upstream node is which.
Since I only have one upstream directive, this doesn't provide any new info.
Weibin Yao
from nginx_upstream_check_module.
Thank you very much, will try it today.
Curious, what's keeping you from merging it with master?
from nginx_upstream_check_module.
On 2011-7-13 3:58, adamdamico wrote:
Thank you very much, will try it today.
Curious, what's keeping you from merging it with master?
I just want to change the source of Nginx as little as possible.
Weibin Yao
from nginx_upstream_check_module.
Understood. This does exactly what I need, thank you.
from nginx_upstream_check_module.
Related Issues (20)
- healthcheck server status down not closing active TCP connections HOT 2
- can you support [check_1.20.2+.patch] HOT 1
- 在使用nginx-1.20.2的时候我遇到了一些问题 HOT 1
- 请问支持 1.21.6 版本的 nginx 吗? HOT 2
- 请问这个check模块是不是不能跟fair负载策略一起使用 HOT 4
- 请问Patch for nginx 1.22.0有没有开发计划? HOT 8
- 请问有没有正式release版本或tag的计划? 当前最新的正式的tag是14年发布的。 HOT 1
- ./configure: error: no ~/nginx_upstream_check_module/config was found HOT 2
- 健康检查出现误报
- 编译安装报错can not be used when making a PIE object; recompile with -fPIE HOT 1
- make: *** No rule to make target 'build', needed by 'default'. Stop HOT 3
- 后端健康检查连接不释放 HOT 1
- rise数不累加 HOT 3
- nginx1.19.4 reload时报 [emerg] 939#939: unknown directive "check" in /data/app/nginx/conf/upstream.conf:108 HOT 1
- 在win10编译 ng1.18.0 失败
- Can you provide patch for 1.24
- i am using nginx version: nginx/1.20.2 HOT 1
- rocky linux 9.3 编译报错 HOT 2
- bug report: 使用tcp模式做健康检查,rise的count不会超过worker数,导致无法踢出故障节点或恢复故障节点. HOT 1
- 升级nginx后出现http upstream check module can not find any check server错误 HOT 1
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 nginx_upstream_check_module.