インストール後のタスク

AppDynamics サービスをインストールした後、最新の証明書を仮想アプライアンスにインポートし、スタンドアロンコントローラを再起動して変更を有効にする必要があります。

Generate the Hybrid Configuration File

You require to generate hybrid configuration file only if you are not using custom certificates for Ingress and Kafka clusters.

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:
    CODE
    ~/appd-charts/utils$ bash prepare-hybrid.sh

    Sample output:

    CODE
    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 the standalone Controller.
    1. Locate and extract the hybrid-config.tar file contents.
      CODE
      tar -xvf hybrid-config.tar
    2. Run the configure.sh script to provision the Controller with certificates and secrets to connect to the Kubernetes cluster:

      The following script is extracted from the hybrid-config.tar file.

      CODE
      $ 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
    注:

    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 on the Virtual Appliance and then copy it to your Standalone Controller.

Kubernetes クラスタ CLI を使用したコントローラプロパティの設定

サービスのインストール後に取得された最新の CA 証明書があることを確認します。ない場合は、CA 証明書を更新し、サービスの再起動後にハイブリッド構成ファイルを再生成します。

  1. Kubernetes クラスターにログインします。
  2. コマンドを実行して、スタンドアロンコントローラのプロパティを更新します。
    CODE
    appdcli run bootstrap_hybrid

    このコマンドは、コントローラで次のプロパティを設定します。

    CODE
    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

    または、Kubernetes クラスタの IP アドレスを使用して管理コンソールにアクセスし、各パラメータを手動で編集することもできます。

    注: コントローラを再起動するまで、変更は有効になりません。

スタンドアロンコントローラを再起動します。

  • 次のコマンドを実行して、スタンドアロンコントローラを再起動します。
    CODE
    cd ~/appdynamics/platform/product/controller/bin/
    ./controller.sh stop
    ./controller.sh start

    このコマンドは MySQL サービスも再起動します。

    Enterprise Console のコントローラを再起動することもできます。「コントローラの起動または停止」を参照してください。

  • 高可用性のシナリオでは、Enterprise Console を使用してコントローラを再起動する必要があります。「コントローラの起動または停止」を参照してください。