Hash director and backend health

KT Sin sinkeyteck at yahoo.com
Mon Aug 1 09:23:35 CEST 2011


try adding backend probes. see:



On Mon, Aug 01, 2011 at 06:34:37AM +0000, Thiago Figueiro wrote:
> KT Sin wrote:
> > the hash director will fail if all the backends are failing. if you
> > define a random director with the same set of backends, and if the hash
> > director fails, the random director fails too?
> That's not what I'm seeing in my tests.
> I have 8 servers in the hash director and I only took 1 of them offline, the one a test URL resolves to.  If I request a different URL I get a response; if I request the URL that goes to the offline server I get 503.
> Here are some successful log entries:
>    53 RxURL        c http://www.westfield.com.au/au/?thiago-1
>    53 Backend      c 42 centre_rails centre_rail_ausyd_fap05
>    46 RxURL        c http://www.westfield.com.au/au/?thiago-2
>    46 Backend      c 41 centre_rails centre_rail_ausyd_fap04
> If I take fap05 offline and try both URLs again I see an error:
>    46 RxURL        c http://www.westfield.com.au/au/?thiago-1
>    46 FetchError   c no backend connection
>    46 TxStatus     c 503
>    42 RxURL        c http://www.westfield.com.au/au/?thiago-2
>    42 Backend      c 41 centre_rails centre_rail_ausyd_fap04
> So "thiago-1" goes to fap05 and "thiago-2" goes to fap04.  If I stop fap05, I get "FetchError" for "thiago-1", however "thiago-2" responds normally.
> ______________________________________________________
> This electronic mail message, including any and/or all attachments, is for the sole use of the intended recipient(s), and may contain confidential and/or privileged information, pertaining to business conducted under the direction and supervision of the sending organization. All electronic mail messages, which may have been established as expressed views and/or opinions (stated either within the electronic mail message or any of its attachments), are left to the sole responsibility of that of the sender, and are not necessarily attributed to the sending organization. Unauthorized interception, review, use, disclosure or distribution of any such information contained within this electronic mail message and/or its attachment(s), is (are) strictly prohibited. If you are not the intended recipient, please contact the sender by replying to this electronic mail message, along with the destruction all copies of the original electronic mail message (along with any attachments).
> ______________________________________________________

More information about the varnish-misc mailing list