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

feat: support redis pool config from file #325

Merged
12 commits merged into from
Mar 8, 2022

Conversation

lorangf
Copy link
Collaborator

@lorangf lorangf commented Mar 7, 2022

What type of PR is this?
/kind feat Enable configuration to be read from a file (yaml, using viper) or environment variable; add the ability to set the Redis pool Idle Timeout to mitigate broken pipe issues.

What this PR does / Why we need it:
Override redis pool configuration using viper to read yaml file or from environment variable.

Which issue(s) this PR fixes:
Closes #324

Closes #

Special notes for your reviewer:

@ghost ghost changed the title feat: support redis pool config from file (#324) feat: support redis pool config from file Mar 7, 2022
@ghost ghost requested review from hongalex, yuryu and vasconcelosvcd March 7, 2022 19:53
@yuryu
Copy link
Member

yuryu commented Mar 7, 2022

Can we split this PR into a few different pieces?

  • The go.mod go version update should be discussed separately.
  • Adding viper with existing config variables
  • Add redis pool support (this can be part of the second if it's hard to split).

I've also added a few more inline comments.

@yuryu
Copy link
Member

yuryu commented Mar 7, 2022

/gcbrun

@hongalex
Copy link
Collaborator

hongalex commented Mar 7, 2022

/gcbrun

@hongalex
Copy link
Collaborator

hongalex commented Mar 8, 2022

/gcbrun

Copy link
Member

@yuryu yuryu left a comment

Choose a reason for hiding this comment

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

lgtm with nit

@ghost ghost merged commit 46363a0 into googleforgames:main Mar 8, 2022
This pull request was closed.
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.

Ability to set the redis pool configuration to other values
3 participants