-
I wrote a Docker file to try to use Garnet as a replacement Redis server. As of late, it's meeting all of my goals, however, I am running into some difficulties in storing values on disk I created a volume mount point and am using the following entry point, which I know is probably overkill ENTRYPOINT ["/app/GarnetServer", "-i", "128m", "-c", "/data/checkpoint", "-r", "true", "-l", "/data/logs", "--storage-tier", "true", "--on-demand-checkpoint", "true", "--incsnap", "true", "--main-memory-replication", "true", "--checkpoint-throttle-delay", "1800000", "--aof", "true", "--aof-commit-freq", "300000", "--aof-size-limit", "100MB"] The only things I see on disk are 2 subfolders in /data/logs, a Store and Objectstore folder, which are both empty |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
my try: can reconver data on relaunch |
Beta Was this translation helpful? Give feedback.
-
This keeps persistence. Would still like some flavor of rdb, which is a direct instance of the db on disk if possible, but that might be a bit outside the scope of the project at the time :) |
Beta Was this translation helpful? Give feedback.
-
As a side, wouldn't need to be a direct 1/1, just a way to store the data in db for persistence that auto cleans up as keys expire |
Beta Was this translation helpful? Give feedback.
-
If you call SAVE or BGSAVE then data will be checkpointed. All this is exposed as options when you start the server. |
Beta Was this translation helpful? Give feedback.
my try:
var dir = @"z:\garnet_files\"; GarnetServerOptions options = new GarnetServerOptions(); options.Address = "0.0.0.0"; options.CheckpointDir = dir; /c options.EnableAOF = true; /aof options.Recover = true; /r using var server = new GarnetServer(options);
can reconver data on relaunch
But I still do not understand the persistence mechanism of garnet, I hope the official document can be issued
For example, What does the redis rdb file correspond to garnet