Migrating from a single-node deployment to a three-node deployment
You can convert your single-node production cluster to a multi-node cluster with three nodes. Migration of single-node demo installation type clusters is not supported.
Prepare your hosts
To your existing single-node cluster, add two more hosts of the same platform and operating system as the current host.
-
See Multi-node cluster hardware requirements. Your current host is used as node0 (
instana-0) in the multi-node cluster.
Then, complete the migration by following these steps:
-
On all the three hosts, make sure that the ports are open.
-
On all the three hosts, configure private IP addresses.
-
On the two new hosts, make sure to check the Kernel parameters.
-
On the two new hosts, check the required packages and environment variables.
-
On all the three nodes, configure Secure Shell.
-
Shut down Self-Hosted Standard Edition on the current host.
stanctl downAttention:Self-Hosted Standard Edition
1.10.3 and earlier versions:- For online (non–air‑gapped) installations, most
stanctllifecycle commands, such asstanctl upwill fail to run. - For air‑gapped installations, the
stanctlcommands continue to work.
Required action: Upgrade
Example: On online deployments that runstanctlto 1.10.4 or later versions before you perform a lifecycle operation.stanctl1.10.3 or earlier versions, any workflow that stops services, such as astanctl downcommand, before a backup, cannot complete because the subsequentstanctl upcommand fails. Upgradestanctlto 1.10.4 or later versions before you start these steps. - For online (non–air‑gapped) installations, most
Move the disks from the old host to the new host
For more information about how the storage directories are used in a multi-node cluster, see Storage requirements.
Migrating from a single-node deployment to a three-node deployment
During migration, you unmount three disks from your old host and then mount them on your new host (node1 (instana-1).
The following example steps are for unmounting and mounting the paths in a non-cloud environment.
-
On the old host (node0 (
instana-0)), unmount the data, analytics, and metrics paths.umount /mnt/instana/stanctl/analytics umount /mnt/instana/stanctl/metrics umount /mnt/instana/stanctl/data -
Detach the three disks from the old host (node0 (
instana-0)). - Update fstab entry.
sudo cp /etc/fstab /etc/fstab.bak for folder in analytics metrics data; do sudo sed -i "/^[[:space:]]*#/! {/[^[:space:]]*\/${folder}[[:space:]]/ s|^|# |}" /etc/fstab done -
On the new host node1 (
instana-1), complete the following steps:- Add the three disks from (node0 (
instana-0)). - Create the data, analytics, and metrics directories. For more information, see Create the directories.
- Mount the data, analytics, and metrics paths on node1 (
instana-1). See the commands for node1 (instana-1) in Add mount paths. - Complete the steps on node1 (
instana-1) as given in sections Verify the mount paths and Mount the file systems.
- Add the three disks from (node0 (
Migrate Standard Edition to the new cluster
On node0 (instana-0), run the following command to start the migration:
stanctl up --multi-node-migrate
Enter the details at the prompts:
? Enter the IPs for all three nodes, separated by commas (the 1st one is for backend, the 2nd one is for datastore, e.g. 10.8.1.10,10.8.1.11,10.8.1.12):
After a few minutes, your data is migrated to the new hosts. Standard Edition is now deployed on the multi-node cluster.