Skip to content

Reduce to using one primary Redis connection pool#7968

Merged
mitchellhenke merged 0 commit intomainfrom
mitchellhenke/redis-session-store-shared-pool
Mar 10, 2023
Merged

Reduce to using one primary Redis connection pool#7968
mitchellhenke merged 0 commit intomainfrom
mitchellhenke/redis-session-store-shared-pool

Conversation

@mitchellhenke
Copy link
Contributor

🛠 Summary of changes

To reduce the total number of connections opened to the primary Redis instance, this PR pulls in the recently resurrected client_pool pull request in our fork of redis-session-store.

The intersection of using the new client_pool and using REDIS_POOL everywhere for the primary instance means dropping the use of redis-namespace. We may want to consider moving away from the gem long-term anyway as I have an open pull request to add unsupported commands to the gem that I'd like to use elsewhere in our codebase.

Gemfile Outdated
gem 'redis', '>= 3.2.0'
gem 'redis-namespace'
gem 'redis-session-store', '>= 0.11.4'
gem 'redis-session-store', github: '18F/redis-session-store', branch: 'margolis-use-connection-pool'
Copy link
Contributor

Choose a reason for hiding this comment

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

we'll tag a version before merging this right? 😬

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep, the other PR isn't merged so hasn't been tagged yet

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

@mitchellhenke mitchellhenke merged this pull request into main Mar 10, 2023
@mitchellhenke mitchellhenke deleted the mitchellhenke/redis-session-store-shared-pool branch March 10, 2023 19:59
mitchellhenke pushed a commit that referenced this pull request Mar 14, 2023
* Reduce to using one primary Redis connection pool

changelog: Internal, Redis, Use one primary Redis connection pool

* Update app/services/out_of_band_session_accessor.rb

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>

* fix spec

* update gem tag version

---------

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
zachmargolis added a commit that referenced this pull request Mar 14, 2023
* Reduce to using one primary Redis connection pool

changelog: Internal, Redis, Use one primary Redis connection pool

* Update app/services/out_of_band_session_accessor.rb

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>

* fix spec

* update gem tag version

---------

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
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.

2 participants