Simple analysis of the difference between server distribution and cluster

Source: Internet
Author: User

Cluster:

A cluster is a group of service entities that work together to provide a service platform that is more scalable and available than a single service entity. In the view of the client, a cluster is like a service entity, but in fact the cluster consists of a set of service entities. The cluster provides the following two key features compared to a single service entity:

Scalability--The performance of the cluster is not limited to a single service entity, and new service entities can dynamically join the cluster to enhance the performance of the cluster.

High Availability-the cluster is free from the warning of the out of service to the client by the redundancy of the services entity. In a cluster, the same services can be provided by multiple service entities. If one of the service entities fails, another service entity takes over the failed service entity. The functionality provided by the cluster to recover from an error-enabled service entity to another service entity enhances the usability of the application.


Image description:

If a task consists of 10 subtasks, each of which takes 1 hours to execute separately, it takes 10 hours to perform a change on a single server.

With a distributed solution that provides 10 servers, each server is responsible for only one subtask, regardless of the dependencies between subtasks, it takes only one hours to perform this task.

The cluster scheme also provides 10 servers, and each server can handle the task independently. Assuming that there are 10 tasks at the same time, 10 servers will work at the same time, 10 small, 10 tasks at the same time to complete, so that the whole body, or 1 hours to complete a task!
Cluster concept:

1. Two key Features

A cluster is a group of service entities that work together to provide a service platform that is more scalable and available than a single service entity. In the view of the client, a cluster is like a service entity, but in fact the cluster consists of a set of service entities. The cluster provides the following two key features compared to a single service entity:

· Scalability--The performance of the cluster is not limited to a single service entity, and new service entities can dynamically join the cluster to enhance the performance of the cluster.

· High Availability-the cluster is free from the warning of the out of service to the client by the redundancy of the services entity. In a cluster, the same services can be provided by multiple service entities. If one of the service entities fails, another service entity takes over the failed service entity. The functionality provided by the cluster to recover from an error-enabled service entity to another service entity enhances the usability of the application.

2. Two major competencies

To be scalable and highly available, a cluster must have the following two major capabilities:

· Load balancing-load balancing can distribute tasks more evenly to compute and network resources in the cluster environment.

· Error recovery--For some reason, the resource that performs a task fails, and the resource in the other service entity that performs the same task completes the task. This is due to the fact that resources in one entity cannot work, and that the resources in another entity transparently continue to complete the task is called error recovery.

Load balancing and error recovery require that there be resources in each service entity that perform the same task, and that the information view (information context) required to perform the task must be the same for each resource in the same task.

3. Two major technologies

The following two major technologies are essential to achieving a cluster:

· Cluster address-The cluster consists of multiple service entities, and cluster clients gain the functionality of each service entity within the cluster by accessing the cluster address of the cluster. Having a single cluster address (also known as a single image) is a basic feature of the cluster. The settings for maintaining cluster addresses are called load balancers. The internal responsibility of the load balancer is to manage the entry and exit of each service entity, and the external is responsible for the conversion of the cluster address to the internal service entity address. Some load balancers implement real load balancing algorithms, and some only support the transformation of tasks. Load balancers that implement only task transformations are suitable for cluster environments that support Active-standby, where only one service entity in a cluster works, and when a service entity that is working fails, the load balancer shifts subsequent tasks to another service entity.

· Internal communication--in order to work together, load balancing and error recovery, the cluster entities must communicate with each other, such as the Service entity heartbeat test information, and the task execution context information between service entities.

Having the same cluster address enables clients to access the computing services provided by the cluster, which hides the internal address of each service entity under a cluster address, enabling the computing services that the customer requires to be distributed among the service entities. Internal communication is the basis of the normal operation of the cluster, which makes the cluster have the ability of balancing load and error recovery.
Distributed Concepts:

Distributed computing is a computer science that studies how to divide a problem that requires a very large computational power into a number of small parts, then allocate it to many computers for processing, and finally combine these calculations to get the final results. Distributed networked storage technology is to store the data in multiple independent machine devices. The distributed networked storage system, which uses scalable system structure, uses multiple storage servers to share the storage load, and locates the storage information by location server, not only solves the bottleneck problem of the single storage server in the traditional centralized storage system, but also improves the reliability, usability and expansibility of the system.
Distributed refers to the distribution of different businesses in different places. Clustering refers to the pooling of several servers to achieve the same business. Each node in the distribution can be clustered. And the cluster is not necessarily distributed. Distributed each node, are complete different business, a node collapsed, which this business can not be accessed.

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.