Storm cluster load balancing method and system based on discrete particle swarms

A cluster load balancing and discrete particle swarm technology, applied in multi-program devices, program control design, instruments, etc., can solve the problems of reduced service life, inability to fully utilize Storm cluster performance, insufficient memory of working nodes, etc.

Pending Publication Date: 2020-10-30
STATE GRID FUJIAN ELECTRIC POWER CO LTD +3
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] After the client submits the Topology task, Nimbus, the control node of the Storm cluster, receives the Topology task. Based on the received Topology task, Nimbus calculates the number of runtime instance tasks that need to be processed, and uses polling according to the number of worker nodes contained in the current Storm cluster. Scheduling (Round Robin scheduling) algorithm, which evenly distributes the runtime instance tasks contained in the topology submitted by the user to each working node worker. During the allocation process, it will always ask from the first working node, so that the first The load pressure of the working node is getting bigger and bigger, which makes the load pressure of the working node much larger than other nodes, resulting in different loads of each working node worker in the Storm cluster, and the round-robin scheduling algor

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Storm cluster load balancing method and system based on discrete particle swarms
  • Storm cluster load balancing method and system based on discrete particle swarms
  • Storm cluster load balancing method and system based on discrete particle swarms

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0050] In the Storm cluster load balancing method based on discrete particle swarms of the present invention, when multiple tasks are running on each working node, the degree of load dispersion F of all working nodes in the Storm cluster measures the degree of load balancing:

[0051] Where k represents the number of types of performance indicators of the working nodes, and the smaller the F value, the greater the degree of load balancing; the present invention uses the discrete particle swarm optimization algorithm to obtain the minimum value of F, so the fitness function in the discrete particle swarm optimization algorithm is calculated using F.

[0052] The selection of the performance index used to characterize the load of the working node selected in this embodiment is as follows:

[0053] To reasonably arrange the load of all working...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a Storm cluster load balancing method and system based on discrete particle swarms. The Storm cluster load balancing method comprises the steps of obtaining the number s of working nodes and the number t of tasks to be distributed; initializing a particle swarm; obtaining the Pbest of each primary particle and the Gbest of the particle swarm; updating each task allocation method; updating the Pbest of each particle and the Gbest of the particle swarm after iterative updating; obtaining a global historical optimal task allocation method Gbest until the number of iterations reaches a preset maximum number of iterations; running a Storm cluster according to a global historical optimal task allocation method Gbest; according to the method, the strategy of Storm clusterscheduling by adopting the particle swarm algorithm can improve the performance utilization rate of the Storm cluster, and the situation that the CPU of a certain working node is fully loaded and theother working node is unloaded is avoided.

Description

technical field [0001] The invention relates to the field of big data real-time processing, in particular to a Storm cluster load balancing method and system based on discrete particle swarms. Background technique [0002] After the client submits the Topology task, Nimbus, the control node of the Storm cluster, receives the Topology task. Based on the received Topology task, Nimbus calculates the number of runtime instance tasks that need to be processed, and uses polling according to the number of worker nodes contained in the current Storm cluster. Scheduling (Round Robin scheduling) algorithm, which evenly distributes the runtime instance tasks contained in the topology submitted by the user to each working node worker. During the allocation process, it will always ask from the first working node, so that the first The load pressure of the working node is getting bigger and bigger, which makes the load pressure of the working node much larger than other nodes, resulting ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/50G06N3/00
CPCG06F9/5083G06N3/006
Inventor 张江龙陈是同吴小华李宏发蔡力军陶俊高扬浦正国毛舒乐张天奇赵云龙吴金淦林胜
Owner STATE GRID FUJIAN ELECTRIC POWER CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products