Is the use of a load balancer based solution applicable for applications that are totally diferent?.

October 20, 2016 73 views
High Availability

I need high availability between two applications; however each application is different and I need to run one or the other at a given time. would the use of a floating IP address layer sitting on top of two load balancers work, with the application layer underneath, bearing in mind that each application is different, with common database and also unique data base for each system. A set of industrial files are fed into one app or the other, but not both at the same time. I am looking for a high availability solution, where we can swath between the systems.

1 Answer

I am not quite sure I understand your use case. If you want a single URL to sometimes return one application and at other times return the other application you could use a FloatingIP to switch between them by assigning the IP to one service or another (either directly to the application server or a load balancer specific to that application). If your goal is to make one or the other available at different times using the DigitalOcean command line client doctl with a cron job could accomplish this by switching which droplet the floating IP is pointed to. If there are other reasons for switching between applications it would just be a matter of applying the business logic used to decide which one will be served to a script that will take action of the floating IP if needed. If you can provide more details about how your configuration should decide which application to return it might be easier to recommend a solution.

Have another answer? Share your knowledge.