Migrating to a five-node deployment
You can convert your single-node or three-node production cluster to a multi-node cluster with five nodes.
demo installation type clusters is not supported.Preparing your hosts
To your existing single-node cluster, add two more hosts of the same platform and operating system as the current host.
-
Review System requirements for a five-node deployment. Your current host is used as node0 (
instana-0) in the multi-node cluster. -
Review CPU and memory requirements.
Then, complete the migration by following these steps:
-
On all the five hosts, make sure that the ports are open.
-
On all the five hosts, configure private IP addresses.
-
On the new hosts, make sure to check the Kernel parameters.
-
On the new hosts, check the required packages and environment variables.
-
On all the five 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
Moving 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.
Unmounting and mounting the paths in a non-cloud environment are shown in the following examples:
Migrating from a single-node deployment to a five-node deployment
During migration, move three disks from your old host and attach it to the new host:
- node1 (instana-1): Receives the data and metrics disks
- node3 (instana-3): Receives the analytics disk
-
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):-
Attach the data and metrics disks from (node0 (
instana-0)). -
Create the data and metrics directories. For more information, see Creating the directories.
-
Mount the data and metrics paths. See the commands in Adding mount paths.
-
Complete the steps as given in sections Verifying the mount paths and Mounting the file systems.
-
-
On the new host node3 (
instana-3):-
Attach the analytics disk from (node0 (
instana-0)). -
Create the analytics directory. For more information, see Creating the directories.
-
Mount the analytics path. For the commands, see Adding mount paths.
-
Complete the steps that are listed in Verifying the mount paths and Mounting the file systems.
-
Migrating from a three-node deployment to a five-node deployment
During migration, move one disk from your old host and attach them to the new hosts:
- node3 (instana-3): Receives the analytics disk
-
On the old host (node1 (
instana-1)), unmount the analytics path.umount /mnt/instana/stanctl/analytics -
Remove the disk from the old host (node1 (
instana-1)). -
Update fstab entry.
sudo sed -i.bak "/^[[:space:]]*#/! {/[^[:space:]]*\/analytics[[:space:]]/ s|^|# |}" /etc/fstab -
On the new host node3 (
instana-3):-
Attach the analytics disk from (node1 (
instana-1)). -
Create the analytics directory. For more information, see Creating the directories.
-
Mount the analytics path. For the commands, see Adding mount paths.
-
Complete the steps that are listed in Verifying the mount paths and Mouning the file systems.
-
Migrating Standard Edition to the new cluster
- On node0 (
instana-0), start migration:stanctl up --multi-node-migrateThe following message is displayed :
? Enter the IP addresses for all three or five nodes, separated by commas (e.g. 10.8.1.10,10.8.1.11,10.8.1.12): -
Enter the IP addresses.
After a few minutes, your data is migrated to the new hosts. Standard Edition is now deployed on the five-node cluster.
-
If agents for self-monitoring are installed, update Instana agents. If self-monitoring agents are not installed, skip this step.
stanctl agent apply