CSO をインストールまたはアップグレードした後、スクリプトを components_health.sh 実行して、すべてのインフラストラクチャ コンポーネントのヘルス チェックを実行できます。このスクリプトは、インフラストラクチャ コンポーネントに障害が発生したかどうかを検出し、以下のインフラストラクチャおよびストリーミング コンポーネントの正常性ステータスを表示します。
-
SaltStack
-
カサンドラ
-
MariaDB
-
スウィフト
-
Redis
-
アランゴDb
-
キーストーン
-
Elasticsearch
-
Elk Elasticsearch
-
アイシングア
-
RabbitMQ
-
Etcd
-
Rsyslog
-
Kubernetes
-
ELK Logstash
-
ELK Kibana
-
飼育 係
-
Contrail 分析
-
VRR
-
マイクロサービス
-
カフカ
-
カフカ動物園キーパー
-
ストリーミング・カサンドラ
インフラストラクチャ コンポーネントのステータスを確認するには、次の手順にしたがっています。
- startupserver_1 VM に root としてログインします。
- startupserver_1 VM の CSO ディレクトリに移動します。
例えば:
root@host:~/# cd Contrail_Service_Orchestration_6.3.0
root@host:~/Contrail_Service_Orchestration_6.3.0#
- スクリプトを実行します components_health.sh 。
インフラストラクチャ コンポーネントのステータスを確認するには、次のコマンドを実行します。
root@startupserver_1:/opt/Contrail_Service_Orchestration_6.3.0# ./components_health.sh --component=<component_name>
For Example:
root@startupserver_1:/opt/Contrail_Service_Orchestration_6.3.0# ./components_health.sh --component=elasticsearch
次のコマンドを実行して、すべてのインフラストラクチャ コンポーネントの状態を確認します。
root@startupserver_1:/opt/Contrail_Service_Orchestration_6.3.0# ./components_health.sh
数分後、各インフラストラクチャ コンポーネントのステータスが表示されます。
例えば:
INFO Updating the mine and syncing the grains
INFO ************************************************************************
INFO HEALTH CHECK FOR INFRASTRUCTURE COMPONENTS STARTED IN CENTRAL ENVIRONMENT
INFO ************************************************************************
INFO Health Check for Infrastructure Component Saltstack Started
INFO The Infrastructure Component Saltstack is Healthy
INFO Health Check for Infrastructure Component Etcd Started
INFO The Infrastructure Component Etcd is Healthy
INFO Health Check for Infrastructure Component Mariadb Started
INFO The Infrastructure Component Mariadb is Healthy
INFO Health Check for Infrastructure Component Keystone Started
INFO The Infrastructure Component Keystone is Healthy
INFO Health Check for Infrastructure Component Swift Started
INFO The Infrastructure Component Swift is Healthy
INFO Health Check for Infrastructure Component Redis Started
INFO The Infrastructure Component Redis is Healthy
INFO Health Check for Infrastructure Component Zookeeper Started
INFO The Infrastructure Component Zookeeper is Healthy
INFO Health Check for Infrastructure Component Kafka Started
INFO The Infrastructure Component Kafka is Healthy
INFO Health Check for Infrastructure Component Rsyslog Started
INFO The Infrastructure Component Rsyslog is Healthy
INFO Health Check for Infrastructure Component Elk_Kibana Started
INFO The Infrastructure Component Elk_Kibana is Healthy
INFO Health Check for Infrastructure Component Elk_Elasticsearch Started
INFO The Infrastructure Component Elk_Elasticsearch is Healthy
INFO Health Check for Infrastructure Component Icinga Started
INFO The Infrastructure Component Icinga is Healthy
INFO Health Check for Infrastructure Component Arangodb Started
INFO The Infrastructure Component Arangodb is Healthy
INFO Health Check for Infrastructure Component Redirect_Server Started
WARNING No redirect server information is available for this CSO setup
INFO The Infrastructure Component Redirect_Server is Healthy
INFO Health Check for Infrastructure Component Cassandra Started
INFO The Infrastructure Component Cassandra is Healthy
INFO Health Check for Infrastructure Component Vrr Started
INFO The Infrastructure Component Vrr is Healthy
INFO Health Check for Infrastructure Component Kafka_Zookeeper Started
INFO The Infrastructure Component Kafka_Zookeeper is Healthy
INFO Health Check for Infrastructure Component Kubernetes Started
INFO The Infrastructure Component Kubernetes is Healthy
INFO Health Check for Infrastructure Component Elk_Logstash Started
INFO The Infrastructure Component Elk_Logstash is Healthy
INFO Health Check for Infrastructure Component Streaming_Cassandra Started
INFO The Infrastructure Component Streaming_Cassandra is Healthy
INFO Health Check for Infrastructure Component Rabbitmq Started
INFO The Infrastructure Component Rabbitmq is Healthy
INFO Health Check for Infrastructure Component Elasticsearch Started
INFO The Infrastructure Component Elasticsearch is Healthy
INFO Health Check for Infrastructure Component Contrail_Analytics Started
INFO The Infrastructure Component Contrail_Analytics is Healthy
INFO Health Check for Infrastructure Component Microservices Started
INFO The Infrastructure Component Microservices is Healthy
INFO Overall result:
INFO The following Infrastructure Components are Healthy:
INFO ['Saltstack', 'Etcd', 'Mariadb', 'Keystone', 'Swift', 'Redis', 'Zookeeper', 'Kafka', 'Rsyslog', 'Elk_Kibana', 'Elk_Elasticsearch', 'Icinga', 'Arangodb', 'Redirect_Server', 'Cassandra', 'Vrr', 'Kafka_Zookeeper', 'Kubernetes', 'Elk_Logstash', 'Streaming_Cassandra', 'Rabbitmq', 'Elasticsearch', 'Contrail_Analytics', 'Microservices']
INFO All nodes are healthy!