Welcome! Log In Create A New Profile

Advanced

Re: How to send a REST request to another node if the service on the current node is not available?

Maxim Dounin
June 01, 2015 09:44AM
Hello!

On Mon, Jun 01, 2015 at 02:25:49AM -0400, Lu, Boying wrote:

> Hi, All,
>
> We setup a cluster of three nodes and running ngix on each node
> to load balance.
>
> I found that if a REST service is unavailable on current node,
> the corresponding REST request sending to this node
> will return the service unavailable response to the client. Is
> there a way (e.g. configuration parameter) to let ngix service
> running in this node
> to redirect the REST request to another node automatically in
> this case?

Depending on your configuration, you may consider using one or
more of the following mechanisms:

- error_page, see http://nginx.org/r/error_page
- proxy_next_upstream, see http://nginx.org/r/proxy_next_upstream
- backup servers in an upstream blocks, see
http://nginx.org/en/docs/http/ngx_http_upstream_module.html#backup

--
Maxim Dounin
http://nginx.org/

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

How to send a REST request to another node if the service on the current node is not available?

Lu, Boying June 01, 2015 02:28AM

Re: How to send a REST request to another node if the service on the current node is not available?

Maxim Dounin June 01, 2015 09:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 142
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