Project

General

Profile

Bug #47763

mgr/dashboard: simplify Dashboard HAProxy

Added by Ernesto Puerta about 1 year ago. Updated 6 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Docs
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Contribution from RH OpenStack team (kudos to Francesco Pantano, fpantano) when configuring HAProxy with Ceph-Dashboard:
  • The error standby behaviour is not needed: the regular redirect works enough if properly configured: http-check expect rstatus 2[0-9][0-9]
  • HEAD method works better that GET (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 about 1 year 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 6 months 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

Also available in: Atom PDF