Fix valkey-benchmark FUNCTION LOAD write to replicas (#1846)#3376
Fix valkey-benchmark FUNCTION LOAD write to replicas (#1846)#3376hieu2102 wants to merge 5 commits intovalkey-io:unstablefrom
FUNCTION LOAD write to replicas (#1846)#3376Conversation
Signed-off-by: hieu2102 <[email protected]>
…load" Signed-off-by: hieu2102 <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #3376 +/- ##
============================================
+ Coverage 74.53% 74.70% +0.17%
============================================
Files 130 130
Lines 72731 72741 +10
============================================
+ Hits 54208 54344 +136
+ Misses 18523 18397 -126
🚀 New features to boost your workflow:
|
Signed-off-by: hieu2102 <[email protected]>
Signed-off-by: hieu2102 <[email protected]>
Signed-off-by: hieu2102 <[email protected]>
|
For the tests, I check if valkey-benchmark error code != 0, since we can't check for precise |
|
What about write commands like SET, do they get sent to replicas too? |
|
@zuiderkwast I did write a test for |
OK, so it appears to work for SET, but it's not very realistic to benchmark SET with redirects for each command, is it? A more intuitive behavior for read-from-replicas would be that only read commands get sent to replicas. Write commands (if any) still get sent to the primaries. Seems like #1392 didn't discuss write commands at all. Another (easier) approach is to just document that @ranshid WDYT? |
fix #1846
primary_nodesandprimary_nodes_counttoconfigconfig.title == "function_load", then the benchmarking clients will connect to a node fromconfig.primary_nodesinstead ofconfig.cluster_nodesFCALLgettingMOVED $sloterror by adding tag to theFCALLcommand