I have a Service name "OceanFreight".
This service accepts Bulk Data and call's "Queue" service to create background jobs using bee-queue.
And respond caller immediately with InProgress status.
While doing Load Testing by Apache Benchmark, after certain threshold moleculer app crashes with failure.
Expected Behavior
On Load Testing by Apache Benchmark, it should able to digest the load.
Failure Information
Succesfull Test :
No of Requests: 25
Concurrency: 5
Payload Size of Each Request: 30K records (~15 MB)
Failed Test :
No of Requests: 50
Concurrency: 10
Payload Size of Each Request: 30K records (~15 MB)
Context
Moleculer version: 0.14.16
NodeJS version: Node.js v18.15.0
Operating System:
Mac Pro
Chip : Apple M1
Memory : 16 GB
MacOS : Sonoma 14.2.1
Based on the stack trace the issue comes from Laboratory Agent and not from the core modules. For load testing, don't use Laboratory, because it has an overhead.
Current Behavior
I have a Service name "OceanFreight". This service accepts Bulk Data and call's "Queue" service to create background jobs using bee-queue. And respond caller immediately with InProgress status. While doing Load Testing by Apache Benchmark, after certain threshold moleculer app crashes with failure.
Expected Behavior
On Load Testing by Apache Benchmark, it should able to digest the load.
Failure Information
Succesfull Test : No of Requests: 25 Concurrency: 5 Payload Size of Each Request: 30K records (~15 MB)
Failed Test : No of Requests: 50 Concurrency: 10 Payload Size of Each Request: 30K records (~15 MB)
Context
Moleculer version: 0.14.16
NodeJS version: Node.js v18.15.0
Operating System: Mac Pro Chip : Apple M1 Memory : 16 GB MacOS : Sonoma 14.2.1
Body Parser Settings:
Failure Logs