Applies to:
Resolution Steps
Step 1: Enable control plane telemetry
Set theCONTROL_PLANE_TELEMETRY environment variable on your API handler to enable detailed metrics collection.
Step 2: Check event loop delay metrics
Query DataDog for theevent loop delay metric to identify blocking operations in your API handler instances.
High event loop delay (>100ms) indicates the Node.js process is blocked and cannot handle requests efficiently.
Step 3: Scale API handler instances
Increase the number of API handler replicas to distribute load and improve reliability.Step 4: Monitor performance metrics
Track these key metrics in DataDog after scaling:- Event loop delay (should decrease to
<100ms) - Memory usage (should remain stable)
- Request latency (should improve)
- Error rates (500 errors should decrease)