The linux virtual server

Published: November 30, 2015 Words: 504

INTRODUCTION

The Linux Virtual Server (LVS) allows load balancing of networked services such as web and mail servers using Layer 4 Switching. It is extremely fast and allows such services to be scaled to service 10s or 100s of thousands of simultaneous connections

The LinuxVirtualServerProject(LVS) implements layer4switching in the LinuxKernel. This allows TCP and UDP sessions to be load balanced between multiple realservers. Thus it provides a way to scale Internet services beyond a single host. HTTP and HTTPS traffic for the WorldWideWeb is probably the most common use.

LVS itself runs on Linux, however it is able to load balance connections from endusers running any operating system to realservers running any operating system. As long as the connections use TCP or UDP, LVS can be used.

LVS is very high performance. It is able to handle upwards of 100,000 simultaneous connections. It is easily able to load balance a saturated 100Mbit ethernet link using inexpensive commodity hardware. It is also able to load balance saturated 1Gbit link and beyond using higher-end commodity hardware.

Virtual server is a highly scalable and highly available server built on a cluster of real servers. The users interact with the cluster system as if it were only a single high-performance virtual server. Consider the following figure.

The real servers and the load balancers may be interconnected by either high-speed LAN or by geographically dispersed WAN. The load balancers can dispatch requests to the different servers and make parallel services of the cluster to appear as a virtual service on a single IP address,. Scalability of the system is achieved by transparently adding or removing nodes in the cluster. High availability is provided by detecting node failures and reconfiguring the system appropriately.

1.1 Why virtual server?

With the explosive growth of the Internet and its increasingly important role in our lives, the traffic on the Internet is increasing dramatically, which has been growing at over 100% annual rate. The workload on the servers is increasing rapidly so that servers will be easily overloaded for a short time, especially for a popular web site. To overcome the overloading problem of the servers, there are two solutions. One is the single server solution, i.e. to upgrade the server to a higher performance server, but it will soon be overloaded when requests increases so that we have to upgrade it again, the upgrading process is complex and the cost is high. The other is the multiple server solution, i.e. to build a scalable network service system on a cluster of servers. When load increases, we can simply add a new server or more into cluster to meet the increasing requests, and commodity server is of highest performance/cost ratio. Therefore, it is more scalable and more cost-effective to build server cluster system for network services.

1.2 Where do we use LVS?

1.3 Goals

The basic goal of the Linux Virtual Server Project is to:

Build a high-performance and highly available server for Linux using clustering technology, which provides good scalability, reliability and serviceability.