1,234
edits
Changes
→Part 2: iptables load balancing
* Test that your load balancer works by looking at the logs on both web servers and reloading your webpage in Firefox. After about 8 requests from Firefox the new requests will be directed to the other servers:<source>tail -f /var/log/httpd/access_log</source>
* You can also see the private IP address on your web page change: that's the actual IP address of the server processing the request, not the IP address of the load balancer.
= Part 3: two more slaves =
Once you're happy with all your work above: you are ready to create two more slaves and distribute the web server load across all four of your web servers.
* Create another AMI, this time from www-slave1 instead of www.
* Deploy www-slave2 with ip address 10.3.45.22 and www-slave3 with ip address 10.3.45.23 from your new image.