Linux Server Load balancer cluster system solution-Linux Enterprise Application-Linux server application information. For details, refer to the following section.
1. Introduction to Linux virtual servers
Linux Virtual Server (LVS) is a high-availability Server Load balancer cluster system. The system can provide
.png "" 532 "Height =" 242 "/>
VCL. Load first6./Default. VCL
VCL. Use first6
Then let the client start to initiate a request and give it a try:
650) This. width = 650; "style =" border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px "Title =" image "border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201409/25/6249823_1411657818Ub2f.png "" 537 "Height =" 251 "/> web1 hard to refresh at this time will still be cach
the cluster is properly accessed:1, the experimental environment first ensure that the Iptables firewall is off state2, in the experimental environment to ensure that SELinux is closed or warning state3, in the RS server to establish an HTTP page, the content of the page is best to distinguish between the content of each host, such as: 192.168.100.2 such an IP address content4, the local physical machine directly access the VIP test whether the normal access, and whether it is normal polling ac
CCNA Experiment 13 STP the Load Balancer Environment: Windows XP , GNS3.0.7 Purpose: Learn how to Achieve load balancing in STP Description: The load balancing of STP is actually the use of another blocking link in the loop to share the load in the network steps:
corresponds to upstream localhost{}.After the above steps, the load Balancer configuration is completed, the following to start Tomcat_1, tomcat_2, and then double-click the nginx root directory Nginx.exe file or use start Nginx boot (shutdown is: nginx-s stop), open the browser, Enter Address: http://localhost will be able to see the first page of Tomcat.Learn
, which is not the same as using the Netflix API itself, but only with the spring boot configuration file. native options can be CommonClientConfigKey checked as static fields (in the core section of the Ribbon). Spring Cloud also allows you @RibbonClient to fully control the client by using the claim other configuration (on RibbonClientConfiguration top). Example:@Configuration@RibbonClient(name = "foo", configuration = FooConfiguration.class)public class TestConfiguration {}In this case, the
open source Web application server, which belongs to the lightweight application server and is the server for developing and debugging JSP programs.On Server2 and Server3 virtual machines:Tomcat Installation :SH jdk-6u26-linux-x64.binMV jdk1.6.0_26//usr/localVim/etc/profileExport JAVA_HOME=/USR/LOCAL/JDKExport classpath=: $JAVA _home/libExport path= $PATH: $JAVA _home/binSource/etc/profileLn-s/usr/local/jd
different back-end server in chronological order, and can be automatically rejected if the backend server is down. 2), weight specifies the polling probability, the weight value is proportional to the access ratio, and is used in cases where the performance of the backend server is uneven. 2), ip_hash each request according to the hash result of the access IP allocation, so that each visitor fixed access to a back-end server, you can solve the problem cannot be shared session. 3), fair (third-p
; Log_format Main '$remote _addr-$remote _user[$time _local]"$request""'$status $body _bytes_sent "$http _referer""'"$http _user_agent" "$http _x_forwarded_for"'; Access_log/var/log/nginx/Access.log Main; Sendfile on; #Tcp_nopush on;Keepalive_timeout65; #gzip on;include/etc/nginx/conf.d/*. conf; #set the server list for load Balancingupstream MyServer {#the Weigth parameter represents weights, the higher the weight, the greater the chance of being
0.8.21 development, in other words, it can only be used for the purpose of building a test environment, not for the actual production environment (limited by the number of Windows file handle limit).Download and extract the files in the package to the C drive, in order to configure the use of convenience, I extracted the folder name from "nginx-0.8.19" to "Nginx", so that we will be load-balanced site in IIS after setting up, Put the corresponding li
0.8.21 development, in other words, it can only be used for the purpose of building a test environment, not for the actual production environment (limited by the number of Windows file handle limit).Download and extract the files in the package to the C drive, in order to configure the use of convenience, I extracted the folder name from "nginx-0.8.19" to "Nginx", so that we will be load-balanced site in IIS after setting up, Put the corresponding li
configuration file is divided into six main areas:Main (Global Settings), events (nginx working mode), HTTP (HTTP settings),Sever (Host settings), location (URL match), Upstream (Load balancer server settings). Main module
Below a main area, he is a global setting:
User nobody nobody; Worker_processes 2; Error_log/usr/local/var/log/nginx/error.log notice; Pid/usr/local/var/run/nginx/nginx.pid; Worker_rlimi
HAProxy is a proxy software that provides high availability, server load balancer, and TCP and HTTP applications, HAProxy is a completely free proxy solution that provides TCP and HTTP applications quickly and reliably with HAProxy. HAProxy is applicable to websites with large loads. these sites usually need session persistence or layer-7 processing. HAProxy supports tens of thousands of concurrent connecti
Server Load balancer solutions include hardware and software solutions. Mainstream hardware solutions:
F5 BIG-IP
Citrix netscalar
A10 A10
Array
Redware
LVS (Linux virtual server) is a layer-4 network switching or routing software solution. It implements switching or routing through kernel framework module ipvs and a set of rules configured on the framework. Ipvsadm is a tool for configuring routing r
I. IntroductionLinux Virtual Server (LVS) is a Virtual Server in Unix-like systems and one of the most outstanding projects contributed to open-source organizations in China. LVS exists as a front-end (ctor) in Unix-like systems and is also called a scheduler. It does not provide any services, only requests that come in through the Internet are accepted and then forwarded to the real server running in the b
virtual IP from the upper IP addr, the instructions from taking over the service; switching speed quickly;After the Lord initiates the Keepalived service, the master binds the virtual IP, takes over the service;[[Email protected] keepalived]# IP addreth1: The NC command can scan whether the port is open:Scan on other machines, 11.100 and 11.101,11.110 80 ports open;#nc-Z-w2 192.168.11.110 80[Email protected] ~]# nc-z-w2 192.168.11.100 80Connection to
is located
Run the Redis-server.exe redis.windows.conf command to start the redis Database
Redis Setup Password
Opening:redis.windows.conf file
Ctrl+f looking for requirepass
Cancel the previous # sign and set your own password
Tomcat configuration Session sharing
1: Copy the required jar package to the Tomcat server lib directory
2: Configure conf directory under context.xml
Host= "127.0.0.1"
Port= "6379"
password= "Root"
database= "0"
Maxinactiveinterval= "/>"
Host: point to the IP
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.