[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: 503 - Maintenance page



So an alternative might be to use a temporary redirect on '/' - 302 to some site-under-maintenance-page  (which can return a 503 http code w/ whatever custom page content you want). And who knows, that might also make a http purist happier!! ;^)

On Wed, Jun 8, 2016 at 7:31 AM, Philippe Lafoucrière <philippe lafoucriere tech-angels com> wrote:

On Tue, Jun 7, 2016 at 6:45 PM, Ram Ranganathan <rrangana redhat com> wrote:
Is your server always returning 503 - example for a GET/HEAD on / ? That could cause haproxy to mark it as down. 

You can also see the stats in haproxy to look at if the server has been marked down: 
    cmd="echo 'show stat' | socat unix-connect:/var/lib/haproxy/run/haproxy.sock stdio"
    echo "$cmd"  | oc rsh <router-pod-name>    #  replace with router pod name.

Of course my server is returning a 503 for "/' :) (it's down for maintenance). Haproxy thinks no server is available, so it's not even trying to pass the page. Make sense.
Ok, so I guess I'll to use a custom router then :(

Thanks for your help.
Philippe



--
Ram//
main(O,s){s=--O;10<putchar(3^O?97-(15&7183>>4*s)*(O++?-1:1):10)&&\
main(++O,s++);}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]