In this post I will get into some additional findings from our deployment and also tie all our findings into the deployment of ElectricAccelerator in a virtual environment.
You can find part one of this article here.
Odds and Ends
Virtual Machine Disk Space
It is important to generously size the disks for the virtual machines. It is a hard balance as you don’t want to waste all your precious disk space on the virtual machine server or SAN. Keep in mind, though, that OSes tend to grow over time, as service packs are installed, logs grow etc.
It is, of course, a good idea to keep the virtual machines in good working order, especially if they are long lived. With service packs being released continuously, it is important to have a few free gigabytes around to unpack and install that download.
When it comes to staying compliant, the current virtual infrastructure offers its own set of challenges. Licensing falls into three main categories:
- Per user licensing
- Per machine/core licensing
- Volume/site licensing
The enforcement of these models varies among vendors, and can make virtual machine deployment very hard. This section mainly describes the challenges we have encountered, and, where possible, I will point out solutions.
- Per user licensing can be tricky when you opt for a “generic” user account. If you have virtual machines that all just have an account called “build”, and you have paid for a single license for that the account, you are probably not in compliance. Technically, this may work, but legally it is potentially problematic.
- Per machine licensing is challenging in virtual environments, as many vendors key the license off the MAC, which will have to change for every deployed machine. It very much depends on how long lived the machines are. For machines that are permanently deployed, this is not an issue if you just ensure that you have a proper license for each of the machines. For machines that come and go frequently, you may want to check with the software vendor to see about a more centralized/floating license model for the tool.
- For volume licensing, you generally end up with a license key for everyone, or a centralized license server. In either case, you should be problem free.
One resource that might help specifically with licensing questions around Microsoft Windows is Emma Explains Microsoft Licensing in Depth!. In general, it’s a good idea to check with the respective software vendors to verify their policy.
So What About Running ElectricAccelerator in Virtual Machines?
Ok, so far this was kinda generic, so now you want to know how this all relates to ElectricAccelerator. Here are some guidelines specific to ElectricAccelerator when it comes to virtual environments:
- Emake will happily run in a virtual machine, but because it is essentially a file server, it’s worth ensuring that slower virtual machine I/O performance doesn’t create a bottleneck. This is less of an issue if the build directory is on a mounted file system, but the emake machine is still the main bottleneck in this setup, so the more horsepower it has (cpu as well as disk I/O), the better for the overall build.
- Running ElectricAccelerator agents in a virtual machine is certainly not a problem, and should scale in accordance with the aforementioned constraints. Make sure that the disk I/O requirements are appropriately addressed in your virtual setup.
- Running the ElectricAccelerator cluster manager in a virtual machine should work fine. In this scenario, you don’t want to upload large annotation files with all your builds (that is generally not recommended due to the high disk volume). You may also want to use a remote database for your cluster manager, as databases tend to have high demands on disk I/O as well.
- When using antivirus software in your virtual machine, you will see a performance hit due to extra overhead of scanning files. The general recommendation is to at least exclude the ElectricAccelerator agent’s caching directories, as well as temporary directories, from scanning. From a security perspective, this is not an issue, as all the files stored in that cache will eventually be sent to the emake machine, which should have antivirus software installed. This means that files are scanned only once when they are written to disk on the build machine.
- We opted to keep some physical backups around for corner cases in development/debugging and as a backup.
- Virtual infrastructure works great for our testing and debugging, and has allowed us to stay on top of an ever-increasing number of machine configurations.
- Disk space management remains a challenge. Our virtual infrastructure solution provides ways to build virtual machines off common templates, a boon for disk space saving. However, users can force a local copy of those images (intentionally, or unintentionally), which can quickly increase disk space usage.
- Virus Scanner support for dynamically deployed machines is challenging. So far the solutions we have found do not do well with some of the more advanced capabilities of virtual machine deployments (fenced mode, etc.). We will probably have to wait and see what antivirus vendors come up with.
- License management, in general, is a challenge.
Latest posts by Electric Cloud (see all)
- Key Takeaways from Continuous Discussions (#c9d9) Podcast, Episode 85: Pipeline Analytics and Insights - March 16, 2018
- DevSecOps – It’s Not Me or You, It’s WE! - March 12, 2018
- Key Takeaways from Continuous Discussions (#c9d9) Podcast, Episode 84: Software & Pipeline Architecture for DevOps - February 16, 2018