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

Redis sessions #20612

Closed
wants to merge 1 commit into from
Closed

Redis sessions #20612

wants to merge 1 commit into from

Conversation

kbrock
Copy link
Member

@kbrock kbrock commented Sep 28, 2020

Add the ability to use redis as the session store. Currently alternatives
include memcached, sql, and in-memory.

Changing the session store is done in settings:

:server:
  :session_store: redis
:session:
  :redis_url: redis://127.0.0.1/2

The url is of the form: redis://[:password@]host[:port][/db-number]

Gemfile Outdated Show resolved Hide resolved
@Fryguy
Copy link
Member

Fryguy commented Sep 28, 2020

I kind of like this PR...not sure about incurring another gem and its dependencies, but otherwise it looks really good. If we did decide to go the redis route as the default instead of memcached, then we'd need a way to carry that on the appliances/operator

lib/miq_memcached.rb Outdated Show resolved Hide resolved
Add the ability to use redis as the session store. Currently alternatives
include memcached, sql, and in-memory.

Changing the session store is done in settings:

```yaml
:server:
  :session_store: redis
:session:
  :redis_url: redis://127.0.0.1/2
```

The url is of the form: `redis://[:password@]host[:port][/db-number]`
@miq-bot
Copy link
Member

miq-bot commented Aug 17, 2021

Checked commit kbrock@43bd97f with ruby 2.6.3, rubocop 1.13.0, haml-lint 0.35.0, and yamllint
6 files checked, 0 offenses detected
Everything looks fine. ⭐

@kbrock
Copy link
Member Author

kbrock commented Dec 7, 2021

too low on the priority queue

we need to just use rails built in mechanism for sessions / cache. Then all this stuff would be free.

@kbrock kbrock closed this Dec 7, 2021
@kbrock kbrock deleted the redis_sessions branch December 7, 2021 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants