-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Sync data between KeyDB v6 - Redis v7 #38
Comments
this tool support downgrade migration. |
Trying to continue migration but initialy just with the Redis v7/Redis v6. Just updated grep dump_rdb_version=9 /opt/redis-rdb-cli/conf/redis-rdb-cli.conf
# Redis-6.2 : `dump_rdb_version=9`
# Redis-6.0.x : `dump_rdb_version=9`
# Redis-5.0.x : `dump_rdb_version=9`
dump_rdb_version=9 And get the following error with
log/redis-rdb-cli.log
Looks like something was migrated
|
Another try following your advise in case we have a big keys Convert RDB to AOF /opt/redis-rdb-cli/bin/rct -f resp -s /data/dump.rdb -o /data/dump.aof -r
/[ 20.4GB| 85.5MB/s] Import the data
Some data was imported
|
I also tried to use
So, there is nothing above the 512MB limit? |
hi
this file ordered by desc, try |
try you will see error like following
The important info is |
about error
It's a Lzf compress bug. will be fixed in version 0.9.2 |
Aha, now it is clearer
This also is an answer to my question #39. During v7/v7 migration sometimes it was successfully, but we missed 3 keys and RBD size was ~ 3 GB smaller than on the source. |
An AOF check - but on Redis v6, because this is where we import it redis-check-aof /data/dump.aof
AOF analyzed: size=20629618644, ok_up_to=20629618644, diff=0
AOF is valid So, looks good - let's try to import again cat /data/dump.aof | redis-cli -h localhost -p 6379 --pipe
|
did you convert aof file contains these 3 big keys? |
Config
Import cat /data/dump.aof | redis-cli -h localhost -p 6379 --pipe
All data transferred. Waiting for the last reply...
Last reply received from server.
errors: 0, replies: 2995160 Comparing
Does comparison by the keys number can guarantee that all the data was migrated exactly and correctly, is there another way to check if we have same data on source and destination? Will try to reproduce this with the KeyDB. |
you could sampling some different types of keys to compare whether they are consistent. |
It also works fine on KeyDB v6 and there is a full guide how to perform that - Migrate the data from Redis v7 to KeyDB v6 using redis-rdb-cli And the following questions are remained
|
I see the migration guide and well done.
Actually redis-rdb-cli can backup remote rdb file to local by
|
try |
Will it work for the cases when we do have large keys, over 512MB? It is a question related to your precedent comment about large keys. |
Did a test on Redis-7 to Redis-7 with a large keys as shown above export JAVA_TOOL_OPTIONS="-Xms6g -Xmx6g"
rmt -s /data/dump.rdb -m redis://localhost:6379?authPassword=password
Picked up JAVA_TOOL_OPTIONS: -Xms6g -Xmx6g
\[ 20.5GB|102.8MB/s]
So, big keys didn't migrate as it was already discussed. Is there a way to not skip them? |
hi. this is also need to change |
Set So, we just need to increase the memory for app using |
Hi |
I did more that 10 test on Ubuntu 22.04 and Java 1.8, using
Environment
All works fine, thank you for the quick fix - now migration is simpler :) |
A note about
So, all is good - no data copied, because |
Hi |
A note about
|
Hi |
All works fine, thanks! |
Describe the bug
We just tried to Sync data from Redis v7 to the KeyDB v6, but looks like this is not supported.
To Reproduce
Run KeyDB v6
Run Redis v7 and add some data
Run the command
Application starting to process the data and finish to process the whole dataset
At the same time we see the following errors in the log
Keyspace is empty on KeyDB v6.
Expected behavior
We should be able to sync data from Redis v7 and KeyDB v6
Version(run
rct --version
orrct -V
and paste the information):Additional context
Probably the same things will happen with the Redis v6, because we were not able to restore RDB dump on v6 from v7 with the same massage as on KeyDB v6.
Please see [NEW] Support Redis 7 (RDB format version 10) dumps
The text was updated successfully, but these errors were encountered: