Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
HAProxy for Beginners
Rating: 4.1 out of 5(1,142 ratings)
5,014 students

HAProxy for Beginners

Load Balancing and High Availability
Created byHadi Alnabriss
Last updated 6/2018
English
English [Auto],Spanish [Auto],

What you'll learn

  • Students will be able to build a high available and load balanced services

Course content

1 section16 lectures1h 42m total length
  • Load Balancing Preface4:02
  • What is HAProxy3:56

    Explore how a proxy acts as a tcp and http reverse proxy, ssl terminator, and load balancer, filtering traffic with normalizers and applying rate limits.

  • Why HAProxy0:36

    Understand why we use a proxy, with HAProxy as a fast, reliable load balancer and its monitoring tools. Note open source GPL version two license and redistribution with source access.

  • HAProxy Tasks1:00

    Learn how HAProxy accepts client connections and processes them, uses health checks to forward traffic only to healthy servers, and resumes routing when a server recovers.

  • Frontend and Backend Components1:25

    Identify the front end and back end proxy components; the front end listens on an IP and port, while the back end manages a server pool and a scheduling algorithm.

  • Scheduling Algorithms8:44

    Explore haproxy load balancing through various scheduling algorithms, including round robin, least connections, and source, plus url parameter, uri, and header based routing for http backends.

  • HAProxy Configurations8:36

    Learn how to configure HAProxy through the global, default, front end, and back end sections; set logging, timeouts, health checks, and a round-robin backend.

  • Practical Example27:48

    Set up three CentOS machines with two Apache web servers and an HAProxy proxy to demonstrate load balancing using round robin, backups, and various balancing algorithms.

  • HAPRoxy Statistics and Monitoring5:53

    Enable haproxy statistics to monitor server status, process id, uptime, memory and connection limits, and front-end and back-end health, including current connections, sessions, bytes, queue metrics, errors, and warnings.

  • TCP and HTTP Modes2:47

    Understand the difference between tcp and http modes in haproxy: tcp operates at the transport layer, while http carries header data for round robin routing.

  • ForwardFor Option5:05

    Enable the forwardfor option on proxies to pass real client ips and configure Apache with x-forwarded-for to log the true visitors.

  • Access Lists8:14

    Explore how haproxy access lists use ACLs to make context-based routing decisions by matching host headers and URL patterns to forward requests to the static or www back ends.

  • Sticky Sessions15:14

    Learn sticky sessions to address the proxy problem with http sessions. Compare cookie injection and header-based php session id methods to keep a user on the same server.

  • SSL Termination5:45

    Learn how to terminate SSL at the proxy front end using Letsencrypt certificates, creating a PEM bundle, and configuring front end 443 to secure client connections while the backend remains HTTP.

  • Avoiding Single Point Of Failure2:32

    Learn to build a high availability system by using pacemaker to run two proxy servers with shared config and a virtual IP that fails over between them.

  • Conclusion1:06

    Discover how HAProxy provides load balancing and fault tolerance across http and tcp protocols. Configure scheduling algorithms, statistics, ssl termination, and pacemaker integration to prevent single points of failure.

Requirements

  • For practical Labs students are preferred to have basic knowledge in Linux in addition to VMware or VirtualBox

Description

HAProxy is the most powerful solution used for Load Balancing and High Availability, it is open source, stable and reliable , it can be used to receive  requests  from your clients and to distribute theses requests among your servers.

This course is a crash course, you will be able to move from beginner to advanced HAProxy admin within 80 minutes. In this course you will learn the following topics:

Load Balancing Concepts and Preface

What is HAProxy

Why to Use HAProxy

HAProxy Tasks

Frontend and Backend concepts

Scheduling Algorithms

Configurations

Practical Example

Displaying Statistics and Monitoring

TCP and HTTP modes

ForwardFor Option

Access Lists

Sticky Sessions

SSL configurations

Avoiding Single Point Of Failure

Conclusion


Eventually, this will be a continuous course I am going to add any additional topics I think they are important, and any topics requested by students.

So, if you think that this course can be improved by adding any topics, then please let me know.

Who this course is for:

  • Students interested in High Availability and Load Balancing