Differences between LVS three scheduling Modes

Source: Internet
Author: User

Differences between LVS three scheduling Modes

NAT: Address Translation
DR: Direct routing

TUN: Tunnel

NAT:
The cluster node and director must be in the same IP network;
RIP is usually a private address and is only used for communication between nodes in each cluster;
Director is located between the client and the real server and is responsible for handling all incoming and outgoing communications;
Real server must direct the gateway to DIP;
Supports port ing;
Real Server can use any OS;
Director is prone to system bottlenecks in large-scale application scenarios;

DR:
The cluster node and director must be in the agreed physical network;
RIP can use public IP addresses for convenient remote management and monitoring;
Director is only responsible for processing inbound requests. The ctor directly sends the response to the client;
Real server cannot direct the gateway to DIP;
Port ing is not supported;
Do not change the destination address (because the real Server is already bound to a VIP)
Rewrite the mac address of the Request Message (change the MAC address of the VIP machine to the MAC address of the backend real server), for example:

TUN:

Cluster nodes can span the Internet;
RIP must be a public IP address;
Dirctor is only responsible for processing inbound requests, and the corresponding packets are directly sent from the real server to the client;
The real server Gateway cannot point to director;
Only the OS that supports tunneling can be used for realserver;
Port ing is not supported;

LVS/DR + Keepalived

LVS + Keepalived achieves layer-4 load and high availability

LVS + Keepalived high-availability server Load balancer cluster architecture Experiment

Heartbeat + LVS build a high-availability server Load balancer Cluster

Build an LVS load balancing test environment

A stress test report for LVS

This article permanently updates the link address:

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.