In large Web applications, databases often become a bottleneck for concurrent access. to effectively solve the bottleneck of concurrent access, the master-slave mode of multiple databases is used to increase the concurrent access to the web.The master-slave mode is used for data synchronization.Sqlrelay solves connection pool problems and implements Load Balancing for read/write splitting.Sqlrelay is config
Description
Operating system: CentOS 5.X 64-bit
Web server: 192.168.21.127, 192.168.21.128
Sites: Bbs.111cn.net and Sns.111cn.net deployed on two Web servers
To achieve the purpose:
Add two servers (main main mode) to achieve Web server load balancing through haproxy+keepalived
Architecture Planning:
Haproxy server: 192.168.21.129, 192.168.
message, and only routers in the master state can send VRRP messages .
The lamp platform is built. Please refer to the previous article if necessary. Yum is fast, and wants to demonstrate keepalived.Primary server 192.168.1.111 eth0Standby server 192.168.1.10 eth0VIP 192. 168.1.222Yum-y Install gcc*Yum install-y OpenSSL openssl-devel poptpopt-devel libnl libnl-devel kernel-develMkdir/usr/local/keepalivedYum Install Popt-devel-yMV desktop/keepalived-1.2.2.tar.gz/home/cd/home/TAR-ZXVF keepalive
1 , LVS , NAT Introductionlvs Yes linux Virtual Server in the real world Span style= "Color:rgb (51,51,51)" >b/s Structure of the network application in the load balancer to use, working in 7 Network layer in the Layer network model, which is usually said to be ip layer, because data processing is in linux nat Yes network addresstranslation , the abbreviation for network address translation, with the help of nat , Private (reserve
/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s4.51cto.com/wyfs02/m01/8c/08/wkiom1hfelzx1wgraaawcrwo834711.png-wh_500x0-wm_3-wmp_4-s_4110980461.png "title = "999.png" alt= "Wkiom1hfelzx1wgraaawcrwo834711.png-wh_50"/>So first put aside these questions do not say, first of all, say the principle, nginx reverse proxy, the client is not aware of the external network server exists, that is, he just follow the DNS server resolution,
In previous experiments, manual configuration was used to synchronize data between two mysql database servers. mysql-cluster is used to simplify the configuration process and expand a large number of nodes with ease, for more information about mysql-cluster, see the official mysql website ?? Long? P plan: LD1 (Server Load balancer): 192
In previous experiments, manual configuration was used to synchronize data between two mysql database servers. mysql
part can be modified on the prepared LVS:State BACKUPPriority The above section is the end of the LVS machine configurationThe following is a configuration script on the Web machine, primarily binding the VIP and shutting down the ARP response#!/bin/bashvip=192.168.1.20. /etc/rc.d/init.d/functionsCase $ inStartIfconfig lo:0 $VIP netmask 255.255.255.255 broadcast $VIPRoute add-host $VIP Dev lo:0Echo 1 >/proc/sys/net/ipv4/conf/lo/arp_ignoreEcho 2 >/proc/sys/net/ipv4/conf/lo/arp_announceEcho 1 >/p
to accept the packet. Because the request packet IP is right.But at this time LVs did not open snat, that is, the conversion of the packet, do not need to rely on iptables, but the LVs themselves to complete. Similar to multiple groups of Dnat.Personal Summary: Many of the forum's information are personal views, lack of rigor. Cisco and Linux are many things that are interlinked.This article is from the "[email protected]" blog, please be sure to keep this source http://ribble.blog.51cto.com/38
Description
Operating system: CentOS 5.X 64-bit
Web server: 192.168.21.127, 192.168.21.128
Sites: Bbs.111cn.net and Sns.111cn.net deployed on two Web servers
To achieve the purpose:
Add two servers (main main mode) to achieve Web server load balancing through nginx+keepalived
Architecture Planning:
Nginx server: 192.168.21.129, 192.168.21.130
Keepalived
Due to the use of mysqlcluster in the production environment, high availability load balancing is required, and keepalived+haproxy is provided here for implementation.
The main function of keepalived is to realize the fault isolation of the real machine and the failover between load balancer. Can be exchanged at the 3,4,5 layer. It is implemented thr
The author has two friends, living in a building, a 4 floor (hereinafter referred to as 4), a 2 floor (hereinafter referred to as 2), 4 opened broadband, home has a desktop and a notebook, 2 has a notebook, and 4 are going to share broadband Internet access. Because both have notebooks, so the use of wireless routers to share the Internet. But because of the interval between the one layer, to the 2 floor, wireless router signal is too bad, 2 fundament
Configure mysql+lvs+keeplived to achieve load balancing for MySQL read operations
Environment:
Test1192.168.46.131master
Test2192.168.46.130slave Backup Test Library
TEST3 Scheduler
1, installation and configuration keepalived
First installs the Keepalived software on the node test1, the Test2, the software installation is very simple.
[Root@test1]# yum install-y openssl-devel [root@test1 ~]# wget]
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.