Jerry,
I think most of the code you are going to want to look at is here
https://github.com/apache/storm/blob/jstorm-import/jstorm-core/src/main/java/com/alibaba/jstorm/daemon/supervisor/CgroupManager.java
The back end for most of it seems to come from

https://github.com/apache/storm/tree/jstorm-import/jstorm-core/src/main/java/com/alibaba/jstorm/container

Which looks like it implements a somewhat generic cgroup support.
 - Bobby 

    On Wednesday, January 13, 2016 1:34 AM, 刘键(Basti Liu) 
<[email protected]> wrote:
 

 Hi Jerry,

Currently, JStorm supports to control the upper limit of cpu time for a worker 
by cpu.cfs_period_us & cpu.cfs_quota_us in cgroup.
e.g. cpu.cfs_period_us= 100000, cpu.cfs_quota_us=3*100000. Cgroup will limit 
the corresponding process to occupy at most 300% cpu (3 cores).

Regards
Basti

-----Original Message-----
From: Jerry Peng [mailto:[email protected]] 
Sent: Wednesday, January 13, 2016 1:57 PM
To: [email protected]
Subject: JStorm CGroup

Hello everyone,

This question is directed more towards the people that worked on JStorm.  If I 
recall correctly JStorm offers some sort of resource isolation through CGroups. 
 What kind of support does JStorm offer for resource isolation? Can someone 
elaborate on this feature in JStorm.

Best,

Jerry


  

Reply via email to