Because the data traffic of the network is mostly concentrated at one end of the central server, load balancing is usually used to balance (or share) the load of the accessed server. Server Load balancer is structured into local Server L
Load BalancingMainstream open source software: LVS, keepalived, Haproxy, Nginx and so on;OSI Layer: LVS (4), Nginx (7), Haproxy (4, 7);The Keepalived load balancing function is actually the LVSLVS Load balancer can distribute other ports than 80, such as MySQL, while Nginx only supports HTTP, https, mail;LVS Introducti
Summary: For a large website, Server Load balancer is an eternal topic. With the rapid development of hardware technology, more and more Server Load balancer hardware devices are emerging, such as F5 big-IP, Citrix NetScaler, and radware, however, the high price is often prohibitive, So
, redundancy is also necessary. This involves the design of efficient dB, which will not be repeated here.
2.1.2 why data splitting
What is data splitting? A brief description and explanation are provided. Readers may wonder why data splitting is required? A mature and stable database like Oracle is enough to support the storage and query of massive data? Why do we still need data slicing? Indeed, Oracle databases are mature and stable, but the high cost of use and high-
more famous sites and organizations are using LVS set up the cluster system, For example: The Linux portal (www.linux.com), real Company (www.real.com), the world's largest open source website (sourceforge.net), which provides audio and video services to RealPlayer.II. structure of the LVS systemThe server cluster system with LVS is composed of three parts: the most front-end
-demand services, and so on, there are many more famous sites and organizations are using LVS set up the cluster system, For example: The Linux portal (www.linux.com), real Company (www.real.com), the world's largest open source website (sourceforge.net), which provides audio and video services to RealPlayer. The LVS architecture uses the LVS to set up the server cluster system has three parts: the most front-end
high-performance server resources are fully utilized. Most internet data centers in telecom IDCs have established Shared Load Balancing facilities ), the servers of all hosting customers who purchase this value-added service in the IDC can share the Server Load balancer facilities purchased by the IDC. For some high-end
: This article mainly introduces apache and nginx server load balancer configurations. For more information about PHP Tutorial, see.
I. apache server load balancer is actually very powerful in operating apache. Recently, I have studied apache reverse proxy and server load
Cluster service and who is the backend real server
Iii. related Terms of LVS
Ds:director Server, which refers to the front-end load balancer node.
Rs:real server, backend real work server.
VIP: An IP address that is directed externally to a user request as the target of a user request.
Dip:di
more famous sites and organizations are using LVS set up the cluster system, For example: The Linux portal (www.linux.com), real Company (www.real.com), the world's largest open source website (sourceforge.net), which provides audio and video services to RealPlayer.II. structure of the LVS systemThe server cluster system with LVS is composed of three parts: the most front-end
, website access is not affected. In this way, the whole site will not be dragged down due to the downtime of a server in server load balancer mode.
What should I do if I want to configure server load balancer for B .com?It's easy, just like setting a.com. As follows:
Assume that the master server IP address of B .com
determine if your network card supports multiple queues ~The rightmost ones are the multi-queue information.This is a queue of 4 ~This is a queue of 8 ~The model used here is IBM x3630 M3The NIC is msi-x.In fact, in a large number of small packets of the system, irqbalance optimization almost no effect, but also make the CPU consumption distribution imbalance, resulting in the machine performance is not fully utilized, this time need to end it. Then
reverse proxy mode.
3. Server Load balancer Technology Based on NAT (Network Address Translation) (such as Linux virtual server (LVS)The network address is converted between the internal address and the external address so that computers with the internal address can access the external network, when a computer in an external network accesses an external address owned by the address translation gateway, th
log cannot be written to the problem that eventually causes the entire application to crash.3. Logging to logging server you can use a logging software, such as a syslog, to write all the logs to a central server. Although this method requires more configuration, he also provides the most robust solution.
PHP Load Balancer Instance
If you want to use load balanc
wonder why it needs data segmentation. A mature and stable database like Oracle is enough to support the storage and querying of massive amounts of data? Why do we need data slicing? Indeed, Oracle's db is really mature and stable, but the high cost of use and high-end hardware support is not a business that every company can afford. Imagine a year of tens of millions of of the cost of use and tens of millions of dollars of minicomputer as a hardware
address, it cannot be used as a hash Based on the IP address. For example, if squid is used as the frontend, only the squid Server IP address can be obtained when nginx obtains the IP address. It is certainly confusing to use this address for traffic distribution.
2. There are other load balancing methods at the nginx backend. If the nginx backend has another Server Load
is not a test. Of course, there is always a solution to the problem. We introduce the concept of clustering , which I call group, that is, each node of the library we introduce multiple machines, each machine holds the same data, in general, many of these machines load, when there is a downtime situation, The load balancer allocates the
group, which is the node of each library we introduce multiple machines, each of which holds the same data, and in general the load is distributed by multiple machines, and the load balancer distributes the load to the machine that is down when there is an outage. This solves the problem of fault tolerance.As shown, t
concept of clustering , which I call the group, which is the node of each library we introduce multiple machines, each of which holds the same data, and in general the load is distributed by multiple machines, and the load balancer distributes the load to the machine that is down when there is an outage. This solves t
Server Load balancer (SLB) is a load balancing service that distributes traffic among multiple ECs instances. SLB can expand the external service capability of the application system through traffic distribution, and improve the availability of the application system by eliminating spof.
(In connection with CDN, CDN uses Server
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.