blob: 2ebbf484336afe08d554cecccbae3fffcd25625a [file] [log] [blame]
Pamela Dragoshba45dc62020-04-16 09:27:44 -04001.. This work is licensed under a
2.. Creative Commons Attribution 4.0 International License.
3.. http://creativecommons.org/licenses/by/4.0
4
5.. _xacml-s3p-label:
6
7.. toctree::
8 :maxdepth: 2
9
10Policy XACML PDP component
Jim Hahn8f35a812020-05-05 13:08:13 -040011##########################
Pamela Dragoshba45dc62020-04-16 09:27:44 -040012
jhh54525202021-03-29 15:30:29 -050013The stability test was executed by performing requests
Jim Hahn8f35a812020-05-05 13:08:13 -040014against the Policy RESTful APIs residing on the XACML PDP installed in the windriver
15lab. This was running on a kubernetes pod having the following configuration:
Pamela Dragoshba45dc62020-04-16 09:27:44 -040016
17- 16GB RAM
18- 8 VCPU
19- 160GB Disk
20
jhh54525202021-03-29 15:30:29 -050021The test was run via jmeter, which was installed on a separate VM so-as not
Jim Hahn8f35a812020-05-05 13:08:13 -040022to impact the performance of the XACML-PDP being tested.
Pamela Dragoshba45dc62020-04-16 09:27:44 -040023
Jim Hahn8f35a812020-05-05 13:08:13 -040024
25Stability Test of Policy XACML PDP
26************************************
27
28Summary
29=======
30
jhhab948fc2020-10-23 17:30:34 -050031The stability test was performed on a default ONAP OOM installation in the Intel Wind River Lab environment.
32JMeter was installed on a separate VM to inject the traffic defined in the
33`XACML PDP stability script
34<https://git.onap.org/policy/xacml-pdp/tree/testsuites/stability/src/main/resources/testplans/stability.jmx>`_
35with the following command:
Jim Hahn8f35a812020-05-05 13:08:13 -040036
37.. code-block:: bash
38
jhhab948fc2020-10-23 17:30:34 -050039 jmeter.sh -Jduration=259200 -Jusers=2 -Jxacml_ip=$ip -Jpap_ip=$ip -Japi_ip=$ip \
40 -Jxacml_port=31104 -Jpap_port=32425 -Japi_port=30709 --nongui --testfile stability.jmx
Jim Hahn8f35a812020-05-05 13:08:13 -040041
jhh54525202021-03-29 15:30:29 -050042Note: the ports listed above correspond to port 6969 of the respective components.
43
jhhab948fc2020-10-23 17:30:34 -050044The default log level of the root and org.eclipse.jetty.server.RequestLog loggers in the logback.xml
45of the XACML PDP
46(om/kubernetes/policy/components/policy-xacml-pdp/resources/config/logback.xml)
47was set to ERROR since the OOM installation did not have log rotation enabled of the
48container logs in the kubernetes worker nodes.
Jim Hahn8f35a812020-05-05 13:08:13 -040049
jhh54525202021-03-29 15:30:29 -050050The stability test, stability.jmx, runs the following, all in parallel:
51
52- Healthcheck, 2 simultaneous threads
53- Statistics, 2 simultaneous threads
54- Decisions, 2 simultaneous threads, each running the following tasks in sequence:
55 - Monitoring Decision
56 - Monitoring Decision, abbreviated
57 - Naming Decision
58 - Optimization Decision
59 - Default Guard Decision (always "Permit")
60 - Frequency Limiter Guard Decision
61 - Min/Max Guard Decision
62
63When the script starts up, it uses policy-api to create, and policy-pap to deploy
64the policies that are needed by the test. It assumes that the "naming" policy has
65already been created and deployed. Once the test completes, it undeploys and deletes
66the policies that it previously created.
67
Jim Hahn8f35a812020-05-05 13:08:13 -040068Results
69=======
70
jhh54525202021-03-29 15:30:29 -050071The stability summary results were reported by JMeter with the following summary line:
Jim Hahn8f35a812020-05-05 13:08:13 -040072
73.. code-block:: bash
74
jhh54525202021-03-29 15:30:29 -050075 summary = 207771010 in 72:00:01 = 801.6/s Avg: 6 Min: 0 Max: 411 Err: 0 (0.00%)
jhhab948fc2020-10-23 17:30:34 -050076
jhh54525202021-03-29 15:30:29 -050077The XACML PDP offered good performance with JMeter for the traffic mix described above, using 801 threads per second
jhhab948fc2020-10-23 17:30:34 -050078to inject the traffic load. No errors were encountered, and no significant CPU spikes were noted.
jhh54525202021-03-29 15:30:29 -050079The average transaction time was 6ms. with a maximum of 411ms.
jhhab948fc2020-10-23 17:30:34 -050080