4. Storm Reliability

Source: Internet
Author: User

Storm High reliability:Storm has a mechanism to ensure that every tuple emitted from spout is fully processed.
Reliability Mechanism:1. Node failure migration when a worker on one node has a problem, it automatically cuts to the other node;
2. Full Message Delivery
    • A message (tuple) sent from spout may cause hundreds or thousands of messages to be created based on this message
    • Example of "Word count":
    1. The storm task reads a complete English sentence from the data source each time, breaking the sentence into separate words, and finally, outputting each word in real time and the number of times it appears.
    2. Each message sent from spout (every English sentence) triggers a lot of messages to be created, and the words that are separated from the sentences are the new messages that are created.
    3. These messages form a tree structure that we call a "tuple tree"

Under what conditions does storm think that a message sent from spout is fully processed?
    • a tuple tree no longer grows
    • Any messages in the tree are identified as "handled"

Reliability Summary:
    1. Whenever a new node is created in a tuple tree, we need to explicitly notify Storm;
    2. When we're done with a separate message, we need to tell storm the change state of the tuple tree.
    • With the above two steps, Storm can detect when a tuple tree is fully processed and invoke the associated ACK or fail method.
    • Anchoring (anchoring)


From for notes (Wiz)

4. Storm Reliability

Related Article

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.