Documentation Home
> Sun Cluster データサービス開発ガイド (Solaris OS 版)
Sun Cluster データサービス開発ガイド (Solaris OS 版)
Book Information
索引
数字・記号
A
B
C
D
F
G
H
I
J
L
M
P
R
S
T
U
V
W
X
あ
い
え
お
か
き
く
け
こ
さ
し
す
せ
そ
ち
て
ね
は
ひ
ふ
へ
ま
め
も
ゆ
よ
り
れ
ろ
はじめに
第 1 章 リソース管理の概要
Sun Cluster アプリケーション環境
RGM モデル
リソースタイプ
リソース
リソースグループ
Resource Group Manager
コールバックメソッド
プログラミングインタフェース
RMAPI
データサービス開発ライブラリ (DSDL)
SunPlex Agent Builder
Resource Group Manager の管理インタフェース
SunPlex Manager
管理コマンド
第 2 章 データサービスの開発
アプリケーションの適合性の分析
使用するインタフェースの決定
データサービス作成用開発環境の設定
開発環境の設定方法
データサービスをクラスタに転送する方法
リソースとリソースタイププロパティの設定
リソースタイププロパティの宣言
リソースプロパティの宣言
拡張プロパティの宣言
コールバックメソッドの実装
リソースとリソースグループのプロパティ情報へのアクセス
メソッドの呼び出し回数への非依存性
汎用データサービス
アプリケーションの制御
リソースの起動と停止
Start および Stop メソッドを使用するかどうかの決定
Init、Fini、Boot の各メソッド
リソースの監視
メッセージログのリソースへの追加
プロセス管理の提供
リソースへの管理サポートの提供
フェイルオーバーリソースの実装
スケーラブルリソースの実装
スケーラブルサービスの妥当性検査
データサービスの作成と検証
キープアライブの使用方法
HA データサービスの検証
リソース間の依存関係の調節
第 3 章 リソースタイプの更新
概要
リソースタイプ登録ファイル
リソースタイプ名
ディレクティブ
RTR ファイル内の RT_Version の変更
以前のバージョンの Sun Cluster のリソースタイプ名
Type_version リソースプロパティ
リソースを別のバージョンへ移行
リソースタイプのアップグレードとダウングレード
デフォルトのプロパティ値
リソースタイプ開発者の文書
リソースタイプ名とリソースタイプモニターの実装
アプリケーションのアップグレード
リソースタイプのアップグレード例
リソースタイプパッケージのインストール要件
RTR ファイルの変更前に認識しておくべき事項
モニターコードの変更
メソッドコードの変更
第 4 章 Resource Management API リファレンス
RMAPI アクセスメソッド
RMAPI シェルコマンド
RMAPI リソースコマンド
リソースタイプコマンド
リソースグループコマンド
クラスタコマンド
C 関数
リソース関数
リソースタイプ関数
リソースグループ関数
クラスタ関数
ユーティリティ関数
RMAPI コールバックメソッド
メソッドの引数
終了コード
制御および初期化コールバックメソッド
管理サポートメソッド
ネットワーク関連コールバックメソッド
モニター制御コールバックメソッド
第 5 章 サンプルデータサービス
サンプルデータサービスの概要
リソースタイプ登録ファイルの定義
RTR ファイルの概要
サンプル RTR ファイルのリソースタイププロパティ
サンプル RTR ファイルのリソースプロパティ
RTR ファイルのシステム定義プロパティ
RTR ファイルの拡張プロパティ
すべてのメソッドに共通な機能の提供
コマンドインタプリタの指定およびパスのエクスポート
PMF_TAG と SYSLOG_TAG 変数の宣言
関数の引数の構文解析
エラーメッセージの生成
プロパティ情報の取得
データサービスの制御
Start メソッド
Start の概要
構成の確認
アプリケーションの起動
Start の終了状態
Stop メソッド
Stop の概要
アプリケーションの停止
Stop の終了状態
障害モニターの定義
検証プログラム
検証プログラムの概要
プロパティ値の取得
サービスの信頼性の検査
再起動とフェイルオーバーの評価
データサービスの再起動
検証プログラムの終了状態
Monitor_start メソッド
Monitor_start の概要
検証プログラムの起動
Monitor_stop メソッド
Monitor_stop の概要
検証プログラムの停止
Monitor_stop の終了状態
Monitor_check メソッド
プロパティ更新の処理
Validate メソッド
Validate の概要
Validate メソッドの構文解析関数
Confdir の妥当性検査
Validate の終了状態
Update メソッド
Update の概要
Update による障害モニターの停止
障害モニターの再起動
Update の終了状態
第 6 章 データサービス開発ライブラリ (DSDL)
DSDL の概要
構成プロパティの管理
データサービスの起動と停止
障害モニターの実装
ネットワークアドレス情報へのアクセス
実装したリソースタイプのデバッグ
高可用性ローカルファイルシステムの有効化
第 7 章 リソースタイプの設計
RTR ファイル
Validate メソッド
Start メソッド
Stop メソッド
Monitor_start メソッド
Monitor_stop メソッド
Monitor_check メソッド
Update メソッド
Init、Fini、 Boot の各メソッド
障害モニターデーモンの設計
第 8 章 サンプル DSDL リソースタイプの実装
X Font Server について
X Font Server の構成ファイル
TCP ポート番号
命名規約
SUNW.xfnts の RTR ファイル
scds_initialize() 関数
xfnts_start メソッド
起動前のサービスの検証
サービスの起動
svc_start() からの復帰
xfnts_stop メソッド
xfnts_monitor_start メソッド
xfnts_monitor_stop メソッド
xfnts_monitor_check メソッド
SUNW.xfnts 障害モニター
xfonts_probe のメインループ
svc_probe() 関数
障害モニターのアクションの決定
xfnts_validate メソッド
xfnts_update メソッド
第 9 章 SunPlex Agent Builder
Agent Builder の使用
アプリケーションの分析
Agent Builder のインストールと構成
Agent Builder の起動
作成画面の使用
構成画面の使用
Agent Builder の $hostnames 変数の使用
複数の独立したプロセスツリーを持つリソースタイプの作成
完成した作業内容の再利用
既存のリソースタイプのクローンの作成
生成されたソースコードの編集
コマンド行バージョンの Agent Builder の使用
ディレクトリ構造
出力
ソースファイルとバイナリファイル
ユーティリティースクリプトとマニュアルページ
サポートファイル
パッケージディレクトリ
rtconfig ファイル
Agent Builder のナビゲーション
「ブラウズ」ボタン
メニュー
「ファイル」メニュー
「編集」メニュー
Agent Builder の Cluster Agent モジュール
Cluster Agent モジュールのインストールと設定
Cluster Agent モジュールの起動
Cluster Agent モジュールの使用
Cluster Agent モジュールと Agent Builder の違い
第 10 章 汎用データサービス
GDS の概要
コンパイル済みリソースタイプ
GDS を使用する利点
GDS を使用するサービスの作成方法
GDS と SunPlex Agent Builder
GDS と標準的な Sun Cluster 管理コマンド
GDS ベースのサービスを作成する方法の選択
GDS 機構を使用しない場合
GDS の必須プロパティ
Start_command 拡張プロパティ
Port_list プロパティ
GDS のオプションプロパティ
Network_resources_used プロパティ
Stop_command プロパティ
Probe_command プロパティ
Start_timeout プロパティ
Stop_timeout プロパティ
Probe_timeout プロパティ
Child_mon_level プロパティ
Failover_enabled プロパティ
Stop_signal プロパティ
SunPlex Agent Builder を使って GDS ベースのサービスを作成
Agent Builder を使って GDS ベースのサービスを作成
SunPlex Agent Builder の出力
標準的な Sun Cluster 管理コマンドを使って GDS ベースのサービスを作成
SunPlex Agent Builder のコマンド行インタフェース
第 11 章 データサービス開発ライブラリのリファレンス
DSDL 関数
汎用関数
プロパティ関数
ネットワークリソースアクセス関数
TCP 接続を使用する障害監視
PMF 関数
障害監視関数
ユーティリティ関数
第 12 章 CRNP
CRNP の概要
CRNP プロトコルの概要
CRNP プロトコルのセマンティクス
CRNP が使用するメッセージのタイプ
クライアントをサーバーに登録する方法
管理者によるサーバー設定の前提
サーバーによるクライアントの識別方法
クライアントとサーバー間での SC_CALLBACK_REG メッセージの受け渡し方法
SC_CALLBACK_REG メッセージの概念
クライアントに対するサーバーの応答方法
SC_REPLY メッセージの内容
クライアントによるエラー状況の処理
サーバーがクライアントにイベントを配信する方法
イベント配信の保証
SC_EVENT メッセージの内容
CRNP によるクライアントとサーバーの認証
CRNP を使用する Java アプリケーションの作成
付録 A 標準プロパティ
リソースタイププロパティ
リソースのプロパティ
リソースグループプロパティ
リソースプロパティの属性
付録 B データサービスのコード例
リソースタイプ登録ファイルのリスト
Start メソッド
Stop メソッド
gettime ユーティリティ
PROBE プログラム
Monitor_start メソッド
Monitor_stop メソッド
Monitor_check メソッド
Validate メソッド
Update メソッド
付録 C サンプル DSDL リソースタイプのコー ド例
xfnts.c
xfnts_monitor_check メソッド
xfnts_monitor_start メソッド
xfnts_monitor_stop メソッド
xfnts_probe メソッド
xfnts_start メソッド
xfnts_stop メソッド
xfnts_update メソッド
xfnts_validate メソッドのコードリスト
付録 D RGM の有効な名前と値
RGM の有効な名前
RGM の値
付録 E 非クラスタ対応のアプリケーションの要件
多重ホストデータ
多重ホストデータを配置するためのシンボリックリンクの使用
ホスト名
多重ホームホスト
INADDR_ANY へのバインドと特定の IP アドレスへのバインド
クライアントの再試行
付録 F CRNP のドキュメントタイプ定義
SC_CALLBACK_REG XML DTD
NVPAIR XML DTD
SC_REPLY XML DTD
SC_EVENT XML DTD
付録 G CrnpClient.java アプリケーション
CrnpClient.java のコンテンツ
© 2010, Oracle Corporation and/or its affiliates