HPE Morpheus Enterprise Software
1856392 Members
18503 Online
104112 Solutions
New Discussion

Re: HAproxy Configuration

 
Ibrahim-GCC
Regular Advisor

HAproxy Configuration

Hi Team,

As we tried to configure the haproxy for morpheus 3node HA we are geeting the different errror. Currently we are using the same haproxy.cfg which is mentioned in the document.

Load Balancer Configuration — Morpheus Docs documentation (morpheusdata.com)
After adding above config If I restarted the haproxy service getting the below errors.


3 REPLIES 3
Ollie-Phillips
HPE Pro

Re: HAproxy Configuration

I set HAProxy up recently. Absolutely, not an expert, but I have this for the ping check in my .cfg file.

option httpchk GET /ping
http-check expect string PING


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Ibrahim-GCC
Regular Advisor

Re: HAproxy Configuration

Dec 1 07:06:27 baasloadbal01 haproxy[415805]: [ALERT] 334/070627 (415805) : parsing [/etc/haproxy/haproxy.cfg:54] : ‘http-check send’ only supports ‘hdr’ and ‘body’, found ‘meth’.
Dec 1 07:09:54 baasloadbal01 haproxy[415902]: [ALERT] 334/070954 (415902) : parsing [/etc/haproxy/haproxy.cfg:54] : ‘http-check send’ only supports ‘hdr’ and ‘body’, found ‘uri’.

Please let me know which http-check we need to use. " http-check send meth GET uri /ping" this is mentioned in the document.

cbunge
HPE Pro

Re: HAproxy Configuration

I think @Ollie_Phillips is correct the ‘meth’ statement is erroneous.

My backend is this (could update yours Ollie haha)

option httpchk GET /ping
http-check expect string MORPHEUS\ PING

That example is also assuming you are doing cert termination at the LB (probably are). But just wanted to call that out.