Piranha (attention to iptables and selinux issues)

Source: Internet
Author: User

Piranha is a set of tools that are officially provided by Red Hat, and are simple to install and configure, and can be deployed quickly.

Piranha Scheme schematic Structure Description:

The Piranha solution is a set of high-availability solutions based on LVS designed for load balancing

LVS runs on a pair of computers with similar configurations:

One as Active LVs Router (active LVs Router)

One as backup LVs Router (Backup LVs Router)

Pulse

The pulse process runs on the active LVS router and the backup LVS router

On the backup LVS router, Pulse sends a heartbeat (hearbeat) to the active LVS router IP check for normal

On the active LVS router, pulse initiates the LVS process and responds to the heartbeat from the backup LVS router

LVSD:

The LVSD process invokes the Ipvsadm tool to configure and maintain the IPVS routing table and initiates a nanny process for each virtual service on the READL host

Nanny

Each nanny process checks the virtual service state on the real host and informs the LVSD process of the failure and adds and deletes the Ipvs routing table

Send_arp:

If the backup LVS router does not receive a response from the active LVS router

He will call Send_arp the virtual IP address on the public network interface assigned to the backup LVS router, and send a command on the public and local network respectively to close the LVS process on the active LVS router, while initiating its own LVS process to dispatch the client request

1. Installation

LVS End:

Yum-y Install ipvsadm modcluster Piranha system-config-cluster php php-cli Php-common

Real Host side:

Yum-y Install Ipvsadm

2.lvs Terminal configuration

Start the Configuration Interface service

Service Piranha-gui Start

Set Login Password

Piranha_password

http://localhostip:3636

Environment Introduction:

VIP 192.168.89.10

LVS Main 192.168.89.81

LVS Preparation 192.168.89.82

Real 1 192.168.89.83

Real 2 192.168.89.4

Real 3 192.168.89.5

Set the public IP, private network IP can not be set

Set the IP of the backup host

Set VIP

Add a virtual host address

Modifying a configuration file/etc/sysconf/ha/lvs.conf

Change active = 0 to 1 to start the service, otherwise display down

Start Pulse Service

Service Pulse Start

3.real Host Configuration

You must enable the LVS configuration and use the client script in VLS to

Piranha (attention to iptables and selinux issues)

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.