On 08/04/2018 09:04 AM, Tobias Florek wrote: > Hi! > > Thank you for your reply. > >>> I want to set up the dashboard behind a reverse proxy. How do >>> people determine which ceph-mgr is active? Is there any simple and >>> elegant solution? >> >> You can use haproxy. It supports periodic check for the availability >> of the configured backends. > > Unfortunately either I am missing something or it won't work that way. > > When mgr1 is active, mgr2 will still respond to requests, but with 301 > redirects to https://mgr1:$PORT. Haproxy in default configuration will > accept that as a valid response and not mark mgr2 as down, happily > serving requests from mgr2. > > How do people configure haproxy to only treat mgr1 as valid backend? > Can't you force HAProxy to only see HTTP-code 200 as OK and thus ignore backends serving a 301? Wido > Cheers, > Tobias Florek > > > > _______________________________________________ > ceph-users mailing list > ceph-users@xxxxxxxxxxxxxx > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com >
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com