Welcome! Log In Create A New Profile

Advanced

Re: proxy_set_header variable evaluation

Arvind Jayaprakash
September 02, 2009 05:49PM
On Aug 27, Maxim Dounin wrote:
>Hello!
>The only thing that *is* lost is knowledge of already tried
>upstream servers for this request. And if you use same upstream
>blocks for both normal proxy and fallback - you have a chance to
>visit same upstream server again if it's not yet marked as failed
>(max_fails isn't yet reached).
>
>On the other hand, with this aproach you have limited number of
>tries for each request. This is proved to be better thing for
>large pools of upstream servers.
>
>> Is the proxy module the right place to start hacking if I want to create
>> a new version of set_header where the variable gets evaluated for each
>> time a new upstream is selected for a new request?
>
>You have to recreate request somewhere near
>ngx_http_upstream_next(). I don't think that this is a good thing
>to do though.

Let me try and state my original problem: What is the easiest way to let
the upstream know that it is answering a "retry" and not an original
request?
Subject Author Posted

proxy_set_header variable evaluation

anomalizer August 26, 2009 02:34PM

Re: proxy_set_header variable evaluation

Maxim Dounin August 26, 2009 03:19PM

Re: proxy_set_header variable evaluation

Arvind Jayaprakash August 27, 2009 12:34AM

Re: proxy_set_header variable evaluation

Maxim Dounin August 27, 2009 04:47AM

Re: proxy_set_header variable evaluation

Arvind Jayaprakash September 02, 2009 05:49PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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