Edge for Private Cloud v4.18.05
Edge for プライベート クラウド をインストールすると、デフォルトでは、インストーラが「axgroup-001」という名前の分析グループを 1 つ作成します。インストール時に、インストール構成ファイルに AXGROUP プロパティを含めることで、アナリティクス グループのデフォルト名を変更できます。
# Specify the analytics group. # AXGROUP=axgroup-001 # Default name is axgroup-001.
詳細については、ノードに Edge コンポーネントをインストールするをご覧ください。
後でインストールに新しい分析グループを追加する場合は、次の操作を行います。
- 新しい分析グループを作成して構成します。
- axgroupNew という名前の分析グループを作成します。
curl -u sysAdminEmail:passWord -H "Content-Type: application/json" -X POST 'https://MS_IP:8080/v1/analytics/groups/ax/axgroupNew'
- consumer-group-new という名前の新しい分析グループにコンシューマ グループを追加します。コンシューマ グループ名は、各分析グループのコンテキスト内で一意です。
curl -u sysAdminEmail:passWord -X POST -H 'Accept:application/json' -H 'Content-Type:application/json' "https://MS_IP:8080/v1/analytics/groups/ax/axgroupNew/consumer-groups?name=consumer-group-new"
- 分析グループのコンシューマ タイプを「ax」に設定します。
curl -u sysAdminEmail:passWord -X POST -H "Content-Type:application/json" "https://MS_IP:8080/v1/analytics/groups/ax/axgroupNew/properties?propName=consumer-type&propValue=ax"
- データセンター名を追加します。デフォルトでは、Edge は「dc-1」という名前のデータセンターにインストールされます。ただし、複数のデータセンターがある場合は、それぞれに一意の名前が付けられます。 この呼び出しは、データセンターが 1 つのみの場合は省略可能ですが、複数のデータセンターがある場合は推奨されます。
curl -u sysAdminEmail:passWord -X POST -H "Content-Type:application/json" "https://MS_IP:8080/v1/analytics/groups/ax/axgroupNew/properties?propName=region&propValue=dc-1"
- axgroupNew という名前の分析グループを作成します。
- Postgres サーバーの UUID を新しい分析グループに追加します。2 つの Postgres サーバーをマスター/スタンバイのペアとして機能するように構成している場合は、両方を UUID のカンマ区切りリストとして指定します。
- Postgres サーバーの UUID を取得するには、すべての Postgres サーバーノードで次の cURL コマンドを実行します。
curl -u sysAdminEmail:passWord https://PG_IP:8084/v1/servers/self
- Postgres サーバーが 1 つしかない場合は、分析グループに追加します。
curl -u sysAdminEmail:passWord -H "Content-Type: application/json" -X POST 'https://MS_IP:8080/v1/analytics/groups/ax/axgroupNew/servers?uuid=UUID&type=postgres-server&force=true'
複数の Postgres サーバーをマスター/スタンバイのペアとして構成している場合は、UUID のカンマ区切りのリストを指定して追加します。
curl -u sysAdminEmail:passWord -H "Content-Type: application/json" -X POST 'https://MS_IP:8080/v1/analytics/groups/ax/axgroupNew/servers?uuid=UUID_Master,UUID_standby&type=postgres-server&force=true'
このコマンドは、
uuidsのpostgres-serverプロパティにある Postgres サーバーの UUID など、分析グループに関する情報を返します。{ "name" : "axgroupNew", "properties" : { "region" : "dc-1", "consumer-type" : "ax" }, "scopes" : [ ], "uuids" : { "qpid-server" : [ ], "postgres-server" : [ "2cb7211f-eca3-4eaf-9146-66363684e220" ] }, "consumer-groups" : [ { "name" : "consumer-group-new", "consumers" : [ ], "datastores" : [ ], "properties" : { } } ], "data-processors" : { } }
- Postgres サーバーをコンシューマ グループのデータストアに追加します。この呼び出しは、Qpid サーバーから Postgres サーバーに分析メッセージをルーティングするために必要です。
curl -u sysAdminEmail:passWord -X POST -H 'Accept:application/json' -H 'Content-Type:application/json' "https://MS_IP:8080/v1/analytics/groups/ax/axgroupNew/consumer-groups/consumer-group-new/datastores?uuid=UUID"
複数の Postgre サーバーがマスター/スタンバイのペアとして構成されている場合は、UUID のカンマ区切りのリストを指定して追加します。
curl -u sysAdminEmail:passWord -X POST -H 'Accept:application/json' -H 'Content-Type:application/json' "https://MS_IP:8080/v1/analytics/groups/ax/axgroupNew/consumer-groups/consumer-group-new/datastores?uuid=UUID_Master,UUID_standby"
UUID は、出力の
consumer-groupsのdatastoresプロパティに表示されます。
- Postgres サーバーの UUID を取得するには、すべての Postgres サーバーノードで次の cURL コマンドを実行します。
- すべての Qpid サーバーの UUID を新しい分析グループに追加します。この手順は、すべての Qpid サーバーに対して実行する必要があります。
- Qpid サーバーの UUID を取得するには、すべての Qpid サーバーノードで次の cURL コマンドを実行します。
curl -u sysAdminEmail:passWord https://QP_IP:8083/v1/servers/self
- Qpid サーバーを分析グループに追加します。
curl -u sysAdminEmail:passWord -H "Content-Type: application/json" -X POST 'https://MS_IP:8080/v1/analytics/groups/ax/axgroupNew/servers?uuid=UUID&type=qpid-server'
- Qpid サーバーをコンシューマー グループに追加します。
curl -u sysAdminEmail:passWord -X POST -H 'Accept:application/json' -H 'Content-Type:application/json' "https://MS_IP:8080/v1/analytics/groups/ax/axgroupNew/consumer-groups/consumer-group-new/consumers?uuid=UUID"
この呼び出しは、次のように、
uuidsのqpid-serverプロパティとconsumer-groupsのconsumersプロパティに追加された Qpid サーバーの UUID を返します。{ "name" : "axgroupNew", "properties" : { "region" : "dc-1", "consumer-type" : "ax" }, "scopes" : [ ], "uuids" : { "qpid-server" : [ "fb6455c3-f5ce-433a-b98a-bdd016acd5af" ], "postgres-server" : [ "2cb7211f-eca3-4eaf-9146-66363684e220" ] }, "consumer-groups" : [ { "name" : "consumer-group-new", "consumers" : [ "fb6455c3-f5ce-433a-b98a-bdd016acd5af" ], "datastores" : [ "2cb7211f-eca3-4eaf-9146-66363684e220" ], "properties" : { } } ], "data-processors" : { } }
- Qpid サーバーの UUID を取得するには、すべての Qpid サーバーノードで次の cURL コマンドを実行します。
- 新しい AX グループの組織と環境をプロビジョニングします。
curl -u sysAdminEmail:passWord -H "Content-Type: application/json" -X POST "https://MS_IP:8080/v1/analytics/groups/ax/axgroupNew/scopes?org=org_name&env=env_name"