I have 2 LXC containers which are basically a twins (except MAC and IP). They are openvpn servers. Sometimes one of them just stops (entire lxc container). This happens once for few months.
What i plan to make are some kind of watcher scripts (bash) placed on each other which will ping themselves every 5mins or so. If one of them dies then second should somehow try to start another one. Or maybe it would be easier to place them on host.
Anyway, is it good approach? Or are there better solutions? I dont want ( i cant) to create cluster with second machine.
PS. Im aware that it doesnt provide ha on service lvl, but for now it would be sufficient solution.
What i plan to make are some kind of watcher scripts (bash) placed on each other which will ping themselves every 5mins or so. If one of them dies then second should somehow try to start another one. Or maybe it would be easier to place them on host.
Anyway, is it good approach? Or are there better solutions? I dont want ( i cant) to create cluster with second machine.
PS. Im aware that it doesnt provide ha on service lvl, but for now it would be sufficient solution.