Get the App
SLTechnology News&Howtos  ›  Servers  › 

What are the knowledge points of Storm ACK framework

Shulou Source: shulou.com Published: 2022-05-31 17:18:31 10月01日 Update

This article introduces the relevant knowledge of "what are the knowledge points of the Storm ACK framework?" in the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

1: in the design of the Ack framework, messages emitted by Storm correspond to a random message ID number.

2: after Spout launches the message. A message will be sent like Acker Bolt, and the content of the message is "RootID, message ID" Acker Bolt will create for the message

Create a tracking item

3: during the process of generating the message to be transmitted by Bolt, the message ID will also be sent to AckerBolt, and AckerBolt will XOR the message ID and store it later.

4: in the process of Ack the input message, Bolt will also send the message ID to AckerBolt,Acker Bolt for the message ID or store it later, because the message has already sent ID to AckerBolt when it is sent, and then the message ID will be sent again when it is Ack, which is equivalent to the end of the tracking of the message.

When 5:Acker Bolt updates the tracking value of a message, if it is found that its value changes to 0, it will be like the message sent by the Spout node, table name, and the message sent by Spout has been successfully processed.

6: the message ID of all messages will be updated to the root (/ root) tree. The root message is the message sent by Spout, and the new message generated by Bolt will not be tracked separately.

7: if you do not specify an ID for message tracking during the launch process, the system will not track the message, and if the system does not contain Ack bolt, the message will not be tracked.

8: the tracking capacity load of each message of Spout and the message evolved from this message is: "16 bytes", 8 bytes of root message ID, and 8 bytes of message tracking value "AckValue". In fact, because HashMap is used to trace it in Storm, in 32-bit JVM, each message needs at least 20 bytes of additional load, so the tracking of a message requires about 40 loads.

This is the end of the content of "what are the knowledge points of the Storm ACK framework". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Message launch track middle knowledge byte process framework content knowledge point more system storage update wrong practical successful successful and then facts Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Redmi macOS Linux MySQL