You can easily remove a cluster node using the Dynatrace Managed Cluster Management Console. However, as removing a cluster node essentially means uninstalling Dynatrace Managed, you can alternatively use the command prompt to remove a cluster node. Both approaches are described below.
recommended
Before you can remove a node from a Dynatrace Managed cluster, you must first disable OneAgent traffic to prevent data flow to the node while it is being removed.
To disable a cluster node
Before proceeding with node removal, it's recommended that you wait for at least the duration of the transaction storage data retention period (up to 35 days). This is because while all metrics are replicated in the cluster, the raw transaction data isn't stored redundantly. Removing a node before its transaction storage data retention period expires may impact code-level and user-session data analysis.
Remove no more than one node at a time. To avoid data loss, allow 24 hours before removing any subsequent nodes. This is because it takes up to 24 hours for the long-term metrics replicas to be automatically redistributed on the remaining nodes.
If you have cluster backup enabled, and you remove a node, the backup files for that node will remain in your backup space. If you want to delete the backup specifically for the removed node, delete the <path-to-backup>/<UUID>/node_<node_id>
folder.
In this example path:
rmdir -r /mnt/backup/bckp/c9dd47f0-87d7-445e-bbeb-26429fac06c6/node_3/
the parts of the path are as follows:
/mnt/backup/bckp/
= <path-to-backup>
c9dd47f0-87d7-445e-bbeb-26429fac06c6
= <UUID>
3
= <node_id>
Following the removal of an existing cluster node, you must wait 72 hours before installing a new node on a host that shares the same IP (that is when re-installing on the same host).
To remove a disabled cluster node
Dynatrace Managed shows dead and removed nodes for 7 days. However even once a dead node is no longer displayed on the clusters page, the node is still registered. To remove a node entirely, use the Dynatrace API call. You can execute the Cluster Management API call to the following endpoint: onpremise/nodeManagement/deadNodeCleaning
.
See the Dynatrace API explorer in CMC for details.
/nodeManagement/deadNodeCleaning
section to try it out.recommended
We recommend removing a cluster node using the Cluster Management Console. However, there's also an alternative option, via public API: /api/v1.0/onpremise/nodeManagement/triggerRemoveNode
.
If our recommended methods for removing cluster nodes (Cluster Management Console and API call) are not enough, and you're still facing issues, try using the following command prompt.
Log in to the Linux machine where Dynatrace Managed is installed.
Navigate to the PRODUCT_PATH
main directory for Dynatrace Managed binaries (default: /opt/dynatrace-managed
).
Using root rights, execute the following command:
/bin/sh uninstall-dynatrace.sh
All Dynatrace Managed data will be deleted from the machine once the script is successfully executed.