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

Fixes #36645 - Change the default Redis cache DB to 4 #1122

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Jun 21, 2023

On a typical Katello installation Dynflow uses DB 6 and Pulp uses DB 8. Other applications may also use the default DB. Using DB 4 should not conflict.

@evgeni this is something you raised yesterday.

This probably deserves a release note. We should also consider cleaning up the old DB. By default Redis is configured for persistence so it should remain even after a restart. According to the internet using redis-cli -n 0 flushdb should do that. I don't think it's something we want to do automatically. If users don't do this, they will expire eventually anyway and the cache is not that large.

@evgeni
Copy link
Member

evgeni commented Jun 21, 2023

I like that!

@ehelms
Copy link
Member

ehelms commented Jun 21, 2023

What was the issue with using 0?

@evgeni
Copy link
Member

evgeni commented Jun 21, 2023

PCP is also using 0 by default

On a typical Katello installation Dynflow uses DB 6 and Pulp uses DB 8.
Other applications may also use the default DB. Using DB 4 should not
conflict.

Fixes: dfa6a86 ("Fixes #36037 - Manage Redis service for Redis cache")
@ekohl ekohl changed the title Change the default Redis cache DB to 4 Fixes #36645 - Change the default Redis cache DB to 4 Aug 7, 2023
@ekohl
Copy link
Member Author

ekohl commented Aug 7, 2023

Now with a Redmine issue for a changelog entry.

@ekohl ekohl enabled auto-merge (rebase) August 7, 2023 12:28
@ekohl ekohl merged commit 0a2b310 into theforeman:master Aug 7, 2023
7 checks passed
@ekohl ekohl deleted the other-default-redis-db branch August 7, 2023 12:44
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.

4 participants