Skip to content

Commit 96375b6

Browse files
authored
[Enhancement]tune default virtual node to be more friendly to cache (#38270)
Signed-off-by: zombee0 <[email protected]>
1 parent e4f0cf3 commit 96375b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fe/fe-core/src/main/java/com/starrocks/qe/HDFSBackendSelector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public class HDFSBackendSelector implements BackendSelector {
8686
// After testing, this value can ensure that the scan range size assigned to each BE is as uniform as possible,
8787
// and the largest scan data is not more than 1.1 times of the average value
8888
private final double kMaxImbalanceRatio = 1.1;
89-
public static final int CONSISTENT_HASH_RING_VIRTUAL_NUMBER = 128;
89+
public static final int CONSISTENT_HASH_RING_VIRTUAL_NUMBER = 256;
9090

9191
class HdfsScanRangeHasher {
9292
String basePath;

fe/fe-core/src/main/java/com/starrocks/qe/SessionVariable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ public static MaterializedViewRewriteMode parse(String str) {
12261226
private String hdfsBackendSelectorHashAlgorithm = "consistent";
12271227

12281228
@VariableMgr.VarAttr(name = CONSISTENT_HASH_VIRTUAL_NUMBER, flag = VariableMgr.INVISIBLE)
1229-
private int consistentHashVirtualNodeNum = 128;
1229+
private int consistentHashVirtualNodeNum = 256;
12301230

12311231
// binary, json, compact,
12321232
@VarAttr(name = THRIFT_PLAN_PROTOCOL)

0 commit comments

Comments
 (0)