Skip to content

Commit

Permalink
[Enhancement]tune default virtual node to be more friendly to cache (S…
Browse files Browse the repository at this point in the history
…tarRocks#38270)

Signed-off-by: zombee0 <ewang2027@gmail.com>
  • Loading branch information
zombee0 authored Jan 3, 2024
1 parent e4f0cf3 commit 96375b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public class HDFSBackendSelector implements BackendSelector {
// After testing, this value can ensure that the scan range size assigned to each BE is as uniform as possible,
// and the largest scan data is not more than 1.1 times of the average value
private final double kMaxImbalanceRatio = 1.1;
public static final int CONSISTENT_HASH_RING_VIRTUAL_NUMBER = 128;
public static final int CONSISTENT_HASH_RING_VIRTUAL_NUMBER = 256;

class HdfsScanRangeHasher {
String basePath;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ public static MaterializedViewRewriteMode parse(String str) {
private String hdfsBackendSelectorHashAlgorithm = "consistent";

@VariableMgr.VarAttr(name = CONSISTENT_HASH_VIRTUAL_NUMBER, flag = VariableMgr.INVISIBLE)
private int consistentHashVirtualNodeNum = 128;
private int consistentHashVirtualNodeNum = 256;

// binary, json, compact,
@VarAttr(name = THRIFT_PLAN_PROTOCOL)
Expand Down

0 comments on commit 96375b6

Please sign in to comment.