-
Couldn't load subscription status.
- Fork 266
Platform-independent stats storm scalding #503
Conversation
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.
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.
I'm not sure we use them at all in the SB OSS do we?
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.
I didn't think so.
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.
Removed author
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.
private?
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.
Can't make this private, ScaldingStatProvider refers to it
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.
We can make it package private then?
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.
Wildcard import for what?
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.
Changed to be explicit imports
|
LGTM when green. Build failure looked probably spurious so i've restarted it. |
|
All green, tested on a cluster both storm and scalding, things work fine. Ready for merge. |
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.
Package private?
|
Awesome work, thanks! This is huge! |
Platform-independent stats storm scalding
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.
it would be really nice if we could count different things, or name groups differently on each platform.
Something like:
def job[P <: Platform[P]](source: P#Source[T], sink: P#Sink[V], counters: P#Counters): TailProducer[Unit] =
source.map { t =>
counters("mapStep").inc
fn(t)
}.write(sink)And then I count configure each of the counters by name on each platform (and maybe not do anything at all on some).
Might be something to think of down the line (platform specific counters).
First stab at the platform-independent stats in Summingbird. Not ready for merge, open for comments. Still working on unit testing.