Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Memory platform counters #548

Merged
merged 18 commits into from
Sep 30, 2014
Merged

Memory platform counters #548

merged 18 commits into from
Sep 30, 2014

Conversation

egonina
Copy link
Contributor

@egonina egonina commented Sep 24, 2014

Adding summingbird counter support for the Memory platform.

@@ -35,6 +37,9 @@ class Memory extends Platform[Memory] {
private type Prod[T] = Producer[Memory, T]
private type JamfMap = Map[Prod[_], Stream[_]]

def counter(group: String, name: String): Option[Long] =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be added to Platform? what is the contract here? When is it expected to be accurate?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm, I think this can work in scalding, but I am not sure about storm. The contract here is that the users create Counter objects, increment them in their job and then look at the final value after the job is done. With scalding, we can query the hadoop counters, but with storm, I don't see how it would work. Right now we look at storm counters in the viz graphs for the running topology.

@egonina
Copy link
Contributor Author

egonina commented Sep 24, 2014

@julienledem could you take a look? I made some modifications to the JMemory platform in summingbird-core-java

*/
class MemoryCounter {

private var count: AtomicLong = new AtomicLong()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be a private val now.

@egonina
Copy link
Contributor Author

egonina commented Sep 29, 2014

Thanks all for your comments, this is ready for another look.

@johnynek
Copy link
Collaborator

merge when green. Nice work.

johnynek added a commit that referenced this pull request Sep 30, 2014
@johnynek johnynek merged commit 5e25eb4 into develop Sep 30, 2014
@johnynek johnynek deleted the memory_platform_counters branch September 30, 2014 00:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants