| With the development of internet, more and more people begin to go shopping, entertain, communicate with people and seek information on it. At the same time, more and more enterprises start to move their business from traditional way to e-business and build up the relationship with customers on cyberspace. However, the overheated net craze leads many hot websites to collapse because of the extremely large visits. There are some methods to solve this problem. The first one is to update the existing server with the more powerful one. However, this method has two disadvantages. The one is it will bring out high expenditure. The other one is that it will stop the service for some time. The second method is multi-server strategy. It uses the multiple servers to share the load that should bear by one server before. The advantage is obvious: the requirement for each server is not very high; the breakdown happening on minority servers will not affect the service provided to the outside. LVS is one of the multi-server strategies. It provides a scalable and high-available cluster with a low cost. This thesis introduces the structure of the LVS and analyzes the principle of the load balance and high-available strategy. The author pays special attention on the load balance algorithm, and improves the weighted least connection method. The new method uses the dynamic weight to replace the static weight in the original algorithm. The purpose of this improvement is to let the incoming packet to the server with the lowest load. The author also designs and implements a cluster management interface to manage cluster. Finally, the author implements a LVS cluster under LVS/DR mode and get the test result. The result proves the improved algorithm is propitious to enhance the performance of cluster system. At the end of this thesis, the author summarizes the study on building a front controller of a cluster and brings forward what should do on the further research. |