Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

What would the best pratice for redundancy with VM's be?

If you have a question or need help, this is the place to be.
Post Reply
Mastiff
Experienced User
Posts: 872
Joined: Thu May 03, 2012 10:43 am

What would the best pratice for redundancy with VM's be?

Post by Mastiff »

I have everything (EventGhost and Girder, with hardware) running on a virtual machine on my physical server, mostly since I then have the option to fire up a mirror on short notice if something goes very wrong, and since the Xeon server just about never messes up). The problem is that some hardware can mess up at times on my setup with USB over TCPIP, which I run since USB-sharing with VMWare is too unstable. And of course that always happens when I'm away and/or when my wife or daughter wants to do something. And last week it even made my daughter's room go up to 27 degrees while she was sleeping, so she got a rather bad headache. Which is not popular... :shock: So I have been contemplating a few different versions. What I have is an RFXtrx running on EG, and an USB-UIRT running on Girder. The USB-UIRT isn't as critical as the RFXtrx since it only controls audio/video. Still it's a treat annoyance when it fails.The RFXtrx is critical since it gets temperatures from all rooms and turns off and on heaters in them, plus open the garage door and a lot of other stuff. So I'm going to do as I have done at my cabin (there it's mostly because of interference) and add a Tellstick Duo, which runs under OpenNetHome and reports to EG via Krambriw's great plugin. Both of his plug-ins for these types of hardware (for ONH and RFXtrx) reports on loss of contact with an event, so it's no problem to automate this. I'm just a bit unsure as to what's the best way of doing this:

1. The simplest would probably be having the Tellstick only as a backup solution, to turn off power to the USB over TCPIP box and turn it on again and then have EG reboot the VM, which always fixes the connection. The RFX would turn off the USB over TCPIP box for the Tellstick then EG would reboot the VM when that is lost, so they sort of take care of each other.

2. A bit more complicated version would be to have a fully redundant system on one VM with the above setup in addition to a separate heater script where the Tellstick also receives the temperatures from the sensors and also turns off and on heaters. The script would be almost identical, only with a two second wait before sending to the heater. That way I avoid the signals from the two units interfering with each other.

3. The most complicated but probably most secure version would be to have two separate VMs, running like the system above. One with the RFXtrx and the USB-UIRT running as the main system and the redundant one with the Tellstick both doing exactly the same job (with two seconds delay). No problem to set it up, and I would assume that it would be more secure since a crash in EG on the main system could be caught (for instance with a function that listens for commands from the RFXtrx and does the off/on and reboot dance if there are nothing sendt for so and so long).

What would you guys choose from this? Stability is paramount, I'm just not sure if there will be much stability to gain from complicating things too much (especially since I haven't had crashes in EG or Girder or ONH for a long as I can remember except for when I'm changing stuff in the system).

What I won't do is to add more systems (hardware or software) to the settings, so using a Raspberry Pi or something isn't really an option in this. :mrgreen:
Mastiff
Experienced User
Posts: 872
Joined: Thu May 03, 2012 10:43 am

Re: What would the best pratice for redundancy with VM's be?

Post by Mastiff »

So nobody has anything to chime in with on this? Dissappointing. :cry:
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: What would the best pratice for redundancy with VM's be?

Post by Sem;colon »

Hi Mastiff,

I don't think there are a lot of people here that run EG in a VM - as you know VMs have the downside that they can't communicate very well with hardware that's attached to your host.
I don't use a VM for multiple reasons, one for example is, that my Server is my HTPC.
As you see, I can't tell you any experience on this, but if you like to hear my opinion, I would go for 1: The other soulutioins don't sound more secure to me, just more complicated.
If you like my work, Image me a drink :wink:
Mastiff
Experienced User
Posts: 872
Joined: Thu May 03, 2012 10:43 am

Re: What would the best pratice for redundancy with VM's be?

Post by Mastiff »

Thanks! It's the one I'm leaning towards myself, I alredy have a working version at home. But as for hardware, if you're thinking about USB I don't use that at all. I use USB over TCIP, both with USB print servers (TPLink) and connecting the hardware to the physical server, but sharing it through a USB over TCPIP program. The USB implementation of VMWare is hysterically unstable (well, hysterically in my standards - I had around one fail every two weeks), so that's not really usable at all. :mrgreen:
Post Reply