diff options
author | Ram Krishna Verma <ram_krishna.verma@bell.ca> | 2020-06-03 15:26:10 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-06-03 15:26:10 +0000 |
commit | 9fcbadcca35f605cb7b9255034251c24ec31815c (patch) | |
tree | 66d82c8b558748a6edc7ab96ed1f256f07aaa540 /docs/development | |
parent | 21788ca7bef9c8677f198ec6c974cf1a773b5157 (diff) | |
parent | 9d4e96e8f008721f3664c8dfe9f3fc910c375fb2 (diff) |
Merge "Stability test documentation for Apex-pdp"
Diffstat (limited to 'docs/development')
-rw-r--r-- | docs/development/devtools/apex-s3p.rst | 80 | ||||
-rw-r--r-- | docs/development/devtools/images/frankfurt/apex_s3p_jm-1.png | bin | 0 -> 149789 bytes | |||
-rw-r--r-- | docs/development/devtools/images/frankfurt/apex_s3p_jm-2.png | bin | 0 -> 311321 bytes | |||
-rw-r--r-- | docs/development/devtools/images/frankfurt/apex_s3p_vm-1.png | bin | 0 -> 176069 bytes | |||
-rw-r--r-- | docs/development/devtools/images/frankfurt/apex_s3p_vm-2.png | bin | 0 -> 146018 bytes | |||
-rw-r--r-- | docs/development/devtools/zip/frankfurt/apex_s3p_result.tar | bin | 0 -> 4648960 bytes |
6 files changed, 80 insertions, 0 deletions
diff --git a/docs/development/devtools/apex-s3p.rst b/docs/development/devtools/apex-s3p.rst index d3a8d410..784c4cbf 100644 --- a/docs/development/devtools/apex-s3p.rst +++ b/docs/development/devtools/apex-s3p.rst @@ -267,6 +267,86 @@ After the test stop, we can generate a HTML test report via command :download:`result.zip <zip/result.tar>` + +Frankfurt release +^^^^^^^^^^^^^^^^^^ + +The 72 hour Stability Test for apex-pdp has the goal of introducing a steady flow of transactions using jMeter. + +The input event will be submitted through the rest interface of DMaaP , which then triggers a grpc request to CDS. Based on the response, another DMaaP event is triggered. + +This test will be performed in an OOM deployment setup. The test will be performed in a multi-threaded environment where 5 threads running in JMeter will keep sending events for the duration of 72 hours. + +Test Plan Frankfurt release +--------------------------- + +The 72 hours stability test will run the following steps in a 5 threaded loop. + +- **Create Policy** - creates a policy using the policy/api component +- **Deploy Policy** - deploys the policy in the existing PdpGroup +- **Check Health** - checks the health status of apex +- **Send Input Event** - trigger 'unauthenticated.DCAE_CL_OUTPUT' event of DMaaP. +- **Get Output Event Response** - check for the triggered output event. +- **Undeploy Policy** - undeploys the policy from PdpGroup +- **Delete Policy** - deletes the policy using the policy/api component + +The following steps can be used to configure the parameters of the test plan. + +- **HTTP Header Manager** - used to store headers which will be used for making HTTP requests. +- **HTTP Request Defaults** - used to store HTTP request details like Server Name or IP, Port, Protocol etc. +- **User Defined Variables** - used to store the following user defined parameters: + +================== ============================================================================ ============================ +**Name** **Description** **Default Value** +================== ============================================================================ ============================ +wait Wait time after each request (in milliseconds) 120000 +threads Number of threads to run test cases in parallel. 5 +threadsTimeOutInMs Synchronization timer for threads running in parallel (in milliseconds). 150000 +================== ============================================================================ ============================ + + +Download and update the jmx file presented in the apex-pdp git repository - `jmx file path <https://gerrit.onap.org/r/gitweb?p=policy/apex-pdp.git;a=tree;f=testsuites/apex-pdp-stability/src/main/resources;h=99d373033a190a690d4e05012bc3a656cae7bc3f;hb=refs/heads/master>`_. + +- HTTPSampler.domain - The ip address of the VM in which the apex container is running +- HTTPSampler.port - The listening port, here is 23324 +- ThreadGroup.druation - Set the duration to 72 hours (in seconds) + +Use the CLI mode to start the test + +.. code-block:: bash + + ./jmeter.sh -n -t ~/apexPdpStabilityTestPlan.jmx -Jusers=1 -l ~/stability.log + + +Stability Test Results Frankfurt release +----------------------------------------- + +The stability test plan was triggered for 72 hours, injecting input events to apex-pdp from 5 client threads running in JMeter. + +After the test stops, we can generate an HTML test report via the command: + +.. code-block:: bash + + ~/jMeter/apache-jmeter-5.2.1/bin/jmeter -g stability.log -o ./result/ + +============================================== =================================================== ================================ ============= ============ +**Number of Client Threads running in JMeter** **Number of Server Threads running in Apex engine** **Total number of input events** **Success %** **Error %** +============================================== =================================================== ================================ ============= ============ +5 4 26766 100% 0% +============================================== =================================================== ================================ ============= ============ + +**VisualVM Screenshot** + +.. image:: images/frankfurt/apex_s3p_vm-1.png +.. image:: images/frankfurt/apex_s3p_vm-2.png + +**JMeter Screenshot** + +.. image:: images/frankfurt/apex_s3p_jm-1.png +.. image:: images/frankfurt/apex_s3p_jm-2.png + +:download:`result.zip <zip/frankfurt/apex_s3p_result.tar>` + Setting up Performance Tests in APEX ++++++++++++++++++++++++++++++++++++ diff --git a/docs/development/devtools/images/frankfurt/apex_s3p_jm-1.png b/docs/development/devtools/images/frankfurt/apex_s3p_jm-1.png Binary files differnew file mode 100644 index 00000000..07b28590 --- /dev/null +++ b/docs/development/devtools/images/frankfurt/apex_s3p_jm-1.png diff --git a/docs/development/devtools/images/frankfurt/apex_s3p_jm-2.png b/docs/development/devtools/images/frankfurt/apex_s3p_jm-2.png Binary files differnew file mode 100644 index 00000000..cb68c897 --- /dev/null +++ b/docs/development/devtools/images/frankfurt/apex_s3p_jm-2.png diff --git a/docs/development/devtools/images/frankfurt/apex_s3p_vm-1.png b/docs/development/devtools/images/frankfurt/apex_s3p_vm-1.png Binary files differnew file mode 100644 index 00000000..7ecbbea9 --- /dev/null +++ b/docs/development/devtools/images/frankfurt/apex_s3p_vm-1.png diff --git a/docs/development/devtools/images/frankfurt/apex_s3p_vm-2.png b/docs/development/devtools/images/frankfurt/apex_s3p_vm-2.png Binary files differnew file mode 100644 index 00000000..548f2b72 --- /dev/null +++ b/docs/development/devtools/images/frankfurt/apex_s3p_vm-2.png diff --git a/docs/development/devtools/zip/frankfurt/apex_s3p_result.tar b/docs/development/devtools/zip/frankfurt/apex_s3p_result.tar Binary files differnew file mode 100644 index 00000000..1b4eeea4 --- /dev/null +++ b/docs/development/devtools/zip/frankfurt/apex_s3p_result.tar |