concept worker process in category storm

appears as: worker processes, worker processes, worker process, A worker process, worker process
Storm Applied: Strategies for real-time event processing

This is an excerpt from Manning's book Storm Applied: Strategies for real-time event processing.

The Cluster Summary section provides a small but useful overview of your Storm cluster. You’ll notice the term slots in figure 5.11. A slot corresponds to a worker process, so a cluster with two used slots means there are two worker processes running on that cluster. Figure 5.11 provides more detail on each of the columns in this section.

Figure 7.1. The various types of nodes in a Storm cluster and worker nodes broken down as worker processes and their parts

With the terminology defined, let’s get started with the first of our “common solution” recipes in our cookbook approach, changing the number of worker processes (JVMs) running on a worker node. Addressing these “common solution” recipes now will provide a nice reference for later and allow us to focus on why each is a good solution for a particular scenario.

The number of worker processes running on a worker node is defined by the supervisor.slots.ports property in each worker node’s storm.yaml configuration file. This property defines the ports that each worker process will use to listen for messages. The next listing shows the default settings for this property.

Listing 7.1. Default settings for supervisor.slots.ports
supervisor.slots.ports - 6701 - 6702 - 6703 - 6704

To increase the number of worker processes that can be run on a worker node, add a port to this list for each worker process to be added. The opposite holds true for decreasing the number of worker processes: remove a port for each worker process to be removed.

The bottom line is you have a fixed number of worker processes that can be allocated to the topologies requesting them. You can address this problem with these strategies:

  • Decreasing the number of worker processes in use by existing topologies
  • Increasing the total number of worker processes in the cluster
  • Listing 7.3. Configuring the number of worker processes for a topology