Lab Environment:redhat6.5 version Virtual machine 3 units:server1:172.25.44.10, Memory 1024m,cpu dual Coreserver2:172.25.44.20, Memory 512m,cpu single coreserver3:172.25.44.30, Memory 512m,cpu single coreThese three virtual machines iptables are off and SELinux is disabled state.the difference between Apache and Nginx :Nginx's advantages over Apache: Lightweight, also Web services, Nginx consumes less memor
variety of load balancing policies, can achieve SQL statement-level load balancing; The automatic fault monitoring, virtual IP and failover technology are integrated to meet the requirements of high-availability system construction. When data is replicated, synchronous and asynchronous replication modes are used to realize real-time synchronization of data betwe
(192.168.60.200:80) (Weight set to 1)LDIRECTORD|2563] Deleted fallback server:127.0.0.1:80 (192.168.60.200:80)LDIRECTORD|2563] Added Real server:192.168.60.144:80 (192.168.60.200:80) (Weight set to 1)As can be seen from the log, Ldirectord first loaded a virtual IP 80 port, then loaded two real server node 80 port and the Director server Native 80 port, while the real server two node weight is set to 1, Since two nodes are available, the 80 port of t
the proxy function of the Apache load balancer mod_proxy moduleThis is just the first time in the experimental environment to achieve Apache Agent, the implementation of the process is relatively simple, I am on a virtual machine (IP:192.168.1.116) using yum installed httpd,php and Tomcat,apache-tomcat-7.0.56. First step:yum installs httpd,php. After installation
Objective First to the big guys for a year, I wish you all: the New Year health Kang, safe! The formation of this article refers to a lot of people's blogs, the most should be the green years of the brother of this blog, we can first go to see, familiar with some content, because this article is direct practice, some theoretical knowledge needs to be supplemented by their own.This article is in my previous environment LVS + keepalived + Nginx + Tomcat to achieve master-slave hot standby +
1. Introduction to Linux virtual serversLinux virtual server (LVS) is a high-availability server Load balancer cluster system. The system can provide Load Capacity proportional to the number and performance of server nodes, effectively improving service throughput, reliabili
One, reverse proxyDescription: There should be an Nginx server with multiple application servers (which can be Tomcat), this article uses a virtual machine, installs an nginx, multiple tomcat, to simulateUpstream Tomcats{server 192.168.25.148:8080;server 192.168.25.148:8081;} server { listen ; server_name tomcat.taotao.com; #charset Koi8-r; #access_log logs/host.access.log main; Location/{ proxy_p
Build LVS Load Balancer Pre-set on Linux,centos7
Prepare five virtual machines
Four sets of Centos7
One to do scheduling one to do NFS cache
Two do Wed clusters
One windows7 begins to be configured individually
Configure Server for NFS (CENTOS7 is used to download the source code package online, but in order to do the experimen
The previous article on the introduction of load Balancer LVS has explained the principle of lvs-dr, this article mainly introduces its implementation process in MySQL application:Test environment: 4 virtual machines are CENTOS6 operating systems, using the system's own MySQL package installation test:650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/74/
devices;The client accesses the virtual IP address to obtain the service;Haproxy is a server Load balancer software that forwards requests to different hosts according to policies to achieve load balancing;Can realize judgment and allocation at the network layer or application layer;
Mysql enables binary logs to achie
From: http://blog.s135.com/post/307/
DNS round robinDNS round robin refers to interpreting the same domain name to different IP addresses and randomly using a host technology. However, it has obvious disadvantages: Once a server fails, even if the DNS settings are modified in time, it still takes enough time (refresh time) to take effect. During this period, the client computer that saves the address of the faulty server cannot access the server normally. DNS
I. Introduction of keepalived SoftwareKeepalived is a software based on the VRRP protocol to achieve high availability, it can solve the problem of single point of failure, through the keepalived to build a highly available LVS load Balancing cluster, keepalived can also detect the running state of the background server.Ii. Introduction to the principle of VRRP protocolVRRP (Virtual Router Redundancy protoc
: 9003 loadfactor = 1 route = jvm4
The above four BalancerMember members are the tomcat cluster we configured. It will be explained later. 1.2. httpd-vhosts.conf settings are followed by virtual host settings. APACHE's VM settings are as follows: first modify conf/httpd. conf to find (# Include conf/extra/httpd-vhosts.conf) and remove the comments. # Virtual hostsInclude conf/extra/httpd-vhosts.conf add at
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 source code released by the open source rules. Based on Red Hat's continuous upgrade, and fixes for known bugs, CentOS is more used to build large enterprise-class servers. At present the newer version is 7.0, this article uses the CentOS7 64bit to buil
Prepare for three virtual, all CentOS6.5 x86_64Note that the port consistency is maintained during the configuration process.Director (Eth0 192.168.1.189, VIP eth0:0: 192.168.1.18) Director 78Real Server1 (eth0 192.168.1.207, VIP lo:0:192.168.1.18) Server1 78Real Server2 (eth0 192.168.1.208, VIP lo:0:192.168.1.18) Server2 781, configure the static IP, installation test httpd (two sets of realserver to do)[email protected] ~]# Yum install-y httpd[[emai
Tags: des blog http io os ar for strong dataFirst, the environmentMaster (Host a): 192.168.1.1Slave (Host B): 192.168.1.2W-VIP (write): 192.168.1.3R-VIP (Read): 192.168.1.4Client (test): 192.168.1.100Operating system version: CentOS release 6.4MySQL database version: 5.6.14Keepalived version: 1.2.7LVS Version: 1.26All environments are virtual machinesSecond, design ideas1. Server A and B, synchronize the data through the MySQL slave process.2. Enable
, which is the VIP address above, is shared by the director server and all real servers,If there is an ARP request VIP address, the Director server responds with all real servers, and the problem occurs.Therefore, the real server needs to be prevented from responding to ARP requests.Third, configure the Tomcat service on the real server, slightly. To build an HTML file in 192.18.8.5, the contents are:This is the test pageFrom server 192.168.8.5To build an HTML file in 192.18.8.6, the contents ar
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.