Welcome! Log In Create A New Profile

Advanced

Re: monitor upstream IP addr changes without using nginx's resolver

January 16, 2015 02:59PM
kunalvjti Wrote:
-------------------------------------------------------
> Sorry am new to Lua but can you plz explain how this upstream status &
> control will help with this issue. How can i query for the upstream ip

Use the ngxlua --add option (https://github.com/chaoslawful/lua-nginx-module) or openresty, then add https://github.com/agentzh/lua-upstream-nginx-module
replace the .c file from my archive and compile.

In the same archive you will find an example full working nginx config file and 2 lua files giving you upstream access via a GUI or via Curl.

> after every certain time interval and reconfigure nginx if there's a
> change detected ?

This can be done in Lua or you can let an external monitoring tool trigger a script firing a curl command.

> This should be OS & implementation independent. How to make this work
> everywhere ?

What I've made so far works for any OS.

---
nginx for Windows http://nginx-win.ecsds.eu/
Subject Author Posted

resolver directive doesn't fallback to the system DNS resolver

kunalvjti January 05, 2015 06:06PM

Re: resolver directive doesn't fallback to the system DNS resolver

kunalvjti January 07, 2015 03:50PM

Re: resolver directive doesn't fallback to the system DNS resolver

Francis Daly January 07, 2015 06:16PM

Re: resolver directive doesn't fallback to the system DNS resolver

kunalvjti January 07, 2015 06:38PM

Re: resolver directive doesn't fallback to the system DNS resolver

Francis Daly January 07, 2015 07:16PM

Re: resolver directive doesn't fallback to the system DNS resolver

Yichun Zhang (agentzh) January 07, 2015 07:32PM

Re: resolver directive doesn't fallback to the system DNS resolver

kunalvjti January 12, 2015 04:50PM

Re: resolver directive doesn't fallback to the system DNS resolver

Yichun Zhang (agentzh) January 12, 2015 05:20PM

Re: resolver directive doesn't fallback to the system DNS resolver

kunalvjti January 12, 2015 05:56PM

Re: resolver directive doesn't fallback to the system DNS resolver

itpp2012 January 13, 2015 04:58AM

Re: monitor upstream IP addr changes without using nginx's resolver

kunalvjti January 16, 2015 02:18PM

Re: monitor upstream IP addr changes without using nginx's resolver

itpp2012 January 16, 2015 02:59PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 56
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready