while true {
fetch http://otherserver/ || service onestart myservice
sleep(1000)
}
storvi_net said:I think you misunderstood CARP.
CARP is the way to use one virtual IP, which can be switched from a master to a slave.
ondra_knezour said:It depends what you mean as "take over". Start some services? Maybe some simple script like the following pseudocode for the http service may be enough?
Code:while true { fetch http://otherserver/ || service onestart myservice sleep(1000) }
I would also investigate, if carp(4) may be used over the IP tunnel like gif(4) or any other VPN solution. Then you can use the devd(8) notification to do your take over, for example start some services, change DNS settings, propagate something via BGP etc.
BTW did anyone was successful in making corosync work on FreeBSD?
corosync claims it can run on FreeBSD.Last time I triedI also want to know this.corosyncclaims it can run on FreeBSD.
corosync it used about 100+ MB for each node (at Linux), can not recommend it.Last time I triedcorosyncit used about 100+ MB for each node (at Linux), can not recommend it.