Skip to content

Commit

Permalink
[improve](move-memtable) reduce default load stream per node to 2 for…
Browse files Browse the repository at this point in the history
… stream load (apache#34065)
  • Loading branch information
kaijchen authored Apr 27, 2024
1 parent a9040c8 commit e24c7a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2073,7 +2073,7 @@ private void httpStreamPutImpl(TStreamLoadPutRequest request, TStreamLoadPutResu
ctx.getSessionVariable().groupCommit = request.getGroupCommitMode();
try {
HttpStreamParams httpStreamParams = initHttpStreamPlan(request, ctx);
int loadStreamPerNode = 20;
int loadStreamPerNode = 2;
if (request.getStreamPerNode() > 0) {
loadStreamPerNode = request.getStreamPerNode();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ default boolean isMemtableOnSinkNode() {
}

default int getStreamPerNode() {
return 20;
return 2;
}

class ImportColumnDescs {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public class StreamLoadTask implements LoadTaskInfo {
private boolean enableProfile = false;

private boolean memtableOnSinkNode = false;
private int streamPerNode = 20;
private int streamPerNode = 2;

private byte enclose = 0;

Expand Down

0 comments on commit e24c7a5

Please sign in to comment.