apache/openwhisk

"Too many concurrent requests in flight" error message is misleading

Open

#4 798 ouverte le 12 janv. 2020

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)Scala (1 177 forks)batch import
good first issue

Métriques du dépôt

Stars
 (6 777 stars)
Métriques de merge PR
 (Merge moyen 17h 31m) (3 PRs mergées en 30 j)

Description

@ali-raza-tariq commented on Fri Jan 10 2020

The existing implementation shows the following error message when inflight limit is exceeded

<Response [429]> b'{\n  "code": "BWm0N3Qemn4uMAcZWY0JCy8PjTAQ191A",\n  "error": "Too many concurrent requests in flight (count: 240, allowed: 240)."\n}'

Few suggestions:

The message is misleading because the allowed should show the existing actionInvokesConcurrent limit set by the user (in this case 1000- which got diluted to 1200-20% increase, because of more than 1 controller in deployment)

So either it should mention allowed per controller, or simply show the total allowed over all the controllers (in this case, 5 controllers (5*240=1200)

Also, It think it would be better to change the count to something more meaningful like currently running for easy debugging. (good first issue label)

Guide contributeur