インストール後のタスク
AppDynamics サービスをインストールした後、最新の証明書を仮想アプライアンスにインポートし、スタンドアロンコントローラを再起動して変更を有効にする必要があります。
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.
- Run the script to connect the Kafka node ports with the standalone Controller:
CODE
~/appd-charts/utils$ bash prepare-hybrid.shSample output:
CODEWriting 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 CompletedThis script generates the
hybrid-config.tarfile that includes the required configuration files. - Copy the
hybrid-config.tarfile to your standalone Controller instance. - Log in to the standalone Controller.
- Locate and extract the
hybrid-config.tarfile contents.CODEtar -xvf hybrid-config.tar - Run the
configure.shscript 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.
Output:CODE$ ./configure.shCODEUsing controller home as /home/appdynamics/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 Certificate was added to keystore Writing obfuscated producer config Writing obfuscated consumer config Configure MySQL for SSL Using controller ip as <IP> Is this IP address correct? (y/n): y DNS name should match the Virtual Appliance cluster hybrid dbHost configuration Please enter the DNS name (default: 10.0.0.1.nip.io): <DNS_Name_from_globals.yaml.gotmpl> Using controller IP as 10.0.0.1 Updating certs at /home/appdynamics/appdynamics/platform/controller/db/data using CA key file ca-key.pem and cert file ca.pem Certificate request self-signature ok subject=CN = mysql MySQL certificate generated successfully: server-cert.pem 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.
- Locate and extract the
Kubernetes クラスタ CLI を使用したコントローラプロパティの設定
サービスのインストール後に取得された最新の CA 証明書があることを確認します。ない場合は、CA 証明書を更新し、サービスの再起動後にハイブリッド構成ファイルを再生成します。
- Kubernetes クラスターにログインします。
- コマンドを実行して、スタンドアロンコントローラのプロパティを更新します。
CODE
appdcli run bootstrap_hybridこのコマンドは、コントローラで次のプロパティを設定します。
CODEKey: 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 を使用してコントローラを再起動する必要があります。「コントローラの起動または停止」を参照してください。