Home Common Problem What are clusters and LVS?

What are clusters and LVS?

Aug 18, 2020 am 11:00 AM
lvs cluster

A cluster is a group of computers interconnected through a high-speed network and managed in a single system mode; many servers are brought together to provide the same service, and it appears to the client as if there is only one server . LVS (Linux Virtual Server) is a virtual server cluster system.

What are clusters and LVS?

Cluster

  • #A group of clusters interconnected by telling the network Computer group, and managed in a single system mode

  • Combine many servers together to provide the same service, and it will appear to the client as if there is only one server.

  • You can obtain relatively high gains in performance, reliability, and flexibility at a lower cost.

  • Task scheduling is Core technology in cluster system

Cluster purpose

  • Improve performance

    -such as computing intensive Type applications, such as: weather forecasting, nuclear test models

  • Reduce costs

    -Compared to million-dollar supercomputers, the price is cheaper

  • Improve scalability

    -Just add cluster nodes

  • Enhance reliability

    -Multiple nodes complete the same function , to avoid single points of failure.

Cluster classification

  • ##High-performance computing cluster HPC

    – Solve complex scientific problems with parallel applications developed in clusters.

  • Load Balancing (LB) Cluster

    – Client load is distributed as much as possible between compute and cluster Evenly distributed.

  • High Availability (HA) Cluster

    -Avoid single point of failure. When a system fails, fast migration is available.

LVS (Linux Virtual Server)

LVS is the abbreviation of Linux Virtual Server, which means Linux virtual server and is a virtual server cluster system. This project was established by Dr. Zhang Wensong in May 1998. It is one of the earliest free software projects in China.

LVS can be used to implement highly available and scalable network services such as Web, Mail, Cache and Media

The ultimate goal is to use the Linux operating system and LVS cluster software to achieve a highly available and high-performance , low-cost server application cluster.

LVS cluster composition

  • Front-end: load balancing layer

    -consisting of a Or multiple load balancing schedulers constitute

  • Middle: Server group layer

    -It is composed of a group of devices that actually run application services.

  • Bottom: Data Sharing Storage Layer

    -Storage area that provides shared storage space

LVS terminology

  • Directory Server: Scheduling Server

    -Server that distributes load to Real Server

  • Real Server:Real Server

    -The server that actually provides application services

  • VIP: virtual IP address

    -Publish the virtual IP address visited by users

  • RIP: Real IP address

    -The IP address used on the cluster node

  • DIP: The IP address of the node server where the scheduler connects.

    What are clusters and LVS?

##LVS working mode

    VS/NAT
  • -Virtual server implemented through network address translation

    -When there are large concurrent accesses, the performance of the scheduler becomes a bottleneck

  • VS/DR
  • - Directly use routing technology to implement virtual servers

    -Node servers need to configure VIP, pay attention to MAC address broadcast

    -VS/TUN

    -Virtual servers are implemented through tunnels

Load balancing scheduling algorithm

LVS currently implements 10 scheduling algorithms

There are 4 commonly used scheduling algorithms

-Round Robin

-Weighted Round Robin

-Least Connections

-Weighted Least Connections )

For more related knowledge, please visit:

PHP Chinese website

!

The above is the detailed content of What are clusters and LVS?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Node completely evacuates from Proxmox VE and rejoins the cluster Node completely evacuates from Proxmox VE and rejoins the cluster Feb 21, 2024 pm 12:40 PM

Scenario description for nodes to completely evacuate from ProxmoxVE and rejoin the cluster. When a node in the ProxmoxVE cluster is damaged and cannot be repaired quickly, the faulty node needs to be kicked out of the cluster cleanly and the residual information must be cleaned up. Otherwise, new nodes using the IP address used by the faulty node will not be able to join the cluster normally; similarly, after the faulty node that has separated from the cluster is repaired, although it has nothing to do with the cluster, it will not be able to access the web management of this single node. In the background, information about other nodes in the original ProxmoxVE cluster will appear, which is very annoying. Evict nodes from the cluster. If ProxmoxVE is a Ceph hyper-converged cluster, you need to log in to any node in the cluster (except the node you want to delete) on the host system Debian, and run the command

Optimization method of database in PHP high concurrency environment Optimization method of database in PHP high concurrency environment Aug 11, 2023 pm 03:55 PM

PHP database optimization method in high concurrency environment With the rapid development of the Internet, more and more websites and applications need to face high concurrency challenges. In this case, database performance optimization becomes particularly important, especially for systems that use PHP as the back-end development language. This article will introduce some database optimization methods in PHP high concurrency environment and give corresponding code examples. Using connection pooling In a high-concurrency environment, frequent creation and destruction of database connections may cause performance bottlenecks. Therefore, using connection pooling can

How to use Docker to manage and expand multi-node clusters How to use Docker to manage and expand multi-node clusters Nov 07, 2023 am 10:06 AM

In today's cloud computing era, containerization technology has become one of the most popular technologies in the open source world. The emergence of Docker has made cloud computing more convenient and efficient, and has become an indispensable tool for developers and operation and maintenance personnel. The application of multi-node cluster technology is widely used based on Docker. Through multi-node cluster deployment, we can utilize resources more efficiently, improve reliability and scalability, and also be more flexible in deployment and management. Next, we will introduce how to use Docker to

What are the common clusters in php? What are the common clusters in php? Aug 31, 2023 pm 05:45 PM

Common clusters in PHP include LAMP cluster, Nginx cluster, Memcached cluster, Redis cluster and Hadoop cluster. Detailed introduction: 1. LAMP cluster. LAMP refers to a combination of Linux, Apache, MySQL and PHP. It is a common PHP development environment. In a LAMP cluster, multiple servers run the same application and are balanced through a load balancer. Requests are distributed to different servers; 2. Nginx cluster, Nginx is a high-performance web server and so on.

How to use MongoDB to implement data clustering and load balancing functions How to use MongoDB to implement data clustering and load balancing functions Sep 19, 2023 pm 01:22 PM

How to use MongoDB to implement data clustering and load balancing functions Introduction: In today's big data era, the rapid growth of data volume has put forward higher requirements for database performance. In order to meet these requirements, data clustering and load balancing have become indispensable technical means. As a mature NoSQL database, MongoDB provides rich functions and tools to support data clustering and load balancing. This article will introduce how to use MongoDB to implement data clustering and load balancing functions, and provide specific code

Server cluster implementation method in Workerman documentation Server cluster implementation method in Workerman documentation Nov 08, 2023 pm 08:09 PM

Workerman is a high-performance PHPSocket framework that allows PHP to handle asynchronous network communication more efficiently. In Workerman's documentation, there are detailed instructions and code examples on how to implement a server cluster. In order to implement a server cluster, we first need to clarify the concept of a server cluster. A server cluster connects multiple servers to a network to improve system performance, reliability and scalability by sharing loads and resources. In Workerman, you can use the following two methods

How to configure the cluster environment of MySQL database? How to configure the cluster environment of MySQL database? Jul 12, 2023 pm 02:52 PM

How to configure the cluster environment of MySQL database? Introduction: With the development of the Internet and the continuous growth of data volume, the database has become one of the core systems necessary for every enterprise. At the same time, in order to ensure high data availability and read and write performance requirements, database cluster environments have gradually become the choice of enterprises. This article will introduce how to configure the cluster environment of MySQL database and provide corresponding code examples. 1. Environment preparation Before configuring the cluster environment of the MySQL database, we need to ensure that the following environment preparations have been completed: Install M

MySQL cluster deployment and maintenance project experience summary MySQL cluster deployment and maintenance project experience summary Nov 02, 2023 pm 01:33 PM

MySQL cluster deployment and maintenance project experience summary MySQL is one of the most commonly used databases in Internet application development. As the business scale continues to expand, stand-alone MySQL can no longer meet the demand. Therefore, it is necessary to consider using the MySQL cluster solution to expand the performance and capacity of the database. . This article summarizes the experience and lessons learned in the MySQL cluster deployment and maintenance process, hoping to be helpful to everyone's MySQL cluster deployment and maintenance work. 1. Deployment and architecture design of MySQL cluster MySQL cluster