Added comment to maxmemory-clients conf to mention the performance issue#1840
Conversation
…default The client eviction introduced in 2753429, at that time, the main idea of our introduction was to protect key data from being evicted, which is the server's perspective. In fact, the accumulated client output buffer can also violate the maxmemory contract and causing the machine to OOM. Signed-off-by: Binbin <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## unstable #1840 +/- ##
============================================
+ Coverage 74.69% 74.75% +0.05%
============================================
Files 129 129
Lines 71199 71199
============================================
+ Hits 53185 53222 +37
+ Misses 18014 17977 -37 🚀 New features to boost your workflow:
|
|
I am not sure if 100% as default value is reasonable |
hpatro
left a comment
There was a problem hiding this comment.
I think we shouldn't enable it by default. It cause throughput degradation (extra cpu cycle during command processing) due to constant tracking/metric update of client's input/output buffer size during read/write flow.
|
We discussed this briefly before we released 8.0. Here is the discussion: #653 (comment). My thoughts:
|
I prefer to leave it and let client decide the default value. |
|
Consensus from our weekly meeting was that we aren't entirely clear what problem this is trying to solve. There were concerns about folks migrating from Redis seeing different performance. So the preference was to not change the default and let users decide. This seems aligned with what other folks have said in this thread. |
…100% by default" This reverts commit ac08340. Signed-off-by: Binbin <[email protected]>
Signed-off-by: Binbin <[email protected]>
Signed-off-by: Binbin <[email protected]>
|
I revert the change and only add the comment to mention the performance issue, please check. |
Signed-off-by: Binbin <[email protected]>
…sue (valkey-io#1840) It's worth mentioning that enabling `maxmemory-clients` will affect the performance so people can perform its own benchmark before enabling it. Signed-off-by: Binbin <[email protected]>
It's worth mentioning that enabling
maxmemory-clientswill affect theperformance so people can perform its own benchmark before enabling it.
This is an old top comment
The client eviction introduced in 2753429,
at that time, the main idea of our introduction was to protect key data
from being evicted, which is the server's perspective.
In fact, the accumulated client output buffer can also violate the maxmemory
contract and causing the machine to OOM.