---
title: Scaling and Recovery | Shopware Community Hub
description: >-
  Learn how Kubernetes scaling, Shopware pod splitting, backup planning, and
  local database backup workflows support reliable Shopware operations.
canonical_url: >-
  https://hub.shopware.comhttps://hub.shopware.com/learn/course/scaling-and-recovery
---

# Scaling and Recovery

# Scaling and Recovery

Running Shopware in production is about more than keeping one pod online. The shop needs to stay usable when traffic changes, background work grows, pods restart, or data needs to be recovered after something went wrong.

This course focuses on two connected operational questions: How should Shopware workloads scale, and which data must be recoverable? You start with scaling and high availability in Kubernetes, then split Shopware into web, worker, and scheduler pod types. After that, you move into backup planning and test a local MySQL backup workflow with a Kubernetes CronJob.

<Callout title="Scaling and Recovery Depend on the Hosting Model" type="info">

The Kubernetes examples in this course are useful when your team operates containerized workloads directly. In managed-hosting or PaaS setups, the same questions still matter, but the provider may supply parts of the scaling, backup, restore, and availability model. Your task is to understand which responsibilities stay with the project and which ones the platform covers.

</Callout>

Throughout the course, the learning flow moves from workload availability to recovery mechanics:

- First, how replicas, probes, disruption budgets, resources, and HPA support availability and scaling.
- Then, how Shopware web, worker, and scheduler responsibilities can be split into separate Deployments.
- Then, how backup planning separates runtime persistence from recoverable data.
- And finally, how a Kubernetes CronJob can create and verify a local MySQL dump for learning purposes.

<LearningObjectives>

- Understand how Kubernetes supports high availability with replicas, probes, disruption budgets, placement rules, and resource settings.
- Distinguish horizontal scaling, vertical scaling, HPA, and Shopware pod splitting.
- Split a Shopware workload into separate web, worker, and scheduler Deployments.
- Identify which Shopware data must be recoverable and which data can be recreated.
- Understand why a PVC is runtime persistence, not a complete backup strategy.
- Build and verify a local MySQL backup workflow with a Kubernetes CronJob, PVC, helper pods, and `kubectl`.

</LearningObjectives>

## Learning Approach

This course combines conceptual understanding with two focused practical labs.

The first units build the mental models:

- How Kubernetes keeps workloads available.
- What scaling means for Shopware web, worker, and scheduler responsibilities.
- Why runtime persistence and backup recovery are different concerns.
- Which Shopware data must be recovered and which data can be recreated.

The practical labs then make two key ideas visible in Kubernetes: Splitting a Shopware workload into dedicated pod types and creating a local MySQL backup flow with a CronJob.

The examples use Kubernetes, `kubectl`, Deployments, Services, labels, selectors, CronJobs, Secrets, PVCs, helper pods, and local dump files.

By the end of the course, you will not only know the individual Kubernetes objects, but also how they fit together in a production-oriented operating model: scale intentionally, separate workload responsibilities, and plan recovery before an incident happens.

Ready to connect scaling, pod responsibility, and recovery in one operational flow? Then start with Unit 1 and follow the course from workload availability to tested backup mechanics.

## Learning Units

## Units
- [Scaling and High Availability in Kubernetes](https://hub.shopware.com/learn/unit/scaling-and-high-availability-in-kubernetes): Learn how Kubernetes supports high availability and scaling, and how Shopware workloads use replicas, HPA, resources, and pod splitting.
- [Measuring Load and Capacity for Shopware](https://hub.shopware.com/learn/unit/measuring-load-and-capacity-for-shopware): Learn how load testing and capacity signals help Shopware teams decide what to scale before changing infrastructure.
- [Practical Lab: Shopware Pod Splitting in Kubernetes](https://hub.shopware.com/learn/unit/practical-lab-shopware-pod-splitting-in-kubernetes): Split a small Shopware Kubernetes workload into separate web, worker, and scheduler Deployments, then verify and scale the setup with kubectl.
- [Backups in Kubernetes](https://hub.shopware.com/learn/unit/backups-in-kubernetes): Learn how to plan backups for Shopware workloads in Kubernetes, decide which data must be recoverable, choose storage outside the production blast radius, and…
- [Practical Lab: Backing Up MySQL Locally in Kubernetes](https://hub.shopware.com/learn/unit/practical-lab-backing-up-mysql-locally-in-kubernetes): Create a local Kubernetes backup flow for MySQL with a CronJob, a backup PVC, and kubectl-based checks for inspecting and copying the dump file.
