Sponsored Content
Top Forums UNIX for Advanced & Expert Users Ha mailserver, is possible active/active with "constant" connection? Post 303045634 by Peasant on Sunday 5th of April 2020 03:52:15 AM
Old 04-05-2020
A small addon for active active - so traffic flows thru both haproxys.

You need 2 VIP address for keepalived, on one node first VIP is master, on another second VIP is master.
Both will be on one node in case of node failure.

Then, you add third entry on your DNS system (mymail.example.com) -> pointing to those two VIP addresses.
This is the record you 'attack' from outside with your clients.

Since both VIP IP addresses are always active, clients will be always be able to connect to both when DNS is queried.
Client attempts to make a connection to mymail.example.com ( one VIP is returned in RR fashion from the pool of two ) --> HAPROXY --> your mail server.

Setup sticky session in haproxy and make it listen on 0.0.0.0
Be sure to allow VRRP traffic between those two LB.

In case of failure, everything hicks wrote stands, clients connected to failed VIP will notice a short failover and reconnect to second node.
But only roughly 50% of those, since half of those went to another VIP using same DNS record.

Hope that helps
Regards
Peasant.
 

6 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Windows Active Network Connection Override

Hi All, I use two Network Connections at work: Wireless and LAN. Wireless network has no limitations, but LAN internet has a web filter. I start a download using my Wireless conn. (At this point, LAN is disabled) But when I activate my LAN connection my download stops immediately. LAN... (4 Replies)
Discussion started by: kalavkalav
4 Replies

2. AIX

Question about HACMP for active-active mode

Hi all, I am new to HACMP. So sorry for the newie question. But I did search the forum and it seems that no one asks this before. So if a 2-node cluster runs in active-active mode (and the same application), what is the benefit of using HACMP ? If it runs in active-stanby, it is easy to... (9 Replies)
Discussion started by: qiulang
9 Replies

3. Solaris

Link based Active Active IPMP

Hi, I need to configure 4 ip address (same subnet and mask) in one ipmp group (two interfaces) in an active active formation (link based). Can some one provide the steps or a tutorial link. Thanks (2 Replies)
Discussion started by: Mack1982
2 Replies

4. Shell Programming and Scripting

Extract text between two specified "constant" texts using awk

Hi All, From the title you may know that this question has been asked several times and I have done lot of Googling on this. I have a Wikipedia dump file in XML format. All the contents are in one XML file i.e. all different topics have been put in one XML file. Now I need to separate them and... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies

5. Linux

active mode ftp connection from linux

Hi, We have one java client which connects to a windows server through ftp in active mode and gets files. When we run this client on hp-ux, it is able to transfer 100k files. But when we run the same client on Linux server it is able to transfer only 200 files at max and it is hanging there... (1 Reply)
Discussion started by: urspradeep330
1 Replies

6. Shell Programming and Scripting

How do I calculate total number of active and non active hosts?

#!/bin/bash for digit in $(seq 1 10) do if ping -c1 -w2 192.168.1.$digit &> /dev/null then echo "192.168.1.$digit is UP" else echo "192.168.1.$digit is DOWN" fi done (3 Replies)
Discussion started by: fusetrips
3 Replies
cmmodnet(1m)															      cmmodnet(1m)

NAME
cmmodnet - add or remove an address or check whether an address can be added to a subnet or enable or disable a LAN interface in a high availability cluster SYNOPSIS
cmmodnet [-v] {-a|-r|-t} -i { IPv4_address IPv4_subnet | IPv6_address IPv6_subnet} cmmodnet [-v] {-d|-e} LAN_name DESCRIPTION
cmmodnet is used in certain high availability utilities, such as package control scripts and SGeRAC utility scripts for VIP management, to add or remove an IPv4 or IPv6 address to or from network interface connected to the subnet identified by subnet_name. In addition, cmmod- net can be used to check if an IPv4 or IPv6 address can be added to the given subnet identified by subnet_name. cmmodnet can also be used to disable or enable a LAN interface currently configured in a cluster. HP-UX examples of LAN_name can be lan0, lan1; Linux examples of LAN_name can be eth0, bond0. This command simulates a LAN interface failure or recovery in the cluster without changing the physical status of the interface. cmmodnet requires the user be a superuser(UID=0) or have an access policy of FULL_ADMIN allowed in the cluster configuration file. Non- superusers may only use this command to remove IP addresses. See access policy in cmquerycl(1m) or cmmakepkg(1m). Extreme caution should be exercised when executing this command (for puposes other than checking) outside the context of a package control script or SGeRAC utility script. In this capacity it should only be used to remove the relocatable IPv4 or IPv6 addresses of packages which have failed and are in the "halted" state or to disable and enable a LAN interface when absolutely necessary. Using it while the package is running could lead to loss of client connectivity. The user needs to make sure that an IPv6 subnet must be either site-local or global and must not be link-local. Options cmmodnet supports the following options: -v Verbose output will be displayed. -a Add the IPv4_address to the IPv4_subnet or add the IPv6_address to the IPv6_subnet -r Remove the IPv4_address from the IPv4_subnet or remove the IPv6_address from the IPv6_subnet -t Check only. Checks if the IPv4_address can be added to the IPv4_subnet or checks if the IPv6_address can be added to the IPv6_subnet -i IPv4_Address or IPv6_address Use the IP address given for the operation. This is a required parameter. -d Disable LAN interface configured in the cluster. This option simulates the LAN interface failure without actually bringing the interface down. There is no immediate effect if the LAN interface is already disabled or physically down. This option allows failover of IP addresses configured in this LAN interface to an available standby interface (HP-UX only). If no standby is available (HP-UX and Linux), the subnet(s) on this interface will virtually go down and packages monitoring the subnet(s) will be brought down or switched to another node; in the worst case a TOC could result if this is a failfast package. This option also implies that there is no effect on recovery of IP addresses and subnet(s) on this LAN interface if the physical status of the interface changes at later time. -e Enable LAN interface configured in the cluster. This option simulates a LAN interface recovery from previously disabled state. There is no immediate effect if the LAN interface is already enabled or physically down. RETURN VALUE
cmmodnet returns the following values: 0 Successful completion. 1 Command failed. AUTHOR
cmmodnet was developed by HP. SEE ALSO
cmhaltserv(1m), cmmakepkg(1m), cmquerycl(1m), cmrunserv(1m). Requires Optional Serviceguard Software cmmodnet(1m)
All times are GMT -4. The time now is 04:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy