Nginx + Keepalived load balancing high availability (dual-machine Hot Backup), nginxkeepalivedNginx + Keepalived load balancing high availability (dual-machine Hot Backup)1.1 Nginx installation and configuration1.2 install and con
Nginx+keepalived Load Balancing high availability (dual standby)1.1 Nginx Installation and configuration1.2 Keepalived Installation and configuration1.3 Webserver Installation1.4 Test Nginx+keepalivedThe environment is as follows:CentOS 6.4_64keepalived-1.2.12Nginx-1.4.4vip:192.168.10.50master:192.168.10.11backup:192.168.10.12webserver1:192.168.10.13webserver2:19
For bonding network load balancing, we often use it on the file server. For example, we use three NICs as one to solve the problem of an IP address, heavy traffic, and heavy network pressure on the server. For file servers, such as NFS or Samba file servers, no administrator can solve the network load problem by creating multiple IP addresses of file servers on t
, Configuration keepalived#配置A服务器 #配置B服务器3. #/etc/keepalived/change_mysql.sh script content for strong kill keepalived process4, #配置好后开启两服务器 keepalived#/etc/init.d/keepalived Start #ps aux | grep keepalived5. View status# IP A keepalived work mechanism is: every 2 seconds to check the status of Real_server monitoring, once the database down, the VIP will be transferred to another stage, so that the rapid failover of the fault, the user in the VIP connection through the basic can remain connected
I want these lines connected to the Internet to be load-balanced and to provide business-transfer functionality when a single line fails. I don't know how to set this configuration. What does my Internet service provider need to do? How do I set up my router? Answer: Your Internet service provider does not need to do anything. To achieve load
This article is limited to the Web Server section, as the implementation of load balancing can be done according to requirements, can be based on DNS resolution load balancing, can also use LVS or dedicated load balancer (such as F5 or Randware)
This is a relatively simple
follows:
DEVICE = eth0BOOTPROTO = noneONBOOT = yesMASTER = bond0 # If no write is performed, step 4 is required.SLAVE = yes # if not written, step 4 is required.USERCTL = yesSimilar repair ifcfg-eth1 is as follows:
DEVICE = eth1BOOTPROTO = noneONBOOT = yesMASTER = bond0 # If no write is performed, step 4 is required.SLAVE = yes # if not written, step 4 is required.USERCTL = yes3. Load the module so that the system supports bonding
By default, the ker
To improve the high availability of the system, we can bind two or more NICs to a virtual Nic and use the same IP address to ensure that a link is disconnected, another link can be started at any time to improve system stability.
Enable dual NICs in virtual machines
Finish
When the dual Nic is working, it is represented as a virtual NIC (bond0). The virtual NIC also needs a driver named bonding.
Check whe
For bonding Network Load Balancing is commonly used in file servers, such as the three card, as a piece to use, to solve an IP address, traffic is too large, server network pressure is too big problem. For a file server, such as NFS or a Samba file server, none of the administrators can make the intranet's file server's IP address very many to solve the problem of network
the above information to the virtual adapter (bonding.[Root @ rhas-13 network-scripts] # cat ifcfg-eth0DEVICE = eth0ONBOOT = yesBOOTPROTO = dhcp[Root @ rhas-13 network-scripts] # cat ifcfg-eth1DEVICE = eth0ONBOOT = yesBOOTPROTO = dhcp
3 # vi/etc/modules. confEdit the/etc/modules. conf file and add the following line to enable the system to load the bonding module at startup. The external virtual network interface device is bond0. Add the following t
Note: This experiment for the two-node Nginx two Apache server to provide load balancing, this article is not to do LVs, so realserver is not configured in keepalived.conf but in the Nginx configuration file upstream.Issues to consider in this architecture:1) master does not hang, then Master occupies VIP and Nginx runs on master2) master hangs up, then backup preemption VIP and runs Nginx service on backup
Keepalived + nginx Hot Standby + Load BalancingRecently, due to business expansion, You need to convert Apache to nginx (Web), and then place nginx (Server Load balancer) on the web front end ). At the same time, combined with keepalived to implement ha for front-end nginx.The nginx process is based on the master + slave (worker) multi-process model and has a very stable sub-process management function. In
Topology description:
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'border =" 0 "alt =" "src =" http://img1.51cto.com/attachment/201012/143538619.gif "/>
Network Description:Four public network lines are connected at the network egress. For example, two egress firewalls are used as HA and the egress address of the firewall is the address of CERNET. That is, VLAN should be enabled for the access port of the Radware LP
backup.Suppose you are a woman, you suspect a boyfriend's loyalty to you, and you buy a test loyalty service at a certain treasure. This is a disaster walkthrough. Friendship Reminder, in the absence of backup, do not do disaster drills, say bad will let you lose the data.If you are a woman, you have a good friend who can't be in good friends, so that you can share a boyfriend, this is NAS.If you are a woman, your boyfriend is too good to live, you can not hold a person, you must have sisters t
configured to complete, enter the command:1 Ndb_mgm–e ShowIf the following information appears, the configuration is successful:If you do not see the above information, it may be a firewall problem, you can choose to switch the CentOS firewall, the command is:1/etc/init.d/iptables stopOf course you can choose to configure the firewall, open up some necessary ports, you can refer to my other article CentOS Open 3306 portClose the cluster and execute the command:1 ndb_mgm–e shutdownDual-machine r
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.