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

Issue #23 - Memory Dump for Large RDB Files #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jsrawan-mobo
Copy link

Ability to quickly parse large files.
This is just a preview, I will need to cleanup still and test

Steps:

  1. Generate a quick memory dump and index. In quick mode, only compressed_size is valid.
    rdb.py -c memory -q --file redis_memory_quick.csv redis.rdb

  2. After viewing, dump a hash/list to view contents of a offending key
    rdb.py -c memory --max 1 --pos 3568796958 -v --key mongow --file redis_memory_mongow.csv redis.rdb

Todo:
Cleanup the ziplists sizes
Fix other callbacks (only memorycallback works)
Regression Test

raise Exception('Invalid Command %s' % options.output)
parser = RdbParser(callback)
parser.parse(dump_file)
f = open(options.output, "wb")
Copy link

Choose a reason for hiding this comment

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

This file doesn't look like it's being closed after use.

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.

3 participants