Method and system for realizing NiFi high-availability cluster mode
An implementation method and cluster technology, applied in the field of clusters, can solve the problems of insufficient function of designated running nodes, loss of component status data, affecting cluster stability, etc., to increase the node failure task recovery function, improve high availability, and increase task load. The effect of the equalization function
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0055] as attached figure 2 As shown, this embodiment provides a method for implementing NiFi high-availability cluster mode. The method is to add Master nodes and Worker nodes to the original NiFi cluster mode to construct an optimized NiFi cluster mode, and store the cluster state in the NiFi cluster mode. In the external Redis cluster, it is ensured that each node of the task status data can be accessed according to the task identifier, so as to ensure that the abnormally recovered task can normally obtain the persistent status data; in this way, the more worker nodes, the higher the cluster stability.
[0056] Among them, the Master node is used for backup and recovery of configuration data, load balancing of tasks, and rapid recovery of failed nodes and tasks running on them;
[0057] Worker nodes are used for task execution.
[0058] In the optimized NiFi cluster mode in this embodiment, after the worker node fails, in the scenario where the newly acquired node is not ...
Embodiment 2
[0078] This embodiment provides a NiFi high-availability cluster mode implementation system, the system includes:
[0079] The cluster optimization module is used to add Master nodes and Worker nodes to the original NiFi cluster mode to build an optimized NiFi cluster mode;
[0080] The configuration module is used to back up the configuration data on the master node's own node to the backup database, and restore the configuration data after the master node recovers abnormally;
[0081] The balancing module is used to create user tasks on different Worker nodes, and the execution of tasks in the Worker nodes is scheduled by the Master node to achieve task load balancing;
[0082] The recovery module is used to restore the task to the Worker node according to the task configuration information on the Master node after the Worker node fails, and continue to schedule task execution to quickly restore the failed node and the tasks running on it.
[0083] In the recovery module in...
Embodiment 3
[0087] This embodiment also provides an electronic device, including: a memory and a processor;
[0088] wherein, the memory stores computer-executed instructions;
[0089] The processor executes the computer-executed instructions stored in the memory, so that the processor executes the method for implementing the NiFi high-availability cluster mode of any embodiment.
[0090] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs) or other programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. The processor may be a microprocessor or the processor may be any conventional processor or the like.
[0091] The memory can be used to store computer programs and / or modules, and the processor implements various functions of the electronic device by running or executing th...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com