Quantum-Cli 2.5.0#
The advantage of the Planetary Quantum cluster architecture is that additional worker nodes can be added at any time, allowing our customers to horizontally scale running systems without downtime. In practice, it sometimes happens that complete stacks need to be moved from one cluster to another, whether for organizational reasons or, for example, due to required resources.
Our latest quantum-cli release provides a new sub-command “migration” that helps with exactly this. Often, simply moving or redeploying the stack alone is not enough. Stacks contain databases or content maintained, for example, through a CMS or shop system. These so-called data volumes and their contents usually need to be moved as well.
Overview#
quantum-cli migration reads the configuration of the currently running stack and automatically copies volumes and Docker config objects to the target cluster.
Creating copies on the same cluster is also possible – e.g., for creating a test environment (“test stacks”) of a production application.
Unfortunately, moving a complete application is usually not entirely possible without manual effort: at minimum, DNS entries need to be changed afterward, and application-specific configuration needs to be adjusted.
We also recommend stopping all traffic to the application in the ingress/load balancer beforehand, and in some cases (databases, etc.) also background processes of the application itself.
quantum-cli migration can copy the data to the new cluster and optionally restart the application there automatically.