差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
ja:documentation:pandorafms:technical_annexes:03_capacity_planning [2024/08/16 05:26] – [ICMP サーバ(Enterprise)] junichi | ja:documentation:pandorafms:technical_annexes:03_capacity_planning [2024/10/14 06:48] (現在) – [概要] junichi | ||
---|---|---|---|
行 9: | 行 9: | ||
===== 概要 ===== | ===== 概要 ===== | ||
- | [[en: | + | [[:en: |
[[: | [[: | ||
- | The load tests are also used to observe | + | Load tests are also used to see the maximum capacity per server. In the current architecture model ([[:en: |
負荷テストは、サーバあたりの最大容量を観察するためにも使用されます。現在のアーキテクチャモデル ([[ja: | 負荷テストは、サーバあたりの最大容量を観察するためにも使用されます。現在のアーキテクチャモデル ([[ja: | ||
行 459: | 行 459: | ||
<wrap #ks3_3 /> | <wrap #ks3_3 /> | ||
- | ==== SNMP サーバ(Enterprise) | + | ==== SNMP サーバ ==== |
This is specifically about the SNMP Enterprise network server. In case of testing for the Open network server, see the section on the (generic) network server. | This is specifically about the SNMP Enterprise network server. In case of testing for the Open network server, see the section on the (generic) network server. | ||
- | これは SNMP Enterprise | + | これは SNMP ネットワークサーバーに関するものです。 オープンソースのネットワークサーバのテストの場合は、(汎用の)ネットワークサーバの章を参照してください。 |
Assuming that you have the server already working and configured, we are going to explain some key parameters for its working: | Assuming that you have the server already working and configured, we are going to explain some key parameters for its working: | ||
行 510: | 行 510: | ||
* 時々発生する問題: | * 時々発生する問題: | ||
* 監視処理とは関係ない(ネットワーク内のサーバのバックアップなどの)ネットワークの問題で、ネットワークの速度に影響を与えている場合。 | * 監視処理とは関係ない(ネットワーク内のサーバのバックアップなどの)ネットワークの問題で、ネットワークの速度に影響を与えている場合。 | ||
+ | |||
+ | <wrap #ks3_4 /> | ||
==== プラグイン、ネットワーク(オープンソース)、HTTP サーバ ==== | ==== プラグイン、ネットワーク(オープンソース)、HTTP サーバ ==== | ||
- | Here is applied the same concept | + | The same concept |
前述と同じ概念を適用しますが、より単純化された方法です。 以下を確認する必要があります。 | 前述と同じ概念を適用しますが、より単純化された方法です。 以下を確認する必要があります。 | ||
* Number of threads. | * Number of threads. | ||
+ | * Timeouts to calculate the worst-case incidence. | ||
+ | * Average check time. | ||
* スレッド数 | * スレッド数 | ||
- | |||
- | * Timeouts (to calculate the incidence in the worst case). | ||
- | |||
* タイムアウト(最悪の場合の発生率を計算するため) | * タイムアウト(最悪の場合の発生率を計算するため) | ||
- | |||
- | * Check average time. | ||
- | |||
* 平均時間の確認 | * 平均時間の確認 | ||
- | Scaling with these data a test group and check that the server capacity is constant over time. | + | Size a test set with this data, and verify |
これらのデータを使用してテストグループをスケーリングし、サーバ容量が時間の経過とともに一定であることを確認します。 | これらのデータを使用してテストグループをスケーリングし、サーバ容量が時間の経過とともに一定であることを確認します。 | ||
+ | |||
+ | <wrap #ks3_5 /> | ||
==== トラップ受信 ==== | ==== トラップ受信 ==== | ||
- | Here, the case is more simple: ssume that the system is not going to receive traps in a constant way, but that it is about evaluating | + | Here the assumption |
このケースはより単純です。システムが一定量のトラップを受信するのではなく、一時的に大量のトラップが来た場合の応答を評価し、そこからアラートを生成することを想定します。 | このケースはより単純です。システムが一定量のトラップを受信するのではなく、一時的に大量のトラップが来た場合の応答を評価し、そこからアラートを生成することを想定します。 | ||
- | To do this, you will only have to do a simple | + | To do this you simply need to make a script that generates traps in a controlled |
それには、制御された方法で高速でトラップを生成する単純なスクリプトを実行するだけで済みます。 | それには、制御された方法で高速でトラップを生成する単純なスクリプトを実行するだけで済みます。 | ||
- | <file> | + | <code bash> |
#!/bin/bash | #!/bin/bash | ||
TARGET=192.168.1.1 | TARGET=192.168.1.1 | ||
行 551: | 行 551: | ||
done | done | ||
- | </file> | + | </code> |
- | Note: stop it with the CTRL+C key after a few seconds, as it will generate hundreds of traps quickly. | + | **Note**: stop it with the CTRL+C key after a few seconds, as it will generate hundreds of traps quickly. |
- | 注: 数百のトラップがすばやく生成されるため、数秒後に CTRL+C キーで停止してください。 | + | **注**: 数百のトラップがすばやく生成されるため、数秒後に CTRL+C キーで停止してください。 |
- | Once the environment | + | Once the environment |
環境をセットアップしたら、次のことを検証する必要があります。 | 環境をセットアップしたら、次のことを検証する必要があります。 | ||
- | - Traps injection to a constant rate(just | + | - Injection of traps at a constant rate (just enter a '' |
- | - Traps Storm. Evaluate | + | - Trap storm. Evaluate |
- | - Effects of the system on a huge traps table ( more than 50 thounsand). This includes the effect of passing the DDBB maintenance. | + | - Effects of the system on a very large table of traps (greater |
- 一定速度のトラップを受信します(前述のスクリプトの **while** ループ内に '' | - 一定速度のトラップを受信します(前述のスクリプトの **while** ループ内に '' | ||
- 大量トラップ。大量のトラップ受信が発生した場合の、その前後、発生中の評価をします。 | - 大量トラップ。大量のトラップ受信が発生した場合の、その前後、発生中の評価をします。 | ||
- 巨大なトラップテーブル(5万以上)に対するシステム影響の確認。 これには、データベースメンテナンスへの影響も含みます。 | - 巨大なトラップテーブル(5万以上)に対するシステム影響の確認。 これには、データベースメンテナンスへの影響も含みます。 | ||
+ | |||
+ | <wrap #ks3_6 /> | ||
==== イベント ==== | ==== イベント ==== | ||
- | In a similar way as with the SNMP, evaluate | + | Similar to SNMP, the [[en: |
- | SNMP の場合と同様に、次の 2つの場合の Pandora FMS システムの[[: | + | SNMP の場合と同様に、次の 2つの場合の Pandora FMS システムの[[: |
- | 1. Normal | + | - Normal event reception |
+ | - Event generation storm. To do this, we will force the generation of events via CLI. Using the following command (with an existing group called " | ||
- | 1. イベント受信の通常の範囲。 これはデータサーバですでにテストされているため、ステータスが変更されるたびにイベントが生成されます。 | + | - イベント受信の通常の範囲。 これはデータサーバですでにテストされているため、ステータスが変更されるたびにイベントが生成されます。 |
+ | - 大量のイベント生成。これを行うには、CLI を介してイベントの生成を強制します。 次のコマンドを使用します(作成された " | ||
- | 2. Event generation Storm. To do this, we force the generation of evets via CLI. Using the following command (with a created " | + | <code bash> |
+ | pandora_manage / | ||
- | 2. 大量のイベント生成。これを行うには、CLI を介してイベントの生成を強制します。 次のコマンドを使用します(作成された " | + | </ |
- | < | + | That command, used in a loop like the one used to generate traps, can be used to generate dozens of events per second. It can be parallelized in a script with several instances to cause a higher number of insertions. This would serve to simulate the behavior of the system in an event storm. In this way the system could be tested before, during and after an event storm. |
- | / | + | このコマンドは、トラップの生成に使用したものと同様にループを使用し、1秒ごとに数十のイベントを生成するために使用します。発生数を増やすために、複数のインスタンスを使用して 1つのスクリプトを並列化することができます。 これは、大量のイベントが発生した場合にシステムのパフォーマンスをシミュレートするのに役立ちます。 このようにして、大量イベントの前後、最中にシステムをチェックできます。 |
- | / | + | |
- | </file> | + | <wrap # |
- | + | ||
- | This command, used un a loop as the one used to generate traps, it can be used to generate tens of events by second. It could be parallelize in one script with several instances to get a higher number of insertions. This will be useful to simulate the performance of the system if an event storm happens. This way we could check the system, before, during and after the event storm. | + | |
- | + | ||
- | このコマンドは、トラップの生成に使用したものと同様にループを使用し、1秒ごとに数十のイベントを生成するために使用します。発生数を増やすために、複数のインスタンスを使用して 1つのスクリプトを並列化することができます。 これは、大量のイベントが発生した場合にシステムのパフォーマンスをシミュレートするのに役立ちます。 このようにして、大量イベントの前後、最中にシステムをチェックできます。 | + | |
==== ユーザの同時アクセス ==== | ==== ユーザの同時アクセス ==== | ||
- | For this use another server, independent from Pandora FMS, using the WEB monitoring functionality. | + | For this, another server independent from Pandora FMS will be used, using the WEB monitoring functionality. |
こにには、WEB 監視機能を使用して、Pandora FMS から独立した別のサーバを使用します。 次のタスクをこの順序で実行するユーザセッションを実行し、それらにかかる時間を確認します。 | こにには、WEB 監視機能を使用して、Pandora FMS から独立した別のサーバを使用します。 次のタスクをこの順序で実行するユーザセッションを実行し、それらにかかる時間を確認します。 | ||
- | - Login in the console | + | - Login to the web console. |
- See events. | - See events. | ||
- Go to the group view. | - Go to the group view. | ||
- | - Go to the agent detail view. | + | - Go to agent detail view |
- | - Visualize | + | - Display |
- | - Visualization | + | - Display |
- | - Generation of report | + | - Generation of PDF report (another different report). |
- コンソールへのログイン。 | - コンソールへのログイン。 | ||
行 616: | 行 616: | ||
- PDF でのレポート生成(他のレポートにて)。 | - PDF でのレポート生成(他のレポートにて)。 | ||
- | This test is done with at least three different users. | + | This test is performed |
このテストは、少なくとも 3人の異なるユーザを使用して行います。このタスクは並列化して毎分実行することができるため、5つのタスク(それぞれがユーザを含む)があるのであれば、5人のユーザの同時ナビゲーションをシミュレートします。環境をセットアップしたら、次のことを考慮する必要があります。 | このテストは、少なくとも 3人の異なるユーザを使用して行います。このタスクは並列化して毎分実行することができるため、5つのタスク(それぞれがユーザを含む)があるのであれば、5人のユーザの同時ナビゲーションをシミュレートします。環境をセットアップしたら、次のことを考慮する必要があります。 | ||
- | - The average | + | - The average |
- | - The impact of CPU and memory will be measured | + | - CPU and memory |
- | - The impact of each user session | + | - The impact of each simulated |
- 各モジュールの平均速度で、メンテナンススクリプトの実行など、他の平行して行われる処理に関連した " | - 各モジュールの平均速度で、メンテナンススクリプトの実行など、他の平行して行われる処理に関連した " |