Skip to content
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

Allow setting redis timeout via flags/environment. #301

Merged
merged 3 commits into from
Apr 22, 2024

Conversation

fische
Copy link
Contributor

@fische fische commented Apr 19, 2024

We're still seeing loads of context deadline exceeded against redis. Looking at our metrics, it seems this is all coming from the MGET calls and I think they might have just too much data to return and they hit the 1s timeout very quickly. This PR adds 2 flags, so we can control, how long we spend on reading and writing to redis. Then we'll be able to experiment with different values.

@fische fische requested review from Garbett1 and Hamishpk April 19, 2024 15:34
@fische fische self-assigned this Apr 19, 2024
Hamishpk
Hamishpk previously approved these changes Apr 19, 2024
peterebden
peterebden previously approved these changes Apr 21, 2024
@fische fische dismissed stale reviews from peterebden and Hamishpk via d40146f April 22, 2024 08:51
@fische fische merged commit 339b2d5 into thought-machine:master Apr 22, 2024
5 checks passed
@fische fische deleted the redis-timeout-read branch April 22, 2024 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants