We’re using the router as a standalone service and I’m a bit confused on how the rate limiting works in it, I’m trying to disable it completely because every now and then we receive a rate limiting error, even though we were not setting up any rate limiting in the router
[Error { message: "Your request has been rate limited", locations: [], path: Some(Path([])), extensions: {"apollo.private.subgraph.name": String("my-federated-service"), "code": String("REQUEST_RATE_LIMITED")} }]
So following the documentation I couldn’t find a clear instruction on how to disable the rate limiting, but I could find this configuration that I used to work around it by setting a very high number as shown below , yet I am still receiving the same error, and the problem is it’s happening inconsistently.
traffic_shaping:
router:
timeout: 100s
all:
global_rate_limit:
capacity: 1000000000 # Opening the limit with an arbitrarily high number
interval: 1s
timeout: 100s
And to give context we receive around 1-5k request per federated service per second the number varies depending on so may factors, my questions here are:
- What are the default rate limiting values?, I couldn’t find it in the documentation.
- And how can I completely disable the rate limiting or control it so that I avoid hitting it?
Thanks in advance for your support