You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@samza.apache.org by Luis De Pombo <lf...@gmail.com> on 2015/05/21 22:53:54 UTC

Review Request 34564: SAMZA-401: add utilization metrics for the event loop

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/34564/
-----------------------------------------------------------

Review request for samza.


Repository: samza


Description
-------

SAMZA-401: add utilization metrics for the event loop


Diffs
-----

  samza-core/src/main/scala/org/apache/samza/container/RunLoop.scala 4c0faf61c591771a05f233f311d7eb4524ac01ff 
  samza-core/src/main/scala/org/apache/samza/container/SamzaContainerMetrics.scala 7d9ff0040ff75a49e21d26d28d8940e5328fb2c5 
  samza-core/src/test/scala/org/apache/samza/container/TestRunLoop.scala 73ec2b5a7c1ca17fbb80604355881bff51f7e41e 

Diff: https://reviews.apache.org/r/34564/diff/


Testing
-------


Thanks,

Luis De Pombo


Re: Review Request 34564: SAMZA-401: add utilization metrics for the event loop

Posted by Luis De Pombo <lf...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/34564/
-----------------------------------------------------------

(Updated June 3, 2015, 5:13 p.m.)


Review request for samza.


Repository: samza


Description
-------

SAMZA-401: add utilization metrics for the event loop


Diffs (updated)
-----

  samza-core/src/main/scala/org/apache/samza/container/RunLoop.scala 4c0faf61c591771a05f233f311d7eb4524ac01ff 
  samza-core/src/main/scala/org/apache/samza/container/SamzaContainerMetrics.scala 7d9ff0040ff75a49e21d26d28d8940e5328fb2c5 
  samza-core/src/main/scala/org/apache/samza/util/TimerUtils.scala 6fedb6268de3e1671dc86d6bada0d844ea3ad0c5 
  samza-core/src/test/scala/org/apache/samza/container/TestRunLoop.scala 73ec2b5a7c1ca17fbb80604355881bff51f7e41e 

Diff: https://reviews.apache.org/r/34564/diff/


Testing
-------


Thanks,

Luis De Pombo


Re: Review Request 34564: SAMZA-401: add utilization metrics for the event loop

Posted by Luis De Pombo <lf...@gmail.com>.

> On May 22, 2015, 7:36 a.m., Yan Fang wrote:
> > samza-core/src/main/scala/org/apache/samza/container/SamzaContainerMetrics.scala, line 41
> > <https://reviews.apache.org/r/34564/diff/1/?file=967023#file967023line41>
> >
> >     do we want to create a new Gauge every loop? I think one Gauge is sufficient, we can update its value. What do you think?

Agreed


> On May 22, 2015, 7:36 a.m., Yan Fang wrote:
> > samza-core/src/main/scala/org/apache/samza/container/RunLoop.scala, line 103
> > <https://reviews.apache.org/r/34564/diff/1/?file=967022#file967022line103>
> >
> >     can we nest the code as it is? It looks cleaner.
> >     
> >     I think like updateTimer, a similar method which returns the elapsed time, or a method that accepts and updates the activeMs inside the method.

Agreed, a similar method that returns the elapsed time seems cleanest.


- Luis


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/34564/#review84886
-----------------------------------------------------------


On May 21, 2015, 8:53 p.m., Luis De Pombo wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/34564/
> -----------------------------------------------------------
> 
> (Updated May 21, 2015, 8:53 p.m.)
> 
> 
> Review request for samza.
> 
> 
> Repository: samza
> 
> 
> Description
> -------
> 
> SAMZA-401: add utilization metrics for the event loop
> 
> 
> Diffs
> -----
> 
>   samza-core/src/main/scala/org/apache/samza/container/RunLoop.scala 4c0faf61c591771a05f233f311d7eb4524ac01ff 
>   samza-core/src/main/scala/org/apache/samza/container/SamzaContainerMetrics.scala 7d9ff0040ff75a49e21d26d28d8940e5328fb2c5 
>   samza-core/src/test/scala/org/apache/samza/container/TestRunLoop.scala 73ec2b5a7c1ca17fbb80604355881bff51f7e41e 
> 
> Diff: https://reviews.apache.org/r/34564/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Luis De Pombo
> 
>


Re: Review Request 34564: SAMZA-401: add utilization metrics for the event loop

Posted by Yan Fang <ya...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/34564/#review84886
-----------------------------------------------------------



samza-core/src/main/scala/org/apache/samza/container/RunLoop.scala
<https://reviews.apache.org/r/34564/#comment136333>

    can we nest the code as it is? It looks cleaner.
    
    I think like updateTimer, a similar method which returns the elapsed time, or a method that accepts and updates the activeMs inside the method.



samza-core/src/main/scala/org/apache/samza/container/SamzaContainerMetrics.scala
<https://reviews.apache.org/r/34564/#comment136334>

    do we want to create a new Gauge every loop? I think one Gauge is sufficient, we can update its value. What do you think?


- Yan Fang


On May 21, 2015, 8:53 p.m., Luis De Pombo wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/34564/
> -----------------------------------------------------------
> 
> (Updated May 21, 2015, 8:53 p.m.)
> 
> 
> Review request for samza.
> 
> 
> Repository: samza
> 
> 
> Description
> -------
> 
> SAMZA-401: add utilization metrics for the event loop
> 
> 
> Diffs
> -----
> 
>   samza-core/src/main/scala/org/apache/samza/container/RunLoop.scala 4c0faf61c591771a05f233f311d7eb4524ac01ff 
>   samza-core/src/main/scala/org/apache/samza/container/SamzaContainerMetrics.scala 7d9ff0040ff75a49e21d26d28d8940e5328fb2c5 
>   samza-core/src/test/scala/org/apache/samza/container/TestRunLoop.scala 73ec2b5a7c1ca17fbb80604355881bff51f7e41e 
> 
> Diff: https://reviews.apache.org/r/34564/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Luis De Pombo
> 
>