Try it free

Start/stop/restart a Managed Cluster

  • How-to guide
  • 2-min read

Dynatrace Managed software consists of a number of Dynatrace services that are dependent on each other and should be stopped or started in a particular order. Use this procedure for Managed Clusters with three or more nodes.

  • For Managed Clusters with fewer than three nodes, you can use the official dynatrace.sh script with additional parameters to start, stop, or restart Dynatrace services in the required order on each node individually within the Managed Cluster (Start/stop/restart a Cluster node).
  • For Managed Clusters with three or more nodes, use the following procedures:

Shut down a Managed Cluster

  1. Run the following command on each existing node:

    sudo nohup ./opt/dynatrace-managed/launcher/server.sh stop
  2. Run the following command to check the status:

    sudo nohup ./opt/dynatrace-managed/launcher/server.sh status

    When all server processes are fully shut down and a status check shows them as not running, issue the following command on each existing node, one node at a time:

    sudo nohup ../launcher/dynatrace.sh stop

Start a Managed Cluster

  1. Run /opt/dynatrace-managed/launcher/firewall.sh start on each node.

  2. Run the following command on each existing node as simultaneously as possible:

    sudo nohup ./opt/dynatrace-managed/launcher/elasticsearch.sh start

    Run the following command to check the status:

    curl -X GET "localhost:9200/_cluster/health?wait_for_status=yellow&timeout=50s&pretty"
    Check status

    Verify that active_shards_percent_as_number is 100 percent and number_of_nodes equals the number of nodes in the Managed Cluster.

  3. Run the following command on each existing node as simultaneously as possible:

    sudo nohup ./opt/dynatrace-managed/launcher/cassandra.sh start

    Run the following command to check the status:

    sudo nohup ./opt/dynatrace-managed/utils/cassandra-nodetool.sh status
    Check status

    Verify that all nodes display UN before proceeding to the next step.

  4. Run the following command on each existing node as simultaneously as possible. A node can take up to about 10 minutes to fully start.

    sudo nohup ./opt/dynatrace-managed/launcher/server.sh start
  5. Once all server processes are up and running, start the rest of the processes. Run the following command on each existing node:

    sudo nohup ./opt/dynatrace-managed/launcher/dynatrace.sh start