Try it free

Configure Managed Cluster properties

  • How-to guide
  • 1-min read

To preserve your custom property values across upgrades and service restarts, follow the steps below.

The configurable properties for Dynatrace Managed are stored in the /opt/dynatrace-managed/server/conf/config.properties file, but do not change them in that file. The file is overwritten during an update.

If you configure properties directly in /opt/dynatrace-managed/server/conf/config.properties, your custom configuration won't be preserved during an update.

Step 1 Move your changes to custom.settings

Instead of changing /opt/dynatrace-managed/server/conf/config.properties, make all your changes in the custom.settings file located in the /opt/dynatrace-managed/installer directory of each Cluster node. You can create the file if it doesn't already exist. During an upgrade, the installer reads custom.settings and modifies config.properties accordingly.

The custom.settings file specifies:

  • The location of the file to be modified
  • The section to modify
  • The property and value to be set

Step 2 Add the example edits to custom.settings

Suppose you have made two modifications to settings:

  • Set the connection-timeout property to 3000000
  • Set the proxy-off property to true

To preserve these settings during an upgrade, follow these steps.

  1. Open the custom.settings file.

    • File location: /opt/dynatrace-managed/installer directory of the node.
    • Create the file in that location if it doesn't already exist.
  2. Add one line to specify the configuration file to modify during the install.

    <server/conf/config.properties>

    Include the chevrons (< and >).

  3. Add two lines to specify the section, property name, and property value to be modified for connection-timeout, which is in the [settings] section.

    [settings]
    connection-timeout=3000000
  4. Add two lines to specify the section, property name, and property value to be modified for proxy-off, which is in the [http.client.external] section.

    [http.client.external]
    proxy-off = true
  5. Check that the resulting custom.settings file for this example looks like this:

    <server/conf/config.properties>
    [settings]
    connection-timeout=3000000
    [http.client.external]
    proxy-off = true
  6. Place this custom.settings file on all Cluster nodes in the /opt/dynatrace-managed/installer directory. Every time you upgrade a node, the installer sets connection-timeout to 3000000 and proxy-off to true in config.properties, preserving your custom configuration.

Applies to service restarts

Dynatrace Managed also executes this custom configuration action with each restart of the Dynatrace service.