1 回の NITRO API 呼び出しで、サービスグループに必要なサービスグループメンバーのセットを構成する
-
「servicegroup_servicegroupgroupmemberlist_binding」リソースに対する単一の PUT リクエストで、サービスグループメンバーのリストを提供します。
-
その PUT リクエストで、その重みと状態 (オプション) を指定します。
-
アプライアンスの構成を、アプリケーションサーバーに関する展開の変更と効果的に同期します。
-
この機能は、次のタイプのサービスグループでのみサポートされます。
API. -
Desired State API を使用して IP アドレスベースのサービスのみをバインドできます。ドメイン名ベースのサービスは許可されません。
-
以前は、NITRO コールにバインドできるサービスグループメンバーは 1 つだけです。
ユースケース:Kubernetesなどの大規模な展開で、展開の変更をNetScaler ADCアプライアンスに同期する
kube-api serverは「Endpoints イベント」を介して有効なエンドポイントセットをコントローラに送信します。Controller は、読み取り-デルタ-変更アプローチを使用して、次の処理を実行します。
-
サービスの現在設定されているエンドポイントセット(サービスグループのサービスグループメンバーセット)を ADC アプライアンスから取得します。
-
設定されたエンドポイントセットと、受信したイベントのセットを比較します。
-
新しいエンドポイント(サービスグループメンバー)をバインドするか、削除したエンドポイントをバインド解除します。
CLI を使用してタイプ API のサービスグループを作成する
add serviceGroup <serviceGroupName>@ <serviceType> [-autoScale <autoScale>]
add serviceGroup svg1 HTTP -autoScale API
autoDisablegracefulパラメーター、autoDisabledelayパラメーター、autoScaleパラメーターを設定するには、add serviceGroup コマンドまたは set serviceGroup コマンドを使用します。
add serviceGroup <serviceGroupName>@ <serviceType> [-autoScale <autoScale>] [-autoDisablegraceful ( YES | NO)] [-autoDisabledelay <secs>]
add serviceGroup <serviceGroupName>@ <serviceType> [-autoScale (API |CLOUD | DISABLED| DNS |POLICY)]
set serviceGroup <serviceGroupName [-autoDisablegraceful ( YES | NO)] [-autoDisabledelay <secs>]
set serviceGroup <serviceGroupName [-autoScale (API |CLOUD | DISABLED| DNS |POLICY)]
add serviceGroup svg1 HTTP autoDisablegraceful YES -autoDisabledelay 100
add serviceGroup svg1 HTTP -autoScale API
set serviceGroup svg1 -autoDisablegraceful YES -autoDisabledelay 100
set serviceGroup svg1 -autoScale API
引数
自動無効化グレースフル
AutoDisableDelay
Autoscale API
{ "errorcode": 304, "message": "Address already in use", "severity": "ERROR", "servicegroup_servicegroupmemberlist_binding": { "servicegroupname": "sg1", "failedmembers": [ { "ip": "2.2.2.8", "port": 80 }, { "ip": "2.2.2.9", "port": 80 } ] } }
set serviceGroup Autoscale コマンドが失敗することがあります。
-
サービスグループにバインドされているサーバがネームサーバまたはドメインベースのサーバである場合。
-
ループバックサーバー名が 127.0.0.1 または 0000:0000:0000:0000:0000:0000:0000:0001以外である場合。
-
set ServiceGroup コマンドで異なるタイプのAutoscale (クラウド、API、DNS、ポリシー) を選択し、serviceGroup コマンドを追加する場合。
-
AutoDisableGraceful および AutoDisableDelay パラメータは、Autoscale タイプ「API」および「クラウド」のサービスグループにのみ適用されます。
-
AutoDisableGraceful パラメーターまたは AutoDisableDelay パラメーターが設定されていない場合、サービスメンバーはすぐに削除されます。
サービスグループメンバーを正常にバインド解除する
autoDisablegracefulまたはautoDisabledelayパラメータの設定に基づいて、それらのメンバーは正常にバインド解除されます。
-
これらのパラメータの 1 つが設定されている場合、サービスグループメンバーは正常にバインド解除されます。
-
これらのパラメータがいずれも設定されていない場合、サービスグループメンバーはすぐにバインド解除されます。
-
グレースフルバインド解除のために識別されたサービスグループメンバーは、show service group コマンドの実行時にだけ表示されます。
-
正常なアンバインドとして識別されたサービスグループメンバーに対して、操作(set、unset など)を実行できません。