symious commented on code in PR #9320:
URL: https://github.com/apache/ozone/pull/9320#discussion_r2544503445


##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/OzoneConfigKeys.java:
##########
@@ -525,6 +525,18 @@ public final class OzoneConfigKeys {
 
   public static final int OZONE_MANAGER_STRIPED_LOCK_SIZE_DEFAULT = 512;
 
+  public static final String OZONE_OM_FOLLOWER_READ_LOCAL_LEASE_ENABLED_KEY =
+      "ozone.om.follower.read.local.lease.enabled";
+  public static final boolean 
OZONE_OM_FOLLOWER_READ_LOCAL_LEASE_ENABLED_DEFAULT = false;
+
+  public static final String OZONE_OM_FOLLOWER_READ_LOCAL_LEASE_LAG_LIMIT =
+      "ozone.om.follower.read.local.lease.lag.limit";
+  public static final int OZONE_OM_FOLLOWER_READ_LOCAL_LEASE_LAG_LIMIT_DEFAULT 
= 30000;
+
+  public static final String OZONE_OM_FOLLOWER_READ_LOCAL_LEASE_TIME_MS =
+      "ozone.om.follower.read.local.lease.time.ms";
+  public static final long OZONE_OM_FOLLOWER_READ_LOCAL_LEASE_TIME_MS_DEFAULT 
= 15000;

Review Comment:
   @szetszwo Thank you for the review.
   
   Decrease the values to 10000 and 5000. 
   Log lag is kind of inflated during writing, better have a large buffer; time 
is set to the OM's ratis RPC timeout.



-- 
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]

Reply via email to