Post Installation Tasks

After you install AppDynamics Services, you must import the latest certificates into the Virtual Appliance and restart the Standalone Controller for changes to take affect.

Generate the Hybrid Configuration File

Ensure that you have the latest CA certificates obtained after installing services. If not, update the CA certificates and regenerate the hybrid configuration file after restarting the service.

  1. Run the script to connect the Kafka node ports with the standalone Controller:
    ~/appd-charts/utils$ bash prepare-hybrid.sh

    Sample output:

    Writing Kafka CA Cert
    Writing Schema registry CA Cert
    Writing AnomalyDetectionKafkaSSLProducer
    Writing AnomalyDetectionKafkaConsumerSSL
    Writing configure script
    Creating archive of hybrid config
    hybrid-config/
    hybrid-config/kafka-ca.crt
    hybrid-config/AnomalyDetectionKafkaConsumerSSL
    hybrid-config/configure.sh
    hybrid-config/schema-registry-ca.crt
    hybrid-config/AnomalyDetectionKafkaSSLProducer
    Completed

    This script generates the hybrid-config.tar file that includes the required configuration files.

  2. Copy the hybrid-config.tar file to your standalone Controller instance.
  3. Log in to your standalone Controller.
    1. Locate and extract the hybrid-config.tar file contents.
      tar -xvf hybrid-config.tar
    2. Run the configure.sh script to provision the Controller with certs and secrets to connect to the Kubernetes cluster:

      This script is extracted from the hybrid-config.tar file.

      $ bash configure.sh
      Usage: configure.sh <controller-home> <keystore-passwd>
      Using controller home as /opt/appdynamics and keystore password as changeit
      Do you want to proceed? (y/n): y
      Creating Kafka truststore
      Certificate was added to keystore
      Creating schema registry truststore
      Certificate was added to keystore
      Writing obfuscated producer config
      Writing obfuscated consumer config
      Completed
    Note:

    Certificates in the Virtual Appliance expire after 60 days. To maintain connectivity, you must copy the updated certificates from the Virtual Appliance to your Splunk AppDynamics オンプレミス Classic Controller. To do this, regenerate the hybrid configuration file and copy it to your Standalone Controller.

Configure the Controller Properties by Using the Kubernetes Cluster CLI

Ensure that you have the latest CA certificates obtained after installing services. If not, update the CA certificates and regenerate the hybrid configuration file after restarting the service.

  1. Log in to your Kubernetes cluster.
  2. Run the command to update the standalone Controller properties:
    appdcli run bootstrap_hybrid

    This command configures the following properties in the Controller:

    Key: anomaly.detection.enabled, Value: true
    Key: anomaly.detection.deployed.onprem, Value: true
    Key: controller.id, Value: onprem
    Key: controller.unique.id, Value: onprem
    Key: anomaly.detection.kafka.consumer.group.id, Value: pi-alarmservice-transition-consumer-group-onprem
    Key: anomaly.detection.kafka.consumer.topic, Value: pi-alarmservice-transition-onprem
    Key: anomaly.detection.kafka.producer.topic, Value: metadata-lifecycle-events
    Key: anomaly.detection.onprem.output.topic, Value: blitz-processed-metrics
    Key: anomaly.detection.schema.registry.enabled, Value: true
    Key: anomaly.detection.consumer.schema.registry.url, Value: https://10.0.0.1.nip.io/schemaregistry
    Key: anomaly.detection.producer.schema.registry.url, Value: https://10.0.0.2.nip.io/schemaregistry
    Key: anomaly.detection.kafka.consumer.bootstrap.servers, Value: 10.0.0.1:32101
    Key: anomaly.detection.kafka.producer.bootstrap.servers, Value: 10.0.0.2:32102
    Key: anomaly.detection.kafka.producer.ssl.enabled, Value: true
    Key: anomaly.detection.kafka.consumer.ssl.enabled, Value: true
    Key: anomaly.detection.service.url, Value: https://10.0.0.1.nip.io/pi

    Alternatively, you can access the administration console by using the Kubernetes cluster IP address and manually edit each parameter.

    Note: Changes do not take affect until you restart the Controller.

Restart the Standalone Controller

  • Run the following command to restart the standalone Controller:
    cd ~/appdynamics/platform/product/controller/bin/
    ./controller.sh stop
    ./controller.sh start

    This command also restarts the MySQL service.

    Alternatively, you can restart the controller from Enterprise Console. See Start or Stop the Controller.

  • For high-availability scenario, you must use Enterprise Console to restart the controller. See Start or Stop the Controller.