Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,11 @@ private void setUpRatisStream(RaftProperties properties) {
.getStreamWriteThreads();
RaftServerConfigKeys.DataStream.setAsyncWriteThreadPoolSize(properties,
dataStreamWriteRequestThreadPoolSize);
int dataStreamClientPoolSize =
conf.getObject(DatanodeRatisServerConfig.class)
.getClientPoolSize();
RaftServerConfigKeys.DataStream.setClientPoolSize(properties,
dataStreamClientPoolSize);
}

@SuppressWarnings("checkstyle:methodlength")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,23 @@ public void setStreamWriteThreads(int streamWriteThreads) {
this.streamWriteThreads = streamWriteThreads;
}

@Config(key = "datastream.client.pool.size",
defaultValue = "10",
type = ConfigType.INT,
tags = {OZONE, DATANODE, RATIS, DATASTREAM},
description = "Maximum number of client proxy in NettyServerStreamRpc " +
"for datastream write."
)
private int clientPoolSize;

public int getClientPoolSize() {
return clientPoolSize;
}

public void setClientPoolSize(int clientPoolSize) {
this.clientPoolSize = clientPoolSize;
}

@Config(key = "delete.ratis.log.directory",
defaultValue = "true",
type = ConfigType.BOOLEAN,
Expand Down