[riot-redis] Live replication not working on production instances. Huge memory usage. Data not replicated.
See original GitHub issueWhile testing in our ci and staging environments live replication was working as expected but once we moved the replication to production we observed several issues.
Scenario description
- Source redis version 2.8 with 2.6GB and
notify-keyspace-events
set toKEA
- Destination redis version 3.2.6 starting with no data, with SSL and Encryption at rest turned on via AWS Elasticache.
- riot-redis v2.2.7
Issue description
Command:
./riot-redis --info -h production-src-redis -p 6379 --db=0 replicate -h production-dst-encrypted-redis -p 6379 -t --db=0 --pass=apasswordhere --no-verify-peer --live
While running that command the output is:
Opening writer
Opening reader
Replicating from redis://production-src-redis█
- The process running riot-redis uses up to 9GB of RAM at times, while the live replication does not work (I write keys into
src
while the process is running and they are never present insrc
) - The
src
redis memory used is 2.6GB while thedst
redis memory used is never over 200MB. - At times, but not always a log message like the one below is displayed:
Could not get value: Invalid first byte: 53 (5) at buffer index 1 decoding using RESP2
Issue Analytics
- State:
- Created 3 years ago
- Comments:13
Top Results From Across the Web
Troubleshoot replication lags with read replica for an RDS for ...
I want to monitor and troubleshoot replication lags when I use the read replica for my Amazon Relational Database Service (Amazon RDS) for ......
Read more >High Memory Usage on Replica - Mysql 8
In Blue the most powerfull replica (As you can see, we tried to upgrade the instance, but it's not a RAM limitation problem)....
Read more >Troubleshoot the high memory usage on a Tair instance
The memory consumed by non-business data. This includes the memory consumed by the backlog buffer of master-replica replication and the memory ...
Read more >VI Memory Usage - NI - National Instruments
In dataflow programming, you generally do not use variables. Dataflow models usually describe nodes as consuming data inputs and producing ...
Read more >bdpattunity server experiencing high memory - Qlik Community
It got stuck in full table reload. The progress bar sits in 0%, not moving at all. Is there a way to limit...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
yes keyspace notifications are queued. I just changed some of the notification queuing mechanism: updates to the same key are now deduplicated so memory usage should be lower if you had repeatedly updated keys. I also added a separate status bar for the live part of the replication process. Can you try the latest release and let me know if things improved?
Thanks for confirming that this was the issue.