-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Many Redis requests are timing out and throwing errors #3621
Comments
It looks like the timeout is set to 1ms and not configurable, @Geal do you have any opinions on that?
|
That default option is too optimistic. Pergaps that should be configurable too, because it depends a lot on the production environment |
An other thing that eludes me at the moment is @nathanmarcos didn't see these errors before, is it because redis disconnected and didn't try to reconnect? |
@o0Ignition0o, I think that’s not related since these errors occur when Redis is up and running. When the Router loses its connection to Redis, other errors in the logs become more frequent. Example when you simply kill Redis when Router is running:
Then when you spin it up again:
I only copied one of each type of these logs, but actually, there were dozens of them. |
It adds a configuration to set another timeout than the default one (2ms) for redis requests. It also change the default timeout to 2ms (previously set to 1ms) Example for APQ: ```yaml apq: router: cache: redis: urls: ["redis://..."] timeout: 5ms ``` Fixes #3621 <!-- start metadata --> --- **Checklist** Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review. - [x] Changes are compatible[^1] - [ ] Documentation[^2] completed - [ ] Performance impact assessed and acceptable - Tests added and passing[^3] - [ ] Unit Tests - [ ] Integration Tests - [x] Manual Tests **Exceptions** *Note any exceptions here* **Notes** [^1]: It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this. [^2]: Configuration is an important part of many changes. Where applicable please try to document configuration examples. [^3]: Tick whichever testing boxes are applicable. If you are adding Manual Tests, please document the manual testing (extensively) in the Exceptions. --------- Signed-off-by: Benjamin Coenen <[email protected]>
Describe the bug
After fixing the latest Redis outage (#3509) on version
1.27.0
, the application started throwing millions ofmget error: Timeout Error: Request timed out.
. It seems that this is caused when small changes in latency between Router and Redis requests last longer than the default timeout of 1ms.To Reproduce
Steps to reproduce the behavior:
persistedQuery
hash in the extensionsExpected behavior
Errors should not happen.
The text was updated successfully, but these errors were encountered: