yandrey321 commented on code in PR #11219:
URL: https://github.com/apache/ozone/pull/11219#discussion_r3989256192


##########
hadoop-ozone/freon/src/main/java/org/apache/hadoop/ozone/freon/HadoopFsReadWriteValidator.java:
##########
@@ -89,6 +110,18 @@ public class HadoopFsReadWriteValidator extends 
HadoopBaseFreonGenerator
       defaultValue = "10000")
   private int maxFilesPerThread;
 
+  @Option(names = {"--reads-per-write"},
+      description = "Number of validation reads issued per write. 1 pairs one 
read with every write, 4 makes the "
+          + "run read-heavy with four validation reads per write, and 0.25 
makes it write-heavy with one read "
+          + "every fourth write. Every read picks a file the thread wrote at 
random, so this changes how many "
+          + "files a task validates, not which write it validates. A value 
that is not a whole number is spread "
+          + "over the writes of a thread rather than rounded on every one of 
them.",
+      defaultValue = "1.0")
+  private BigDecimal readsPerWrite;

Review Comment:
   why not read percent as a param? And then get a random number between 0 and 
1 and if its less then read percent do the read, otherwise do the write. 



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