smengcl commented on code in PR #11617:
URL: https://github.com/apache/ozone/pull/11617#discussion_r4308744057
##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/ScmConfig.java:
##########
@@ -102,6 +102,17 @@ public class ScmConfig extends ReconfigurableConfig {
)
private String ecPipelineChoosePolicyName;
+ @Config(key = "hdds.scm.block.allocation.prefer.client.local",
+ type = ConfigType.BOOLEAN,
+ defaultValue = "false",
+ tags = { ConfigTag.SCM, ConfigTag.PIPELINE, ConfigTag.PERFORMANCE },
+ description = "If true, when allocating a Ratis block for a client that
runs on a datanode host, SCM prefers "
+ + "an open pipeline that contains that datanode, so one replica is
local to the writer (like the HDFS "
+ + "first replica). Falls back to the pipeline choose policy when no
such pipeline has a usable container. "
+ + "OM reads the same key to pass the client address to SCM on every
block allocation."
+ )
+ private boolean preferClientLocalPipeline;
Review Comment:
Open question to reviewers: Should this be made the default?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]