# apt.llvm.org - moving from physical server to the cloud

DevFeed: [apt.llvm.org - moving from physical server to the cloud](<https://devfeed.tech/articles/apt-llvm-org-moving-from-physical-server-to-the-cloud-43082.md>)

Original publisher: [Read original article](<https://blog.llvm.org/posts/2021-11-02-apt.llvm.org-moving-from-physical-server-to-the-cloud/>)

Author: Sylvestre Ledru

Published: 2021-11-02T00:00:00Z

Content type: article

Language: en

Sources: [LLVM Project](<https://devfeed.tech/sources/the-llvm-project-blog.md>)

Topics: [Cloud](<https://devfeed.tech/topics/cloud.md>), [Google Cloud Platform (GCP)](<https://devfeed.tech/topics/google-cloud.md>), [Jenkins](<https://devfeed.tech/topics/jenkins.md>), [virtual machines](<https://devfeed.tech/topics/virtual-machines.md>), [configuration-management](<https://devfeed.tech/topics/configuration-management.md>), [saltstack](<https://devfeed.tech/topics/saltstack.md>), [systems](<https://devfeed.tech/topics/systems.md>), [data centers](<https://devfeed.tech/topics/data-centers.md>), [Debian](<https://devfeed.tech/topics/debian.md>), [Ubuntu](<https://devfeed.tech/topics/ubuntu.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [Linux](<https://devfeed.tech/topics/linux.md>)

Tags: [build](<https://devfeed.tech/tags/build.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [configuration-management](<https://devfeed.tech/tags/configuration-management.md>), [datacenter](<https://devfeed.tech/tags/datacenter.md>), [debian](<https://devfeed.tech/tags/debian.md>), [google-cloud](<https://devfeed.tech/tags/google-cloud.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [jenkins](<https://devfeed.tech/tags/jenkins.md>), [linux](<https://devfeed.tech/tags/linux.md>), [salt](<https://devfeed.tech/tags/salt.md>), [systems](<https://devfeed.tech/tags/systems.md>), [ubuntu](<https://devfeed.tech/tags/ubuntu.md>), [virtual-machines](<https://devfeed.tech/tags/virtual-machines.md>)

## AI overview

A case study of migrating apt.llvm.org from physical datacenter hardware to Google Cloud Platform. The migration uses Jenkins for distributed LLVM Debian/Ubuntu builds, Salt for configuration management, and virtual machines that start on demand.

## Source excerpt

In this blog post, I would like to explain how I migratedapt.llvm.org from physical hardware hosted ina datacenter to the Google cloud. This has resulted in better securityand faster builds for LLVM Debian/Ubuntu nightly builds. Previous infrastructure About 10 years ago, Nick Lewycky from Google offered to replace my mixof old and terrible servers with 16 blade servers in a chassis and acontrol server. Below are pictures of the front and back of theseservers, which have served us faithfully for 10 years: The hosting was sponsored by IRILL, atInria, next to Versailles. This setup was running using a PXE install with preseed to set upeverything on the 16 blades. While it served us very well for years, it is now holding us back. Some of the blades are dying; Old hardware - it takes from 4 to 7 hours per build; All blades are always on even if no build is executed; Even if it happened rarely, I had to drive to the DC to fix somesystems. New infrastructure As part of the OpenSSF initiative, Google andthe Linux foundation offered a budget to migrate this service on GoogleCloud Platform (GCP). As Jenkins has been working very well, I reused this approach andimported the previous configurations (available onhttps://github.com/opencollab/llvm-jenkins.debian.net/tree/master/jobs). I followed most of the tutorial provided on GCP, Using Jenkins fordistributed builds on ComputeEngine. The architecture is the following: Similar to puppet or chef, Salt is the configuration management toolused to configure the various systems. A salt server configures both theJenkins controller and the reference node. This node is a preconfiguredVM with all the dependencies and tools to start the build. This node ishalted most of the time and only started when the image needs to beupdated. For example, the list of Virtual Machines now usually looks like thefollowing screenshot: 5 build VMs - off after 5 minutes without activity The template VM (off as it is only started to update the image) The je