dragonfly icon indicating copy to clipboard operation
dragonfly copied to clipboard

partial sync buffers should be bound by memory usage and not element size

Open kostasrim opened this issue 5 months ago • 7 comments

Based on a recent discussion #5431 (which is not yet confirmed why we see the 350mb) brought an interesting point:

We limit the how many elements the buffers can contain and NOT how much memory they consume.

I think this is not the best approach and the actual limit should be the memory used instead of how many elements the buffers can contain (which should be bounded as well -- just the main consideration should be the actual memory used)

kostasrim avatar Jul 07 '25 14:07 kostasrim

@adiholden we should discuss

kostasrim avatar Jul 07 '25 14:07 kostasrim

What's the status here? I guess it's not fixed in 1.32.0 yet?

applike-ss avatar Aug 11 '25 06:08 applike-ss

Hi @applike-ss , it's not yet fixed due to other priorities atm

kostasrim avatar Aug 11 '25 06:08 kostasrim

Thanks for the update. 👍

applike-ss avatar Aug 11 '25 06:08 applike-ss

Is there an update for this? We are checking this upon each time we are updating our dragonflies, due to the need to set --shard_repl_backlog_len=1 to ensure no crashes are happening

applike-ss avatar Oct 07 '25 09:10 applike-ss

@applike-ss we won't be able to address this issue in the near term. As a workaround i suggest increasing the memory reservation of your dragonfly processes. Alternatively, you can try and fix it yourself and send a PR for review.

romange avatar Oct 08 '25 08:10 romange

Any time frame after which i should bug you again? Just to not start annoying you with every release? I'll not be able to fix this in code or by memory increase on our end.

applike-ss avatar Oct 08 '25 09:10 applike-ss