Qt, OpenNebula and a CI System Running Millions of VMs


When I demand of us whether or no longer or no longer they know what Qt is, they’ve either by no manner heard of it, or know comely well what it’s miles. And veritably the of us who know what it’s miles, non-public weak it for instrument pattern, or simply built it because another portion of instrument wants Qt. For you who don’t know what Qt is, I’d declare with out quoting Wikipedia or our non-public web space, that Qt is a instrument platform with which you’re going to moreover with out concern fabricate instrument that after written as soon as, runs on all platforms supported by Qt. That manner that you have your calculator app running on an infotainment conceal conceal on your automobile, any desktop working machine, phone, tablet… you title it, but it would continuously bustle as a consequence of Qt. Of course, the quantity of supported target devices is sizable. Nonetheless so that you would possibly well make stronger all these target devices, we at The Qt Company might moreover simply unruffled be particular your app in actual fact works in all locations. That’s, where our Continuous Integration (CI) is accessible in.

We spawned over 4 million digital machines in the future of 2019, with the intent of attempting out one thing per chance you created. Qt is open offer. Any individual can suggest or put in power a brand contemporary feature or fix a bug they’ll moreover non-public came upon. Your commit would then be sight reviewed and thrown in the mouth of the CI. The CI’s job is either to easily catch the commerce and merge it into the code putrid, or reject it when it doesn’t circulate the sharp attempting out executed to it.

The abet bone of our CI is OpenNebula alongside with Coin. Coin is our non-public tool which monitors Gerrit for any changes staged for the CI. Coin within reason advanced in actual fact and does the work of figuring out what exactly wants to be built or examined. One staged commit in Gerrit causes a cascade of events where Coin requests OpenNebula for dozens of digital machines at a time adopted by but dozens if no longer tons of. One staged commit in Gerrit can in some cases develop over 2000 digital machines, running numerous Dwelling windows, Linux and macOS distributions. These digital machines bring collectively the contemporary code both natively and by tainted compiling to numerous target architectures / devices they generally moreover bustle computerized exams.

The necessary process of asserting the existence cycle of all these digital machines lands in the palms of OpenNebula. OpenNebula monitors the capability of our infrastructure and queues up all requests it ought to’t address but as a consequence of lack of computing capability on the servers. It keeps a fixed gaze on the servers watching that they respond and are healthy and takes them offline for maintenance if one thing goes amiss.

The orchestration of the digital machines occurs on the cruise. Coin is aware of what wants to be built, and in the seek recordsdata from for a digital machine it defines the quantity of CPU and RAM we love to non-public, all relying on the process at hand. OpenNebula takes care of setting up these digital machines straight the utilize of backing files over the network and no longer by doing leisurely deep clones out of the VMs.

Blended with an SQL database, OpenNebula shops the full recordsdata about what it has executed. This permits us to fetch that recordsdata and send it to Grafana for easy monitoring. There we are capable of extra visualize the tons in numerous time scales mixed with the graphs from the servers as well. And OpenNebula’s make stronger for personalized hooks permits us to avoid wasting numerous issues each time OpenNebula goes from one order to 1 other with a digital machine, extra allowing us to optimize or note the performance of our CI machine.

With the make stronger of VNC inner OpenNebula, we are capable of head in to the desktop conception and glance the development in the future of the digital machine, and presumably open debugging a declare. We are capable of moreover leave VMs up and running for longer periods of time, if we allow breakpoints in our mosey with the circulation in screech that in case of a check failure, we give up correct there and allow a developer to head in and non-public a watch.

Constructing OpenNebula is or will even be very easy. Now and then the pliability of a instrument will even be its downfall. If the instrument is simply too generic or works by dozens of plugins there’s a likelihood that the studying curve is simply too steep. Naturally, the extra that it’s most likely you’ll moreover commerce the behaviour, the extra you prefer to moreover resolution questions in regards to the way you desire it to work. OpenNebula within reason flexible in those areas in which it works, yes, but happily we non-public comely ethical documentation when it comes to those other tweaks—as a minimum in the event you demand me. And the OpenNebula dev crew hasn’t thrown in a bunch of plugins which might well be no longer linked to the core belief that’s gradual it.

The documentation in actual fact gives us with the form of self implementing drivers we utilize, and we even did so when we implemented the make stronger for Parallels. In uncover a replace of handiest running digital machines by the utilize of KVM (in Linux), we are capable of moreover bustle them in Parallels (in macOS). The code for the drivers isn’t very advanced either, so by taking a watch on the present code that it’s most likely you’ll moreover reasonably with out concern resolve out what or no longer it’s miles highly necessary save and whether or no longer that it’s most likely you’ll moreover non-public to open working by yourself driver.

The closing portion of the puzzle is then how OpenNebula in actual fact doesn’t care about how these fabricate servers came to be. We utilize MAAS to mechanically deploy our servers. After the entirely deployment course of, we non-public a server online which OpenNebula can join to. Add the server to the checklist and it’s miles animated to serve. Ta-da!

I’m wanting to non-public a look at if some day in the shut to future OpenNebula incorporates Grafana and MAAS as a section of their long-established transport… Despite the fact that this as soon as more starts to sound a piece love the plugin world where the complete lot appears to be like so advanced, when all you wished to avoid wasting was schedule responsibilities on hosts, correct? Maybe, infrequently, a tool is completely correct full and ethical enough to create its fashioned goal? Wasn’t Winamp in actual fact animated at 2.91? 😉

Tony Sarajärvi

CI Tech Lead at The Qt Company

Read More

Leave A Reply

Your email address will not be published.