Book Image

LEARNING PUPPET

Book Image

LEARNING PUPPET

Overview of this book

Table of Contents (17 chapters)
Learning Puppet
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Load balancing web server nodes


Load balancing is used to make services more resilient and scalable. In a typical scenario, we have a cluster of nodes such as web servers. All of the servers provides the same service, which means that incoming requests received from clients can be processed on any of the servers in the cluster. So that the user doesn't have to decide which server to send the request to, we add a load balancer in front of the cluster which makes the decision and routes the requests to one of the cluster nodes. When nodes in the cluster start to struggle with the number of incoming requests, and we need to scale up the service, it is easy to add a new node in to the cluster. Then, we can tell the load balancer that a new member node has joined the cluster and the load balancer start routing requests to new node. At some point, when the number of incoming requests goes down again, and the cluster can manage with fewer member nodes, we just remove nodes from the cluster and...