-
Notifications
You must be signed in to change notification settings - Fork 593
HDDS-10573. [hsync] Add a freon tool to benchmark hsync/write concurrency #6925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… does hsync nonstop. Change-Id: I27d72c4412fe47cf862691515dd0f5fc98623a33
Change-Id: Ie44fa1518a171b70782035d0af0d79a455439954
jojochuang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good just a few small nits
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/HsyncGenerator.java
Outdated
Show resolved
Hide resolved
...p-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/freon/TestHsyncGenerator.java
Outdated
Show resolved
Hide resolved
jojochuang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 thanks @duongkame
ivandika3
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@duongkame Thanks for the patch. Overall looks good. Left one comment.
| configuration = freon.createOzoneConfiguration(); | ||
| } | ||
| URI uri = URI.create(rootPath); | ||
| fileSystem = FileSystem.get(uri, configuration); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think we should incorporate thread-local instance of FileSystem to prevent bottleneck (as done in #1479)?
Note: I'm currently working to unify freon tests using the FileSystem instance https://issues.apache.org/jira/browse/HDDS-11081, hopefully a patch will be raised soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ivandika3 We unlikely need more than one FileSystem in this tool. In #1479, the HadoopFsGenerator creates many files, (thus a big load to OM to create file metadata).
This Freon tool creates one or a few files upfront.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyway, I separated FileSystem per outputstream.
|
Merged. Thanks @smengcl @duongkame and @ivandika3 |
What changes were proposed in this pull request?
A simple Freon tool to generate concurrent write and hsync workload to one or multiple files.
Sample usage and output:
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-10573
How was this patch tested?
Unit test.