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

Clear out previous generation cached data from Redis #115

Open
wincent opened this issue May 19, 2017 · 1 comment
Open

Clear out previous generation cached data from Redis #115

wincent opened this issue May 19, 2017 · 1 comment
Labels

Comments

@wincent
Copy link
Owner

wincent commented May 19, 2017

Can do it manually, but would be nice to make this part of the deploy somehow.

Less worried about memcached as it should evict any stuff that hasn't been used recently.

@wincent wincent added the chore label May 19, 2017
@wincent
Copy link
Owner Author

wincent commented May 19, 2017

Manual way:

# Given the cache-breaker is up to 6:
redis-cli --scan --pattern "masochist:[12345]:*" | xargs -L 100 redis-cli DEL

One of many alternatives suggested here.

Was able to drop (tiny) Redis db at /var/redis/$REDIS_PID/dump.rdb from 3.7M to 1.2M.

Looks like something that can be automated easily enough, but may not need to bother with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant