
Understand how a load balancer uses a proxy to route client requests across web servers A, B, and C, filter traffic, ensure healthy connections, and enable scalable failover with keepalived.
Discover why HAProxy is used as a reliable open-source proxy and load balancer, offering layer 4/7 load distribution, content filtering, health checks, and metrics for monitoring dashboards.
Explore the HAProxy architecture and components, including front-end and back-end configurations, health checks, and multiple load-balancing algorithms, to build a scalable proxy cluster.
Explore best practices for using HAProxy as a proxy on AWS, with health checks and traffic distribution to backend clusters. Support availability zones and public IP keep-alive failover for access.
Learn the four essential sections of haproxy configuration—global, default, front end, and backend—and how they govern security, sockets, timeouts, max connections, and round-robin traffic.
Launch an aws ec2 instance via the console, select ubuntu and free tier, configure a secure security group, and set up a proxy architecture with keep-alive.
launch aws ec2 instances to run a proxy and three ubuntu web servers, configure security groups, and connect via ssh using a key, and access the public ip.
Change AWS EC2 hostnames in a three-node proxy cluster for the HAProxy load balancer, replacing IP-based names with hostnames across proxy 0 1, 0 2, and 0 3, then reboot.
Acquire all installation scripts and documentation from the GitHub repository, clone the project, and configure a proxy with round-robin or sticky sessions, then test.
Install Apache web server nodes and update the system. Patch, test via a proxy, and verify websites 0 1 and 0 2 are running.
Configure an HAProxy setup to route traffic to multiple web servers, reveal each request’s hostname with a PHP script, and test distinct backends 0_1, 0_2, and 0_3 using port configurations.
Install HAProxy from source on Ubuntu 16.04, configure IP forwarding, systemd service, SSL termination, and basic proxy status monitoring.
learn how to install HAProxy from source on Ubuntu 18.04, covering compiling the code, installing dependencies, setting up symbolic links, and configuring the proxy binary for the target version.
Install and configure haproxy on CentOS 7 by updating packages, provisioning, starting the proxy, and verifying health through port checks and interface configuration.
Install haproxy from source on CentOS 7, following an Ubuntu-like process: log in, customize configuration, install libraries, download and build, then start and verify the proxy.
Enable HAProxy logging by creating a dedicated configuration file, adjusting log settings, restarting the proxy, and verifying that transaction logs are recorded.
Upgrade HAProxy to stable 2.1.4 by rebuilding from source to fix a critical security issue, manage keep alive and monitor dependencies, and test before production.
Learn how to upgrade HAProxy from source to version 2.1.4 on AWS, including downloading the source, compiling, installing, and restarting the service while handling dependencies.
Configure HAProxy with ELB in a single AWS availability zone, building a proxy cluster and routing traffic with round-robin, health checks, and security group rules.
Learn to deploy HAProxy as a proxy across multiple availability zones in AWS, configure proxy and web server clusters, and manage health checks and security groups.
Learn how the HAProxy load balancer operates at layer 4 and layer 7, comparing IP and port routing with application-layer header and request-based decisions.
Demonstrates the haproxy round robin load balancing algorithm by routing requests to six backend servers in sequence behind a proxy, with a sample layer 7 configuration and health checks.
Use the least connection algorithm to route new requests to the backend with the fewest active connections, ideal for long-lived sessions, demonstrated with a six-backend HAProxy setup on AWS.
Learn static round robin in HAProxy, compare it with traditional round robin, and configure backend sets, weights, and layer 7 health checks for AWS deployment.
Learn how HAProxy can provide session persistence using source IP address hashing, ensuring a client consistently reaches the same backend server without relying on cookies.
Leverage HAProxy URL forwarding to route requests by path using a front-end, directing specific paths to designated servers and distributing traffic with round-robin.
Enable the forwardfor option in haproxy to pass the real client IP to the web server, adjust frontend or default config and access logs, and verify with testing.
Master ssl termination with haproxy by creating and applying ssl certificates at the proxy layer, configuring 443/80 routes, and using round-robin to deliver encrypted traffic to backend web servers.
Explore configuring HAProxy with SSL pass-through, balancing encrypted client requests to backend beacon servers using round-robin, in DCP mode, while performing SSL health checks.
Master HAProxy health checks to monitor backend servers and guide client request routing. See the proxy configuration and a live demo of health checks, including port 80 and SSL checks.
Learn HAProxy health check options and types, including ip and port configuration, protocol selection, interval and delay settings, response validation, and ssl considerations for reliable load balancing.
Learn to configure haproxy health checks at layer 4 and layer 7, using application-level checks (such as port 3306) to monitor database clusters, and verify config before restarting the proxy.
Discover how to configure and verify HAProxy health checks for a MySQL setup, monitor health with native tooling, and adjust max connections to keep proxies healthy.
Explore configuring HAProxy health checks for PostgreSQL, comparing layer 4 port checks with layer 7 application checks on port 5432, and validating the setup through monitoring and testing.
Learn how to configure HAProxy health checks by moving from layer 4 to layer 7 application checks, using HTTP health checks to verify each web server is up.
Explore how to configure HAProxy health checks for any service, including native and custom checks, HTTP and SSL options, port-level tests, and troubleshooting tips.
https://www.haproxy.com/blog/haproxy-and-gzip-compression/
Configure haproxy on amazon aws to enable sticky sessions with cookies in http mode, binding the front end to backend servers and testing cookie injection versus non sticky routing.
Configure a backup node in HAProxy by designating a pickup set and routing requests to primary servers, with automatic failover to the standby backup when others fail.
Configure HAProxy to support gRPC by setting up a front-end and back-end, enabling SSL termination, and applying layer 7 routing for gRPC traffic.
Configure HAProxy to support http/2 and http/1.1, compare request multiplexing and binary protocol benefits, and implement a proxy cluster with protocol-aware routing and compression.
learn how to configure HAProxy content switching using ACL based on header information in layer 7, routing requests to specific backends by path and host header.
Learn how to redirect http traffic to https using HAProxy on AWS, configure acl rules, and apply a front-end setup to forward requests securely through the proxy.
Configure HAProxy to redirect HTTP traffic based on hostname, set up DNS entries, and route requests to another hostname and specific endpoints, demonstrated with a live demo.
Configure path-based redirects at the HAProxy proxy layer to route requests to new endpoints using a 302 status, with ACLs and cookie handling.
Examine adding a www prefix to hosts by header-based rewriting in a proxy cluster, and edit the proxy configuration to prepend www. to requests with round-robin delivery.
https://www.haproxy.com/blog/four-examples-of-haproxy-rate-limiting/
https://www.linangran.com/?p=547
https://www.freecodecamp.org/news/how-we-fine-tuned-haproxy-to-achieve-2-000-000-concurrent-ssl-connections-d017e61a4d27/
Explore how a proxy cluster defends against a syn flood attack by implementing a protective configuration, validating with checks, and preserving service availability.
Learn to defend an HAProxy load balancer against slowloris-like attacks by configuring a five-second timeout to block slow requests and testing the proxy configuration.
Learn to limit the number of connections per user in a proxy by configuring front-end ACLs, IP whitelists, and per-IP connection caps to protect the proxy on AWS.
Learn to limit a user's connection rate to protect the proxy and website from bursty short-lived connections. Monitor total and per-user connections and apply a three-second window test.
Learn to limit http request rate on a HAProxy load balancer on aws, using layer 7 rules on front-end and back-end to detect abuse and reject excess requests.
Learn how to implement content blocking in HAProxy on AWS by validating the content-length header and blocking requests with negative or invalid values using ACLs and blocking rules.
Learn IP address restriction in a haproxy load balancer on Amazon AWS, restricting access to specific IP addresses and blocking others via the proxy configuration.
Configure an IP whitelist for a HAProxy proxy on AWS by defining an access control list with specific IP addresses, blocking all non-whitelisted requests, and validating access through testing.
Explore how a web application firewall protects the application layer seven, blocks sql injection and xss, and how to install and configure it with mod security for web servers.
If you're thinking to become HAProxy Load Balancing Administrator using Amazon AWS environment, or you want to start to understand Load Balancer Algorithm, then this course is perfect for you. You will see video after video, from beginners with explanations that are easy to understand. Also this course will provide many examples that make it easy for you to follow and understand. In the first section, you will learn how to download all file configurations that we used during the course. You can use that file configurations to reproduce it on your environment.
This course has 13 sections, 76 lectures, and 12 hours 13 minutes duration. You can download all videos, and watch them without internet connection. Most videos are about how to config and manage HAProxy by example. You will follow step by step how to deploy and manage HAProxy cluster in Amazon AWS environment.
In this course, you will learn how to:
Creating Amazon AWS EC2 instances for HAProxy and Web Server
Understanding HAProxy concept and architecture
Configuring HAProxy configuration using API
Installing HAProxy using Ubuntu and CentOS
Forward HAProxy log to Logstash/elasticsearch, check log using Kibana
HAProxy and ELB/TCP Amazon AWS Single Availability Zone
HAProxy and ALB/HTTP Amazon AWS Multiple Availability Zone
Managing HAProxy Load Balancing Algorithm
Managing(creating and removing) HAProxy type and mode
Configuring HAProxy kernel to get high performance
Configuring HAProxy Load Balancer base on any algorithm types
Configuring HAProxy Round Robin LBA
Configuring HAProxy Static-rr (Static Round Robin)
Configuring Least Connection LBA
Configuring HAProxy Source IP Address Hashed LBA
Configuring HAProxy with SSL Termination
Configuring HAProxy with SSL Pass-Through
Configuring HAProxy URL Forwarding
Configuring HAProxy Using Recipes
Understand HAProxy Server Bencmarking and Tuning
Configuring HAProxy with HTTP/2 and HTTP/1.1 support
Configuring HAProcy with gRPC support
Understanding WAF (Web Application Firewall) for HAProxy
Configuring HAProxy Defense Against DDOS
Tuning HAProxy Performance
Configuring WhiteList IP Address and Restrict Specific IP Address
Monitoring HAProxy using Zabbix
Creating Grafana Dashboard for HAProxy frontend and backend
etc.
After you finished this course, you will have confident to use and manage HAProxy cluster.