Concepts of learning Linux clusters by cainiao

Source: Internet
Author: User
After learning the application of the cluster, the cluster is not very difficult to understand. As long as you master its principles, it is not very difficult to implement it. Next, let's take a simple look at the cluster. What is a cluster? Cluster or cluster: it aims to combine multiple computers to complete specific tasks, such as weather forecast and large-scale online game learning. ClusterApplication: the cluster is not very difficult to understand, as long as you master its principles, it is not very difficult to implement. Next, let's take a simple look at the cluster.

What is a cluster?

Cluster or cluster:The purpose is to combine multiple computers to complete specific tasks, such as weather forecasts and large-scale online games, which require a large amount of computing. The cost of a single computer is too high, it is not displayed. Then we need to combine obsolete or in use computers in the form of clusters to solve these problems with the overall strength.

The cluster types are roughly divided into three types:

1. LB Load BalaNcIng (Server Load balancerCluster)

2. HA High Availability (High Availability cluster)

3. HP High PerfoRmAnce (High-Performance cluster)

Briefly describe these three types of clusters:

1. the purpose of a server Load balancer cluster is to improve the service concurrency. For example, if three WEB servers are combined into one cluster, we need to use this cluster to achieve load balancing, it not only averages the load of the three WEB servers, but also prevents idle servers.

2. The high availability cluster aims to provide service capability and prevent service interruption caused by macro machines by providing Redundant servers.

3. High-Performance clusters aim to solve a large number of complex computing, common weather forecasting systems, scientific exploration, census, and so on in a short period of time.

 

At the same time, clusters provide excellent scalability and scalability, allowing you to conveniently increase or reduce servers.

Cluster implementation method

LB Load Balancing

F5 (hardware)

Lvs

Haproxy

HA High Availability

Heartbeat *** is classified into several small projects.

CoroSync+ Openais: RHCS *** REdCurrently used by Hat6.0, It is configurable and can be shared better than the above

UlTrAmokey

Keepalive

HP High Performance

Bowerful

= ==================================

Next we will introduce in detail the implementation principles of Server Load balancer clusters and high-availability clusters.

 

Server Load balancer Cluster


---- Load balancing is actually the command of a band, directing the following band

To achieve load balancing, we need a front-end Server Load balancer --------- Direcor forwarding server (or professional hardware) to accept client requests, forward these requests to the backend servers. In this forwarding process, the Server Load balancer is evenly distributed based on the server load (by using algorithms.

As mentioned above, we can implement the role of a server Load balancer by constructing a dedicated server. So what software can be used to implement this service?

There are two main types:

1.LVS Linux Virtual ServerLVS is an open-source cluster software developed by Zhang Wenyu, a Chinese speaker. It is one of the widely used cluster software.

2.Haproxy

LVS is optimized to provide close-to-hardware performance and is widely used as an open source. However, when Director runs on the host, the entire cluster becomes invalid. This is a single point of failure. Therefore, we need to use a combination of other clusters to implement cluster functions.

Benefits:

1. Load Balancing

2. provide high-availability functions. For example, if the first WEB server is on the machine, the request is forwarded to the second server through an algorithm.

3. Easy scalability, convenient scalability, and easy to add hosts

High-availability cluster

----- Think that there is no error in any part, and it will make an error ---- Mo Fei's Law

 

As mentioned above, high-availability clusters are designed to provide 7x24 online services. What do you need to accomplish this?

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.