0

Need to implement active/passive topology for a Java instance.

The requirement is if active becomes unavailable due to some reason then passive takes over active and active becomes passive.
It's just a java application which just putting data into DB after doing some processing on it.

Two Questions:
1. How to handle active/passive instances.Is there any third party API that can be applied?
2. What should be the proper handling of the instance which went down i.e. the active one?

bittu
  • 786
  • 7
  • 14
  • Is this java application has some http endpoint or at least available via TCP? – VitalyZ Jul 20 '17 at 13:40
  • Nope. it's standalone java application. – bittu Jul 20 '17 at 13:42
  • How do you plan to check for application instance availability? – VitalyZ Jul 20 '17 at 14:02
  • 1. If there is a GC long pause that means application struggling with memory so better to drop it. GC optimization is different aspect that can be looked at but to recover from that point I think its better flip the instances. – bittu Jul 20 '17 at 14:42
  • If there are OOM exceptions, any other errors which has actually stopped the application to respond then better to flip the instances. – bittu Jul 20 '17 at 14:45
  • IMO, you are better off using a separate orchestration solution (swarm, kubermetes, open-shift, fabric-8, aws, etc, etc) then trying to bake this into the app.... – JoeG Jul 20 '17 at 19:26
  • how did you finally build this solution ? – yathirigan Sep 22 '17 at 14:49

0 Answers0