Table of Contents |
---|
Test Steps & Test Data
- Create Dataspace: curl -u cpsuser:cpsr0cks! -X POST "http://localhost:8883/cps/api/v1/dataspaces?dataspace-name=openroadm" -H "accept: text/plain" -d ''
- Create Schemaset: curl -u cpsuser:cpsr0cks! -X POST "http://localhost:8883/cps/api/v1/dataspaces/openroadm/schema-sets?schema-set-name=owb-msa221-schema" -H "accept: text/plain" -H "Content-Type: multipart/form-data" -F 'file=@owb-msa221.zip;type=application/zip' Schemaset: owb-msa221.zip
- Create Anchor: curl -u cpsuser:cpsr0cks! -X POST "http://localhost:8883/cps/api/v1/dataspaces/openroadm/anchors?schema-set-name=owb-msa221-schema&anchor-name=owb-msa221-anchor" -H "accept: text/plain" -d ''
- Post the initial Node:
curl -g -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" -H "Content-Type: application/json" --request POST 'http://localhost:8883/cps/api/v1/dataspaces/openroadm/anchors/owb-msa221-anchor/nodes' -d @owb-msa22-first-node-payload.json -i Test data: owb-msa22-first-node-payload.json - Use Test client to post multiple data concurrently. Test data: msa221-data.zip
Write Test Cases
Test Iteration 1 - 4 GB RAM, 2 vCPU - Kubernetes Cluster
...
# | #Nodes | Thread | Time taken to post single node | Time taken to post all data nodes | Comments |
---|---|---|---|---|---|
1 | 1000 | 1 | 1.8 - 2 sec | 30 m 15 sec | |
2 | 1000 | 2 | 1.8 - 2 sec | 29 m 49 sec | No improvements in performance with increased threads count |
3 | 1000 | 5 | 1.8 - 2 sec | 30m 44 sec | |
4 | 1000 | 10 | 1.8 - 2 sec | 30m 21 sec | |
5 | 2000 | 1 | 1.8 - 2 sec | 59 m 26 sec | |
6 | 3000 | 1 | 1.8 - 2 sec | 1h 30 min 29 sec |
Read Test Cases
See Reading Large Data Instrumentation Comparisons
Test Results (After xpath query performance improvements)
No of nodes | threads count | Time to read single txn | Time to read all | Comments |
500 | 1 | ~0.5 sec | 4 min 10 sec | Drastic improvement in performance than before. It took 2 hours to retrieve the data before the fix. |
500 | 2 | ~0.5 sec | 4 min 12 sec | No improvements in performance with increased threads count |