Nifi is responding SERVICE_UNAVAILABLE when api request volume is little high
Hello experts,
We are using Nifi for data ingestion via http - using 'HandleHttpRequest' processor.
Data is getting ingested continuously but once in a while when incoming volume is little high we get 'Service Unavailable - 503' error from nifi end point.
Below is the log we see in nifi app logs -
2024-03-04 11:20:25,558 WARN [StandardHttpContextMap-c2ffb1fd-2c09-3a90-0e5e-18384499605f] o.a.nifi.http.StandardHttpContextMap StandardHttpContextMap[id=c2ffb1fd-2c09-3a90-0e5e-18384499605f] Request from 10.13.2.204 timed out; responding with SERVICE_UNAVAILABLE
Imp configs :
[HandleHttpRequest processor]
Container Queue Size : 2000
[StandardHttpContextMap controller service]
Maximum Outstanding Requests : 8000
Request Expiration : 3min
nifi.web.jetty.threads=200 (in nifi.properties)
Maximum Timer Driven Thread Count = 200
Total number of running processors on this env : 4200+
This nifi is running on 8 core machine (ec2 instance)
When we look at the CPU usage during the issue we dont see a cpu usage is more than 40%

Can anyone help me to understand the issue and the fix?
Thanks
Mahendra

