Implementing Web load Balancing on AWS
1. Create an instance
2. Select the system type and version
3, select the type specification of the instance, click Next after selecting
4, configure the details of the instance, to achieve load balancing to two host and above
5, add storage, generally each host root directory 100G enough, not enough to add ...
6. Add tags (if you have multiple load balancer groups, tags can be quickly found)
7. Configure security Groups
Description: The server has a total of two firewalls, one is the port firewall (AWS Security group), and the other is a firewall inside the server (such as iptables). The port is open to the outside.
8, confirm the configuration information of the instance
9. Configure access keys (SSH key)
10. After launching the instance, the instance configures the system environment (a bit long)
11. Configuration Instance LNMP Environment
One-click installation package is recommended
Yum install-y vim wget && wget http://soft.vpser.net/lnmp/lnmp1.4.tar.gz && tar-xf lnmp1.4.tar.gz && Amp /bin/bash./lnmp1.4/install.sh
Select a custom software version and wait about 20 minutes
Installation Tutorials:
Https://lnmp.org/install.html
Personal detailed system Environment Deployment tutorial: http://blog.51cto.com/leoheng/2148772
12. Configure the release port of the security group, the 80 port of the web
13. Add an elastic IP to the instance(after each reboot of the host, the IP of the public network will change, so bind a fixed IP)
Assign a new address, assign
Tick your IP, then associate, select the corresponding instance
14. Select Load Balancing
15, according to the requirements, select the type of load
16. Fill in Load Balancer name, load port, availability zone, bind an elastic IP (for load)
17, fill in the target group name, select the target type
18, select the load of the instance host (load port is 80, can load multiple TCP protocol ports, corresponding security groups and firewalls to open ports)
19, audit confirm the host load information
20, check the target monitoring, the normal number of host
21. Load Balancing Group information
22, network interface Information description
23. Achieve Domain name load balancing
Buy the domain name on godaddy, then add a record in DNS management, the domain name points to IP for the load interface
Https://sg.godaddy.com
在两台web主机上配置一致的nginx配置文件,然后访问域名(测试负载,将网页内容修改)
24, speed up the speed of access (CloudFront), Domain name settings (route53), buy domain name can also be bought in Route53, you can also transfer DNS to the AWS Platform management
AWS Textual Research direction: VI, to achieve web load balancing