# Spin Infrastructure Adventures: Containers, Systemd, and CGroups

DevFeed: [Spin Infrastructure Adventures: Containers, Systemd, and CGroups](<https://devfeed.tech/articles/spin-infrastructure-adventures-containers-systemd-and-cgroups-1628.md>)

Original publisher: [Read original article](<https://shopify.engineering/spin-infrastructure-adventures-containers-systemd-cgroups>)

Author: Chris Campbell

Published: 2022-07-15T16:45:02Z

Content type: article

Language: en

Sources: [Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering.md>), [Shopify Engineering - Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering-shopify-engineering.md>)

Topics: [Boot Process, passwd, systemd](<https://devfeed.tech/topics/boot-process-passwd-systemd.md>), [Processes](<https://devfeed.tech/topics/processes.md>)

Tags: [containers](<https://devfeed.tech/tags/containers.md>), [cos](<https://devfeed.tech/tags/cos.md>), [google](<https://devfeed.tech/tags/google.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [memory](<https://devfeed.tech/tags/memory.md>), [node](<https://devfeed.tech/tags/node.md>), [os](<https://devfeed.tech/tags/os.md>), [process](<https://devfeed.tech/tags/process.md>), [resource](<https://devfeed.tech/tags/resource.md>), [scalability](<https://devfeed.tech/tags/scalability.md>), [shopify](<https://devfeed.tech/tags/shopify.md>), [systemd](<https://devfeed.tech/tags/systemd.md>), [workflow](<https://devfeed.tech/tags/workflow.md>)

## AI overview

The article explains how Shopify Spin runs Kubernetes-based development instances in containers, with systemd managing initialization and workflows. It examines node instability and pod relocations linked to memory exhaustion after infrastructure changes.

## Source excerpt

The Spin infrastructure team works hard at improving the stability of the system. In February 2022 we moved to Container Optimized OS (COS), the Google maintained operating system for their Kubernetes Engine SaaS offering. A month later we turned on multi-cluster to allow for increased scalability as more users came on board. Recently, we've increased default resources allotted to instances dramatically.