Question about Eviction

Hello, does Dragonfly support different eviction policies like Redis ?


The context is around this

The VM that Dragonfly is running is hitting around 94% usage so I am deciding whether to increase the memory or should adjust the eviction to keep the memory usage lower

Took these info out of the instance
info_all.txt (3.93 KB)
objhist.txt (7.1 KB)

Ooo, maybe it’s related to this

https://discord.com/channels/981533931486724126/981533931960676364/1156122910575038496

the good news some eviction happens:

evicted_keys:6657536

but yeah, we need to improve on that front. We are working on improving our eviction strategy (cc @realistic-ferret )

thank you for providing all the relevant info

I suggest that instead of provisioning more memory you set a lower “maxmemory” limit as a workaround for now

hi @resourceful-antelope the PR has been posted. If you build DF by yourself, I would be happy to collaborate with you to do the test. Otherwise, I will let you know when it gets merged and we can use our weekly built docker image.

https://github.com/dragonflydb/dragonfly/pull/2084

Hey @realistic-ferret thanks for working on this. I wanna wait for PR to be merged to the main and build a binary from there :smile:

sounds good, i will let you know

I see the PR has been merged :raised_hands:

yes, would you like to give it a try? :smiley:

Yep! I will build the binary on top of the latest branch and give it a shot !

let me know if you have any question, thanks!

we also plan to do a 1.12 release this week, so it will be officially available

@realistic-ferret Seems to be doing as expected!

wonderful!

thanks for the fast test!

i wondered how fast do you inject data?