Visit Jeremy's Blog.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 02-26-2019, 01:37 AM   #1
LQ Newbie
Registered: Feb 2019
Posts: 3

Rep: Reputation: Disabled
HAProxy Pacemaker PCS HA Cluster - Final configurations

Morning all

I have been tasked with creating a solution that load balances requests to a farm of IIS servers that is a front end of an i Series IBM db.

Traditionally, they have used in MS NLB which just uses DNS roundrobin to farm the requests out to the various components of the web farm. As a stop gap it works to a degree but has zero functionality as far as detect failed nodes etc.

So in looking for a solution I stumbled across HAProxy -I set one up and it works really really well. I'm not traditionally a Linux person so was very pleased to discover how relatively easy it was to set up.

Of course that led me down the path of then looking at a HAProxy cluster, just a bog standard Active/Passive setup, which then led me onto the excellent 'clusters from scratch' tutorial. I've really enjoyed this experience, but my experience in Linux is very limited.

As it stands using Pacemaker and PCS I have a working active/passive cluster, I have failed them over and it seems rock solid but I'm having trouble in understanding where in the process , or how even I configure HAProxy to become a 'resource'?

I have configured the haproxy.cfg with the virtual IP of the PSC cluster, which is working, but I'm guessing that HAProxy needs to become a 'resource' in order for Pacemaker to monitor the service? Firstly am I right in that statement?

If I am how do I configure HAProxy / Pacemaker to work together? Sorry for being so base in my question!

The lab setup is on Hyper-V, the Server OS is for HAProxy and Pacemaker is Ubuntu.

Any help greatly appreciated, many thanks.
Old 03-08-2019, 08:07 AM   #2
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 137

Rep: Reputation: Disabled
Have you considered running haproxy on FreeBSD with CARP? It will probably be easier to setup than pacemaker. Just set your bind addresses in the haproxy config to or ::/0


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL HA-cluster with DRBD, Pacemaker and Corosync Patric.F Linux - Server 2 01-28-2012 05:27 AM
Building some sort of cluster: slurm, pacemaker, cluster-glue or .... kaz2100 Linux - Software 2 07-21-2011 12:04 AM
LXer: How To Set Up An Active/Passive PostgreSQL Cluster With Pacemaker, Corosync, And DRBD (CentOS LXer Syndicated Linux News 0 11-17-2010 08:40 AM
me wants cluster me wants cluster me wants cluster funkymunky Linux - Networking 3 01-06-2004 07:51 AM > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 06:10 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration