question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[riot-redis] Live replication not working on production instances. Huge memory usage. Data not replicated.

See original GitHub issue

While 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 to KEA
  • 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 in src)
  • The src redis memory used is 2.6GB while the dst 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:closed
  • Created 3 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
jruauxcommented, Nov 9, 2020

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?

0reactions
jruauxcommented, Nov 18, 2020

Thanks for confirming that this was the issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found