From dc95f3a47d7418c02479298e58f5a8efb773ce09 Mon Sep 17 00:00:00 2001 From: "adheli.tavares" Date: Tue, 26 Oct 2021 09:45:34 +0100 Subject: Distribution S3P testing results for Istanbul. Issue-ID: POLICY-3654 Change-Id: I171e71d62edbce9f326737cc8f7ad27fb1bab300 Signed-off-by: adheli.tavares (cherry picked from commit 802207c3dea71000f23777558d6377cbe133beca) --- .../dist_stability_monitor.PNG | Bin 81517 -> 0 bytes .../dist_stability_statistics.PNG | Bin 53205 -> 0 bytes .../dist_stability_threads.PNG | Bin 77025 -> 0 bytes .../dist_stability_threshold.PNG | Bin 28238 -> 0 bytes .../distribution-jmeter-testcases.png | Bin 0 -> 68050 bytes .../distribution-s3p-testplan.png | Bin 53609 -> 0 bytes .../distribution-s3p-vvm-sample.png | Bin 139259 -> 0 bytes .../distribution-visualvm-snapshot.png | Bin 0 -> 28049 bytes .../performance-statistics.png | Bin 93384 -> 105215 bytes .../performance-threshold.png | Bin 62947 -> 68979 bytes .../distribution-s3p-results/stability-monitor.png | Bin 0 -> 27304 bytes .../stability-statistics.png | Bin 0 -> 98335 bytes .../distribution-s3p-results/stability-threads.png | Bin 0 -> 47752 bytes .../stability-threshold.png | Bin 0 -> 62425 bytes docs/development/devtools/distribution-s3p.rst | 58 ++++++++++----------- 15 files changed, 28 insertions(+), 30 deletions(-) delete mode 100644 docs/development/devtools/distribution-s3p-results/dist_stability_monitor.PNG delete mode 100644 docs/development/devtools/distribution-s3p-results/dist_stability_statistics.PNG delete mode 100644 docs/development/devtools/distribution-s3p-results/dist_stability_threads.PNG delete mode 100644 docs/development/devtools/distribution-s3p-results/dist_stability_threshold.PNG create mode 100644 docs/development/devtools/distribution-s3p-results/distribution-jmeter-testcases.png delete mode 100644 docs/development/devtools/distribution-s3p-results/distribution-s3p-testplan.png delete mode 100644 docs/development/devtools/distribution-s3p-results/distribution-s3p-vvm-sample.png create mode 100644 docs/development/devtools/distribution-s3p-results/distribution-visualvm-snapshot.png create mode 100644 docs/development/devtools/distribution-s3p-results/stability-monitor.png create mode 100644 docs/development/devtools/distribution-s3p-results/stability-statistics.png create mode 100644 docs/development/devtools/distribution-s3p-results/stability-threads.png create mode 100644 docs/development/devtools/distribution-s3p-results/stability-threshold.png diff --git a/docs/development/devtools/distribution-s3p-results/dist_stability_monitor.PNG b/docs/development/devtools/distribution-s3p-results/dist_stability_monitor.PNG deleted file mode 100644 index 83eae8cc..00000000 Binary files a/docs/development/devtools/distribution-s3p-results/dist_stability_monitor.PNG and /dev/null differ diff --git a/docs/development/devtools/distribution-s3p-results/dist_stability_statistics.PNG b/docs/development/devtools/distribution-s3p-results/dist_stability_statistics.PNG deleted file mode 100644 index dce9b7cc..00000000 Binary files a/docs/development/devtools/distribution-s3p-results/dist_stability_statistics.PNG and /dev/null differ diff --git a/docs/development/devtools/distribution-s3p-results/dist_stability_threads.PNG b/docs/development/devtools/distribution-s3p-results/dist_stability_threads.PNG deleted file mode 100644 index 13e27c99..00000000 Binary files a/docs/development/devtools/distribution-s3p-results/dist_stability_threads.PNG and /dev/null differ diff --git a/docs/development/devtools/distribution-s3p-results/dist_stability_threshold.PNG b/docs/development/devtools/distribution-s3p-results/dist_stability_threshold.PNG deleted file mode 100644 index d65e8cc3..00000000 Binary files a/docs/development/devtools/distribution-s3p-results/dist_stability_threshold.PNG and /dev/null differ diff --git a/docs/development/devtools/distribution-s3p-results/distribution-jmeter-testcases.png b/docs/development/devtools/distribution-s3p-results/distribution-jmeter-testcases.png new file mode 100644 index 00000000..db28a7b2 Binary files /dev/null and b/docs/development/devtools/distribution-s3p-results/distribution-jmeter-testcases.png differ diff --git a/docs/development/devtools/distribution-s3p-results/distribution-s3p-testplan.png b/docs/development/devtools/distribution-s3p-results/distribution-s3p-testplan.png deleted file mode 100644 index 7a8559ce..00000000 Binary files a/docs/development/devtools/distribution-s3p-results/distribution-s3p-testplan.png and /dev/null differ diff --git a/docs/development/devtools/distribution-s3p-results/distribution-s3p-vvm-sample.png b/docs/development/devtools/distribution-s3p-results/distribution-s3p-vvm-sample.png deleted file mode 100644 index 4b2aa663..00000000 Binary files a/docs/development/devtools/distribution-s3p-results/distribution-s3p-vvm-sample.png and /dev/null differ diff --git a/docs/development/devtools/distribution-s3p-results/distribution-visualvm-snapshot.png b/docs/development/devtools/distribution-s3p-results/distribution-visualvm-snapshot.png new file mode 100644 index 00000000..03b73d36 Binary files /dev/null and b/docs/development/devtools/distribution-s3p-results/distribution-visualvm-snapshot.png differ diff --git a/docs/development/devtools/distribution-s3p-results/performance-statistics.png b/docs/development/devtools/distribution-s3p-results/performance-statistics.png index 6530a1bc..e6218537 100644 Binary files a/docs/development/devtools/distribution-s3p-results/performance-statistics.png and b/docs/development/devtools/distribution-s3p-results/performance-statistics.png differ diff --git a/docs/development/devtools/distribution-s3p-results/performance-threshold.png b/docs/development/devtools/distribution-s3p-results/performance-threshold.png index df15ba0f..85c2f5d4 100644 Binary files a/docs/development/devtools/distribution-s3p-results/performance-threshold.png and b/docs/development/devtools/distribution-s3p-results/performance-threshold.png differ diff --git a/docs/development/devtools/distribution-s3p-results/stability-monitor.png b/docs/development/devtools/distribution-s3p-results/stability-monitor.png new file mode 100644 index 00000000..2d2848d9 Binary files /dev/null and b/docs/development/devtools/distribution-s3p-results/stability-monitor.png differ diff --git a/docs/development/devtools/distribution-s3p-results/stability-statistics.png b/docs/development/devtools/distribution-s3p-results/stability-statistics.png new file mode 100644 index 00000000..04cd9063 Binary files /dev/null and b/docs/development/devtools/distribution-s3p-results/stability-statistics.png differ diff --git a/docs/development/devtools/distribution-s3p-results/stability-threads.png b/docs/development/devtools/distribution-s3p-results/stability-threads.png new file mode 100644 index 00000000..a2e9e9f0 Binary files /dev/null and b/docs/development/devtools/distribution-s3p-results/stability-threads.png differ diff --git a/docs/development/devtools/distribution-s3p-results/stability-threshold.png b/docs/development/devtools/distribution-s3p-results/stability-threshold.png new file mode 100644 index 00000000..a9cc71eb Binary files /dev/null and b/docs/development/devtools/distribution-s3p-results/stability-threshold.png differ diff --git a/docs/development/devtools/distribution-s3p.rst b/docs/development/devtools/distribution-s3p.rst index b91e394f..9ae93378 100644 --- a/docs/development/devtools/distribution-s3p.rst +++ b/docs/development/devtools/distribution-s3p.rst @@ -14,22 +14,16 @@ VM Details ---------- The stability and performance tests are performed on VM's running in the OpenStack cloud -environment in the ONAP integration lab. There are two separate VMs, one for running backend policy -services which policy distribution needs, and the other for the policy distribution service itself -and Jmeter. +environment in the ONAP integration lab. -**OpenStack environment details** +**Policy VM details** -- Version: Windriver Titanium - -**Policy Backend VM details (VM1)** - -- OS: Ubuntu 18.04.5 LTS -- CPU: 8 core, Intel Xeon E3-12xx v2 (Ivy Bridge), 2693.668 MHz, 16384 kB cache -- RAM: 32 GB -- HardDisk: 200 GB -- Docker version 19.03.8, build afacb8b7f0 -- Java: openjdk 11.0.8 2020-07-14 +- OS: Ubuntu 18.04 LTS (GNU/Linux 4.15.0-151-generic x86_64) +- CPU: 4 core +- RAM: 15 GB +- HardDisk: 39 GB +- Docker version 20.10.7, build 20.10.7-0ubuntu1~18.04.2 +- Java: openjdk 11.0.11 2021-04-20 Common Setup @@ -52,9 +46,9 @@ Ensure that the Java version that is executing is OpenJDK version 11 .. code-block:: bash $ java --version - openjdk 11.0.8 2020-07-14 - OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu-0ubuntu118.04.1) - OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0ubuntu118.04.1, mixed mode, sharing) + openjdk 11.0.11 2021-04-20 + OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.18.04) + OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.18.04, mixed mode) Install Docker and Docker Compose @@ -223,14 +217,14 @@ This will load up the visualVM GUI Connect to Distribution JMX Port. - 1. Right click on "Local" in the left panel of the screen and select "Add JMX Connection" + 1. On the visualvm toolbar, click on "Add JMX Connection" 2. Enter the Distribution container IP and Port 9090. This is the JMX port exposed by the distribution container - 3. Double click on the newly added nodes under "Local" to start monitoring CPU, Memory & GC. + 3. Double click on the newly added nodes under "Remotes" to start monitoring CPU, Memory & GC. Example Screenshot of visualVM -.. image:: distribution-s3p-results/distribution-s3p-vvm-sample.png +.. image:: distribution-s3p-results/distribution-visualvm-snapshot.png Stability Test of Policy Distribution @@ -261,11 +255,10 @@ The 72h stability test will run the following steps sequentially in a single thr - **Add CSAR** - Adds CSAR to the directory that distribution is watching - **Get Healthcheck** - Ensures Healthcheck is returning 200 OK - **Get Statistics** - Ensures Statistics is returning 200 OK -- **CheckPDPGroupQuery** - Checks that PDPGroupQuery contains the deployed policy -- **CheckPolicyDeployed** - Checks that the policy is deployed -- **Undeploy Policy** - Undeploys the policy -- **Delete Policy** - Deletes the Policy for the next loop -- **Check PDP Group for Deletion** - Ensures the policy has been removed and does not exist +- **Assert PDP Group Query** - Checks that PDPGroupQuery contains the deployed policy +- **Assert PoliciesDeployed** - Checks that the policy is deployed +- **Undeploy/Delete Policy** - Undeploys and deletes the Policy for the next loop +- **Assert PDP Group Query for Deleted Policy** - Ensures the policy has been removed and does not exist The following steps can be used to configure the parameters of the test plan. @@ -285,7 +278,7 @@ The following steps can be used to configure the parameters of the test plan. Screenshot of Distribution stability test plan -.. image:: distribution-s3p-results/distribution-s3p-testplan.png +.. image:: distribution-s3p-results/distribution-jmeter-testcases.png Running the Test Plan @@ -295,6 +288,11 @@ Check if the /tmp/policydistribution/distributionmount exists as it was created script execution. If not, run the following commands to create folder and change folder permissions to allow the testplan to insert the CSAR into the /tmp/policydistribution/distributionmount folder. +.. note:: + Make sure that only csar file is being loaded in the watched folder and log generation is in a + logs folder, as any sort of zip file can be understood by distribution as a policy file. A + logback.xml configuration file is available under setup/distribution folder. + .. code-block:: bash sudo mkdir -p /tmp/policydistribution/distributionmount @@ -324,13 +322,13 @@ Test Results **Test Statistics** -.. image:: distribution-s3p-results/dist_stability_statistics.PNG -.. image:: distribution-s3p-results/dist_stability_threshold.PNG +.. image:: distribution-s3p-results/stability-statistics.png +.. image:: distribution-s3p-results/stability-threshold.png **VisualVM Screenshots** -.. image:: distribution-s3p-results/dist_stability_monitor.PNG -.. image:: distribution-s3p-results/dist_stability_threads.PNG +.. image:: distribution-s3p-results/stability-monitor.png +.. image:: distribution-s3p-results/stability-threads.png Performance Test of Policy Distribution -- cgit 1.2.3-korg