Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Update after CmHandle batch delete

Table of Contents

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 1)7421c69 Use native query to delete data nodes
8Commit ID (improvement 2)a0aa860 CmHandle batch deletion


#

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 before any improvement (Commit Id: 9c56b30)

2,300.01

Total CM Handles 

Total Time


CM handles/sec


#

Before deletion

After deletion

Deleted 

150005002m 9s3.86
21,00001,0008m 3s2.07
32,00002,00032m 8s1.04
402,30037m 58s151,0005005005m 58s1.40
651,5001,0005009m 46s0.85
762,0001,50050012m 5s0.69
872,0001,0001,00023m 33s0.71

Test Results after improvement (Commit Id :

...

7421c69

...

Use native query to delete data nodes

...

)

Total CM Handles 

Total Time


CM handles/sec


Speedup over 9c56b30

#

Before deletion

After deletion

Deleted 

1500050011.5 s43.3311 x
21,00001,00033.7 s29.693014 x
32,00002,0001m 45s19.0818 x
42,3003,00003,0003m 41s14-
54,00002,3002m 22s16.2316 x54,0008m 53s8-
65,00005,00011m 23s7-
71,00050050019.6 s25.482618 x
681,5001,00050027.2 s18.4122 x
792,0001,50050037.8 s13.2219 x819
102,5002,00050042.3 s12-
112,0001,0001,0001m 10s14.2220 x20

Test Results after improvement (Commit Id : a0aa860 CmHandle batch deletion)

Total CM Handles 

Total Time


CM handles/sec


Speedup over 7421c69

#

Before deletion

After deletion

Deleted 

150005005.74 s872.0
21,00001,00011.7 s852.9
32,00002,00032.2 s623.3
43,00003,0001m 4s473.5
54,00004,0001m 33s435.7
65,00005,0002m 19s364.9
71,0005005006.4 s783.1
81,5001,0005007.8 s653.5
92,0001,5005009.6 s523.9
102,5002,0005009.7 s514.4
112,0001,0001,00017.0 s593.7

Performance of CM Handle Deregistration 2023-02-02.xlsx

Delete performance scenario on Nordix : (Commit id : 7421c69

#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 elements7968527581,000
5Delete 5 children with grandchildren222232225300
6Delete 10 list elements with keys1,0191,0979901,200
7Delete 1 large data node with many descendants:2,0081,9382,1362,500

Delete performance scenario on Nordix : (Commit id : 230b111

#Test ScenarioNordix Build 1 (ms)Nordix Build 2  (ms)Nordix Build 3  (ms)Nordix Build 4 (ms)Average (ms)Groovy test 
deleteDurationInMillis (ms)
1Delete 5 children249259251263256350
2Batch delete 100 children216227230231226350
3Delete 50 grandchildren234361304254283350
4Batch delete 500 grandchildren226234227219227350
5Delete 5 whole lists1,
500

...

1201,1561,0471,12411121,500
6Batch delete 100 whole lists310311340329323350
7Delete 10 lists elements501499476492492750
8Batch delete 500 lists elements230238227223230350
9Delete one large node214233251226231300
10Batch delete one large node156182156176168300
11Delete root node168173166166168300
12Delete data nodes for anchor170172164168168300

Instrumentation sample

...