De-Register CM Handles (Removed CM Handles)
Test Configurations
# | Environment/Workload | Description |
---|---|---|
1 | Tested on | laptop : Processor : 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz 2.42 GHz Installed RAM : 40.0 GB (39.7 GB usable) Edition : Windows 11 Business |
2 | Docker-compose | Docker-compose file: https://gerrit.onap.org/r/gitweb?p=cps.git;a=blob_plain;f=docker-compose/docker-compose.yml;hb=aa29f24b0da9b9d2c86a0c528357a17ff3d7a871 |
3 | cURL | De-Register CM Handles cURL |
4 | Number of CPS Instance | 1 |
5 | Number Modules per Cm Handle | 10 |
6 | Commit ID | aa29f24b0da9b9d2c86a0c528357a17ff3d7a871 https://gerrit.onap.org/r/gitweb?p=cps.git;a=commit;h=aa29f24b0da9b9d2c86a0c528357a17ff3d7a871 |
# | Component | Configuration Parameters | Value |
---|---|---|---|
1 | CPS | notifactions:enabled | true |
2 | CPS | config.additional.notification.data-updated.filters.dataspaces.enabled-dataspaces | "NON-EXISTING-DATASPACE" |
3 | NCMP | modules-sync-watchdog:async-executor:parallelism-level | 10 |
Test Results before any improvment
Total CM Handles | Total Time | CM handles/sec | |||
---|---|---|---|---|---|
# | Before deletion | After deletion | Deleted | ||
1 | 10 | 0 | 10 | 2.83 seconds | 3.5 |
2 | 50 | 0 | 50 | 20.42 seconds | 2.5 |
3 | 100 | 0 | 100 | 58 seconds | 1.7 |
Delete performance scenario on nordix:
# | Test Scenario | Nordix Build 1 (ms) | Nordix Build 2 (ms) | Nordix Build 3 (ms) | Groovy test deleteDurationInMillis (ms) |
1 | Delete root node with many descendants | 165 | 168 | 166 | 200 |
2 | Delete data nodes for an anchor | 172 | 210 | 169 | 250 |
3 | Delete 50 grandchildren (that have no descendants): | 304 | 232 | 263 | 350 |
4 | Delete 5 whole lists with many elements | 796 | 852 | 758 | 1000 |
5 | Delete 5 children with grandchildren | 222 | 232 | 225 | 300 |
6 | Delete 10 list elements with keys | 1019 | 1097 | 990 | 1200 |
7 | Delete 1 large data node with many descendants: | 2008 | 1938 | 2136 | 2500 |
Test Configurations
# | Environment/Workload | Description |
---|---|---|
1 | Tested on | laptop : Processor : Intel© Core™ i7-8750H CPU @ 2.20GHz × 6 Installed RAM : 32.0 GB Edition : Linux Mint 21.1 |
2 | Docker-compose | Docker-compose file: https://gerrit.onap.org/r/gitweb?p=cps.git;a=blob_plain;f=docker-compose/docker-compose.yml;hb=aa29f24b0da9b9d2c86a0c528357a17ff3d7a871 |
3 | cURL | De-Register CM Handles cURL |
4 | Number of CPS Instance | 1 |
5 | Number Modules per Cm Handle | 10 |
6 | Commit ID (before improvement) | |
7 | Commit ID (after improvement) | 7421c69 Use native query to delete data nodes |
Test Results before any improvement
Total CM Handles | Total Time | CM handles/sec | |||
---|---|---|---|---|---|
# | Before deletion | After deletion | Deleted | ||
1 | 10 | 0 | 10 | 2.83 seconds | 3.5 |
2 | 50 | 0 | 50 | 20.42 seconds | 2.5 |
3 | 100 | 0 | 100 | 58 seconds | 1.7 |