Bug #47763
mgr/dashboard: simplify Dashboard HAProxy
0%
Description
fpantano
) when configuring HAProxy with Ceph-Dashboard:
- The
error
standby behaviour
is not needed: the regularredirect
works enough if properly configured:http-check expect rstatus 2[0-9][0-9]
HEAD
method works better thatGET
(it does not involve payload transmited back to HAProxy).
So we could replace the provided haproxy.cfg
sample:
listen ceph_dashboard bind <ip>:<post> transparent ssl crt <cert_pem> mode http balance source http-check expect rstatus 2[0-9][0-9] http-request set-header X-Forwarded-Proto https if { ssl_fc } http-request set-header X-Forwarded-Proto http if !{ ssl_fc } http-request set-header X-Forwarded-Port %[dst_port] option httpchk HEAD / server <name_1> <ip_1>:<port> check fall 5 inter 2000 rise 2 ssl check verify none verifyhost <name_1> server <name_2> <ip_2>:<port> check fall 5 inter 2000 rise 2 ssl check verify none verifyhost <name_2> ... server <name_N> <ip_N>:<port> check fall 5 inter 2000 rise 2 ssl check verify none verifyhost <name_N>
A suggestion would be to update docs on HAProxy integration.
History
#1 Updated by Lenz Grimmer over 3 years ago
- Tags set to ha, documentation, low-hanging-fruit
- Category changed from 132 to 175
- Tags deleted (
haproxy, HA)
Thanks for the feedback!
#2 Updated by Ernesto Puerta almost 3 years ago
- Tracker changed from Fix to Bug
- Project changed from mgr to Dashboard
- Category changed from 175 to Docs
- Regression set to No
- Severity set to 3 - minor
#3 Updated by Ellen Kusasira almost 2 years ago
Ernesto Puerta, can I work on this issue?
#4 Updated by Laura Flores almost 2 years ago
Hi Ellen, yes you may work on this issue. Ernesto may have to add you to the Ceph devels group for you to be assigned, but you can work on it while that is in progress.
#5 Updated by Ellen Kusasira almost 2 years ago
Laura, is this supposed to be a change to the docs only. How do I go about this? Thanks in advance
#6 Updated by Seremba Patrick almost 2 years ago
Ellen, given the instructions on the issue, and the 'low hanging fruit' tag, you are only required to change the docs. How to go about it? I have found this link...let me hope it can helpful. https://docs.huihoo.com/ceph/v9.0.0/start/documenting-ceph/index.html#making-contributions
Laura and Ernesto I trust can provide further help. Good luck.