The memory restrictions are easy you can set worker.childopts: "-Xmx1024m" and that will ensure the workers don't go over 1GB. Setting 1 supervisor slot will mean you will only run 1 worker per machine. Note that supervisor process will still use other memory and you can control its memory by specifying supervisor.childopts: "-Xmx1024m".
I don't think there is an easy way to limit the usage of number of cores. Thanks Parth From: anshu shukla <[email protected]<mailto:[email protected]>> Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Date: Wednesday, July 8, 2015 at 6:08 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: Limiting Workers to use only 1 CORE/2GB RAM I am running storm on cluster with 8 slaves each with 32 GB AM and 8 CORES , But i want to limit my slaves to use only 2 GB RAM and 1 core from each slaves . 1 - I have enabled only 1 supervisor slot per machine ,does that means every worker will be using only 1 core . 2- How can i place the memory restriction . [This is needed to benchmark spark with storm ] -- Thanks & Regards, Anshu Shukla
