This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde.(Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique.(Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica.(Aviso legal)
此内容已动态机器翻译。放弃
このコンテンツは動的に機械翻訳されています。免責事項
이 콘텐츠는 동적으로 기계 번역되었습니다.책임 부인
This content has been machine translated dynamically.
This content has been machine translated dynamically.
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt.(Haftungsausschluss)
Ce article a été traduit automatiquement.(Clause de non responsabilité)
Este artículo ha sido traducido automáticamente.(Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.책임 부인
Este artigo foi traduzido automaticamente.
这篇文章已经过机器翻译.放弃
Translation failed!
DataStreamのモニターを構成します
負荷分散された各データベースサーバーの状態をリアルタイムで追跡するには、モニターを各サービスにバインドする必要があります。モニターは、定期的なプローブをサービスに送信することによってサービスをテストするように構成されています。これは、ヘルスチェックの実行と呼ばれることもあります。モニターがプローブへのタイムリーな応答を受信すると、サービスをUPとしてマークします。指定された数のプローブに対するタイムリーな応答を受信しない場合、サービスは DOWN としてマークされます。
DataStreamの場合、組み込みのモニターMYSQL-ECVおよびMSSQL-ECVを使用する必要があります。このモニターを使用すると、SQL要求を送信し、文字列の応答を解析できます。
DataStreamのモニターを構成する前に、データベースユーザーの資格情報をNetScaler アプライアンスに追加する必要があります。モニタの構成の詳細については、「負荷分散セットアップでのモニタの設定」を参照してください。
モニターを作成すると、データベースサーバーとの TCP 接続が確立され、モニターの作成時に指定されたユーザー名を使用して接続が認証されます。その後、データベースサーバーに対する SQL クエリを実行し、サーバー応答を評価して、構成済みのルールに一致するかどうかを確認できます。
以下の例は、MYSQLサーバー用です。
例:
次の例では、エラーメッセージの値を評価して、サーバーの状態を判別します。
加磅监控lb_mon1 MYSQL-ECV -sqlQuery "select * from table2;" -evalrule "mysql.res.error.message.contains("Invalid User")"-database "NS" -userName "user1"
次の例では、応答のロー数を評価して、サーバーの状態を判断します。
加磅监控lb_mon4 MYSQL-ECV -sqlQuery "select * from table4;" -evalrule "mysql.res.atleast_rows_count(7)" -database "NS" -userName "user2"
次の例では、特定のカラムの値を評価して、サーバーの状態を判断します。
加磅监控lb_mon3 MYSQL-ECV -sqlQuery "select * from ABC;" -evalrule "mysql.res.row(1).double_elem(2) == 345.12" -database "NS" -userName "user3"
次の例は、MSSQL サーバー用です。
例:
次の例では、エラーメッセージの値を評価して、サーバーの状態を判別します。
加磅监控lb_mon1 MSSQL-ECV -sqlQuery "select * from table2;" -evalrule "mssql.res.error.message.contains("Invalid User")"-database "NS" -userName "user1"
次の例では、応答のロー数を評価して、サーバーの状態を判断します。
加磅监控lb_mon4 MSSQL-ECV -sqlQuery "select * from table4;" -evalrule "mssql.res.atleast_rows_count(7)" -database "NS" -userName "user2"
次の例では、特定のカラムの値を評価して、サーバーの状態を判断します。
加磅监控lb_mon3 MSSQL-ECV -sqlQuery "select * from ABC;" -evalrule "mssql.res.row(1).double_elem(2) == 345.12" -database "NS" -userName "user3"
共有
共有
この記事の概要
This Preview product documentation is Citrix Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Citrix Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Citrix product purchase decisions.
If you do not agree, select Do Not Agree to exit.