インストール後のタスク
AppDynamics サービスをインストールした後、最新の証明書を仮想アプライアンスにインポートし、スタンドアロンコントローラを再起動して変更を有効にする必要があります。
ハイブリッド設定ファイルの生成
サービスのインストール後に取得された最新の CA 証明書があることを確認します。ない場合は、CA 証明書を更新し、サービスの再起動後にハイブリッド構成ファイルを再生成します。
- スクリプトを実行して、Kafka ノードポートをスタンドアロンコントローラに接続します。
CODE
~/appd-charts/utils$ bash prepare-hybrid.shサンプル出力:
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 Completedこのスクリプトは、必要な設定ファイルを含む
hybrid-config.tarファイルを生成します。 hybrid-config.tarファイルをスタンドアロン コントローラ インスタンスにコピーします。- スタンドアロンコントローラにログインします。
hybrid-config.tarファイルの内容を見つけて抽出します。CODEtar -xvf hybrid-config.tarconfigure.shスクリプトを実行し、Kubernetes クラスターに接続するための証明書とシークレットを使用してコントローラをプロビジョニングします。このスクリプトは、hybrid-config.tar ファイルから抽出されます。
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
注:仮想アプライアンスの証明書は 60 日後に期限切れになります。接続を維持するには、更新された証明書を仮想アプライアンスから Splunk AppDynamics オンプレミス クラシックコントローラにコピーする必要があります。これを行うには、ハイブリッド構成ファイルを再生成し、スタンドアロンコントローラにコピーします。
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 を使用してコントローラを再起動する必要があります。「コントローラの起動または停止」を参照してください。