Welcome! Log In Create A New Profile

Advanced

nginx http proxy support for backend server health checks / status monitoring url

Pasi Kärkkäinen
October 31, 2013 08:28AM
Hello,

I'm using nginx as a http proxy / loadbalancer for an application which
which has the following setup on the backend servers:

- https/403 provides the application at:
- https://hostname-of-backend/app/

- status monitoring url is available at:
- http://hostname-of-backend/foo/server_status
- https://hostname-of-backend/foo/server_status

So the status url is available over both http and https, and the status url tells if the application is fully up and running or not.
Actual application is only available over https.

It's important to decide the backend server availability based on the status url contents/reply,
otherwise you might push traffic to a backend that isn't fully up and running yet,
causing false errors to end users.

So.. I don't think nginx currently provides proper status monitoring url support for proxy backends ?

I've found some plugins for this, but they seem to have limitations aswell:

- http://wiki.nginx.org/HttpHealthcheckModule
- https://github.com/cep21/healthcheck_nginx_upstreams
- only http 1.0 support, no http 1.1 support
- doesn't seem to be maintained anymore, latest version 2+ years old

- https://github.com/yaoweibin/nginx_upstream_check_module
- only supports http backends, so health checks must be over http aswell, not over https
- if actual app is on 443/https, cannot configure separate port 80 for health checks over http
- only "ssl" health check possible for https backends


Any suggestions? Or should I start hacking and improving the existing plugins..
Thanks!

-- Pasi

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx http proxy support for backend server health checks / status monitoring url

Pasi Kärkkäinen October 31, 2013 08:28AM

Re: nginx http proxy support for backend server health checks / status monitoring url

Ruslan Ermilov October 31, 2013 08:42AM

Re: nginx http proxy support for backend server health checks / status monitoring url

Weibin Yao November 01, 2013 02:00AM

Re: nginx http proxy support for backend server health checks / status monitoring url

Pasi Kärkkäinen November 04, 2013 07:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 309
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready