<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jörg Domaschka on Medium]]></title>
        <description><![CDATA[Stories by Jörg Domaschka on Medium]]></description>
        <link>https://medium.com/@joerg.domaschka?source=rss-7f869a4a8a52------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*SSaFB5L9UtsRyJ0Vh-Og_w.jpeg</url>
            <title>Stories by Jörg Domaschka on Medium</title>
            <link>https://medium.com/@joerg.domaschka?source=rss-7f869a4a8a52------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 06:46:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@joerg.domaschka/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Come and Gone: one year operating Big Blue Button on a campus-scale]]></title>
            <link>https://medium.com/omi-uulm/come-and-gone-one-year-operating-big-blue-button-on-a-campus-scale-8db8ea36a940?source=rss-7f869a4a8a52------2</link>
            <guid isPermaLink="false">https://medium.com/p/8db8ea36a940</guid>
            <category><![CDATA[e-learning-platform]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[bigbluebutton-install]]></category>
            <category><![CDATA[pandemic]]></category>
            <category><![CDATA[bigbluebutton]]></category>
            <dc:creator><![CDATA[Jörg Domaschka]]></dc:creator>
            <pubDate>Wed, 31 Mar 2021 07:42:19 GMT</pubDate>
            <atom:updated>2021-04-01T08:31:23.523Z</atom:updated>
            <content:encoded><![CDATA[<p><em>On 1st April 2021 Ulm University will turn off their 30 node Big Blue Button cluster and switch video conferencing for teaching and meetings to Zoom. Almost one year ago to the day the pandemic and the resulting political decisions forced the country in a lock-down and set lecturers and IT operations the task to run the semester entirely virtual. Big Blue Button was the software of choice at our university back then and getting it up and running before semester start was a tight race.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eVPQ9rDv3PUi9SpX" /><figcaption>Photo by <a href="https://unsplash.com/@hazardos?utm_source=medium&amp;utm_medium=referral">Hassan OUAJBIR</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>An entirely virtual semester basically requires three types of software services: (i) an e-learning platform to organize teaching (for lecturers) and to serve as a single entry point for students. (ii) a platform to record, process, and ship teaching material produced asynchronously, typically screencasts of lectures. (iii) a video conferencing platform for synchronous teaching, be it for Q/A sessions, supervise Bachelor, Master, and PhD students, and running workshops. Needless to say, all three types of services need to scale for 10k students.</p><p>The approach followed at Ulm University was special in the sense that the CIO predicted an overload of network operators and any cloud services available for video conferencing. Hence, the decision was taken to host all necessary software in-house and several measures were taken to ensure the necessary network and compute capacities were available:</p><ul><li>In-house network bandwidths in the data centre were increased by a factor of four leading to 40Gbps and 100Gbps server uplinks.</li><li>At <a href="https://www.belwue.de/">BelWü</a>, the federal state’s ISP for universities running a 2x100Gbit fiber backbone network across the federal state of Baden-Württemberg, capacities for peering and transit to commercial ISPs were tremendously increased.</li><li>For each of the above mentioned software services, task forces were established with members from the university’s Communication and Information Centre (KIZ), but also dedicated experts from research institutes and further associated departments.</li></ul><p>Being member of the video conferencing task force got me rather quickly in the position of being responsible for preparing, scaling, and operating Big Blue Button as a “side task” to my regular position as a researcher; probably, I got the job, because I am good a fiddling with things I don’t have a clue about and because in our research we claim, we knew how to run things. From OMI, I got supported by <a href="https://medium.com/u/1e65c1d61efb">Simon Volpert</a> and <a href="https://medium.com/u/6da0244b8875">Georg Eisenhart</a>. BBB support came from <a href="https://www.uni-ulm.de/einrichtungen/saps/">Steffen Moser from SAPS</a>. First and second level support was taken on by <a href="https://www.uni-ulm.de/einrichtungen/kiz/">KIZ</a>.</p><h3>Big Blue Button</h3><p>BigBlueButton (BBB) is a client-server video conferencing software released as open source software under a GNU Lesser General Public License (LGPL). It has been used in production at Ulm University since 2012 at the <em>School of Advanced Professional Studies (SAPS)</em>. There, it is part of the students’ “virtual cloud-based desk” and it serves the purpose to enable a synchronous communication channel between lecturers and students.</p><h4>BigBlueButton Architecture</h4><p>Being a client server application, BBB software consists of an HTML5 client (available since version 2.2.0 released November 2019) and a multi-component server-side. A unique feature at client side is that BBB does not require the installation of additional tools, but can be used natively from almost any recent browser.</p><p>The set of sever-side components consists of custom components developed by the BBB team as well as existing open source tools. The most important of these are FreeSWITCH used for audio mixing and streaming (most CPU-demanding) and the Kurento WebRTC server used for video streaming and screen sharing (most network-demanding). Both of them have soft real-time requirements and failing to meet them will result in QoS degradation.</p><h4>Scaling BBB</h4><p>BBB’s distributed architecture principally enables distributing components across multi hosts. This, however, is not documented and explicitly discouraged. Instead, BBB developers and BBB community recommend to use the Ubuntu-based installation script.</p><p>The script depends on Ubuntu 16.04 and installs all required Ubuntu packages for all needed components be they BBB-specific or external such as nodejs, Redis, MongoDB, FreeSWITCH, Kurento … Overall, the dependencies between all of them are not documented which makes moving to a different distribution difficult. Even using a different Ubuntu version is considered to be non-trivial.</p><p>Due to this single-server set-up, the capacity of the server running BBB limits the maximum size of meetings that can be hosted by that server as well as the number of parallel meetings. What is more, even with vertical scaling, the components used by BBB do not scale to arbitrary extents.</p><p>Scaling horizontally is possible as using further servers increases the number of parallel meetings. Technically, the Scalelite Load Balancers provides the quickest way to set-up a BBB cluster.</p><h4>Release Management</h4><p>BBB components (for the current stable version 2.2) are exclusively released as deb packages for Ubuntu 16.04. A BBB release then consists of a set of versioned packages guaranteed to be interoperable. There is very little freedom for sys admins to change anything at that set-up.</p><p>While this is unpleasant, but can be accepted to some extent, the release management can be be described as chaotic. In particular in the beginning of the pandemic, the number of releases exploded leading to 1+ releases per week. In these releases, there was no separation between (i) fixed bugs, (ii) introduced new features. This led to cases where a new patch-level release fixed a critical bug, but also introduced a new feature. More than once, this new feature contained a new security problem requiring a new release which included some new features …</p><h3>Operations</h3><p>From lock-down to semester start, we had 12 days to provide a BBB cluster that would be used by (estimated) 5,000 students in parallel and more or less throughout the day. The SAPS had a single-server BBB installation running, so we could re-use their configuration as a starting point. Yet, they had no experience with running clusters.</p><p>Our estimate in the beginning was that we would need roughly 20 servers (indeed half a year later, we had 30 of them). We also knew that we would need to change things frequently in order to try things out and even update software while being in production (a terrible vision for a scholar like me). The hardware for running the services was provided by <a href="https://www.bw-cloud.org/">bwCloud</a>, a regional OpenStack-based cloud offering run by several universities in a collaborative manner. Running BBB in this private cloud allows us to foster real-time aspects of BBB using custom scheduling rules for BBB VMs.</p><h4>Operations Strategy</h4><p>The overall goals of operations were the following:</p><ul><li>Repeatably manage a large number of servers running in a cluster and providing a service that is being used for large portions of the day.</li><li>Not being experts for this software, frequent changes to the set-ups would be required. These include changes to the configuration, adding more servers, introducing the software releases.</li><li>Again, not being experts for the software, we would make mistakes and it should be very easy to roll back these mistakes; which is contradictory to the release management offered by BBB.</li></ul><p>With little time available we decided to do what we know best. In this case, this meant to adapt an operation strategy developed in the <a href="https://recap-project.eu/">RECAP project</a> and used to run our own infrastructure. This operations strategy is heavily based on Immutability as described in a <a href="https://medium.com/omi-uulm/the-vertical-immutable-infrastructure-pattern-ecd24b8af882">previous blog entry</a>. This, in turn, strongly depends on (reproducible) automation, containerization, and container orchestration.</p><p>Major steps for operating BBB following that strategy are:</p><ol><li>Containerization of BBB including BBB binaries and BBB configuration. There is no need to watch out for state in BBB, as there is none.</li><li>Describe the BBB deployment for an orchestration tool</li><li>Deploy virtual machines and orchestration tool</li><li>Add BBB deployment to orchestration tool</li></ol><h4>Operations Tooling</h4><p>We relied on tools we have been using for some years (which is good), but unfortunately also had run out of support or will do so soon (which is bad)</p><ul><li>Docker containers as containerization technology;</li><li><a href="https://rancher.com/docs/rancher/v1.6/en/">Rancher 1.6</a> as an container orchestrator (kubernetes does not work well with the UDP-based WebRTC demanded by BBB);</li><li><a href="https://www.openshift.com/learn/topics/coreos">CoreOS’ container operating system </a>as operating system for the virtual machines. Ignition files for configuring the operating systems. Rancher agents are running on each of them building the Rancher cluster;</li><li><a href="https://www.ansible.com/">Ansible</a> for starting virtual machines and for gluing the different steps together</li></ul><p>This article will not go into details about the deployment and orchestration, but exclusively focusses on the repeatable and versioned configuration of BBB within its container.</p><h4>BBB Containerization</h4><p>Containerization of BBB was not straight forward, but also not too complicated. We share our <a href="https://omi-gitlab.e-technik.uni-ulm.de/kiz/bbb/application-single/-/blob/v2.2.x/Dockerfile">early scripts and Dockerfile here</a> but did not find time to update the pages on a regular bases.</p><p>The major problem with the BBB releases is that you cannot go back. Once BBB 2.2.21 is out, there is no way to install 2.2.20 on a server. Hence, our primary concern was to build a versioned container for every release that became available. This base container was kept stable and immutable all the time.</p><h4>BBB Configuration</h4><p>A further problem with BBB containers is their size of 2+ GB which makes working with them slow, in particular for configuration changes. In consequence, when building the BBB containers, we ensure that all configuration files are at the upper layers of the container and that the latest container image would always be cached when configuration is updated. In retrospect, it would have been better to use configuration side-car containers that contain configuration files specific for our deployment scenario. This configuration container would exclusively consists of configuration files.</p><p>Most of the configuration files contain adapted, but static files (welcome message, supported codes, …). Yet, minor parts of the entire configuration needs to adapt to the host running that BBB instance. This is mainly the case for network configuration and dial-in support. For these cases, the files stored in the configuration container are templated and can be instantiated environment variables. <a href="https://omi-gitlab.e-technik.uni-ulm.de/kiz/bbb/application-single">The configuration is available here</a></p><h4>Updates and Changes</h4><p>There are three basic types of changes to be applied to a BBB installation: (i) changes to the operating system; (ii) changes to the BBB configuration; (iii) changes to the BBB version.</p><p>Following the concept of immutability, changes to the operating system were done by simply throwing away the virtual machine and re-installing the operating system. This kind of update was only necessary very seldom.</p><p>Changes to the configuration were applied by changing the respective configuration files in the git repository, building a new versioned container, and updating the BBB container through the orchestrator. We applies such changes several times a day in the first 8 weeks and very seldom afterwards.</p><p>Changes to the BBB version requires us to rebuild the BBB container from scratch, a task that takes ~1h to complete. Unfortunately, this new container could not immediately be shipped, as even patch level version can introduce new configuration options, change existing configuration options, and introduce new components that require new configuration files.</p><p>Due to that, after having built a container with a new version, we would scan the new container for configuration files and `diff` them against the configuration files of the previous version. Using the default configuration files in both cases, this process unveils all changes the programmers made to any configuration option. While this can be done automatically, migrating these changes to our custom BBB configuration files is a fully manual task just as deciding which values to chose for new configuration options.</p><p>When updating the production system, we usually did canary releases. That is, we removed one of the nodes from the load balancer, updated it, and ran some manual tests. In case of success, the node was put back into the load balancer and 2–3 more nodes were updated as well (the exact number depended on the time of the day and how many nodes were without a meeting). In case no increase in complaints and tickets at first level support were experienced, we updated up to 50% of all servers (automatically). The remaining 50% of all servers were updated at least 24 hours later.</p><h3>Discussion</h3><p>After being responsible for running BBB for one year I know more about operations that I had aimed for, more about BBB (and WebRTC in general) that I ever wanted to know, and more about users than … I do understand why first level support exists and why people are building up FAQs and Knowledge Bases.</p><p>Besides this, the last 12 months were successful in the sense that there was no major outage of BBB and only minor problems did show up with the platform. That fact that we were able to roll out new versions step-by-step and were able to easily roll-back broken versions helped a lot to minimize the number of people affected by a mistake on our side. Overall, we rolled out almost 100 versions of BBB during that time, 20 of which stemmed from new BBB releases; the others were changes in configuration or came from an increased feature set (IPv6 support, dial-in support, …).</p><p>A major weakness of our set-up is the load balancer that has originally been developed for schools with their very equal class sizes and hence meeting sizes. For university operation, Scalelite often failed to handle find good solutions for the large spread of meetings sizes ranging from 3 to 180+. Here, better scheduling algorithms are needed.</p><p>Yet, overall, the realization with the immutability concept worked fine and left us with roughly one day of work per week for BBB, at least after June 2020. Unfortunately, the tool chain we use has seen brighter days. All tools have run or will within a short time run out of support. It would have been “exciting” to port all functionality to new tools with the new semester just a few weeks away (we’ve been there). In the end, this situation motivated the political decision to move to zoom.</p><h3>With a tear in the eye…</h3><p>… we say good bye to Big Blue Button. Overall, I think, we were successful in bringing a 24/7 video conferencing installation to Ulm University’s lecturers and students. Thanks to all students participating in the early load testing. Kudos for the positive feedback we got here and there. And apologies for anyone unhappy about the service we offered. Be assured, we did our best.</p><p>It was a fun time (despite the strange pandemic times), but also a massive distortion to all research work and research plans. Thanks to my group for covering much of my unavailability and to our research partners for their understanding.</p><p>After shut-down, we keep the software artefacts available at <a href="http://release.bbb.uni-ulm.de/#/">http://release.bbb.uni-ulm.de/</a> hoping that they may be useful for someone else.</p><p><em>Note: </em>An extended version of this blog entry will appear as a series of three articles in <a href="http://doag/">Red Stack</a>, the magazine of the German Oracle User Group <a href="https://www.doag.org/de/mitmachen/zeitschriften/#c19415">(DOAG)</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8db8ea36a940" width="1" height="1" alt=""><hr><p><a href="https://medium.com/omi-uulm/come-and-gone-one-year-operating-big-blue-button-on-a-campus-scale-8db8ea36a940">Come and Gone: one year operating Big Blue Button on a campus-scale</a> was originally published in <a href="https://medium.com/omi-uulm">omi-uulm</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Vertical Immutable Infrastructure Pattern]]></title>
            <link>https://medium.com/omi-uulm/the-vertical-immutable-infrastructure-pattern-ecd24b8af882?source=rss-7f869a4a8a52------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecd24b8af882</guid>
            <category><![CDATA[coreos]]></category>
            <category><![CDATA[coreos-cluster]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[infrastructure-as-code]]></category>
            <category><![CDATA[immutability]]></category>
            <dc:creator><![CDATA[Jörg Domaschka]]></dc:creator>
            <pubDate>Tue, 22 Dec 2020 15:09:51 GMT</pubDate>
            <atom:updated>2020-12-22T16:33:23.377Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc-nd/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jOVWrcEuwW6yK4Rl" /><figcaption>Photo by <a href="https://unsplash.com/@rohittandon?utm_source=medium&amp;utm_medium=referral">Rohit Tandon</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This is the first of a series of blog entries describing our vertical immutable IT installation as well as the migration of a CoreOS/Rancher1.6 environment to a Fedora CoreOS/Kubernetes installation. The unique selling point of our set-up is that we do not use this tooling to manage applications on top of virtual infrastructure, but we use it to manage the physical infrastructure itself as well as virtual environments on top of it.</p><p><strong>In this specific blog entry</strong>, we describe the old status of our set-up before the migration. We further detail our concept of running the system, our motivations why we run it this way, and how we have set it up. This enables one person to operate our 100+ servers in a fraction of his time. The entry concludes with a discussion of the lessons learnt.</p><h3>Overview</h3><p><a href="https://www.uni-ulm.de/in/omi">We are a relatively small research institute at a German university (15 PhD students).</a> Our core research activity centres around orchestration, automation, and performance engineering IT installations (think software defined infrastructures).</p><h4>Our hardware infrastructure</h4><p>Despite our small group size, we run around 100 servers and manage two student labs. The servers are used for supporting our teaching and research work. We run multiple file servers, multiple GPU-backed servers for data analytics and AI, and multiple runners for the CI/CD activities in our gitlab. This part of the servers are located at one side of the university campus. The other servers are co-located with the HPC compute resources on a different part of the campus and operate a cloud infrastructure. All servers on one location are connected with 50 GBits and 100 GBits Ethernet fabric and connected with 10GBits to the university backbone.</p><p>The labs are used by students for working on their theses and for hands-on tutorials during the lecture seasons. Besides, we run a bunch of IoT devices (~200) for which we established a similar operational approach as detailed in the following, but this is subject to a later article.</p><h4>Our Software Services</h4><p>On the infrastructure level, we operate a myriad of different applications and tools. These range from basic services as NFS, Samba, DHCP and DNS over Backup, <a href="https://about.gitlab.com/">gitlab</a>, <a href="https://mattermost.com/">mattermost</a>, and <a href="https://www.elastic.co/elastic-stack">ElasticSearch </a>to rather complex installations such as <a href="https://spark.apache.org/">Apache Spark</a>. In particular, the second server cluster runs a full-fledged <a href="https://omistack.e-technik.uni-ulm.de/">OpenStack</a> installation.</p><p>In the labs, we manage Linux-based Desktop machines the students use for their work.</p><h3>Requirements</h3><p>In contrast to the amount of servers, there is a single employee formally responsible for running the entire infrastructure besides other tasks that person needs to fulfil. PhD students can support, but are usually more interested in pushing their research than administrating IT infrastructure. Hence, the team agreed that any time spent not working on the infrastructure administration, but on research is time well spent.</p><p>A few years ago, immutable applications were a trending concept introduced for applications operated on virtual infrastructure. Here, the immutability part would mean that applications are deployed as a whole in virtual infrastructure. While there are different ways this can be realized in practice, the takeaway message is that for implementing changes to your application, the virtual machine running the application is replaced with a new virtual machine running the updated software version. Users should never log in to any of these VMs to perform any manual changes, be they software updates or configuration changes. This concept is heavily inspired by the <a href="https://martinfowler.com/bliki/PhoenixServer.html">PhoenixServer </a>concept of Martin Fowler and does not rely on containers.</p><p>Even though the immutability concept was introduced for applications running on virtual infrastructure, we push it down one layer and apply it to our physical infrastructure. This means the approach needs to deal with physical servers, storage and switches, elements that cannot simply be destroyed and go away.</p><p>Hence, the solution has to fulfil the following set of requirements.</p><ol><li>In order to take into account the limited amount of humans resources, the approach should require very little maintenance effort. In particular, this means that in case of failures, it needs to be possible to very quickly move the server back in a known working state.</li><li>Considering the different types of IT environments we are facing (servers and Labs), the approach needs to work for headless servers as well as for Desktop PCs.</li><li>The approach needs to provide reasonable flexibility. In particular, the servers are not single purpose machines. Their assignment may change depending on the researchers’ needs, the time of year (semester or not) and the time of day.</li><li>This also means that the approach should not only tackle servers as such, but be also capable of taking into account the network equipment interconnecting the servers as well as connecting our clusters to the university campus.</li></ol><p>Even though not entirely necessary, we further introduced the requirement that workload (applications) should be decoupled from operating system management. This has a few practical implications that make the system easier and more flexible to manage.</p><h3>Technology Wrap-up</h3><p>At the core our infrastructure is operated using network boot-up enhanced by a stateless, containerized operation following the immutable infrastructure paradigm.</p><p>On the one hand side, this way of operation guarantees that nodes with identical functionality are configured identically and configuration drift is ruled out. On the other hand, it also ensures that after things have gone wrong (we are researchers!) or failures have occurred, nodes can be brought back in state known as working. This capability is also important for achieving reproducibility for experiments.</p><p>Overall, the immutability in our system is built on three pillars: <em>(i)</em> an infrastructure description and PXE boot; <em>(ii)</em> containerization of software components and a container orchestrator; <em>(iii)</em> a persistence layer that persists the minimum amount of state across server reboots.</p><h4>PXE Boot and iPXE Boot</h4><p>Preboot Execution Environment (PXE) is an interface to remotely configure a server at boot time. In particular, it allows to load operating system images over the network. Traditionally, this approach has been used to load the image of an installer and to run the software installation. An extended step is to run the installation image as well as an installation configuration remotely so that the installation can run automatically without any manual interception.</p><p>Later boot cycles would then access the hard drive and load the installed operating system. In our case all non-Desktop machines take this approach one step further: Installation instructions are executed at each machine boot and the actual installation step performed does not install to a physical disk, but to a volatile RAM disk. As installations are performed more often in that scenario, it is important that the installation process is quick and that the size of the installed operating system does not consume too much space on the RAM disk. What is more, injecting the configuration into the installation process should be supported. As described below, in our case, it is also crucial that Docker (or any container runtime) be natively supported.</p><h4>Container Linux</h4><p>Building on previous experiences and the requirements, we use the (by now outdated) <a href="https://coreos.com/">CoreOS Container Linux</a> operating system to run the physical installation of the testbed. Container Linux is limited in size, has native support for Docker as well as file based installation, and achieves short installation times.</p><p>For Container Linux, configurations to be applied during installation are specified as .yml files. These files describe the setup of the system including aspects such as network devices, IP addresses, daemon services to be started (based on systemd), files to be created, etc. During bootstrapping, the installer applies this configuration and creates the specified files and systemd services. As PXE per se does not allow the shipment of multiple files (including the configuration files), we make use the iPXE extension.</p><h4>Bootstrap Sequence</h4><p>In total, the entire bootstrap and orchestration process relies on a sophisticated orchestration of protocols and tools as shown in the following figure (Orchestration of Bootstrap process using DHCP, TFTP, PXE, and iPXE<br>Containerisation and Orchestration).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*-arR6yJQv270UZTncCub0g.png" /><figcaption>Orchestration of Bootstrap process using DHCP, TFTP, PXE, and iPXE<br>Containerisation and Orchestration</figcaption></figure><p>In the first step, once the server has finished its self-check, the BIOS PXE loader is started initialising the NIC including the use of DHCP for requesting an IP address. The response from the DHCP server contains boot information in addition to the IP address. In particular, it contains the fields next-server and filename, the location where to get the kernel image to boot the servers. The image that is loaded in that step is an iPXE boot loader. Once this bootloader is booted up, it will again initialise the NIC and request an IP address using DHCP. This time, however, the DHCP server recognises that this is an iPXE request and responds with an HTTP-based filename to load.</p><p>For our set-up, this file (loaded through HTTP) is an iPXE script that applies iPXE commands to fetch kernel, CoreOS configuration file as well as init ramdisk, and starts the boot process. The configuration file used for that purpose is dependent on the MAC address of the server’s NIC address.</p><h4>Matchbox</h4><p>We use the <a href="https://github.com/poseidon/matchbox/blob/v0.7.0/Documentation/matchbox.md">matchbox toolset</a> to realise this step of the operation chain. Matchbox consists of a simple web server and a thin wrapper layer that allows serving ramdisks, configuration files, and kernels based on the requesting client; i.e. different servers can get different configuration files, but also different kernels, if required.</p><p>This remote booting of fresh operating system installations based on iPXE and Matchbox in principle allows the operation of complex software architecture provided that the software components are encoded in the configuration file for the installation process. This process, however, is very invasive, when it comes to applying software updates or small configuration changes such as moving a specific service to a different physical node. In particular, the latter would require that a total of two servers be taken offline and rebooted.</p><h3>Orchestration</h3><p>Hence, a different approach is needed that allows more flexibility, but still supports reproducibility and consistency of software and configurations across servers and locations. Containers are able to provide the necessary stability. Specialised container images are built at a dedicated point in time (usually from a base image) and then stored in an image registry. From there, they can be accessed and installed on a server. As an individual image remains unchanged over time, the deployment of that image always yields the same software artefact, provided that the following pre-requisites are fulfilled: (i) the image itself is static and self-contained and it is not necessary to explicitly or implicitly install further software into the image once it is deployed; in particular, this requires that the image either contains the full configuration or the entire configuration is provided immutably at the start of a container; (ii) the naming schemas for a logical image provide a meaningful versioning; particularly, adding a new server to an installation should not install the latest version of an image that may be currently used for testing, but instead the very same stable version all other servers are using as well.</p><p>As with individual software packages, the iPXE/matchbox bootstrap mechanism can be used to deploy images on the servers. Yet, this still leaves us with the problems described above. Instead, container orchestration can help to provide a centralised management of the entire container-based installation of the software landscape. It further provides a centralised access point for software upgrades (replacing an image with an updated image of the same logical component). Finally, container orchestrators provide additional services such as DNS that ease the wiring between containers and hence, the creation of container images . While multiple orchestrators exist that are equally suited for our demands, the combination of Rancher and Rancher Cattle provides a sweet spot between complexity and features compared to more complex environments using Kubernetes/OpenShift and simpler environments such as Docker Compose and Docker Swarm.</p><p>As shown in the lower parts of the previous figure, once the operating system is booted, the server will contact the Rancher server and receive the set of Docker containers to run. The Docker images needed for that sake, are pulled from one or multiple Docker registries. Rancher itself is hosted on a dedicated additional node (the Cloud Deployment Orchestration (CDO)) to be described a separate article. This node also runs the DHCP server and Matchbox instance required for PXE booting. Using Rancher, services and service stacks are deployed from Docker compose files that describe the individual services, their respective configuration, and finally also their interdependencies.</p><h3>Infrastructure Description</h3><p>The mechanism based on PXE, iPXE, and matchbox described above enables us to boot fresh and tailored operating system installations whenever a server is restarted. A pre-requisite for that is, however, that configuration files are available for each and every server (while Matchbox supports more general configurations these have not proven useful in the past). While a manual creation of these files is possible, it is an error prone, time consuming step, and highly repetitive task.</p><p>For that purpose, we use an additional generation step that creates the files based on an infrastructure description. This infrastructure description comprises the servers including their names, NICs, as well as the wiring of the NICs in the network topology. This information is then fed into a parser that generates an installation file per server based on the server-specific information and adds general information such as user accounts, baseline services, and files. This process is sketched in the following figure together with other artefacts used in the Matchbox and TFTP servers (Configuration files and artefacts used in Matchbox and TFTP servers).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VPAR5q3KNRq9kWARaSVQ2g.png" /><figcaption>Configuration files and artefacts used in Matchbox and TFTP servers</figcaption></figure><h3>Persistence Layer and State</h3><p>The entire infrastructure set-up has been designed to be immutable and hence to have no volatile state. In consequence, all state we have discussed so far is either contained in the configuration file for the installation of Container Linux or in the Docker compose files stored in Rancher. To a very large extent, this information is sufficient and self-contained. However, there are smaller pieces of state at several locations that are either necessary persisting to ensure stability or worth persisting to increase deployment speed and recovery time. We briefly skim these aspects in the following. They are detailed in a separate article.</p><p>Being one of the two central elements of the set-up, the state of the CDO node is crucial to the functioning of the entire approach: For <em>(i)</em> PXE boot, it contains, the information of DHCP entries and on server configuration in Matchbox as well as the operating system images loaded during boot-up time. For <em>(ii)</em> deployment, it contains credentials for the Docker image registry and stores deployment configurations (services and service stacks) as well as information about which containers are running on which nodes.</p><p>For being able to recognise nodes when they come back online after a reboot or a failure, Rancher uses a UUID assigned per node. We persist this information on the nodes to speed up the time required to re-introduce nodes after a restart. Similarly, we persist the images as well as the states of the containers currently running on a node. This helps to improve recovery time as it avoids that all images have be downloaded from the registry. This improvement lowers the bootstrap time.</p><h3>OpenStack Deployment</h3><p>On top of the hardware we operate a private OpenStack cloud operated the Rancher orchestrator. OpenStack is a multi-tenant management software for Infrastructure-as-a-Service (IaaS). It provides access through a Web-based Dashboard or via a REST interface. At its core, OpenStack provides users the capabilities to operate a virtualised infrastructure. The OpenStack project features a few dozen sub-projects that realise OpenStack features . These have different status and maturity. In our installation, we run the following highly mature services:</p><ul><li><strong>nova (compute service):</strong> Provides the mechanism to start/stop/migrate virtual machines. Requires the operation of a hypervisor on the compute nodes.</li><li><strong>glance (image service):</strong> Provides the capabilities to store virtual machine images; and to snapshot running virtual machines.</li><li><strong>cinder (block storage):</strong> Provides iSCSI-based block storage that can be mounted to virtual machines.</li><li><strong>neutron (networking):</strong> Provides virtual networks and shields the data of different tenants from each other.</li><li><strong>keystone (identity service):</strong> Provides the central integration point for user and project management. Allows to set quotas and add new users.</li><li><strong>horizon (dashboard):</strong> Provides a user-friendly Web-based GUI for accessing OpenStack</li></ul><p>While we are currently running OpenStack Victoria, we have been operating OpenStack in an immutable way since 2017 and have also used the containerized approach to seamlessly update between different versions. The installation process can be seen in <a href="https://omistack.github.io/assets/video/omistack.mp4">this video</a>.</p><p>In order to host OpenStack, all physical nodes in the set-up run on CoreOS as a minimal operating system. On top of this, compute nodes run KVM as a hypervisor. Further, all compute nodes run an instance of a nova agent that orchestrates KVM (e.g. triggers the start of a virtual machine) as well as an instance of a neutron agent that orchestrates the network configuration (e.g. create a new virtual network). The remaining nodes do not run hypervisors. The storage node runs Glance and Cinder. The control node runs nova’s and neutron’s orchestration services as well as Keystone. The management node operates the Horizon Dashboard and a Reverse Proxy to support SSL Termination. Following our deployment schema, all of these applications run inside Docker containers.</p><h3>Summary and Outlook</h3><p>Summarizing, running our infrastructure following the vertically immutable pattern has helped us to increase productivity of our whole IT infrastructure despite the small man power we have available for managing it. Using containers and versioning further has further improved the overall stability and resilience of the set-up.</p><p>Further articles will consider bootstrapping of the CDO node and also detail the OpenStack deployment in more detail including the management of persistent state.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecd24b8af882" width="1" height="1" alt=""><hr><p><a href="https://medium.com/omi-uulm/the-vertical-immutable-infrastructure-pattern-ecd24b8af882">The Vertical Immutable Infrastructure Pattern</a> was originally published in <a href="https://medium.com/omi-uulm">omi-uulm</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>