Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Upload excel sheet

...

De-Register CM Handles (Removed CM Handles)

Test Configurations

#

Environment/Workload

Description

1Tested on 

laptop :

Processor :          Intel© Core™ i7-8750H CPU @ 2.20GHz × 6

Installed RAM :   32.0 GB

Edition :               Linux Mint 21.1

2Docker-compose 

Docker-compose file: https://gerrit.onap.org/r/gitweb?p=cps.git;a=blob_plain;f=docker-compose/docker-compose.yml;hb=aa29f24b0da9b9d2c86a0c528357a17ff3d7a871

3cURL

De-Register CM Handles cURL Expand source

4Number of CPS Instance

1

5Number Modules per Cm Handle

10

6Commit ID (before improvement)

9c56b30 Fetch CM handles by collection of xpaths

7Commit ID (after improvement)7421c69 Use native query to delete data nodes


#

Component

Configuration Parameters

Value

1CPSnotifactions:enabled

true

2CPSconfig.additional.notification.data-updated.filters.dataspaces.enabled-dataspaces
"NON-EXISTING-DATASPACE"
3NCMPmodules-sync-watchdog:async-executor:parallelism-level

10

...

Test Results after improvement 7421c69 Use native query to delete data nodes


Total CM Handles 



Total Time


CM handles/sec


Speedup

#

Before deletion

After deletion

Deleted 


1500050011.5 s43.3311 x
2100050050019.6 s25.4818 x
31500100050027.2 s18.4122 x
42000150050037.8 s13.2219 x
510000100033.7 s29.6914 x
62000100010001m 10s14.2220 x
72000020001m 45s19.0818 x
82300023002m 22s16.2316 x

Spreadsheet: 

View file
namePerformance of CM Handle Deregistration.odsxlsx
height250

Delete performance scenario on Nordix:

#Test ScenarioNordix Build 1 (ms)Nordix Build 2  (ms)Nordix Build 3  (ms)Groovy test 
deleteDurationInMillis (ms)
1Delete root node with many descendants165168166200
2Delete data nodes for an anchor172210169250
3Delete 50 grandchildren (that have no descendants):304232263350
4Delete 5 whole lists with many elements7968527581000
5Delete 5 children with grandchildren222232225300
6Delete 10 list elements with keys101910979901200
7Delete 1 large data node with many descendants:2008193821362500