Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuration of workers in a storm cluster

Tags:

apache-storm

I have a question about configuration of worker processes.

I have already understood that worker processes run within a worker node (which is a machine). What I would like to know is if all worker processes share the same JVM or if each worker process has its own JVM instance? If the latter is true, so I suppose one should set how much memory each process has to use! So where would this configuration be done?

like image 452
user3045265 Avatar asked Dec 19 '22 19:12

user3045265


2 Answers

configure worker.childopts = "-Xmx4048m" in storm.yaml.

each worker process will get that much memory from RAM, if available.

like image 25
kartik Avatar answered May 17 '23 08:05

kartik


Each storm worker process run in its own JVM. The memory allocation to each of the worker can be done in the conf/storm.yaml configuration file. For Ex: Add/Edit the following parameter to allocate 1GB RAM to each of your worker process:

worker.childopts: "-Xmx1024m"

This overrides any JVM RAM settings you have done in general on your machine (like using JAVA_TOOL_OPTIONS)

For more storm configurations refer: Storm Configurations

like image 117
Balkrishan Aggarwal Avatar answered May 17 '23 08:05

Balkrishan Aggarwal