Today, the ' big server ' model is over, replaced by a large number of small servers, using a variety of load-balancing techniques. This is a more feasible way to minimize the cost of hardware.
The advantages of ' more small servers ' over the past ' large server ' model are embodied in two aspects:
1. If the server is down, then the load-
is his loopback IP, and the bound Mac is the target Mac replaced by LVS. then real server will think that this package is running in a native application through the loopback IP sent to itself, so this package can not be discarded, must be processed .
4. The generated response message after being processed is sent directly to the network management. This does not have much explanation, just make sure that the default route of real server is set to the 192.168.100.1 of the core
cluster, the cluster must bind the cluster IP address and MAC address to the vswitch so that the vswitch can be correctly addressable. The cluster IP address and MAC address can be viewed in the cluster parameters, run the following command on the H3C switch:
ARP static 10.9.17.50 03bf-0a09-1132 17 G1/0/15
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/58/7E/wKiom1SzIgDiQsMpAAGPj0O3gRI918.jpg "/>
Return to the network
the adapter. This mode includes the BALANCE-TLB mode, plus receive load balancing for IPV4 traffic (receive load balance, RLB), and does not require any switch (switch) support.
Installing the Load Softwareapt-get install if
LVS (Linux Virtual Server) is a software system for load balancing, consisting of the Ipvs framework that actually works in the kernel section and the ipvsadm used to write rules in user space. The way to work is to distribute access requests to the back-end production servers through the set of scheduling methods and rules. Dr. Zhangwensong is the founder and main developer of LVS.Load
persist Source-ip tp-ip-pers1 Establish source address keep session template named "Tp-ip-pers1"
Application Template SLB virtual-server vip1 10.0.1.12 Port tcp template persist Source-ip tp-ip-pers1 ========= ===========================================================
Configure NAT 1, SLB source NAT when the extranet client and intranet server-side packet access path are identical, you do not need to configure the SLB source NAT Note: When intranet server gateways are built on
the Tomcat cluster configuration as followsAfter the Apache-tomcat-6.0.29.2-node2 configuration and it almost, only some port differences, the difference is as followsSo Tomcat is a complete
Write a Web project test
The test page code is as followsWeb-inf\web.xml as followsAdded
Web Project Test Results
The test effect is the same browser IE session in different node shared a session, one of the node hangs also does not matter, the other is immediately copied over,
In the past, when running a large Web application, it meant running a large Web server. Because your application attracts a large number of users, you will have to add more memory and processors to your server.
Today, the ' large server ' model has been replaced by a large number of small servers, using a variety of load balancing techniques. This is a more feasible approach that minimizes the cost of hard
Alteon is used in the use of dual-machine master and Standby mode of work, the corresponding group network according to different ways are divided into a direct-connected group network, single-arm network of two pairs of networks and triangular transmission network, the following in turn, detailed introduction. 1.1Direct Connect NetworkingThe network topology diagram is as follows: ( Standard Architecture )650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/87/07/wKioL1fSB7XDvLC9AAEq9X4j7
Nlb_test directory, respectively, the new index.html, the contents are as follows
The code is as follows
Copy Code
The code is as follows
Copy Code
3. Create a new Web site Nlb_test in VM1 and VM2, and point to the nlb_test built on the C disk, and the port is set to 8000 (IIS how to build a Web site is not explained in detail)Separate access to Http://192.168.220.103:8000/and http://192.168.220.104:8000/, all acce
LVS Overview1.lvs:linux Virtual ServerQuad Exchange (routing): forwards it to a server in the backend host cluster based on the destination IP and destination port of the request message (based on the scheduling algorithm);Not able to implement load balancing on the application tierLVS (also known as Ipvs) is based on the firewall NetFilter implementation in the kernel2.lvs Cluster Terminology:
only a small part. When the machine just started, "Hot data cache" has not actually been established, this time the launch of a large number of requests, it is likely to cause the machine can not "withstand" and hang again. To MySQL as an example, our MySQL query, usually more than 95% are falling in the memory cache, the actual implementation of the query is not much.
In fact, whether it is a single machine or a cluster, in the high concurrent request scenario, restart or
In large-scale Internet applications, load balancing devices are an essential node, originating from high concurrency and large traffic impact pressures in Internet applications, where we typically deploy multiple stateless application servers and several stateful storage servers (databases, caches, and so on) on the server side.I. The role of load balancingThe t
possible to integrate it into a hardware device, which is typically a LAN switch.
The current advanced LAN switch is beginning to support the so-called layer fourth switching technology, which is to exchange the virtual connection between the IP address and TCP port, and send the packet directly to the corresponding port of the destination computer. By further enhancing its functionality, the
server's network load balancing is realized. In this way, when the client accesses www.rtj.netA domain name resolution request is sent to the DNS server. When the DNS server receives the first request, it will return the first IP address 192.168.0.5 to the client. When the second client requires domain name resolution, the DNS server will return the second IP address 192.168.1.5 to the client. Through such
-2R1 (Config-int-range) #channel-group 1 mode onConnecting the switch g0/1-2 to the corresponding port on the server, the bandwidth is significantly increased after testing
Another important reference material:
Linux dual NIC Bonding
is divided into three steps:
1, create BOND0 network card:
Vim/etc/sysconfig/network-scripts/ifcfg-bond0
Add the following:
Device=bond0
bootproto=none
onboot=yes
network=192.168.0.0
netmask=255.255.255.0
IPADDR= 192.
professional service providers and products can be selected, I personally contacted a number of solutions, including two architecture can give you a reference. The hardware layer four switch layer fourth Exchange uses the header information of the third layer and fourth layer packets, according to the application interval to identify the business flow, the entire interval segment of the business flow is allocated to the appropriate application server
In the past, running a large Web application meant running a large Web server. Because your application attracts a large number of users, you will have to add more memory and processor to your server. Today, the "big server" model is over, replaced by a large number of small servers, using a variety of load balancing techniques.
The advantages of "more small servers" over the past "large server" model are
"title=" 2.png " alt= "Wkiol1ecizzdofkmaabjvdzpgzw412.png"/>clients access virtual services over an IP network, andSLB distributes them to different servers through a Mac. So the problem comes, the same server IP is not the IP conflict? Of course, these servers are very special, do not send ARP messages, also requires the SLB connection switch port also does not send ARP. As long as the SLB sends the message over, the
In large-scale Internet applications, load balancing devices are an essential node, originating from high concurrency and large traffic impact pressures in Internet applications, where we typically deploy multiple stateless application servers and several stateful storage servers (databases, caches, and so on) on the server side.I. The role of load balancingThe t
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.