High-efficiency application of HTTPD service and integrated resource management for front-end httpd+heepalived plus back-end HEARTBEAT+NFS+DRBD
This article four machines: Centos6.0
LV1, Lv2 Two machines do httpd front-end, use keepalived do high availability, virtual out a VIP for client access.
Node1, Node2 application DRBD technology to achieve file image storage, virtual out a VIP do nfsserver_ip for httpd service, convenient configuration, the unified management of data;
involving applied technology; httpd, keepalived, DRBD, NFS, Heartbeat
As shown in figure:
lv1:192.168.182.130
lv2:192.168.182.129 vip:192.168.182.200 the VIP for client access
node1:192.168.182.133
node2:192.168.182.134 vip:192.168.182.150 The VIP acts as a nfsserver to mount
First shut down the SELinux, iptables; Of course, the real environment is not the case, we do separate configuration can
First, start configuration, LV1, LV2; test front-end is normal
1, respectively implementation: Yum install-y httpd ipvsadm keepalived
In order to separate out LV1, lv2 page differences, respectively, in the page identification Lv1, LV2