Cosminexus V9 アプリケーションサーバ システム構築・運用ガイド

[目次][用語][索引][前へ][次へ]

付録K.2 Smart Composer機能が実行する負荷分散機のCLIコマンド

Smart Composer機能が実行する負荷分散機のCLIコマンドを製品ごとに説明します。負荷分散機のCLIコマンドの詳細は,使用する製品のドキュメントを参照してください。

<この項の構成>
(1) AX2000またはBS320の場合
(2) BIG-IP v9,BIG-IP v10.1,またはBIG-IP v10.2の場合

(1) AX2000またはBS320の場合

AX2000またはBS320の場合,負荷分散機の接続方式としてtelnetプロトコルを使用した直接接続が使用できます。

負荷分散機としてACOS(AX2000またはBS320)を使用する場合に,Smart Composer機能が実行する負荷分散機のCLIコマンドを次の表に示します。ACOSのCLIコマンドの詳細は,使用する製品のドキュメントを参照してください。

表K-1 Smart Composer機能が実行する負荷分散機のCLIコマンド(AX2000またはBS320の場合)

Smart Composer機能のコマンド 実行する負荷分散機のCLIコマンド
共通
enable
config
show version
exit
cmx_build_system(Webシステムを構築する場合) cookieスイッチングの使用なし※1
slb server <実サーバ名> <実サーバIPアドレス>
  port <実ポート> tcp 
slb service-group <仮想サーバ名> tcp 
  member <実サーバ名>:<実ポート> disable
slb virtual-server <仮想サーバ名> <仮想サーバIPアドレス>
  port <仮想ポート> http
    service-group <仮想サーバ名>
write memory
cookieスイッチングの使用あり※1
slb server <実サーバ名> <実サーバIPアドレス>
  port <実ポート> tcp
slb service-group <仮想サーバ名> tcp
member <実サーバ名>:<実ポート> disable
slb template persist cookie <仮想サーバ名>
  name <cookie名>
  expire 0
slb virtual-server <仮想サーバ名> <仮想サーバIPアドレス>
  port <仮想ポート> http
    service-group <仮想サーバ名>
    template persist cookie <仮想サーバ名>
write memory
cmx_build_system(スケールアウトする場合)
slb server <実サーバ名> <実サーバIPアドレス>
  port <実ポート> tcp
slb service-group <仮想サーバ名> tcp
  member <実サーバ名>:<実ポート> disable
write memory
cmx_build_system(実ポートを変更する場合)
slb server <実サーバ名> <実サーバIPアドレス>
  port <変更後の実ポート> tcp
  exit
  no port <実ポート> tcp 
slb service-group <仮想サーバ名> tcp
  member <実サーバ名>:<変更後の実ポート> disable
write memory
cmx_delete_system(サービスユニットを削除する場合)※2
slb server <実サーバ名> <実サーバIPアドレス>
  no port <実ポート> tcp 
write memory
cmx_delete_system(ホスト単位モデルのスケールインを行う場合)※3
no slb server <実サーバ名>
write memory
cmx_delete_system(Webシステムを削除する場合) cookieスイッチングの使用なし
no slb virtual-server <仮想サーバ名>
no slb service-group <仮想サーバ名>
no slb server <実サーバ名>
write memory
cookieスイッチングの使用あり
no slb virtual-server <仮想サーバ名>
no slb service-group <仮想サーバ名>
no slb server <実サーバ名>
no slb template persist cookie <仮想サーバ名>
write memory
cmx_start_target
slb service-group <仮想サーバ名> tcp
  member <実サーバ名>:<実ポート> enable
write memory
cmx_stop_target
slb service-group <仮想サーバ名> tcp
  member <実サーバ名>:<実ポート> disable
write memory

注※1 仮想サーバの初期化を実施しない場合(-lb keepvsを指定した場合)も実行するCLIコマンドは同じです。

注※2 実サーバを共有するそのほかのサービスユニットがある場合は,サーバごとの削除はしません。

注※3 実サーバを共有するそのほかのサービスユニットがない場合は,サーバごと削除します。


参考
ACOSの場合,仮想サーバ名をサービスグループ名およびテンプレート名として使用します。

(2) BIG-IP v9,BIG-IP v10.1,またはBIG-IP v10.2の場合

BIG-IP v9,BIG-IP v10.1,またはBIG-IP v10.2の場合,負荷分散機の接続方式としてsshプロトコルを使用した直接接続が使用できます。なお,09-00以降では,負荷分散機の接続方式としてAPIを使用した直接接続が使用できます。

sshプロトコルを使用した直接接続する場合は,Management Serverを配置するホストにsshのクライアント環境を設定する必要があります。sshのクライアント環境の設定方法をOSごとに次に示します。

Smart Composer機能が実行するBIG-IPのCLIコマンドを製品ごとに説明します。BIG-IPのCLIコマンドの詳細については,使用する製品のドキュメントを参照してください。

(a) BIG-IP v9またはBIG-IP v10.1の場合

負荷分散機としてBIG-IP v9またはBIG-IP v10.1を使用する場合に,Smart Composer機能が実行する負荷分散機のCLIコマンドを次の表に示します。

表K-2 Smart Composer機能が実行する負荷分散機のCLIコマンド(BIG-IP v9またはBIG-IP v10.1の場合)

Smart Composer機能のコマンド 実行する負荷分散機のCLIコマンド
共通
b save
b version
cmx_build_system(Webシステムを構築する場合) cookieスイッチングの使用なし
b pool <仮想サーバ名> {member <実サーバIPアドレス>:<実ポート>}
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> add
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session disable
b virtual <仮想サーバ名> {destination <仮想サーバIPアドレス>:<仮想ポート> pool <仮想サーバ名> profile http enable}
cookieスイッチングの使用あり
b pool <仮想サーバ名> {member <実サーバIPアドレス>:<実ポート>}
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> add
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session disable
b profile persist <仮想サーバ名> {mode cookie cookie mode insert cookie name <cookie名>}
b virtual <仮想サーバ名> {destination <仮想サーバIPアドレス>:<仮想ポート> pool <仮想サーバ名> profile http persist <仮想サーバ名> enable}
cmx_build_system(スケールアウトする場合)
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> add
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session disable
cmx_build_system(実ポートを変更する場合)
b pool <仮想サーバ名> member <実サーバIPアドレス>:<変更後の実ポート> add
b pool <仮想サーバ名> member <実サーバIPアドレス>:<変更後の実ポート> session disable
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> delete
cmx_build_system(負荷分散機の仮想サーバを初期化しないでWebシステムを構築する場合) cookieスイッチングの使用なし
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> add
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session disable
b virtual <仮想サーバ名> {destination
  <仮想サーバIPアドレス>:<仮想ポート> pool
  <仮想サーバ名> profile http enable}
cookieスイッチングの使用あり
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> add
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session disable
b profile persist <仮想サーバ名> {mode cookie cookie mode insert cookie name <cookie名>}
b virtual <仮想サーバ名> {destination <仮想サーバIPアドレス>:<仮想ポート> pool <仮想サーバ名> profile http persist <仮想サーバ名> enable}
cmx_delete_system(サービスユニットを削除,およびホスト単位管理モデルをスケールインする場合)
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> delete
b node <実サーバIPアドレス> delete
cmx_delete_system(Webシステムを削除する場合) cookieスイッチングの使用なし
b virtual <仮想サーバ名> delete
b pool <仮想サーバ名> delete
b node <実サーバIPアドレス> delete
cookieスイッチングの使用あり
b virtual <仮想サーバ名> delete
b pool <仮想サーバ名> delete
b node <実サーバIPアドレス> delete
b profile persist <仮想サーバ名> delete
cmx_start_target
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session enable
cmx_stop_target
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session disable
参考
BIG-IP v9,BIG-IP v10.1の場合,仮想サーバ名をプール名として使用します。
(b) BIG-IP v10.2の場合

負荷分散機としてBIG-IP v10.2を使用する場合に,Smart Composer機能が実行する負荷分散機のCLIコマンドを次の表に示します。

表K-3 Smart Composer機能が実行する負荷分散機のCLIコマンド(BIG-IP v10.2の場合)

Smart Composer機能のコマンド 実行する負荷分散機のCLIコマンド
共通
b save
b version
cmx_build_system(Webシステムを構築する場合) cookieスイッチングの使用なし
b pool <仮想サーバ名> {member <実サーバIPアドレス>:<実ポート>}
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> add
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session user disabled
b virtual <仮想サーバ名> {destination <仮想サーバIPアドレス>:<仮想ポート> pool <仮想サーバ名> profile http enable}
cookieスイッチングの使用あり
b pool <仮想サーバ名> {member <実サーバIPアドレス>:<実ポート>}
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> add
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session user disabled
b profile persist <仮想サーバ名> {mode cookie cookie mode insert cookie name <cookie名>}
b virtual <仮想サーバ名> {destination <仮想サーバIPアドレス>:<仮想ポート> pool <仮想サーバ名> profile http persist <仮想サーバ名> enable}
cmx_build_system(スケールアウトする場合)
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> add
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session user disabled
cmx_build_system(実ポートを変更する場合)
b pool <仮想サーバ名> member <実サーバIPアドレス>:<変更後の実ポート> add
b pool <仮想サーバ名> member <実サーバIPアドレス>:<変更後の実ポート> session user disabled
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> delete
cmx_build_system(負荷分散機の仮想サーバを初期化しないでWebシステムを構築する場合) cookieスイッチングの使用なし
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> add
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session user disabled
b virtual <仮想サーバ名> {destination <仮想サーバIPアドレス>:<仮想ポート> pool <仮想サーバ名> profile http enable}
cookieスイッチングの使用あり
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> add
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session user disabled
b profile persist <仮想サーバ名> {mode cookie cookie mode insert cookie name <cookie名>}
b virtual <仮想サーバ名> {destination <仮想サーバIPアドレス>:<仮想ポート> pool <仮想サーバ名> profile http persist <仮想サーバ名> enable}
cmx_delete_system(サービスユニットを削除,およびホスト単位管理モデルをスケールインする場合)
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> delete
b node <実サーバIPアドレス> delete
cmx_delete_system(Webシステムを削除する場合) cookieスイッチングの使用なし
b virtual <仮想サーバ名> delete
b pool <仮想サーバ名> delete
b node <実サーバIPアドレス> delete
cookieスイッチングの使用あり
b virtual <仮想サーバ名> delete
b pool <仮想サーバ名> delete
b node <実サーバIPアドレス> delete
b profile persist <仮想サーバ名> delete
cmx_start_target
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session user enabled
cmx_stop_target
b pool <仮想サーバ名> member <実サーバIPアドレス>:<実ポート> session user disabled
参考
BIG-IP v10.2の場合,仮想サーバ名をプール名として使用します。