HAproxy load balancer install and configure for multiple web servers IIS,Nginx. Server Farm.

Опубликовано: 22 Октябрь 2024
на канале: Mahmudur Rahman
2,599
16

Hello, welcome to my channel. In this video, I will try to demonstrate " haproxy " installation and configuration. In my earlier video, I deployed Microsoft NLB to balance the ARR-A & ARR-B (both IIS based Application request routing server) pointed to 3 IIS (IIS-A, IIS-B and IIS-C). In this video, I will replace the Microsoft NLB with haproxy.

Also, will show how to configure step by step from DNS entry to configure haproxy frontend and backend and to monitor the server, how to implement stats in the configuration. There are other aspects of configuration i.e. what happen if you have multi-core on the server, where haproxy is hosted. and how to terminate request, SSL configuration etc. etc., will cover those on the next video.

---------------------------------------------------
Video facts: haproxy load balancer

From the earlier video
1. AD = 192.168.1.10 (Video:    • Day - 1: Step by Step tutorial for AS...   )
NLB = 192.168.1.20 [Video:    • Day - 3: Step by Step tutorial for AS...   )
ARR-A = 192.168.1.23
ARR-B = 192.168.1.25
IIS-A = 192.168.1.31
IIS-B = 192.168.1.32
IIS-C = 192.168.1.33
HAPROXY = 192.168.1.125

Old Scenario
Create a web as web2.royonlab.local = DNS (routed) 192.168.1.20 (NLB) (Video:    • Day - 4: How to: Step by Step tutoria...   )
Add rules for ARR-A and ARR-B to forward to IIS-A/IIS-B

web = AD (pointed) NLB(192.168.1.20) (forwarded) ARR-A/ARR-B (routed) IIS-A/IIS-B
web2 = AD (pointed) NLB(192.168.1.20) (forwarded) ARR-A/ARR-B (routed) IIS-A/IIS-B
web4 = AD (pointed) NLB(192.168.1.20) (forwarded) ARR-A/ARR-B (routed) IIS-C
TestCorewebapp = AD (pointed) ubuntucoe(192.168.1.124)/nginx (video:    • Step by Step tutorial for ASP.Net Cor...   )

New Scenario
web = AD (pointed) HAPROXY(192.168.1.125).(forwarded) ARR-A/ARR-B (routed) IIS-A/IIS-B
web2 = AD (pointed) HAPROXY(192.168.1.125)(forwarded) ARR-A/ARR-B (routed) IIS-A/IIS-B
web4 = AD (pointed) HAPROXY(192.168.1.125) (forwarded) ARR-A/ARR-B (routed) IIS-C
TestCorewebapp = AD (pointed) HAPROXY(192.168.1.125) (forwarded) ubuntucoe(192.168.1.124)/nginx (video:    • Step by Step tutorial for ASP.Net Cor...   )

---------------------------------------------------

All the ref material will be available for study and practice purpose. If you need anything more, just comment below. I have fast forwarded some parts of the video and cut few things of to make is smaller. If you have any comment/suggestion/questions.. just drop on the comment.. I will appreciate that. Thanks.

Shared drive: for material: https://1drv.ms/u/s!AtyEuyGQR7cFhqobM...
Github: https://github.com/mroyon/Asp.Net-Cor...


Software used:
1. VM workstation 14 [https://www.vmware.com/products/works...]
2. Bandicam: [https://www.bandicam.com/]
3. Ubuntu 18.04 [https://releases.ubuntu.com/18.04/]
4. Microsoft Server 2016

––––––––––––––––––––––––––––––
Walk Around by Roa   / roa_music1031  
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
Free Download / Stream: https://bit.ly/walk-around-roa
Music promoted by Audio Library    • Walk Around – Roa (No Copyright Music)  
––––––––––––––––––––––––––––––

#haproxy
#ubuntu
#IIS