Cluster a custom application


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Cluster a custom application
# 8  
Old 04-28-2019
thanks for your reply rbatte1




Code:

                                          (floating IP)
                                                |
                                                |

                               route all traffic on every port                                                             
                                             /      \
                                           /          \

                                         /              \

                          ServerA                                                                                                ServerB 
                          (APP)                           (Stopped App)

When App On primary server fails

Code:

                                          (floating IP)
                                                |
                                                |

                               route all traffic on every  port                                                           
                                             /      \
                                           /          \

                                         /              \

                           ServerA                                                                                                 ServerB 
                          (APP is Down)             (Sart App On ServerB)


My application does not work based on port and it has send and receive on different ports.


Moderator's Comments:
Mod Comment Changed QUOTE tags to CODE tags

Last edited by rbatte1; 04-28-2019 at 06:38 AM..
This User Gave Thanks to mhs For This Post:
# 9  
Old 04-28-2019
Any systemd or init script can be implemented in linux cluster as a resource.
So, you will need to write one of those, it should be fairly simple reading the docs.

Be sure to use resource group, as resources in it will follow constraint order, start from first defined to last, stop from last defined to first.

But, applications are mostly load balanced not clustered in classic way, as stomp mentioned.
Can you elaborate more on your application receiving data on any port, does it listen on thousands of ports Smilie

Using opensource with haproxy and keepalived one can do great things with backend app balancing and failover using VRRP.
Fairly short and simple configuration, unlike linux cluster which is a complex product.
Keep it simple, stupid if you can.

Hope that helps.
Regards
Peasant.
This User Gave Thanks to Peasant For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Sun cluster 4.0 - zone cluster failover doubt

Hello experts - I am planning to install a Sun cluster 4.0 zone cluster fail-over. few basic doubts. (1) Where should i install the cluster s/w binaries ?. ( global zone or the container zone where i am planning to install the zone fail-over) (2) Or should i perform the installation on... (0 Replies)
Discussion started by: NVA
0 Replies

2. Solaris

Sun cluster and Veritas cluster question.

Yesterday my customer told me to expect a vcs upgrade to happen in the future. He also plans to stop using HDS and move to EMC. Am thinking how to migrate to sun cluster setup instead. My plan as follows leave the existing vcs intact as a fallback plan. Then install and build suncluster on... (5 Replies)
Discussion started by: sparcguy
5 Replies

3. Red Hat

Custom HA agent - Red Hat Linux Cluster

Hi experts, I have some custom application which I need to make Highly Available using red hat cluster service. How do I do it? i know in /usr/share/cluster i shall find HA agents for well known services like Apache or Sybase but I want to write HA agent for my own. I tried looking up on... (4 Replies)
Discussion started by: pshaikh
4 Replies

4. AIX

How to add node to the cluster with stoping the application?

In the production hacmp 5.3 is running with three nodes but i want to add new node to cluster with out stopping the application ie with same resource group if any bady know pls help me. (1 Reply)
Discussion started by: manjunath.m
1 Replies

5. High Performance Computing

SUN Cluster Vs Veritas Cluster

Dear All, Can anyone explain about Pros and Cons of SUN and Veritas Cluster ? Any comparison chart is highly appreciated. Regards, RAA (4 Replies)
Discussion started by: RAA
4 Replies

6. HP-UX

Install application on UNIX cluster

Hi everyone, I have a new engagement where in I would need to install an inhouse server application in a HP_UNIX cluster. Please let me know how this should be done. Satish (4 Replies)
Discussion started by: satish_000
4 Replies

7. High Performance Computing

Building a Solaris Cluster Express cluster in a VirtualBox on OpenSolaris

Provides a description of how to set up a Solaris Cluster Express cluster in a VirtualBox on OpenSolaris. More... (0 Replies)
Discussion started by: Linux Bot
0 Replies

8. UNIX for Dummies Questions & Answers

How to custom application name in `ps -ef`?

A program named /usr/bin/aa.sh, two parameters: 11, 22. after start it, the row in `ps -ef` is almost like the following: root 12198 10278 0.0 Nov 25 pts/3 0:00.23 /usr/bin/aa.sh 11 22 but I want to change "/usr/bin/aa.sh 11 22" to one rule string, such as: "AA_11_22", how to... (1 Reply)
Discussion started by: linkjack
1 Replies
Login or Register to Ask a Question