You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by Niklas Nielsen <ni...@qni.dk> on 2013/11/18 20:19:28 UTC

Review Request 15653: Adds systemLoad() convenience method to stout

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

Review request for mesos, Benjamin Hindman, Ben Mahler, and Vinod Kone.


Repository: mesos-git


Description
-------

This patch includes a wrapper to get system load averages in uptime(1)
format. This is used by an upcoming patch which expose these averages
over master and slave stats.json endpoints.


Diffs
-----

  3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp f6bbf5e00a810affd8cb6f828d1f306dc8bf3051 

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


Testing
-------

make check and functional testing with endpoints.


Thanks,

Niklas Nielsen


Re: Review Request 15653: Adds systemLoad() convenience method to stout

Posted by Niklas Nielsen <ni...@qni.dk>.

> On Nov. 19, 2013, 6:48 p.m., Vinod Kone wrote:
> > 3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp, line 836
> > <https://reviews.apache.org/r/15653/diff/1/?file=388010#file388010line836>
> >
> >     How about Try<vector<double> > instead? We typically return values by return value rather than function parameter.

SGTM - Will get that in.


- Niklas


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


On Nov. 18, 2013, 7:19 p.m., Niklas Nielsen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/15653/
> -----------------------------------------------------------
> 
> (Updated Nov. 18, 2013, 7:19 p.m.)
> 
> 
> Review request for mesos, Benjamin Hindman, Ben Mahler, and Vinod Kone.
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> This patch includes a wrapper to get system load averages in uptime(1)
> format. This is used by an upcoming patch which expose these averages
> over master and slave stats.json endpoints.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp f6bbf5e00a810affd8cb6f828d1f306dc8bf3051 
> 
> Diff: https://reviews.apache.org/r/15653/diff/
> 
> 
> Testing
> -------
> 
> make check and functional testing with endpoints.
> 
> 
> Thanks,
> 
> Niklas Nielsen
> 
>


Re: Review Request 15653: Adds systemLoad() convenience method to stout

Posted by Vinod Kone <vi...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/15653/#review29124
-----------------------------------------------------------



3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp
<https://reviews.apache.org/r/15653/#comment56255>

    How about Try<vector<double> > instead? We typically return values by return value rather than function parameter.


- Vinod Kone


On Nov. 18, 2013, 7:19 p.m., Niklas Nielsen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/15653/
> -----------------------------------------------------------
> 
> (Updated Nov. 18, 2013, 7:19 p.m.)
> 
> 
> Review request for mesos, Benjamin Hindman, Ben Mahler, and Vinod Kone.
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> This patch includes a wrapper to get system load averages in uptime(1)
> format. This is used by an upcoming patch which expose these averages
> over master and slave stats.json endpoints.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp f6bbf5e00a810affd8cb6f828d1f306dc8bf3051 
> 
> Diff: https://reviews.apache.org/r/15653/diff/
> 
> 
> Testing
> -------
> 
> make check and functional testing with endpoints.
> 
> 
> Thanks,
> 
> Niklas Nielsen
> 
>


Re: Review Request 15653: Adds loadavg() convenience method to stout

Posted by Niklas Nielsen <ni...@qni.dk>.

> On Dec. 9, 2013, 9:42 p.m., Ben Mahler wrote:
> > 3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp, line 849
> > <https://reviews.apache.org/r/15653/diff/4/?file=395223#file395223line849>
> >
> >     Should this be ErrnoError?
> 
> Niklas Nielsen wrote:
>     getloadavg is most likely just a wrapper for sysctl (which sets errno), so yes - should probably be ErrnoError.
>     I will get this in the new patch.

Cool - just changed to use ErrnoError().

I'll commit this patch if you do not have any further comments.
Thanks for the reviews!


- Niklas


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


On Dec. 10, 2013, 1:27 a.m., Niklas Nielsen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/15653/
> -----------------------------------------------------------
> 
> (Updated Dec. 10, 2013, 1:27 a.m.)
> 
> 
> Review request for mesos, Benjamin Hindman, Ben Mahler, and Vinod Kone.
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> This patch includes a wrapper to get system load averages in uptime(1)
> format. This is used by an upcoming patch which expose these averages
> over master and slave stats.json endpoints.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp 544cf8c 
> 
> Diff: https://reviews.apache.org/r/15653/diff/
> 
> 
> Testing
> -------
> 
> make check and functional testing with endpoints.
> 
> 
> Thanks,
> 
> Niklas Nielsen
> 
>


Re: Review Request 15653: Adds loadavg() convenience method to stout

Posted by Niklas Nielsen <ni...@qni.dk>.

> On Dec. 9, 2013, 9:42 p.m., Ben Mahler wrote:
> > 3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp, line 849
> > <https://reviews.apache.org/r/15653/diff/4/?file=395223#file395223line849>
> >
> >     Should this be ErrnoError?

getloadavg is most likely just a wrapper for sysctl (which sets errno), so yes - should probably be ErrnoError.
I will get this in the new patch.


- Niklas


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


On Dec. 6, 2013, 11:22 p.m., Niklas Nielsen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/15653/
> -----------------------------------------------------------
> 
> (Updated Dec. 6, 2013, 11:22 p.m.)
> 
> 
> Review request for mesos, Benjamin Hindman, Ben Mahler, and Vinod Kone.
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> This patch includes a wrapper to get system load averages in uptime(1)
> format. This is used by an upcoming patch which expose these averages
> over master and slave stats.json endpoints.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp 544cf8c 
> 
> Diff: https://reviews.apache.org/r/15653/diff/
> 
> 
> Testing
> -------
> 
> make check and functional testing with endpoints.
> 
> 
> Thanks,
> 
> Niklas Nielsen
> 
>


Re: Review Request 15653: Adds loadavg() convenience method to stout

Posted by Ben Mahler <be...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/15653/#review30045
-----------------------------------------------------------

Ship it!



3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp
<https://reviews.apache.org/r/15653/#comment57552>

    Should this be ErrnoError?


- Ben Mahler


On Dec. 6, 2013, 11:22 p.m., Niklas Nielsen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/15653/
> -----------------------------------------------------------
> 
> (Updated Dec. 6, 2013, 11:22 p.m.)
> 
> 
> Review request for mesos, Benjamin Hindman, Ben Mahler, and Vinod Kone.
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> This patch includes a wrapper to get system load averages in uptime(1)
> format. This is used by an upcoming patch which expose these averages
> over master and slave stats.json endpoints.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp 544cf8c 
> 
> Diff: https://reviews.apache.org/r/15653/diff/
> 
> 
> Testing
> -------
> 
> make check and functional testing with endpoints.
> 
> 
> Thanks,
> 
> Niklas Nielsen
> 
>


Re: Review Request 15653: Adds loadavg() convenience method to stout

Posted by Niklas Nielsen <ni...@qni.dk>.

> On Dec. 12, 2013, 11:26 p.m., Ben Mahler wrote:
> > Did you forget to mark this submitted?

Sorry, indeed I did - I'll close it.


- Niklas


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


On Dec. 10, 2013, 1:27 a.m., Niklas Nielsen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/15653/
> -----------------------------------------------------------
> 
> (Updated Dec. 10, 2013, 1:27 a.m.)
> 
> 
> Review request for mesos, Benjamin Hindman, Ben Mahler, and Vinod Kone.
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> This patch includes a wrapper to get system load averages in uptime(1)
> format. This is used by an upcoming patch which expose these averages
> over master and slave stats.json endpoints.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp 544cf8c 
> 
> Diff: https://reviews.apache.org/r/15653/diff/
> 
> 
> Testing
> -------
> 
> make check and functional testing with endpoints.
> 
> 
> Thanks,
> 
> Niklas Nielsen
> 
>


Re: Review Request 15653: Adds loadavg() convenience method to stout

Posted by Ben Mahler <be...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/15653/#review30296
-----------------------------------------------------------


Did you forget to mark this submitted?

- Ben Mahler


On Dec. 10, 2013, 1:27 a.m., Niklas Nielsen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/15653/
> -----------------------------------------------------------
> 
> (Updated Dec. 10, 2013, 1:27 a.m.)
> 
> 
> Review request for mesos, Benjamin Hindman, Ben Mahler, and Vinod Kone.
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> This patch includes a wrapper to get system load averages in uptime(1)
> format. This is used by an upcoming patch which expose these averages
> over master and slave stats.json endpoints.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp 544cf8c 
> 
> Diff: https://reviews.apache.org/r/15653/diff/
> 
> 
> Testing
> -------
> 
> make check and functional testing with endpoints.
> 
> 
> Thanks,
> 
> Niklas Nielsen
> 
>


Re: Review Request 15653: Adds loadavg() convenience method to stout

Posted by Niklas Nielsen <ni...@qni.dk>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/15653/
-----------------------------------------------------------

(Updated Dec. 10, 2013, 1:27 a.m.)


Review request for mesos, Benjamin Hindman, Ben Mahler, and Vinod Kone.


Changes
-------

Using ErrnoError().


Repository: mesos-git


Description
-------

This patch includes a wrapper to get system load averages in uptime(1)
format. This is used by an upcoming patch which expose these averages
over master and slave stats.json endpoints.


Diffs (updated)
-----

  3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp 544cf8c 

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


Testing
-------

make check and functional testing with endpoints.


Thanks,

Niklas Nielsen


Re: Review Request 15653: Adds loadavg() convenience method to stout

Posted by Niklas Nielsen <ni...@qni.dk>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/15653/
-----------------------------------------------------------

(Updated Dec. 6, 2013, 11:22 p.m.)


Review request for mesos, Benjamin Hindman, Ben Mahler, and Vinod Kone.


Summary (updated)
-----------------

Adds loadavg() convenience method to stout


Repository: mesos-git


Description
-------

This patch includes a wrapper to get system load averages in uptime(1)
format. This is used by an upcoming patch which expose these averages
over master and slave stats.json endpoints.


Diffs
-----

  3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp 544cf8c 

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


Testing
-------

make check and functional testing with endpoints.


Thanks,

Niklas Nielsen


Re: Review Request 15653: Adds systemLoad() convenience method to stout

Posted by Niklas Nielsen <ni...@qni.dk>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/15653/
-----------------------------------------------------------

(Updated Dec. 6, 2013, 11:22 p.m.)


Review request for mesos, Benjamin Hindman, Ben Mahler, and Vinod Kone.


Repository: mesos-git


Description
-------

This patch includes a wrapper to get system load averages in uptime(1)
format. This is used by an upcoming patch which expose these averages
over master and slave stats.json endpoints.


Diffs (updated)
-----

  3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp 544cf8c 

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


Testing
-------

make check and functional testing with endpoints.


Thanks,

Niklas Nielsen


Re: Review Request 15653: Adds systemLoad() convenience method to stout

Posted by Niklas Nielsen <ni...@qni.dk>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/15653/
-----------------------------------------------------------

(Updated Nov. 26, 2013, 7:33 p.m.)


Review request for mesos, Benjamin Hindman, Ben Mahler, and Vinod Kone.


Changes
-------

Addressed Ben and Vinod's comments.


Repository: mesos-git


Description
-------

This patch includes a wrapper to get system load averages in uptime(1)
format. This is used by an upcoming patch which expose these averages
over master and slave stats.json endpoints.


Diffs (updated)
-----

  3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp f6bbf5e 

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


Testing
-------

make check and functional testing with endpoints.


Thanks,

Niklas Nielsen


Re: Review Request 15653: Adds systemLoad() convenience method to stout

Posted by Vinod Kone <vi...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/15653/#review29185
-----------------------------------------------------------

Ship it!



3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp
<https://reviews.apache.org/r/15653/#comment56328>

    s/Cannot/Failed to/


- Vinod Kone


On Nov. 19, 2013, 11:08 p.m., Niklas Nielsen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/15653/
> -----------------------------------------------------------
> 
> (Updated Nov. 19, 2013, 11:08 p.m.)
> 
> 
> Review request for mesos, Benjamin Hindman, Ben Mahler, and Vinod Kone.
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> This patch includes a wrapper to get system load averages in uptime(1)
> format. This is used by an upcoming patch which expose these averages
> over master and slave stats.json endpoints.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp f6bbf5e 
> 
> Diff: https://reviews.apache.org/r/15653/diff/
> 
> 
> Testing
> -------
> 
> make check and functional testing with endpoints.
> 
> 
> Thanks,
> 
> Niklas Nielsen
> 
>


Re: Review Request 15653: Adds systemLoad() convenience method to stout

Posted by Ben Mahler <be...@gmail.com>.

> On Nov. 19, 2013, 11:33 p.m., Ben Mahler wrote:
> > 3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp, lines 839-841
> > <https://reviews.apache.org/r/15653/diff/2/?file=388562#file388562line839>
> >
> >     Hey Nik, I see your gist here:
> >     https://gist.github.com/nqn/7493244
> >     
> >     More interesting than node-wide load average will be the total cpu time for the master, can we expose the same cpu time information as what we do in ProcessIsolator::usage instead of the load average?
> 
> Niklas Nielsen wrote:
>     If I understand correctly, get and aggregate cpu times for the master's process tree instead?
>     I think that is valuable too and we could totally do that, but I still think the system load average is a good indicator (and well-known convention) of the general machine load.
>     
>     Can overcommitment be detected from the cpu time? AFAIK, you get from cpu time to cpu usage % from the fraction (cpu time / measured total time) which is at most 1.  The load average is based on the process queue length, which along with the number of cores captures overcommitment.
>     I might be totally off - maybe there is a good reason for having both?
>     
>     Thoughts?

Having both sounds good, just want to make sure we have cpu time as well, so that we can detect CPU consumption spikes in the Master :)


- Ben


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


On Nov. 19, 2013, 11:08 p.m., Niklas Nielsen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/15653/
> -----------------------------------------------------------
> 
> (Updated Nov. 19, 2013, 11:08 p.m.)
> 
> 
> Review request for mesos, Benjamin Hindman, Ben Mahler, and Vinod Kone.
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> This patch includes a wrapper to get system load averages in uptime(1)
> format. This is used by an upcoming patch which expose these averages
> over master and slave stats.json endpoints.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp f6bbf5e 
> 
> Diff: https://reviews.apache.org/r/15653/diff/
> 
> 
> Testing
> -------
> 
> make check and functional testing with endpoints.
> 
> 
> Thanks,
> 
> Niklas Nielsen
> 
>


Re: Review Request 15653: Adds systemLoad() convenience method to stout

Posted by Niklas Nielsen <ni...@qni.dk>.

> On Nov. 19, 2013, 11:33 p.m., Ben Mahler wrote:
> > 3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp, lines 839-841
> > <https://reviews.apache.org/r/15653/diff/2/?file=388562#file388562line839>
> >
> >     Hey Nik, I see your gist here:
> >     https://gist.github.com/nqn/7493244
> >     
> >     More interesting than node-wide load average will be the total cpu time for the master, can we expose the same cpu time information as what we do in ProcessIsolator::usage instead of the load average?

If I understand correctly, get and aggregate cpu times for the master's process tree instead?
I think that is valuable too and we could totally do that, but I still think the system load average is a good indicator (and well-known convention) of the general machine load.

Can overcommitment be detected from the cpu time? AFAIK, you get from cpu time to cpu usage % from the fraction (cpu time / measured total time) which is at most 1.  The load average is based on the process queue length, which along with the number of cores captures overcommitment.
I might be totally off - maybe there is a good reason for having both?

Thoughts?


- Niklas


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


On Nov. 19, 2013, 11:08 p.m., Niklas Nielsen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/15653/
> -----------------------------------------------------------
> 
> (Updated Nov. 19, 2013, 11:08 p.m.)
> 
> 
> Review request for mesos, Benjamin Hindman, Ben Mahler, and Vinod Kone.
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> This patch includes a wrapper to get system load averages in uptime(1)
> format. This is used by an upcoming patch which expose these averages
> over master and slave stats.json endpoints.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp f6bbf5e 
> 
> Diff: https://reviews.apache.org/r/15653/diff/
> 
> 
> Testing
> -------
> 
> make check and functional testing with endpoints.
> 
> 
> Thanks,
> 
> Niklas Nielsen
> 
>


Re: Review Request 15653: Adds systemLoad() convenience method to stout

Posted by Ben Mahler <be...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/15653/#review29151
-----------------------------------------------------------



3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp
<https://reviews.apache.org/r/15653/#comment56284>

    Hey Nik, I see your gist here:
    https://gist.github.com/nqn/7493244
    
    More interesting than node-wide load average will be the total cpu time for the master, can we expose the same cpu time information as what we do in ProcessIsolator::usage instead of the load average?


- Ben Mahler


On Nov. 19, 2013, 11:08 p.m., Niklas Nielsen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/15653/
> -----------------------------------------------------------
> 
> (Updated Nov. 19, 2013, 11:08 p.m.)
> 
> 
> Review request for mesos, Benjamin Hindman, Ben Mahler, and Vinod Kone.
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> This patch includes a wrapper to get system load averages in uptime(1)
> format. This is used by an upcoming patch which expose these averages
> over master and slave stats.json endpoints.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp f6bbf5e 
> 
> Diff: https://reviews.apache.org/r/15653/diff/
> 
> 
> Testing
> -------
> 
> make check and functional testing with endpoints.
> 
> 
> Thanks,
> 
> Niklas Nielsen
> 
>


Re: Review Request 15653: Adds systemLoad() convenience method to stout

Posted by Benjamin Hindman <be...@berkeley.edu>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/15653/#review29344
-----------------------------------------------------------

Ship it!



3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp
<https://reviews.apache.org/r/15653/#comment56528>

    How about s/systemLoad/loadavg/ or s/systemLoad/load/ please?


- Benjamin Hindman


On Nov. 19, 2013, 11:08 p.m., Niklas Nielsen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/15653/
> -----------------------------------------------------------
> 
> (Updated Nov. 19, 2013, 11:08 p.m.)
> 
> 
> Review request for mesos, Benjamin Hindman, Ben Mahler, and Vinod Kone.
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> This patch includes a wrapper to get system load averages in uptime(1)
> format. This is used by an upcoming patch which expose these averages
> over master and slave stats.json endpoints.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp f6bbf5e 
> 
> Diff: https://reviews.apache.org/r/15653/diff/
> 
> 
> Testing
> -------
> 
> make check and functional testing with endpoints.
> 
> 
> Thanks,
> 
> Niklas Nielsen
> 
>


Re: Review Request 15653: Adds systemLoad() convenience method to stout

Posted by Niklas Nielsen <ni...@qni.dk>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/15653/
-----------------------------------------------------------

(Updated Nov. 19, 2013, 11:08 p.m.)


Review request for mesos, Benjamin Hindman, Ben Mahler, and Vinod Kone.


Changes
-------

Returns vector instead of return parameter array.


Repository: mesos-git


Description
-------

This patch includes a wrapper to get system load averages in uptime(1)
format. This is used by an upcoming patch which expose these averages
over master and slave stats.json endpoints.


Diffs (updated)
-----

  3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp f6bbf5e 

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


Testing
-------

make check and functional testing with endpoints.


Thanks,

Niklas Nielsen