This repository has been archived by the owner on Aug 6, 2021. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Try out the ioredis maxRetriesPerRequest = 0 option, to see if improves behaviour where docupdater gets into a bad state.
Having thought about this over the weekend, it is not safe to deploy this to all docupdaters because we can't predict how it will behave in production if there is an error.
@mans0954 I talked to Henry about setting up some kind of canary deploy in a simple way where we can just have one docupdater running with this option. Could you help with that? Thanks.
Screenshots
NA
Related Issues / PRs
redis/ioredis#965
Review
Small change. I have removed the old keepAlive options which have no effect under
redisOptions:
which only applies tocluster
configurations. If we want to add these back we should just use thekeepAlive
option at the top level, withmaxRetriesPerRequest
Potential Impact
High - don't deploy.
Manual Testing Performed
I tried this locally restarting redis or pausing it while everything was running but I couldn't trigger anything that looked like
maxRetriesPerRequest
was having an effect.Accessibility
NA
Deployment
Don't deploy - PR for future use only.
Deployment Checklist
Metrics and Monitoring
Docupdater metrics/logs in stackdriver.
Who Needs to Know?
cc @gh2k @henryoswald @jdleesmiller