Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

add ioredis maxRetriesPerRequest #96

Merged
merged 3 commits into from
Oct 16, 2019

Conversation

briangough
Copy link
Contributor

@briangough briangough commented Oct 7, 2019

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 to cluster configurations. If we want to add these back we should just use the keepAlive option at the top level, with maxRetriesPerRequest

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

  • Set up a canary deploy

Metrics and Monitoring

Docupdater metrics/logs in stackdriver.

Who Needs to Know?

cc @gh2k @henryoswald @jdleesmiller

@briangough briangough self-assigned this Oct 7, 2019
redisOptions:
keepAlive: 100

maxRetriesPerRequest: 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shall we have the default at 20 with an env MAX_RETRIES_PER_REQUEST passed through to set this?

@briangough briangough merged commit c2233fb into master Oct 16, 2019
@briangough briangough deleted the bg-add-ioredis-maxretriesperrequest branch October 16, 2019 07:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants