-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Better logging for Google Datastore benchmark #780
Comments
@k1xme - sorry don't have a Google Cloud Datastore account set up right at the moment to test this out myself, will get one if necessary. Can you post a little bit of the logging you are referring to? I see that the binding includes log4j, uses a logger in the java class, and has a log4j.properties file in the resources file. Have you tried to fiddle with that? |
@kruthar PKB parse results based on I ran YCSB googledatastore and redirect
While PKB was expecting content like
IMO, information And I'm confused why lines like |
@k1xme , this is a generic change on YCSB framework IMO, not specific to googledatastore. The reason other benchmarks works fine in PKB is they are currently using 0.7.0 YCSB. 0.9.0 appears to print some logs to stderr. |
@yuyantingzero Yeah, I notice that is a generic change, but I think info should be direct to stdout rather than stderr, which is kinda confused here. |
in general, everything should be going to stderr except for the result exporter. unfortunately, #240 and #241 are still open so we aren't consistent across modules. YCSB core should be doing the correct thing. FWICT, the output you're referring to comes from the log4j properties shipped in the binding for Google Datastore: The ConsoleAppender by default goes to stdout. If you update the configuration (by either modifying the above file or passing your own copy on the classpath) you can have it write to stderr
|
@busbey Thank you for the information! Good to know that. Yeah, then I think the changes should be made on PKB side, not YCSB. |
thanks for following up! if it turns out changing it on PKB is prohibitive, I'd be happy to have our default log4j setting changed to use stderr. Just reopen this issue. |
googledatastore currently output a lot of debugging information via logger to standard output. This makes it incompatible with bencharmark framework PerfKitBenchmark, which relies on parsing standard output to get benchmark results.
Other benchmarks in YCSB have no problem integrate with PKB. So I'm suggesting that we make some changes to the logging code in google datastore.
The text was updated successfully, but these errors were encountered: