You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a Mojaloop Community member interested in running a hub I want to understand the performance of a mojaloop so that appropriately size my environment
Note: This story is about the characterisaction of the mojaloop simulator, so that it can be included in a wider performance test, and it's performance is known and understood and taken into consideration in that work.
Acceptance Criteria:
Verify that the throughput and latency is calculated for the mojaloop simulator on reasonable hardware for the following calls:
get parties
post quoteRequest
post transfers
Complexity: <High|Medium|Low> > A short comment to remind the reason for the rating
Uncertainty: <High|Medium|Low> > A short comment to remind the reason for the rating
Tasks:
Add party info to ML-SIM using testAPI for firsttime after you start the service (Using postman, curl ...etc. Doesn't need to be from K6)
Prepare a k6 test case to trigger GET /parties
Assert on http status code
Modify the k6 scenarios to find the best performance config (VUs, target http rate, etc)
Continue with quotes and transfers
Done
Acceptance Criteria pass
Designs are up-to date
Unit Tests pass
Integration Tests pass
Code Style & Coverage meets standards
Changes made to config (default.json) are broadcast to team and follow-up tasks added to update helm charts and other deployment config.
Running tests on the quotes and transfers makes the simulator run out of memory with the following error:
simulator |
simulator | <--- Last few GCs --->
simulator |
simulator | [22:0x7fa8ab4eb020] 94332 ms: Mark-sweep 4050.7 (4138.2) -> 4037.9 (4141.7) MB, 1608.6 / 0.0 ms (average mu = 0.401, current mu = 0.107) allocation failure; scavenge might not succeed
simulator | [22:0x7fa8ab4eb020] 97425 ms: Mark-sweep 4052.4 (4141.7) -> 4040.6 (4144.5) MB, 3056.1 / 0.0 ms (average mu = 0.177, current mu = 0.012) task; scavenge might not succeed
simulator |
simulator |
simulator | <--- JS stacktrace --->
simulator |
simulator | FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
SIM is unable to handle more than 700 requests per second as it bloats the memory. Test cases for this story are added on the PR mentioned above but they're unable to run until the memory leak on the sim is fixed.
Goal:
As a
Mojaloop Community member interested in running a hubI want to
understand the performance of a mojaloopso that
appropriately size my environmentNote: This story is about the characterisaction of the mojaloop simulator, so that it can be included in a wider performance test, and it's performance is known and understood and taken into consideration in that work.
Acceptance Criteria:
Complexity: <High|Medium|Low> > A short comment to remind the reason for the rating
Uncertainty: <High|Medium|Low> > A short comment to remind the reason for the rating
Tasks:
Done
Pull Requests:
Follow-up:
Dependencies:
Accountability:
The text was updated successfully, but these errors were encountered: