|
@@ -33,6 +33,7 @@ import org.apache.hadoop.hdds.security.x509.SecurityConfig;
|
|
import org.apache.hadoop.hdds.security.x509.certificate.client.CertificateClient;
|
|
import org.apache.hadoop.hdds.security.x509.certificate.client.CertificateClient;
|
|
import org.apache.hadoop.hdds.tracing.TracingUtil;
|
|
import org.apache.hadoop.hdds.tracing.TracingUtil;
|
|
import org.apache.hadoop.ozone.OzoneConfigKeys;
|
|
import org.apache.hadoop.ozone.OzoneConfigKeys;
|
|
|
|
+
|
|
import org.apache.hadoop.ozone.OzoneConsts;
|
|
import org.apache.hadoop.ozone.OzoneConsts;
|
|
import org.apache.hadoop.ozone.container.common.interfaces.ContainerDispatcher;
|
|
import org.apache.hadoop.ozone.container.common.interfaces.ContainerDispatcher;
|
|
import org.apache.hadoop.ozone.container.common.statemachine.StateContext;
|
|
import org.apache.hadoop.ozone.container.common.statemachine.StateContext;
|
|
@@ -225,6 +226,11 @@ public final class XceiverServerRatis extends XceiverServer {
|
|
setAutoTriggerEnabled(properties, true);
|
|
setAutoTriggerEnabled(properties, true);
|
|
RaftServerConfigKeys.Snapshot.
|
|
RaftServerConfigKeys.Snapshot.
|
|
setAutoTriggerThreshold(properties, snapshotThreshold);
|
|
setAutoTriggerThreshold(properties, snapshotThreshold);
|
|
|
|
+ int maxPendingRequets = conf.getInt(
|
|
|
|
+ OzoneConfigKeys.DFS_CONTAINER_RATIS_LEADER_NUM_PENDING_REQUESTS,
|
|
|
|
+ OzoneConfigKeys.DFS_CONTAINER_RATIS_LEADER_NUM_PENDING_REQUESTS_DEFAULT
|
|
|
|
+ );
|
|
|
|
+ RaftServerConfigKeys.Write.setElementLimit(properties, maxPendingRequets);
|
|
int logQueueNumElements =
|
|
int logQueueNumElements =
|
|
conf.getInt(OzoneConfigKeys.DFS_CONTAINER_RATIS_LOG_QUEUE_NUM_ELEMENTS,
|
|
conf.getInt(OzoneConfigKeys.DFS_CONTAINER_RATIS_LOG_QUEUE_NUM_ELEMENTS,
|
|
OzoneConfigKeys.DFS_CONTAINER_RATIS_LOG_QUEUE_NUM_ELEMENTS_DEFAULT);
|
|
OzoneConfigKeys.DFS_CONTAINER_RATIS_LOG_QUEUE_NUM_ELEMENTS_DEFAULT);
|