1

I want to know is it possible to failover 2 Redhat physical nodes. both nodes are identical and they dont have any shared storage. I want to failover two separates redhat physical nodes when NodeA goes down all requests route to NodeB. I dont have any specific service like apache,nginx,mysql ,.... and therefore I cannot define resource like mysql,nginx,apache.... . is there any solution for routing all traffic on every ports to primary server and when it goes down all traffic route to secondary server?

I know UCARP can provide failover based on IP for my servers but I want to know is there a better way to failover two nodes based on availability of OS.

Mhs
  • 33
  • 4

2 Answers2

2

Red Hat has documentation for this.

CREATING A RED HAT HIGH-AVAILABILITY CLUSTER WITH PACEMAKER

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/high_availability_add-on_administration/ch-startup-haaa


While you don't have a specific cluster-aware service, you can still define a virtual IP as a resource and have that shared between nodeA and nodeB.

Point your services to the floating virtual IP and use that as the failover service.

ewwhite
  • 197,159
  • 92
  • 443
  • 809
  • Thanks for your reply. But I want to know is is possible to Failover based on availability of OS? – Mhs Apr 30 '19 at 12:47
  • Yes, this is in the documentation – ewwhite Apr 30 '19 at 13:11
  • I cannot find any information about OS availability on mentioned Documentation. Samba LVM HTTP and NFs is only available on documentation. – Mhs Apr 30 '19 at 14:07
  • Be creative. Think about what Pacemaker is monitoring: the health and availability of a node. – ewwhite Apr 30 '19 at 14:27
0

If I understand correctly your primary target is to setup HA for application server and db server if so, another option is with haproxy and keepalived please check this reference https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/load_balancer_administration/keepalived_install_example1 with same way you can do load balancing for nginx, mysql, apache and many more. Also haproxy gives you monitoring facility with stats and lots of other features.

asktyagi
  • 2,860
  • 2
  • 8
  • 25
  • No. I want to Setup HA based on OS availability. I dont have any specific service like DB , mysql , nginx and so on. – Mhs May 01 '19 at 17:31