You can scale your Managed Cluster by adding nodes through the Cluster Management Console. You need root access to the target host to run the installer.
Log in to the Cluster Management Console.
Go to Deployment Status and select Add new cluster node.
Copy the wget command line from the Run this command on the target host text field and paste it into your terminal window. Wait for the download to complete.
Run one of the following commands from the directory where you downloaded the installation script. Root access is required.
Replace <version> with your Dynatrace Managed version.
Ubuntu Server
sudo /bin/sh dynatrace-managed-<version>.sh
Red Hat Enterprise Linux
su -c '/bin/sh dynatrace-managed-<version>.sh'
Other Linux distributions with root session
/bin/sh dynatrace-managed-<version>.sh
Type Accept to agree to the Dynatrace Managed Terms of use. Installation will not continue until you complete this step. To quit installation, press Ctrl+C.
Accept the prompts for values such as installation path and user account by pressing Enter. To override a value, type your choice and press Enter.
The newly added node appears in the Cluster Management Console with the status joining during installation. Full data synchronization can take a couple of hours. To monitor cluster node synchronization progress, run:
[root@host]# /opt/dynatrace-managed/utils/cassandra-nodetool.sh status
Example response:
Datacenter: datacenter-1=====================Status=Up/Down|/ State=Normal/Leaving/Joining/Moving-- Address Load Tokens Owns (effective) Host ID RackUN 1.6.1.6 349.88 GiB 256 100.0% aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee rack1UN 1.6.2.2 358.2 GiB 256 100.0% zzzzzzzz-xxxx-cccc-vvvv-ffffffffffff rack1UJ 1.6.3.9 278.75 GiB 256 75.1% qqqqqqqq-wwww-eeee-rrrr-rrrrrrrrrrrr rack1
Where UJ marks the node as joining and the Owns (effective) column shows the progress of data synchronization.
A 100% result in the Owns (effective) column is correct only for clusters that have up to three nodes.
If there are more than three nodes, the percentage is calculated as follows:
3/(number_of_nodes)*100%
When you add more than three nodes, the percentage column changes as follows:
Yes, you can add a node using the same procedure as for installing a Managed Cluster. The difference is that the installer asks whether to add the node to an existing cluster (you must enter the IP address of an existing cluster node) or set up a new cluster. Alternatively, use the --seed-auth parameter to skip this prompt and automatically add the node to the existing cluster.
Yes, you can use pbrun, but you must grant the Dynatrace user permission to run /opt/dtrun/dtrun *. Specify the user who is installing Dynatrace Managed and the command that replaces sudo. Note that <version> represents the Dynatrace Managed version number.
/bin/sh dynatrace-managed-<version>.sh --system-user dynatrace:dynatrace --sudo-cmd "/usr/bin/pbrun \$CMD"
For maintenance purposes, add the following script paths to your privilege management configuration:
/opt/dynatrace-managed/uninstall-dynatrace.sh/opt/dynatrace-managed/launcher/*/opt/dynatrace-managed/utils/*Run this command to stop all Dynatrace Managed processes on a node:
pbrun /opt/dynatrace-managed/launcher/dynatrace.sh stop
Do not remove or overwrite dtrun, as it is required by installation and update procedures. The installer calls dtrun without arguments to validate that the user has administrative privileges, but for normal operation Dynatrace calls dtrun with arguments to actually run commands.