Description
Operating system: CentOS 5.X 64-bit
Web server: 192.168.21.127, 192.168.21.128
Sites: Bbs.111cn.net and Sns.111cn.net deployed on two Web servers
To achieve the purpose:
Add two servers
Http://www.jianshu.com/p/5d82a685b5b6After a long analysis of the socket creation source, found a piece of paste, so this summary, my blog at the same time there is another detailed source analysis, the kernel version of 3.9, it is recommended that
LVS-VIP:192.168. 159.250 LVS-server:192.168. 159.91 MySQL-server:192.168. 151.150# # # #系统版本CentOS6.4#### # # #由于LVS Dr Mode based on the same network segment, mysql instance based on different network segments, so choose Tun mode, this example
Keepalived build highly available LVS Cluster
1. What is keepalived?
Vro redundancy protocol (vrrp) technology can be used to achieve high lvs availability. It can also be used for lightweight software with load balancing, such as nginx and haproxy.
Build a Server Load balancer cluster with LVS in Linux
Common open-source load balancing software: nginx, lvs, and keepalivedCommercial Hardware load equipment: F5, Netscale1. Introduction to LB and LVSLB clusters are short for load balance clusters.
Significance of Linux system parameters-general Linux technology-Linux programming and kernel information. The following is a detailed description. All TCP/IP optimization parameters are in the/proc/sys/net/directory. For example, the following are
HTTP Load Balancing through LVS
1. Summary
This article does not consider dual-host mutual backup. Http load balancing is achieved through scripts and LVS, and clusters are used in the actual production environment.
2. Installation
1) Prepare the
Address: http://www.cnblogs.com/czh-liyu/archive/2011/11/29/2267963.html
For convenience, I made another diagram based on the official schematic diagram, as shown in: VS/DR architecture:
I will explain the principle of LVS-DR based on this
BKJIA exclusive Article] how to optimize your Linux production server? Based on practical experience, this article summarizes nine key points for optimizing Linux production servers. If you have not used some methods, try again.
I. Time
Reference: whether http://ixdba.blog.51cto.com/2895551/708021 varnish can run stably and quickly depends heavily on Linux optimization and varnish parameter settings. After varnish installation configuration is complete, the varnish server
I. Environment Description:LVS-DR-MASTER: 10.3.0.82LVS-DR-Backup: 10.3.0.70VIP: 10.3.0.60Realserver1: 10.3.0.69Realserver1: 10.3.0.83Centos: 5.7Ii. Install the LVS and keepalvied software packages1. Download related software
NOTE: For the following content, refer to Chapter 6 of "building a high-availability Linux Server" of fuqin liquor. It is relatively simple to set up a high-availability server Load balancer environment, mainly to understand the principle. This
Build an LVS load balancing test environment
There are many ways to achieve Server Load balancer: local tyrants directly F5, the best performance, the most expensive
If you have no money, you can use Apache. Nginx works on the fourth layer of the
LVS's working mechanism and scheduling algorithm have been recorded in my previous articles. See hereThe working mechanism of LVS is similar to iptabls. Some work in the user space (ipvsadmin) and some work in the kernel space. user space: used to
The official principle note: The director receives the user's request, then selects a realserver according to the load balancing algorithm, forwards the packet to the past, and finally the Realserver responds directly to the user.Instance scene
A LVS installation script, you can refer to theDescription1. Give an executable permission, run-h on the first realserver, see Help,2. Create Realserver: Run script input Realsever3. Create LVS: Run script input LVs#!/bin/bash#builed
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.