Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 18 Current »

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 (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

Summary of test results

Note: the tests to de-register CM handles did not wait for all CM handles to be in the READY state, so improved test results should be considered as relative increases.

Total CM Handles 

Total Time

CM handles/sec

#

Before

Deleted 

9c56b307421c69

a0aa860

9c56b30

7421c69

a0aa860
15005002m 9s12 s6 s3.864387
21,0001,0008m 3s34 s12 s2.073085
32,0002,00032m 8s105s32 s1.041962
43,0003,000-3m 41s1m 4s-1447
54,0004,000-8m 53s1m 33s-843
65,0005,000-11m 23s2m 19s-736
71,0005005m 58s19.6 s6.4 s1.402678
81,5005009m 46s27.2 s7.8 s0.851865
92,00050012m 5s37.8 s9.6 s0.691352
102,500500-42.3 s9.7 s-1251
112,0001,00023m 33s70.0 s17.0 s0.711459

Test Results before any improvement (Commit Id: 9c56b30)

Total CM Handles 

Total Time


CM handles/sec


#

Before deletion

Deleted 

15005002m 9s3.86
21,0001,0008m 3s2.07
32,0002,00032m 8s1.04
41,0005005m 58s1.40
51,5005009m 46s0.85
62,00050012m 5s0.69
72,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

Deleted 

150050011.5 s4311
21,0001,00033.7 s3014
32,0002,0001m 45s1918
43,0003,0003m 41s14-
54,0004,0008m 53s8-
65,0005,00011m 23s7-
71,00050019.6 s2618
81,50050027.2 s1822
92,00050037.8 s1319
102,50050042.3 s12-
112,0001,0001m 10s1420

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

Total CM Handles 

Total Time


CM handles/sec


Speedup over 7421c69

#

Before deletion

Deleted 

15005005.7 s872.0
21,0001,00011.7 s852.9
32,0002,00032.2 s623.3
43,0003,0001m 4s473.5
54,0004,0001m 33s435.7
65,0005,0002m 19s364.9
71,0005006.4 s783.1
81,5005007.8 s653.5
92,0005009.6 s523.9
102,5005009.7 s514.4
112,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,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

NameMaxCountSum (sec)Avg (sec)
CPS Custom Instrumentation
cps_utils_yangparser_nodedata_with_parent_parse       0.121          3,000       1.128       0.000
cps_ncmp_lcm_events_publish       0.131          4,000       1.061       0.000
cps_ncmp_cmhandle_state_update_batch       5.886                15     33.485       2.232
cps_ncmp_inventory_persistence_schemaset_delete       0.130          1,000     13.132       0.013
cps_data_service_datanode_batch_delete       0.060          1,000       1.525       0.002
cps_ncmp_inventory_controller_update     49.925                  2     62.482     31.241
cps_data_service_list_delete       0.172          1,000     25.226       0.025
cps_data_service_datanode_get       0.558          4,057   283.310       0.070
cps_data_service_list_element_batch_save       0.000                15     11.980       0.799
cps_data_service_datanode_descendants_batch_updat       5.776                15     19.923       1.328
cps_ncmp_inventory_persistence_datanode_get       0.230                  2       0.242       0.121
Hibernation Auto Generated Instrumentation
FragmentRepository    
findByAnchorAndCpsPath
             118         0.985       0.008
identifyNewModuleReferences
          1,000         6.559       0.007
findByName
          2,242       17.978       0.008
deleteOrphans
          1,000         5.670       0.006
getResourceIdsByModuleReferences
          1,000         6.366       0.006
findAllBySchemaSet
          1,000         0.379       0.000
save
          1,000         1.475       0.001
findAllByChecksumIn
          1,004         1.857       0.002
findByAnchorIdAndParentXpath
          3,002       12.050       0.004
findByAnchorAndMultipleCpsPaths
                  1         0.077       0.077
findRootsByAnchorId
          2,059    102.334       0.050
deleteByAnchorIn
          1,000         0.630       0.001
findByDataspaceAndAnchorAndXpath
          4,000         2.365       0.001
DataspaceRepository    
findAll
                  1         0.006       0.006
saveAll
          1,019         6.940       0.007
AnchorRepository    
findByDataspaceAndName
        16,237       10.307       0.001
save
          1,000         1.138       0.001
delete
          1,000         0.094       0.000
YangResourceRepository    
saveAll SUCCESS
                  1         0.014       0.014
savaAll ERROR
                  4         0.208       0.052
insertSchemaSetIdYangResourceId
          1,000         1.081       0.001
SchemaSetRepository    
findByDataspaceAndName
          5,001         3.525       0.001
delete
          1,000         0.135       0.000
save
          1,000         1.104       0.001



  • No labels