Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

codygateway: Use only one redis pool and make REDIS_ENDPOINT a clear requirement in config#63625

Merged
eseliger merged 1 commit into
mainfrom
es/07-03-codygatewayuseonlyoneredispoolandmakeredis_endpointaclearrequirementinconfig
Jul 9, 2024
Merged

codygateway: Use only one redis pool and make REDIS_ENDPOINT a clear requirement in config#63625
eseliger merged 1 commit into
mainfrom
es/07-03-codygatewayuseonlyoneredispoolandmakeredis_endpointaclearrequirementinconfig

Conversation

@eseliger

@eseliger eseliger commented Jul 3, 2024

Copy link
Copy Markdown
Member

Currently, nothing really tells that Cody Gateway needs redis, the env var for finding the address is hidden somewhere deep in the redispool package.
In practice, we only use one redis instance, but at some point we started using both redispool.Cache and redispool.Store, which means we maintain two connection pools, leading to more than expected connections.

Test plan:

Code review and CI.

@cla-bot cla-bot Bot added the cla-signed label Jul 3, 2024
@github-actions github-actions Bot added team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all labels Jul 3, 2024
@eseliger eseliger force-pushed the es/07-03-codygatewayuseonlyoneredispoolandmakeredis_endpointaclearrequirementinconfig branch from 57f97bb to 30c9cd5 Compare July 4, 2024 20:21
@eseliger eseliger changed the base branch from main to es/07-04-rcacheexplicitlypassredispooltouse July 4, 2024 20:21
@eseliger eseliger force-pushed the es/07-04-rcacheexplicitlypassredispooltouse branch from 2e0bd7f to 44eb2a8 Compare July 4, 2024 20:29
@eseliger eseliger force-pushed the es/07-03-codygatewayuseonlyoneredispoolandmakeredis_endpointaclearrequirementinconfig branch from 30c9cd5 to 489e2f9 Compare July 4, 2024 20:29
@eseliger eseliger force-pushed the es/07-04-rcacheexplicitlypassredispooltouse branch from 44eb2a8 to 0d98249 Compare July 5, 2024 05:15
@eseliger eseliger force-pushed the es/07-03-codygatewayuseonlyoneredispoolandmakeredis_endpointaclearrequirementinconfig branch from 489e2f9 to 012276e Compare July 5, 2024 05:15
@eseliger eseliger force-pushed the es/07-04-rcacheexplicitlypassredispooltouse branch 2 times, most recently from 2c8c0fd to 5666b30 Compare July 5, 2024 06:02
@eseliger eseliger force-pushed the es/07-03-codygatewayuseonlyoneredispoolandmakeredis_endpointaclearrequirementinconfig branch from 012276e to 483dc2d Compare July 5, 2024 07:36
@eseliger eseliger marked this pull request as ready for review July 8, 2024 19:36
@eseliger eseliger requested review from a team and bobheadxi July 8, 2024 19:37
@eseliger eseliger force-pushed the es/07-04-rcacheexplicitlypassredispooltouse branch from 5666b30 to cd47721 Compare July 9, 2024 22:36
@eseliger eseliger force-pushed the es/07-03-codygatewayuseonlyoneredispoolandmakeredis_endpointaclearrequirementinconfig branch from 483dc2d to cf2853c Compare July 9, 2024 22:36
@eseliger eseliger changed the base branch from es/07-04-rcacheexplicitlypassredispooltouse to graphite-base/63625 July 9, 2024 23:23
…requirement in config

Currently, nothing really tells that Cody Gateway needs redis, the env var for finding the address is hidden somewhere deep in the redispool package.
In practice, we only use one redis instance, but at some point we started using both redispool.Cache and redispool.Store, which means we maintain two connection pools, leading to more than expected connections.

Test plan:

Code review and CI.
@eseliger eseliger changed the base branch from graphite-base/63625 to main July 9, 2024 23:23
@eseliger eseliger force-pushed the es/07-03-codygatewayuseonlyoneredispoolandmakeredis_endpointaclearrequirementinconfig branch from cf2853c to 3e1cfbd Compare July 9, 2024 23:23
@eseliger eseliger merged commit a32b613 into main Jul 9, 2024

eseliger commented Jul 9, 2024

Copy link
Copy Markdown
Member Author

Merge activity

@eseliger eseliger deleted the es/07-03-codygatewayuseonlyoneredispoolandmakeredis_endpointaclearrequirementinconfig branch July 9, 2024 23:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants