Service node elastic scaling method based on RabbitMQ cluster

A service node, elastic scaling technology, applied in the field of cluster services, can solve problems such as error-prone and low efficiency, and achieve the effect of improving efficiency, wide application prospects, and highlighting substantive characteristics

Active Publication Date: 2020-12-22
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] In view of the above-mentioned existing RabbitMQ cluster services in the prior art based on configuration files, service expansion judgment and operation can only be performed manually, which is not only inefficient, but also has defects that are prone to errors. The present invention provides an elastic scaling of service nodes based on RabbitMQ clusters method to solve the above technical problems

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
  • Service node elastic scaling method based on RabbitMQ cluster
  • Service node elastic scaling method based on RabbitMQ cluster

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0057] Such as figure 1 As shown, the present invention provides a method for elastic scaling of service nodes based on RabbitMQ clusters, comprising the following steps:

[0058] S1. Set the monitoring service and service node scaling threshold in the RabbitMQ cluster, and save the RabbitMQ cluster configuration file;

[0059] S2. Start the monitoring service, and the monitoring service obtains the operating parameters of the RabbitMQ cluster, and adjusts the number of service nodes when the operating parameters of the RabbitMQ cluster trigger the scaling threshold of the service node;

[0060] S3. When the monitoring service is closed or the RabbitMQ cluster is restored, save the message data of the RabbitMQ cluster, obtain and restore the original RabbitMQ cluster according to the configuration file of the RabbitMQ cluster, and then synchronize the message data of the RabbitMQ cluster to the original RabbitMQ cluster.

[0061] In some embodiments, RabbitMQ cluster operatin...

Embodiment 2

[0068] Such as figure 2 As shown, the present invention provides a method for elastic scaling of service nodes based on RabbitMQ clusters, comprising the following steps:

[0069] S1. Set the monitoring service and service node scaling threshold in the RabbitMQ cluster, and save the RabbitMQ cluster configuration file; the operating parameters of the RabbitMQ cluster include but are not limited to the RabbitMQ cluster message rate, memory usage, and CPU usage;

[0070] The number of service node scaling thresholds includes at least the upper and lower limits of the RabbitMQ cluster message rate threshold, the upper and lower limits of the memory usage threshold, and the upper and lower limits of the CPU usage threshold;

[0071] S2. Start the monitoring service, and the monitoring service obtains the operating parameters of the RabbitMQ cluster, and adjusts the number of service nodes when the operating parameters of the RabbitMQ cluster trigger the scaling threshold of the s...

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 provides a service node elastic scaling method based on a RabbitMQ cluster, and the method comprises the following steps: S1, setting a monitoring service and a service node scaling threshold in the RabbitMQ cluster, and storing a RabbitMQ cluster configuration file; S2, starting a monitoring service, acquiring RabbitMQ cluster operation parameters by the monitoring service, and adjusting the number of service nodes when the RabbitMQ cluster operation parameters trigger a service node expansion threshold; and S3, when the monitoring service is closed or the RabbitMQ cluster is recovered, storing the message data of the RabbitMQ cluster, obtaining and recovering the original RabbitMQ cluster according to the RabbitMQ cluster configuration file, and synchronizing the message data of the RabbitMQ cluster to the original RabbitMQ cluster. Automatic elastic expansion and contraction of the service nodes are realized, the efficiency is improved, and the operation and maintenance cost is reduced.

Description

technical field [0001] The invention belongs to the technical field of cluster services, and in particular relates to a method for elastic scaling of service nodes based on RabbitMQ clusters. Background technique [0002] RabbitMQ: a message middleware; [0003] RabbitMQ cluster: a cluster composed of RabbitMQ services with multiple nodes, providing high availability, load balancing and other functions; [0004] HA strategy: RabbitMQ's high availability (High availability) strategy, used to define how nodes in the cluster synchronize and back up data; [0005] Message Rate: The number of message pushes and subscriptions per second on RabbitMQ. [0006] RabbitMQ is an open source message middleware widely used and mature in technology. The cluster service ensures the stability and reliability of the business, while improving the throughput of RabbitMQ. But generally using the RabbitMQ cluster service is to configure the configuration file of the cluster, and then start th...

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08
CPCH04L67/10H04L67/30H04L67/1095H04L67/51
Inventor 袁东海胡玉鹏李红卫
Owner INSPUR SUZHOU INTELLIGENT TECH 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