Example – load balancing a web server

As a means of demonstrating some of the options available with HAProxy, we will show HAProxy in action by revisiting an example from Chapter 8, Redundancy and High Availability, in which we load balanced three Apache web servers.

Once we install HAProxy, we navigate to Services | HAProxy to begin configuration and click on the Settings tab. We will not check the Enable HAProxy checkbox right away; rather, we will do that last after all other configuration has been completed. There is a Maximum connections edit box which allows us to set the maximum number of per-process concurrent connections, along with some guidelines on how much memory connections will use. Unless your pfSense firewall has an unusually ...

Get Mastering pfSense now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.