-
Notifications
You must be signed in to change notification settings - Fork 991
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
Periodical Snapshotting #161
Comments
yes, we can support it, though unlikely we gonna use the same spec as redis. btw, DF saves timestamped files by default, though it's possible to override it, and use a single snapshot file like with Redis. |
Thanks for your response! I actually DON'T like the redis spec for the periodical snapshotting, I just used it as an example to explain the feature 😄 In terms of naming the snapshots, I personally choose to override the timestamps as I only want the most recent dump so I run my instance of DF with |
I think that the simplest and most versatile approach would be to adopt a glob-based spec. |
Sounds reasonable to me. Although you could argue that during high-load hours there's a bigger risk of losing data due to crashes/failures, which is why I tend to like the periodic configuration of redis. |
👍🏼 So, the task is:
|
@romange Is this issue available to take up? |
This one requires deep knowledge of DragonflyDB architecture to do correctly. Lets start with other issues for now. |
Sure |
* feat(test): Added the ability to specify dragonfly cli parameters on a test basis (dragonflydb#199) Signed-off-by: Braydn <[email protected]>
* feat(test): Added the ability to specify dragonfly cli parameters on a test basis (dragonflydb#199) Signed-off-by: Braydn <[email protected]>
* feat(test): Added the ability to specify dragonfly cli parameters on a test basis (dragonflydb#199) Signed-off-by: Braydn <[email protected]>
Code cleanup & CONTRIBUTORS.md modifcation Signed-off-by: Braydn <[email protected]>
Parsing and race condition fixes. Improved pytests Signed-off-by: Braydn <[email protected]>
* feat(server): Implemented periodic snapshotting (#161) * feat(test): Added the ability to specify dragonfly cli parameters on a test basis (#199) Signed-off-by: Braydn <[email protected]> * feat(server): Implemented periodic snapshotting (#161) Code cleanup & CONTRIBUTORS.md modifcation Signed-off-by: Braydn <[email protected]> * feat(server): Implemented periodic snapshotting (#161) Parsing and race condition fixes. Improved pytests Signed-off-by: Braydn <[email protected]> * feat(test): Cleaned up pytest code & added documentation (#199) - Moved tests into their own file - Renamed test namespace to avoid naming conflicts with pytest - Updated requirements.txt to make test environment reproducible - Added documentation to write tests feat(server): Updated helio submodule Signed-off-by: Braydn <[email protected]> Signed-off-by: Braydn <[email protected]> Co-authored-by: Braydn <[email protected]>
How would you snapshot every 15 minutes using this format? |
@kaiserdan we just recently introduced a new flag: we will document it soon, see dragonflydb/documentation#129 |
Would love to see auto-snapshotting of the RDB file in DF.
Currently I can use
SAVE/BGSAVE
but the option to configure automatic snapshotting - i.eSAVE 60 1000
is non-existent.Would love to replace redis with DF but I don't want to take the risk of data loss or the overhead of having an external job to take care of periodically dumping the data to disk.
Is there a plan to support this feature in the future?
The text was updated successfully, but these errors were encountered: