March 2017
Beginner to intermediate
925 pages
18h 11m
English
Load balancers are used to spread a load among a number of servers. Hardware load balancers are still somewhat expensive, whereas software balancers can achieve most of the benefits of a hardware solution.
HAProxy is the software load balancer of choice for most people: fast, powerful, and highly configurable.
In this recipe, I'll show you how to build an HAProxy server to load-balance web requests across web servers. We'll use exported resources to build the haproxy configuration file just like we did for the NFS example.
modules/haproxy/manifests/master.pp with the following contents:class haproxy::master ($app = 'myapp') { # The HAProxy master server # will collect ...Read now
Unlock full access