LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 02-26-2019, 01:37 AM   #1
seanhaynes
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
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 243

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 0.0.0.0 or ::/0
 
  


Reply



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

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 01:33 AM.

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