mysql-monitor-agent.ini ファイルには、MySQL Enterprise Agent の基本設定情報が含まれています。このファイルは、エージェント全体でサポートされる機能に関する重要な情報が含まれています。
この設定ファイルの例を次に示します。
# WARNING - The UUID defined below must be unique for each agent. # # To use this INI file as a template for configuring additional # agents, do not simply copy and start a new agent without first # modifying the UUID and adjusting other parameters as necessary. # # WARNING - If you are upgrading from a previous 1.x release, please # note that we have changed the contents of the agent INI file and # split the contents across two files: # # <installdir>/etc/mysql-monitor-agent.ini - this file # <installdir>/etc/instances/mysql/agent-instance.ini - new file # # Refer to the documentation for more detailed information and # instructions. # # Version: 2.2.0.1708 [mysql-proxy] # Common Parameters plugins=proxy,agent keepalive = true log-file = mysql-monitor-agent.log pid-file=/opt/mysql/enterprise/agent/mysql-monitor-agent.pid # Agent Parameters agent-mgmt-hostname = http://nautilus:18080/heartbeat agent-mgmt-username = agent agent-mgmt-password = Tamsin mysqld-instance-dir= etc/instances agent-item-files = share/mysql-monitor-agent/items/quan.lua,share/mysql-monitor-agent/items/items-mysql-monitor.xml,share/mysql-monitor- agent/items/custom.xml agent-uuid = 68b4892c-1310-4f07-8924-3a8b3c0e850b user = root # Proxy Parameters proxy-address=:6446 proxy-backend-addresses = 127.0.0.1:3306 proxy-lua-script = lib/mysql-monitor-agent/lua/quan.lua
あるマシンから別のマシンにエージェントの設定情報をコピーする場合は、agent-uuid を変更してください。各エージェントインスタンスには一意のエージェント ID が必要です。
メイン設定情報は、設定ファイルの [mysql-proxy] セクション内になければなりません。このファイル内のメイン設定パラメータを次に示します。
MySQL Enterprise Agent は、設定可能な次のオプションをサポートしています。
表C.6 mysql-monitor-agent ヘルプオプション
| Format | Option File | Description |
|---|---|---|
| --help-admin | ||
| --help-agent | ||
| --help-all | ||
| --help-monitor | ||
| --help-proxy |
表C.7 mysql-monitor-agent 管理オプション
| Format | Option File | Description |
|---|---|---|
| --admin-address | admin-address | |
| --admin-lua-script | admin-lua-script | |
| --admin-password | admin-password | |
| --admin-username | admin-username | |
| --proxy-address | proxy-address |
表C.8 mysql-monitor-agent エージェントオプション
表C.9 mysql-monitor-agent 監視オプション
| Format | Option File | Description |
|---|---|---|
| --monitor-interval | monitor-interval | |
| --monitor-lua-script | monitor-lua-script | |
| --monitor-password | monitor-password | |
| --monitor-username | monitor-username |
表C.10 mysql-monitor-agent プロキシオプション
表C.11 mysql-monitor-agent アグリゲータオプション
| Format | Option File | Description | Introduced |
|---|---|---|---|
| --aggr-address | aggr-address | 2.3.0 | |
| --aggr-flush-interval | aggr-flush-interval | 2.3.0 | |
| --aggr-lua-script | aggr-lua-script | 2.3.0 | |
| --aggr-max-request-body-size | aggr-max-request-body-size | 2.3.8 | |
| --aggr-mem-baseurl | aggr-mem-baseurl | 2.3.0 | |
| --aggr-ssl-address | aggr-ssl-address | 2.3.0 | |
| --aggr-ssl-ca-file | aggr-ssl-ca-file | 2.3.0 | |
| --aggr-ssl-cert-file | aggr-ssl-cert-file | 2.3.0 | |
| --aggr-ssl-ciphers | aggr-ssl-ciphers | 2.3.0 | |
| --aggr-test-mode | aggr-test-mode | 2.3.0 |
表C.12 mysql-monitor-agent アプリケーションオプション
| Command-Line Format | --help |
||
-? |
|||
使用可能なヘルプオプションを表示します。
| Command-Line Format | --help-all |
||
すべてのヘルプオプションを表示します。
| Command-Line Format | --help-admin |
||
管理モジュールのオプションを表示します。
| Command-Line Format | --help-proxy |
||
プロキシモジュールのオプションを表示します。
| Command-Line Format | --help-monitor |
||
監視モジュールのオプションを表示します。
| Command-Line Format | --help-agent |
||
エージェントモジュールのオプションを表示します。
| Command-Line Format | --admin-address |
||
| Option-File Format | admin-address |
||
| Permitted Values | |||
| Type | string |
||
| Default | :4041 |
||
管理ポートのホスト名 (または IP アドレス) とポートを指定します。デフォルトは localhost:4041 です。
| Command-Line Format | --admin-lua-script |
||
| Option-File Format | admin-lua-script |
||
| Permitted Values | |||
| Type | file name |
||
| Default | |
||
プロキシの管理モジュールに使用するスクリプトを指定します。
| Command-Line Format | --admin-password |
||
| Option-File Format | admin-password |
||
| Permitted Values | |||
| Type | string |
||
| Default | |
||
mysql-monitor-agent の管理モジュールに接続しようとしているユーザを認証するために使用するパスワードを定義します。管理モジュールは、接続のユーザ名とパスワードの要求に MySQL プロトコルを使用します。
| Command-Line Format | --admin-username |
||
| Option-File Format | admin-username |
||
| Permitted Values | |||
| Type | string |
||
| Default | root |
||
mysql-monitor-agent の管理モジュールに接続しようとしているユーザを認証するために使用するユーザ名を定義します。デフォルト名は root 。管理モジュールは、接続のユーザ名とパスワードの要求に MySQL プロトコルを使用します。
--agent-collector-plugins=user
| Command-Line Format | --agent-collector-plugins |
||
| Option-File Format | agent-collector-plugins |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | collect_lua |
||
エージェントによって使用およびロードされ、収集項目を提供するために使用されるプラグインのコンマ区切りのリスト。
サーバーを監視する場合、agent プラグインを設定する必要があります。Query Analyzer をサポートする場合、proxy モジュールを有効にする必要もあります。 プラグインは、プラグイン名を示したカンマで区切ったリストとして指定されます。
Query Analyzer をインストールの際に有効にした場合、デフォルトの値はproxy,agentです。インストール中に Query Analysis を無効にした場合、デフォルト値は agent になります。
{--agent-connect-timeout=seconds
| Command-Line Format | --agent-connect-timeout |
||
| Option-File Format | agent-connect-timeout |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 10 |
||
失敗がレポートされる前のエージェントのMySQLサーバーへのタイムアウト値です。
--agent-DNS-cachetimeout=seconds
| Command-Line Format | --agent-DNS-cachetimeout |
||
| Option-File Format | agent-DNS-cachetimeout |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 0 |
||
| Valid Values |
-1 (Never timeout) |
||
0 (Don't cache) | |||
与えられたDNS名のIPアドレスをキャッシュするためののタイムアウト値です。デフォルトでは、オペレーティンすシステムのアドレスのキャッシングが使用され、エージェント内のキャッシングはまったく使用されません。 -1 キャッシングを有効にした場合、タイムアウトしません。 他のすべての正の値はタイムアウト値を指定します。
| Command-Line Format | --agent-net-timeout |
||
| Option-File Format | agent-net-timeout |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 10 |
||
エージェントが既に接続しているMySQLサーバーから、レスポンスを得るまでのタイムアウト。
| Command-Line Format | --agent-report-network-fs |
||
| Option-File Format | agent-report-network-fs |
||
| Permitted Values | |||
| Type | boolean |
||
| Default | off |
||
ネットワークファイルシステムのデータ収集を有効にします。情報の特定とレポートによるレイテンシが他の情報の収集とレポートの遅延の原因となるため、ネットワークファイルシステムのレポーティングは無効になっています。ネットワークファイルシステムにおいてカスタムデータ収集を実行するアドバイザとグラフを使用する必要がある場合、収集を手動で有効にする必要があります。
| Command-Line Format | --agent-force-uncorking |
||
| Option-File Format | agent-force-uncorking |
||
MySQL Enterprise Service Manager に送信される応答のコーキングを強制的にオフにします。コーキングメカニズムは、サーバーでの情報の氾濫を防ぐため、サーバーに送信されるデータの報告間隔をランダム化しようとするものです。
このオプションと ---agent-report-offset を組み合わせると、データがサーバーに報告されるときのオフセットを指定できます。詳細は agent-report-offsetを参照してください。
この設定によってデータ収集の頻度が変更されることはありません。
| Command-Line Format | --agent-generate-uuid |
||
| Option-File Format | agent-generate-uuid |
||
エージェントの UUID を再生成します。1 台のマシンからもう 1 台のマシンにエージェントの設定情報をコピーした場合に、これを使用して新しい UUID を生成できます。次のように使用します。
shell> /opt/mysql/enterprise/agent/bin/mysql-monitor-agent --agent-generate-uuid ee9296d7-f7cd-4fee-8b26-ead884ebf398 2009-03-05 11:49:37: (critical) shutting down normally
詳細については、「複数の MySQL サーバーの監視」を参照してください。
| Command-Line Format | --agent-heartbeat-interval |
||
| Option-File Format | agent-heartbeat-interval |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 3 |
||
ハートビートの間隔を指定します。エージェントは MySQL Enterprise Service Manager にハートビートメッセージを送信して、まだ稼働中でありサーバーの監視を実行していることを示します。MySQL Enterprise Service Manager は、エージェントが使用可能かどうかを識別するためにこの情報を使用します。
| Command-Line Format | --agent-host-id |
||
| Option-File Format | agent-host-id |
||
エージェントのホスト ID を定義します。ホスト ID は、エージェントが稼働しているホストの一意の識別子にする必要があります。エージェント UUID とは異なります。2 つの同一のエージェント設定 (稼働中のサーバー設定と、プライマリサーバーの障害発生時に使用されるバックアップサーバー設定) を持つ HA 環境内では、使用するホスト ID を上書きできます。ホスト ID はサーバーがホストを特定するために使用されます。監視対象のサーバーが元のサーバーであってもフェイルオーバー (代わりの) サーバーのどちらであっても、フェイルオーバーのときはホスト ID が一定になるようにします。
| Command-Line Format | --agent-IP-version |
||
| Option-File Format | agent-IP-version |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | any |
||
| Valid Values | 4 |
||
6 | |||
MySQL Enterprise Agent が使用およびサポートする IP のバージョンを指定します。デフォルトでは、エージェントは IPv4 と IPv6 の両方をサポートします。または、4 か 6 を指定してバージョンを指定できます。
| Command-Line Format | --agent-host-id-commandline |
||
| Option-File Format | agent-host-id-commandline |
||
ホスト ID を生成するコマンドラインを指定します。デフォルトでは、ホスト ID は、SSH 鍵や組み込みのホスト ID 情報の使用など、特定のプラットフォームのために設定されたさまざまな方法によって生成されます。これを代わりとなるコマンドラインに置き換えることができます。
| Command-Line Format | --agent-hostname |
||
| Option-File Format | agent-hostname |
||
自動的に決定されたホスト名を上書きします。これを使用して、エージェントに代わりのホスト名を指定できます。これは、複数のホスト名があり、特定のホスト名でマシンを識別する場合に役立ちます。
MySQL Enterprise Dashboard内のManage Servers タブを使用してホスト名を設定すると、この設定を上書きします。
| Command-Line Format | --agent-item-files |
||
| Option-File Format | agent-item-files |
||
データ項目のロードに使用される項目ファイルのコンマ区切りのリスト。これらのデータ項目は、あとで収集され、MySQL Enterprise Service Manager に送信されます。詳細については、「 カスタムデータコレクションアイテムの作成」を参照してください。
デフォルト値はshare/mysql-proxy/items/quan.lua (Query Analyzer データを提供) およびshare/mysql-proxy/items/items-mysql-monitor.xml (コアエージェント監視データを提供)を含みます。
| Command-Line Format | --agent-max-response-size |
||
| Option-File Format | agent-max-response-size |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 65536 |
||
MySQL Enterprise Service Manager に送信される応答パケットの最大サイズを指定します。
| Version Introduced | 2.3.10 | ||
| Command-Line Format | --agent-ssh-keygen-attempts |
||
| Option-File Format | agent-ssh-keygen-attempts |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 10 |
||
Number of attempts that the agent should retry, for a failed ssh-keygen.
| Version Introduced | 2.3.10 | ||
| Command-Line Format | --agent-ssh-keygen-retry |
||
| Option-File Format | agent-ssh-keygen-retry |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 3 |
||
Time interval (in seconds) between attempts for a failed ssh-keygen attempt.
| Command-Line Format | --agent-master-uuid-discovery |
||
| Option-File Format | agent-master-uuid-discovery |
||
| Permitted Values | |||
| Type | boolean |
||
| Default | true |
||
デフォルトではMySQL Enterprise Agentはレプリケーションマスタの UUID を使用して、レプリケーショントポロジを識別します。このオプションを無効にすると、エージェントがmaster.infoへアクセスし、。レプリケーションマスタから得るUUIDを使用することを防ぎます。代わりにホスト名とポート情報を使用してトポロジを特定し、インスタンスとマスタ情報を一致させます。
| Command-Line Format | --agent-mgmt-hostname |
||
| Option-File Format | agent-mgmt-hostname |
||
収集されたデータが送信される MySQL Enterprise Service Manager の URL を設定します。この URL には、エージェントのユーザ名とパスワードを含めなければいけません (例: http://agent:password@memserver:18080/heartbeat)。
使用している環境で http_proxy 環境変数を設定している場合、no_proxy 変数に agent-mgmt-hostname の値を追加して、データが正しく MySQL Enterprise Service Manager に送信され、設定されたプロキシアドレスを通してリダイレクトされないようにしなければいけません。
| Command-Line Format | --agent-mgmt-username |
||
| Option-File Format | agent-mgmt-username |
||
| Permitted Values | |||
| Type | string |
||
MySQL Enterprise Service Manager との通信時に使用するユーザ名。
| Command-Line Format | --agent-mgmt-password |
||
| Option-File Format | agent-mgmt-password |
||
| Permitted Values | |||
| Type | string |
||
MySQL Enterprise Service Manager との通信時に使用するパスワード。
| Command-Line Format | --agent-report-offset |
||
| Option-File Format | agent-report-offset |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | random |
||
データが MySQL Enterprise Service Manager に送信される時間 (分) からのオフセット (秒)。これを使用して複数のマシンにわたるエージェント報告を調和または一致させることで、パフォーマンスが向上する場合があります。
たとえば、--agent-report-offset=15 と設定すると、毎分 15 秒後にデータが報告されます。 例、12:00:15、12:01:15 など。
| Command-Line Format | --agent-run-os-tests |
||
| Option-File Format | agent-run-os-tests |
||
内部のオペレーティングシステムテストを実行し、終了します。このオプションを使用すると、ホストについて収集可能な、さまざまなオペレーティングシステムの情報に関する大量の情報が生成されます。 これを使用すると、エージェントがサーバーに対して適切な量と品質の情報を集めているかどうかを判断できます。
出力例の抜粋を次に示します。
2010-01-22 16:15:45: (critical) MySQL Monitor Agent 2.2.1.1138 started. sigar-test-all.c.128 (): pid = 1353 sigar-test-all.c.110 (): mem.ram = 6080, mem.total = 6374154240, mem.used = 3356090368, mem.free = 3018063872, mem.actual_free = 3018063872, mem.actual_used = 3356090368 sigar-test-all.c.143 (): swap.total = 28523896832, swap.used = 710623232, swap.free = 27813273600 sigar-test-all.c.169 (): cpu.user = 24544920, cpu.sys = 136764840, cpu.nice = 0, cpu.idle = 1234759920, cpu.wait = 0, cpu.total = 349015500 sigar-test-all.c.194 (): [0] cpu.user = 8516770, cpu.sys = 56838970, cpu.nice = 0, cpu.idle = 283667220, cpu.wait = 0, cpu.total = 349022960 [1] cpu.user = 6130420, cpu.sys = 12671090, cpu.nice = 0, ...
| Command-Line Format | --agent-sync-attempts |
||
| Option-File Format | agent-sync-attempts |
||
再同期のときに、サーバーとの同期を試行します。
| Command-Line Format | --agent-track-alloc |
||
| Option-File Format | agent-track-alloc |
||
エージェントのさまざまなモジュールでメモリー割り当てを追跡して、メモリー使用量の監視を手助けします。
| Command-Line Format | --agent-uuid |
||
| Option-File Format | agent-uuid |
||
| Permitted Values | |||
| Type | string |
||
エージェントの UUID を指定します。UUID はインストール中に各エージェントのために自動的に生成され、自動的に設定に追加されます。agent-generate-uuid コマンドラインオプションを使用して、新しい UUID を生成できます。
複数のホストを設定して、ホスト間の設定をコピーする場合、agent-uuid が一意であることを確認してください。この設定プロパティを空白のままにすると、エージェントで新しい UUID を作成できます。
| Command-Line Format | --basedir |
||
| Option-File Format | basedir |
||
| Permitted Values | |||
| Type | file name |
||
ほかのすべてのファイル名設定オプションの先頭に追加されるベースディレクトリを指定します。 絶対パスでディレクトリ名を使用します。相対パスを使用すると、mysql-monitor-agent がスタートアップ時にエラーを発生します。
| Command-Line Format | --defaults-file |
||
| Option-File Format | defaults-file |
||
設定情報を含むファイルとして使用するファイルを指定します。指定しない場合、設定オプションはコマンドラインからのみ取得されます。
| Command-Line Format | --event-threads |
||
| Option-File Format | event-threads |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 1 |
||
受け取る要求を扱うために予約するイベントスレッドの数を指定します。
| Command-Line Format | --keepalive |
||
| Option-File Format | keepalive |
||
クラッシュなどの障害が発生したときに真の mysql-monitor-agent プロセスの再開を試行する、主要な mysql-monitor-agent を囲むプロセスを作成します。
エージェントが予期せず停止した場合、エンジェルがエージェントを復活させます。
予期できる停止:
MySQL Enterprise Agentが通常の方法で終了
SIGTERMによるシャットダウン
スタートアップエラー
エンジェル がSIGHIP、SIGTERM または SIGINT シグナルのいずれかを受信シア場合、そのシグナルははエージェントニ送られ、エージェントはシャットダウンを開始します。
| Command-Line Format | --agent-backlog-timeout |
||
| Option-File Format | agent-backlog-timeout |
||
| Permitted Values | |||
| Type | numeric |
||
エージェントが MySQL Enterprise Service Manager と通信できない場合に、データがエージェントによって保持される時間 (秒単位)。 エージェントが再接続すると、データは MySQL Enterprise Service Manager に送信されます。 指定された値より古いデータは破棄されます。 デフォルトは 600 秒。
| Version Introduced | 2.3.0 | ||
| Command-Line Format | --aggr-address |
||
| Option-File Format | aggr-address |
||
| Permitted Values | |||
| Type | string |
||
| Default | *:14000 |
||
MySQL Enterprise Agent Aggregator の待機ホスト名と待機ポートのどちらか、または両方を指定します。
| Command-Line Format | --log-backtrace-on-crash |
||
| Option-File Format | log-backtrace-on-crash |
||
障害発生時、エラーログにバックトレースを記録して、デバッガの初期化を試行します。
| Version Introduced | 2.3.0 | ||
| Command-Line Format | --aggr-lua-script |
||
| Option-File Format | aggr-lua-script |
||
| Permitted Values | |||
| Type | string |
||
MySQL Enterprise Agent Aggregator の動作に使用されるスクリプトを指定します。
--aggr-max-request-body-size=bytes
| Version Introduced | 2.3.8 | ||
| Command-Line Format | --aggr-max-request-body-size |
||
| Option-File Format | aggr-max-request-body-size |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 1048576 |
||
Limits the maximum size of requests sent to the Aggregator, to avoid potential out-of-memory errors on the system running the Agent (and its Aggregator component).
| Version Introduced | 2.3.0 | ||
| Command-Line Format | --aggr-mem-baseurl |
||
| Option-File Format | aggr-mem-baseurl |
||
| Permitted Values | |||
| Type | string |
||
クライアントプラグインから収集したクエリ集合を送信するときに使用される、MySQL Enterprise Service Manager のベース URL。
| Version Introduced | 2.3.0 | ||
| Command-Line Format | --aggr-ssl-address |
||
| Option-File Format | aggr-ssl-address |
||
| Permitted Values | |||
| Type | string |
||
| Default | *:14001 |
||
SSL 接続の待機時に使用される、待機ホスト名と待機ポートのどちらか、または両方。
| Version Introduced | 2.3.0 | ||
| Command-Line Format | --aggr-ssl-ca-file |
||
| Option-File Format | aggr-ssl-ca-file |
||
| Permitted Values | |||
| Type | string |
||
SSL 通信に使用される CA チェーンファイル。
| Version Introduced | 2.3.0 | ||
| Command-Line Format | --aggr-ssl-cert-file |
||
| Option-File Format | aggr-ssl-cert-file |
||
| Permitted Values | |||
| Type | string |
||
MySQL Enterprise Agent Aggregator のサーバー証明書。これは、非公開鍵と署名付き証明書の組み合わせで構成される PEM ファイルの形式でなければいけません。
| Version Introduced | 2.3.0 | ||
| Command-Line Format | --aggr-ssl-ciphers |
||
| Option-File Format | aggr-ssl-ciphers |
||
| Permitted Values | |||
| Type | string |
||
SSL を使用した安全な通信に使用される暗号のリスト。
| Version Introduced | 2.3.0 | ||
| Command-Line Format | --aggr-test-mode |
||
| Option-File Format | aggr-test-mode |
||
| Permitted Values | |||
| Type | string |
||
MySQL Enterprise Agent Aggregator をテストモードで起動します。
| Command-Line Format | --log-file |
||
| Option-File Format | log-file |
||
| Permitted Values | |||
| Type | file name |
||
ログ情報の記録に使用されるファイル名を指定します。完全なパス名を指定しない場合、ログファイルの位置は、エージェントのインストールディレクトリと相対的とみなされます。
| Command-Line Format | --log-level |
||
| Option-File Format | log-level |
||
| Permitted Values | |||
| Type | enumeration |
||
| Default | critical |
||
| Valid Values |
error (Show error messages) |
||
warning (Show only warning messages) | |||
info (Show informational messages) | |||
message (Show information about agent and basic processing) | |||
critical (Show critical messages highlighting agent problems) | |||
debug (Show detailed information, including info provided to server) | |||
エラーメッセージの出力時に使用されるログレベル。 そのレベル以下のメッセージが出力されます。たとえば、message を指定すると、info、warning、および error メッセージも出力されます。
log-level を debug に設定する場合は注意してください。この設定を追加すると、mysql-monitor-agent.log ファイルのサイズはすぐに大きくなります。 ディスク容量の問題を回避するには、MySQL サーバーおよび MySQL Enterprise Dashboard とは別のドライブにログファイルを保存します。
本番サーバーでは、critical または error の log-level を使用することを強くお勧めします。これより高いレベルでは、エージェント問題のデバッグに使用するためのより詳細な情報が提供されます。
Windows の場合、log-level を debug に設定したあとでコマンドラインからエージェントを再起動すると、幅広いデバッグ情報が、コンソールおよびログファイルに表示されます。
| Command-Line Format | --log-use-syslog |
||
| Option-File Format | log-use-syslog |
||
エラーが syslog に送信されるようにします (Unix/Linux のみ)。
| Command-Line Format | --lua-cpath |
||
| Option-File Format | lua-cpath |
||
| Permitted Values | |||
| Type | file name |
||
Lua スクリプトのコンパイル済みモジュールやライブラリのロード時に使用される LUA_CPATH を指定します。
| Command-Line Format | --lua-path |
||
| Option-File Format | lua-path |
||
| Permitted Values | |||
| Type | file name |
||
Lua のモジュールのロード時に使用される LUA_CPATH を指定します。
| Command-Line Format | --max-open-files |
||
| Option-File Format | max-open-files |
||
| Permitted Values | |||
| Type | numeric |
||
mysql-monitor-agent プロセスによってサポートされる、開くファイルとソケットの最大数。特定のスクリプトでは、この値を増やさなければならないことがあります。
| Command-Line Format | --monitor-interval |
||
| Option-File Format | monitor-interval |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 1 |
||
| Min Value | 1 |
||
この間隔でバックエンドにクエリを実行します。デフォルトは 1 です。
| Command-Line Format | --monitor-lua-script |
||
| Option-File Format | monitor-lua-script |
||
| Permitted Values | |||
| Type | string |
||
監視モジュールに使用する Lua スクリプトのファイル名。
| Command-Line Format | --monitor-password |
||
| Option-File Format | monitor-password |
||
| Permitted Values | |||
| Type | string |
||
監視するユーザアカウントのパスワード。
| Command-Line Format | --monitor-username |
||
| Option-File Format | monitor-username |
||
| Permitted Values | |||
| Type | string |
||
| Default | monitor |
||
監視するユーザアカウントのユーザ名。
| Command-Line Format | --mysqld-instance-dir |
||
| Option-File Format | mysqld-instance-dir |
||
| Permitted Values | |||
| Type | string |
||
MySQL インスタンスの設定ファイルへのパス。
| Command-Line Format | --agent-IP-version |
||
| Option-File Format | agent-IP-version |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | any |
||
| Valid Values | 4 |
||
6 | |||
アドレス指定に使用される IP バージョンを明示的に設定します。デフォルトで、エージェントは両バージョンを使用します。この値は、4 (IPv4 の場合) または 6 (IPv6 の場合) を指定して設定します。
| Version Introduced | 2.3.0 | ||
| Command-Line Format | --aggr-flush-interval |
||
| Option-File Format | aggr-flush-interval |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 60 |
||
MySQL Enterprise Service Managerにクエリがフラッシュされる間隔。 デフォルト値は60です。
| Command-Line Format | --no-proxy |
||
| Option-File Format | no-proxy |
||
プロキシモジュールを無効にします。
| Command-Line Format | --plugin-dir |
||
| Option-File Format | plugin-dir |
||
| Permitted Values | |||
| Type | file name |
||
mysql-monitor-agent のプラグインのロード時に使用するディレクトリ。
| Command-Line Format | --plugins |
||
| Option-File Format | plugins |
||
| Permitted Values | |||
| Type | string |
||
ロードされるプラグインのコンマ区切りのリスト。
| Command-Line Format | --proxy-address |
||
-P |
|||
| Option-File Format | proxy-address |
||
| Permitted Values | |||
| Type | string |
||
| Default | :6446 |
||
プロキシサーバーの待機ホスト名 (または IP アドレス) およびポート。 デフォルトは :6446 です (すべての IP がポート 6446 を使用)。この設定は、Query Analysis を使用するときに、アプリケーションが通常の MySQL サーバーの代わりに使用するアドレスまたはポートとして使用されます。これは、デフォルトでは、インストール中に設定されます。
--proxy-read-only-backend-addresses=host:port
| Command-Line Format | --proxy-read-only-backend-addresses |
||
-r |
|||
| Option-File Format | proxy-read-only-backend-addresses |
||
| Permitted Values | |||
| Type | string |
||
読み取り専用接続でのプロキシサーバーの待機ホスト名 (または IP アドレス) およびポート。この情報のデフォルトは設定されません。
--proxy-backend-addresses=host:port
| Command-Line Format | --proxy-backend-addresses |
||
-b |
|||
| Option-File Format | proxy-backend-addresses |
||
| Permitted Values | |||
| Type | string |
||
| Default | 127.0.0.1:3306 |
||
接続する MySQL サーバーのホスト名 (または IP アドレス) およびポート。複数のオプションを使用すれば、複数のバックエンドサーバーを指定できます。クライアントは、ラウンドロビン方式で各バックエンドサーバーに接続されます。たとえば、2 つのサーバーとして A と B を指定した場合、1 つめのクライアント接続はサーバー A へ、2 つめのクライアント接続はサーバー B へ、そして 3 つめのクライアント接続はサーバー A へ向かいます。 8
| Command-Line Format | --proxy-pool-no-change-user |
||
| Option-File Format | proxy-pool-no-change-user |
||
backend-addresses リストで指定された接続のプールから接続を再利用する場合に、MySQL プロトコル CHANGE_USER の使用を無効にします。
| Command-Line Format | --proxy-skip-profiling |
||
| Option-File Format | proxy-skip-profiling |
||
クエリのプロファイル (時間統計の追跡) を無効にします。デフォルトでは、追跡が有効になっています。
| Command-Line Format | --proxy-fix-bug-25371 |
||
| Option-File Format | proxy-fix-bug-25371 |
||
5.1.12 より前のいずれかのバージョンの MySQL クライアントライブラリを使用している場合に、5.1.12 以降のバージョンの MySQL Server に接続したときに起こる問題を解決します。
| Command-Line Format | --proxy-lua-script |
||
-s |
|||
| Option-File Format | proxy-lua-script |
||
| Permitted Values | |||
| Type | file name |
||
ロードされる Lua スクリプトファイルを指定します。接続されるまでは、スクリプトファイルは物理的にロードおよび解析されません。また、指定された Lua スクリプトは接続されるごとに再ロードされます。mysql-monitor-agent の実行中に Lua スクリプトの内容が変更された場合、新しく接続されたときに更新された内容が自動的に使用されます。 Query Analyzerするには、このパラメータをshare/mysql-proxy/quan.luaに設定します。これはデフォルト値です。
| Command-Line Format | --daemon |
||
| Option-File Format | daemon |
||
プロキシをデーモンモードで起動します。
| Command-Line Format | --pid-file |
||
| Option-File Format | pid-file |
||
| Permitted Values | |||
| Type | file name |
||
プロセス ID の保存に使用されるファイル名を設定します。これは、シャットダウンされるプロセスを特定するために、エージェントをシャットダウンするスクリプトにより使用されます。デフォルト値は、エージェントインストーラにより作成される基本インストールディレクトリ内の mysql-monitor-agent.pid ファイルです。
| Command-Line Format | --user |
||
| Option-File Format | user |
||
| Permitted Values | |||
| Type | string |
||
指定された user として mysql-monitor-agent を実行します。
| Command-Line Format | --version |
||
-V |
|||
| Option-File Format | version |
||
バージョン番号を表示します。
| Command-Line Format | --verbose-shutdown |
||
| Option-File Format | verbose-shutdown |
||
| Permitted Values | |||
| Type | boolean |
||
| Default | off |
||
デフォルトでは、log-level を message またはそれ以上に設定してある場合のみ、エージェントシャットダウンメッセージが記録されます。このオプションを使用すると、ログレベルにかかわらず、シャットダウンメッセージが強制的に報告されるようにできます。
