Storm Core Components

Source: Internet
Author: User

Storm is a distributed real-time computing system. Twitter acquired Backtype in July 2011, and Twitter formally opened the storm in the same year August 4.

The core technology and basic composition of storm

The core of the storm framework consists of 7 parts:

topology is the name (topology) of a real-time application running in storm, because the flow of messages between components forms a logical topological structure.

stream represents the flow of data, the core abstraction of streaming storm. A stream is an unbounded tuple sequence that can contain an integer, a long Integer, a short integer, a byte, a character, a double, a floating-point number, a Boolean value, and a byte array. A user can define a serializer to use a custom type in a native tuple;

spout The component that obtains the source data stream in a topology;

Typically, spout reads data from an external data source and translates it into topology internal source data;

Bolt receives the data, then executes the processed component, where the user can perform the actions he or she wants (bolt can do the filtering, the business processing, the connection operation, the connection accesses the database and so on);

Stream Grouping (stream grouping) Flow grouping is part of the topology definition, specifying which stream should be received as input for each bolt. In the bolt task, define how the stream should be partitioned, and Storm has 7 built-in stream grouping interfaces ( random grouping (Shuffle grouping), field grouping (Fields grouping), and all groups (all grouping), global grouping, no grouping (none grouping), direct grouping (directly grouping), local or random grouping (locally or shuffle grouping)

A worker (worker process) is a process that runs specific processing logic in Spout/bolt. Topology process execution across one or more worker nodes, the process for each worker node is a physical JVM and topology performs a subset of all tasks.

Task (Tasks) Each Spout/bolt thread in a worker is called a task. Each spout or bolt performs many tasks in the cluster, each of which corresponds to the execution of one thread, and the flow grouping defines how a tuple is sent from one task set to another. The Setsoupt () and Setbolt () methods of the Topologybuilder class can be used to set the degree of parallelism (parallelism) for each spout or bolt.

Executor (Actuator) after Storm 0.8, the task is no longer corresponding to the physical thread, and the same Spout/bolt task may share a physical thread called the Executor (executor).


There are two types of nodes in a storm cluster: The master node and the worker node. Among them, the main control node only one, and the working node can have multiple (leader only one, work has multiple ^_^).

The master node runs a daemon called Nimbus , which distributes code in the cluster, assigns tasks to nodes, and monitors host failures.

Each worker node runs a daemon called Supervisor , Supervisor listens for jobs on hosts already assigned on its host, starts and stops Nimbus already assigned worker processes.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.