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

Modify RedisConfig and use JedisPool #756

Merged
merged 1 commit into from Feb 7, 2019

Conversation

hamdanjaveed
Copy link
Collaborator

RedisConfig updated to include a writer and reader endpoint. We also use JedisPool
instead of single Jedis instances to ensure thread safety.

@hamdanjaveed hamdanjaveed force-pushed the hamdan-redis-config-fix-jedis-pool branch from 54f55d5 to 8e04778 Compare February 4, 2019 23:40
data class RedisReplicationGroupConfig(
val writer_endpoint: RedisNodeConfig,
val reader_endpoint: RedisNodeConfig,
val redis_auth_password: String
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if this should be a Secret. while it's not strictly necessary now because it's a single value, I would assume in the future Secret would allow us to redact the value instead of fuzzy matching on fields named password

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think a Secret makes sense here, I'll keep it in mind

RedisConfig updated to include a writer and reader endpoint. We also use JedisPool
instead of single Jedis instances to ensure thread safety.
@hamdanjaveed hamdanjaveed force-pushed the hamdan-redis-config-fix-jedis-pool branch from 8e04778 to 12b251b Compare February 7, 2019 05:21
@hamdanjaveed hamdanjaveed merged commit a63d2d6 into master Feb 7, 2019
@hamdanjaveed hamdanjaveed deleted the hamdan-redis-config-fix-jedis-pool branch February 7, 2019 17:46
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.

None yet

3 participants