Community discussions

MikroTik App
 
DonFrancesco
just joined
Topic Author
Posts: 4
Joined: Thu Dec 03, 2015 4:47 am

Would it be possible

Thu Dec 03, 2015 5:07 am

Hi,

I have a very good question and I would like to know if it is possible to be done.

I have 2 web server, the Main server backup it self into the Secondary server every day, now would it be possible for the firewall to be able to switch automatically from the Main to the Secondary server without a humain intervention in case the main server becomes unavailable and go back the Main server when it is back online.
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Thu Dec 03, 2015 9:11 am

The easiest way is to use netwatch changing the nat rule you are using now for redirection to the first web server.
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: Would it be possible

Thu Dec 03, 2015 7:11 pm

As Jarda said, it is possible, but the main question becomes, how do you determine a server fault? That is stops responding to pings, or that it no longer is serving any web requests, or that it still servers web requests, but not any content.

A simple ping is easy to test for and use netwatch on, the other two require a more indepth test. You can write some scripts that will download a page every so often and take action based on the results.
 
DonFrancesco
just joined
Topic Author
Posts: 4
Joined: Thu Dec 03, 2015 4:47 am

Re: Would it be possible

Thu Dec 03, 2015 8:00 pm

Thank You very much both of you, I will look into it and do some test.

Who is online

Users browsing this forum: Bing [Bot], pe1chl, rextended, sstefanov and 136 guests