We are heading into a world where the files of most users are hosted by 4 big companies in the US. This is the case for most home users, companies but also education and research institutions. If we want to keep our sovereignty over our data, protect our privacy and prevent vendor lock-in then we need open source self-hosted and federated alternatives. The internet and the web use a distributed and federated architecture. Now we have to make sure that cloud services follow the same model. This talk will cover how this can be implemented in a real world example. It covers how a 20 million user instance of Nextcloud can be scaled across different hosting centers and continents. It will cover high level concepts but also concrete Kubernetes, Ceph and MariaDB clustering setups.