Detailed configuration of Server Load balancer in lvs dr mode in CentOS
1. Prepare for LVS installation:
1. Prepare four Centos 6.2 x86_64
Note: SELinux and IPtables firewalls are disabled in this experiment.
Management IP address role remarks 192.16
The following uses the reverse proxy function of Nginx to configure an Nginx load balancing server. The backend has three service nodes for providing Web services, and load balancing of the three nodes is achieved through Nginx scheduling.
Simply say a few noun nginx It is a reverse proxy, which is actually a proxy server responsible for forwarding, seemingly acting as a real server function, but in fact not, proxy server just acted as a forwarding role, And from the real server to
First, about the CentOS system introductionCentOS (Community Enterprise Operating System, Chinese means: Community Enterprise operating system) is one of the Linux distributions, it comes from Red Hat enterprise Linux is compiled according to the
1. Yum Installation NginxYum Install Nginx2. Start NginxChkconfig nginx on service nginx startTo put the test file into the Web server:[HTML]View Plaincopy print?
html>
head>
title>welcome to nginx! title>
head>
body
Overview
This document is used to describe Nginx+tomcat+redis load Balancer implementation session sharing
Required software and download address
Software name
Download Address
Function description
nginx-v1.6.0
Http:
The LVS server load balancer environment is set up, and SYN_RECV state processing is successful when the LVS + KEEPALIVED environment is set up for the first time. after a while, a problem occurs when the environment is set up again. no matter how
1. set the bonding module vi/etc/modprobe to be loaded upon startup. d/bonding. add the following two lines to the conf file: aliasbond0bondingoptionsbond0miimon100mode0 # mode0 indicates that server load balancer 2 modifies the Nic configuration
Using partition and server load balancer to achieve greater and better MySQL database optimization and use is a very complicated issue. so how can we make the database bigger and better? This article will show you how to use partition and load
Article Title: instance resolution: Lvs Server Load balancer experiment in a virtual machine. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research,
Nginx Load Balancer monitoring node status v plug-in (ngx_http_upstream_check_module)
Upstream_check_module Introduction:
The module can provide Tengine with proactive backend server health checks.The module is not enabled by default
With load balancing, modify the configuration HTTP node as follows:#设定http服务器, using its reverse proxy function to provide load balancer support http { #设定mime类型, type defined by Mime.type file include /etc/nginx/ mime.types;
Nginx Load Balancer ClusterNginx load balancing function In fact and Nginx proxy is the same function, just to the previous agent a machine to agent more than one machine, nginx load and compared to LVS, Nginx belongs to a more advanced application
1. Use Nginx Ip_hash as Load Balancer Service and support session sticky2, using nginx sticky third-party module to achieve cookie-based load balancing3, using the Nginx map instruction according to the cookie shunt:Map $COOKIE _abcdexpid $group { ~
Problem logging-load Balancer equalizer configured for high availability causes problemsProblem Description:Using PHP to develop a awards program, to call the server interface to the person to send props, but this item must be strictly controlled
1 , LVS , TUN IntroductionLVS is a Linux Virtual Server in the actual environment, often as b/S structure of the network application in the load balancer to use, working in 7 Layer network model, the network layer, which is usually said IP layer,
The Lvs NAT mode is the full name of virtual server via network address translation (Vs/nat), which rewrites the destination address of the request message via the Net-addressing translation, and assigns the request to the backend's real server
This article mainly introduced the Nginx to do nodejs application load Balancer Configuration example, this article directly gives the configuration instance, needs the friend can refer to.load Balancing allows the user's requests to be distributed
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.