Obviously I was having a false impression of how this setting works.
I tested it with set to 1
. I believed this would mean, there is always at least one upload request that goes through.
However when I compare that with my logs I see myriads of this:
2022-08-11T03:26:46.616Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 2, "requestLimit": 1}
2022-08-11T03:26:46.667Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 2, "requestLimit": 1}
2022-08-11T03:26:48.117Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 3, "requestLimit": 1}
2022-08-11T03:26:48.419Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 3, "requestLimit": 1}
2022-08-11T03:26:48.518Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 3, "requestLimit": 1}
2022-08-11T03:26:48.708Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 3, "requestLimit": 1}
2022-08-11T03:26:51.794Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 3, "requestLimit": 1}
2022-08-11T03:26:52.204Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 3, "requestLimit": 1}
2022-08-11T03:26:54.930Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 3, "requestLimit": 1}
2022-08-11T03:26:55.913Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 3, "requestLimit": 1}
2022-08-11T03:26:58.945Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 3, "requestLimit": 1}
2022-08-11T03:26:59.378Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 3, "requestLimit": 1}
2022-08-11T03:27:02.076Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 3, "requestLimit": 1}
2022-08-11T03:27:03.164Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 3, "requestLimit": 1}
2022-08-11T03:27:03.463Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 3, "requestLimit": 1}
2022-08-11T03:27:06.437Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 4, "requestLimit": 1}
2022-08-11T03:27:08.708Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 4, "requestLimit": 1}
2022-08-11T03:27:08.936Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 4, "requestLimit": 1}
2022-08-11T03:27:09.368Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 4, "requestLimit": 1}
2022-08-11T03:27:10.026Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 3, "requestLimit": 1}
2022-08-11T03:27:12.064Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 3, "requestLimit": 1}
2022-08-11T03:27:18.102Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 3, "requestLimit": 1}
2022-08-11T03:27:19.002Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 3, "requestLimit": 1}
2022-08-11T03:27:19.834Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 3, "requestLimit": 1}
2022-08-11T03:27:20.025Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 3, "requestLimit": 1}
2022-08-11T03:27:21.475Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 3, "requestLimit": 1}
2022-08-11T03:27:22.145Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 3, "requestLimit": 1}
2022-08-11T03:27:23.511Z ERROR piecestore upload rejected, too many requests {"Process": "storagenode", "live requests": 3, "requestLimit": 1}
But only very few finished uploads. So if we see live requests": 3
why is it not that only 2 of them get rejected and one gets approved?