CN112804337A - Main node pressure allocation method and device, electronic equipment and storage medium - Google Patents

Main node pressure allocation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112804337A
CN112804337A CN202110089413.1A CN202110089413A CN112804337A CN 112804337 A CN112804337 A CN 112804337A CN 202110089413 A CN202110089413 A CN 202110089413A CN 112804337 A CN112804337 A CN 112804337A
Authority
CN
China
Prior art keywords
node
pressure
state data
data
master
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110089413.1A
Other languages
Chinese (zh)
Inventor
李洪恩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202110089413.1A priority Critical patent/CN112804337A/en
Publication of CN112804337A publication Critical patent/CN112804337A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a master node pressure allocation method, a master node pressure allocation device, electronic equipment and a computer-readable storage medium, wherein the method comprises the following steps: if the first node detects that the master node needs to perform pressure sharing, acquiring second node information; determining a second node by using the second node information, and collecting second state data corresponding to the second node; acquiring first state data corresponding to the first node, and sending the second state data and the first state data to the main node; according to the method, when the pressure of the main node is high, the first node is used for collecting data of the second node, so that the main node can be disconnected from the second node, and the state data on the first node and the second node can be obtained under the condition that the main node is only connected with the first node, therefore, the data interaction times between the main node and the second node in the cluster can be reduced, the pressure on resources on the main node is reduced, and the operation fault of the main node due to high pressure is avoided.

Description

Main node pressure allocation method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computing cluster technologies, and in particular, to a master node pressure allocation method, a master node pressure allocation apparatus, an electronic device, and a computer-readable storage medium.
Background
In a large-scale cluster environment, in order to ensure normal operation of a cluster, a related technology generally monitors other nodes in the cluster by using a master node, specifically, collects state data of the other nodes, correspondingly processes the data after collecting the data, and then records the data into a database; an alarm or other action is taken after the anomalous data is detected. Therefore, the master node needs to perform frequent information interaction with other nodes in the cluster and perform data processing and storage operations, so that the CPU resources and network bandwidth resources on the master node have a large pressure, and the master node fails.
Therefore, the problem that the master node in the related art is more stressed and is prone to failure is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
In view of this, an object of the present application is to provide a master node pressure allocation method, a master node pressure allocation apparatus, an electronic device, and a computer-readable storage medium, which can reduce the number of data interactions between a master node and a second node in a cluster, reduce the pressure on resources on the master node, and avoid operation failure of the master node due to high pressure.
In order to solve the technical problem, the present application provides a master node pressure allocation method, including:
if the first node detects that the master node needs to perform pressure sharing, acquiring second node information;
determining a second node by using the second node information, and collecting second state data corresponding to the second node;
and acquiring first state data corresponding to the first node, and sending the second state data and the first state data to the main node.
Optionally, the detecting that the master node needs to perform pressure sharing includes:
acquiring operating pressure data of the main node, and judging whether the operating pressure data is greater than a pressure allocation threshold value;
and if the pressure is larger than the pressure allocation threshold value, determining that the pressure allocation is required for the main node.
Optionally, before acquiring the operating pressure data of the master node, the method further includes:
acquiring pressure level information corresponding to the main node;
acquiring first node information according to the pressure level information, and judging whether the first node information is matched with the node information;
and if so, determining the node as the first node.
Optionally, the detecting that the master node needs to perform pressure sharing includes:
judging whether a pressure allocation instruction sent by the main node is received;
and if the pressure allocation instruction is received, determining that the node is the first node, and detecting that the main node needs to perform pressure allocation.
Optionally, the collecting second state data corresponding to the second node includes:
sending a state collection instruction to the second node;
and acquiring the second state data sent by the second node in response to the state collection instruction.
Optionally, the sending the second status data and the first status data to the master node includes:
identifying the first state data by using the node information to obtain first identification data;
identifying the second state data by using the second node information to obtain second identification data;
and sending the first identification data and the second identification data to the main node.
Optionally, the method further comprises:
if the fact that the main node needs to carry out pressure recovery is detected, whether the node is a third node or not is judged;
and if so, stopping acquiring the second state data of the second node.
The application also provides a device is shared to master node pressure, includes:
the judging module is used for acquiring the information of the second node if the first node detects that the master node needs to perform pressure sharing;
the data acquisition module is used for determining a second node by using the second node information and collecting second state data corresponding to the second node;
and the data sending module is used for acquiring first state data corresponding to the first node and sending the second state data and the first state data to the main node.
The present application further provides an electronic device comprising a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the master node pressure apportionment method.
The present application also provides a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the master node pressure split method described above.
According to the master node pressure allocation method, if the first node detects that the master node needs to perform pressure allocation, second node information is obtained; determining a second node by using the second node information, and collecting second state data corresponding to the second node; and acquiring first state data corresponding to the first node, and sending the second state data and the first state data to the main node.
In the method, the first node is a node which replaces the master node to perform data acquisition on some other nodes when the pressure of the master node is high, and the first node can be called a secondary master node. And when the master node is detected to need to perform pressure sharing, acquiring second node information, wherein the second node information is used for designating other nodes needing acquired state data corresponding to the master node. And determining a second node according to the second node information, acquiring second state data corresponding to the second node, and sending the first state data corresponding to the second node (namely the first node) to the main node after the second state data is acquired, so as to complete the collection of the state data of the second node and the second node. By means of the mode that the first node is used for collecting data of the second node when the pressure of the main node is large, the main node can be disconnected from the second node, and only status data on the first node and the second node are acquired under the condition that the main node is connected with the first node, so that the data interaction times between the main node and the second node in the cluster can be reduced, the pressure on resources on the main node is reduced, the operation fault caused by the large pressure of the main node is avoided, and the problems that the main node is large in pressure and the fault is easy to occur in the related technology are solved.
In addition, the application also provides a master node pressure allocation device, electronic equipment and a computer readable storage medium, and the beneficial effects are also achieved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or related technologies of the present application, the drawings needed to be used in the description of the embodiments or related technologies are briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a master node pressure allocation method according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a cluster structure provided in an embodiment of the present application;
fig. 3 is a schematic diagram of another cluster structure provided in the embodiment of the present application;
fig. 4 is a schematic structural diagram of a master node pressure allocation apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart of a master node pressure allocation method according to an embodiment of the present disclosure. The method comprises the following steps:
s101: and if the first node detects that the master node needs to perform pressure sharing, acquiring the information of the second node.
It should be noted that, in this embodiment, part or all of the steps are performed by the first node, which is a non-primary node and is a node selected as a secondary primary node to perform pressure distribution on the primary node. When detecting that the pressure of the main node is too large and the pressure needs to be shared, the first node acquires corresponding second node information. The present embodiment does not limit the manner for determining whether the pressure of the master node is too high, for example, in an implementation, it may be determined whether any one of the operation pressure data is in a preset interval, and if yes, it is determined that the master node needs to perform pressure allocation; in another embodiment, it may be determined whether a combination of several items of operating pressure data meets a preset condition, and if so, it is determined that the master node needs to perform pressure sharing. The second node information is used to record information of a second node in charge of the first node when performing the pressure sharing, and specific content is not limited, and may be, for example, a node number. It will be appreciated that in one embodiment, the first node may be specified in advance before the master node needs to do the stress sharing; in another embodiment, the first node may be temporarily designated when the master node needs to perform the pressure sharing.
In one embodiment, to avoid the master node consuming computing resources to monitor itself, the first node may perform a detection of whether pressure sharing is required for the master node. In this case, the process of detecting that the master node needs to perform the pressure sharing may include the following steps:
step 11: and acquiring the operating pressure data of the main node, and judging whether the operating pressure data is greater than a pressure allocation threshold value.
Step 12: and if the pressure is larger than the pressure allocation threshold value, determining that the pressure allocation is required for the main node.
The operation pressure data may be one or more parameters that may reflect the operation pressure of the master node, and specifically may be data that reflects the usage degree of various resources of the master node, such as CPU usage rate, network bandwidth usage rate, and the like. The operating pressure data can be obtained in real time or according to a preset period. After the operating pressure data are obtained, whether the operating pressure data are larger than the corresponding pressure allocation threshold value or not is judged, and when the operating pressure data are multiple, whether any one of the operating pressure data is larger than the corresponding pressure allocation threshold value or not is judged. And if so, determining that the pressure sharing is required by the main node. According to the method, the first node can monitor the operating pressure of the main node, and the main node is prevented from consuming computing resources to monitor the main node.
It can be understood that, before the first node is used to monitor the master node, it is necessary to determine which non-master nodes are the first nodes, and in an embodiment, the identity of the first node is fixed, that is, a certain node may be designated as the first node, and the master node is monitored by the certain node. In another embodiment, the identity of the first node may be changed, for example, multiple pressure allocations may be performed, and after each pressure allocation, the first node needs to be determined again, so that a new first node monitors the master node, so before acquiring the operating pressure data of the master node, the method may further include:
step 21: and acquiring pressure level information corresponding to the main node.
Step 22: and acquiring the first node information according to the pressure level information, and judging whether the first node information is matched with the node information.
Step 23: and if so, determining the node as the first node.
The pressure level information indicates the current pressure sharing frequency of the master node, and since the first node before pressure sharing can not continue pressure sharing each time, different nodes need to be selected as the first node according to different pressure sharing frequencies. After the pressure level information is obtained, corresponding first node information is obtained according to the pressure level information, where the first node information is identity information of a first node, for example, a node number, when the current pressure is shared. Whether the node is the first node can be judged by judging whether the first node information is matched with the node information, and the node is determined to be the first node when the node is matched with the first node.
In another embodiment, the first node may be designated by the master node when pressure sharing is required, so that the master node may flexibly designate the first node as needed. Specifically, the step of detecting that the master node needs to perform pressure allocation may specifically include:
step 31: and judging whether a pressure allocation instruction sent by the main node is received.
Step 32: and if a pressure allocation instruction is received, determining that the node is a first node, and detecting that the master node needs to perform pressure allocation.
In this embodiment, the master node may send a pressure allocation instruction to some nodes as needed when pressure allocation is needed, and if the pressure allocation instruction sent by the master node is received, the node is the first node, and it is determined that the master node needs to perform pressure allocation. The embodiment does not limit the specific manner in which the master node sends the pressure sharing instruction, and since the master node monitors each of the other nodes, the node with the smaller load may be selected as the first node according to the acquired monitoring data of the other nodes. It should be noted that the master node may obtain or generate the second node information, and when pressure sharing is required, the master node may disconnect the connection with the second node according to the second node information, and stop monitoring the second node, so as to reduce its own pressure.
S102: and determining a second node by using the second node information, and collecting second state data corresponding to the second node.
The content of the second node information may be fixed or may be variable. For example, when the master node can only perform pressure sharing once, the information of the second node is fixed; when the master node can perform pressure sharing for multiple times, a new first node needs to be determined and a new second node needs to be determined each time the pressure is shared, so that the information of the second node is inevitably changed. Specifically, the second node information may correspond to the pressure level information, and may change with a change in the pressure level information of the master node. The second node information may be set in advance, for example, different second node information is preset for different pressure level information; the second node information may not be preset, and for example, the master node may temporarily generate the second node information and send the second node information to the first node.
And after the second node information is acquired, determining a second node according to the second node information, and collecting second state data corresponding to the second node. The present embodiment does not limit the specific manner of collecting the second status data, for example, in an implementation, the master node may notify the second node to send the second status data to the first node. In another embodiment, the step of collecting second status data corresponding to the second node may comprise:
step 41: and sending a state collection instruction to the second node.
Step 42: and acquiring second state data sent by the second node in response to the state collection instruction.
In this embodiment, the first node may send the state collection instruction to the second node, and the second node may send the second state data in response to the state collection instruction.
S103: and acquiring first state data corresponding to the first node, and sending the second state data and the first state data to the main node.
After the second state data is obtained, the first state data corresponding to the node, namely the first node, is obtained at the same time, and is sent to the main node together with the second state data, so that the main node can still obtain the second state data through the first node under the condition that the connection between the main node and the second node is disconnected, and the monitoring of the second node is kept. Specifically, in order to enable the master node to accurately distinguish the first state data from the second state data, the step of sending the second state data and the first state data to the master node may specifically include:
step 51: and identifying the first state data by using the node information to obtain first identification data.
Step 52: and identifying the second state data by using the second node information to obtain second identification data.
Step 53: and sending the first identification data and the second identification data to the main node.
In order to enable the master node to accurately monitor each other node, the first node identifies the first state data and the second state data by using the node information and the second node information respectively to obtain first identification data and second identification data. It should be noted that, when the second state data respectively corresponds to a plurality of second nodes, the corresponding second state data needs to be identified by using the second node information corresponding to each second node. Through the identification, the main node can accurately distinguish the nodes corresponding to the state data after acquiring the state data, and further accurately monitor other nodes in the cluster.
Referring to fig. 2, fig. 2 is a schematic diagram of a cluster structure according to an embodiment of the present disclosure. When the pressure is not shared, the master node monitors the nodes 1 to n respectively. Referring to fig. 3, fig. 3 is a schematic diagram of another cluster structure provided in the embodiment of the present application. When the pressure of the main node is high, after the pressure is shared, the node 1 is designated as a first node, and the corresponding second node is from the node 2 to the node m. In this case, the master node disconnects from node 2 to node m, and node 1 collects and forwards the status data from node 2 to node m. If there are n nodes in the cluster, each node performs alarm detection or performance data acquisition every x seconds, then in the conventional manner of detecting all nodes by the master node, the master node needs to perform (n-1) × 60/x times of information interaction and data operation with other nodes every minute, and as the cluster scale increases, the number of information interaction also increases rapidly, which causes more pressure on the master node. If m (m > (1) nodes are selected as the secondary main nodes, namely the first node, a pressure allocation threshold value that the CPU utilization rate reaches 60% or the network bandwidth utilization rate reaches 70% is set for the main nodes, and after the CPU utilization rate or the network bandwidth utilization rate of the main nodes reaches the set threshold value, the work of the main nodes is allocated by the selected m secondary main nodes, so that the main nodes only need to carry out ((n-1)/(m +1) + m) × 60/x times of data interaction every minute. Wherein n-1 represents the number of the remaining nodes except the master node; m +1 represents m secondary master nodes +1 master nodes; and (n-1)/(m +1) represents the number of nodes allocated by the primary node and each secondary node. Therefore, when the value of m is appropriate, the pressure of the main node can be reduced to a great extent, and when the cluster scale is increased, the influence can be reduced by adjusting the value of m.
Further, when the pressure level of the main node is low, pressure recovery can be performed to relieve the working pressure of each first node. Specifically, the method can further comprise the following steps:
step 61: and if the master node is detected to need to carry out pressure recovery, judging whether the node is a third node.
Step 62: and if the second node is the third node, stopping acquiring the second state data of the second node.
The third node is the first node that does not acquire the second state data any more in the pressure recovery, and it is not limited to which first node, for example, the third node may be the first node that is determined most recently, or the first node that is determined earliest, or the first node that has the highest pressure. And if the node is the third node, stopping acquiring the second state data of the second node. The master node may establish a connection with each second node corresponding to the node again, and acquire state data of the node and the second nodes.
By applying the method for distributing the pressure of the main node provided by the embodiment of the application, the first node is a node which replaces the main node to perform data acquisition on some other nodes when the pressure of the main node is higher, and can be called as an auxiliary main node. And when the master node is detected to need to perform pressure sharing, acquiring second node information, wherein the second node information is used for designating other nodes needing acquired state data corresponding to the master node. And determining a second node according to the second node information, acquiring second state data corresponding to the second node, and sending the first state data corresponding to the second node (namely the first node) to the main node after the second state data is acquired, so as to complete the collection of the state data of the second node and the second node. By means of the mode that the first node is used for collecting data of the second node when the pressure of the main node is large, the main node can be disconnected from the second node, and only status data on the first node and the second node are acquired under the condition that the main node is connected with the first node, so that the data interaction times between the main node and the second node in the cluster can be reduced, the pressure on resources on the main node is reduced, the operation fault caused by the large pressure of the main node is avoided, and the problems that the main node is large in pressure and the fault is easy to occur in the related technology are solved.
In the following, the master node pressure apportionment device provided in the embodiment of the present application is introduced, and the master node pressure apportionment device described below and the master node pressure apportionment method described above may be referred to in correspondence with each other.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a master node pressure allocation apparatus according to an embodiment of the present disclosure, including:
the determining module 110 is configured to, if the first node detects that the master node needs to perform pressure allocation, obtain second node information;
a data obtaining module 120, configured to determine a second node by using the second node information, and collect second state data corresponding to the second node;
the data sending module 130 is configured to obtain first state data corresponding to the first node, and send the second state data and the first state data to the host node.
Optionally, the determining module 110 includes:
the threshold judging unit is used for acquiring the operating pressure data of the main node and judging whether the operating pressure data is greater than a pressure allocation threshold;
the first determining unit is used for determining that the master node needs to be subjected to pressure allocation if the pressure allocation threshold is larger than the pressure allocation threshold.
Optionally, the method further comprises:
the level information acquisition module is used for acquiring pressure level information corresponding to the main node;
the matching judgment module is used for acquiring the first node information according to the pressure level information and judging whether the first node information is matched with the node information;
and the first node determining module is used for determining that the node is the first node if the first node information is matched with the node information.
Optionally, the determining module 110 includes:
the instruction judging unit is used for judging whether a pressure allocation instruction sent by the main node is received or not;
and the second determining unit is used for determining the node as the first node if the pressure allocation instruction is received, and detecting that the master node needs to perform pressure allocation.
Optionally, the data obtaining module 120 includes:
an instruction sending unit, configured to send a state collection instruction to the second node;
and the data acquisition unit is used for acquiring second state data sent by the second node in response to the state collection instruction.
Optionally, the data sending module 130 includes:
the first identification unit is used for identifying the first state data by utilizing the node information to obtain first identification data;
the second identification unit is used for identifying the second state data by using the second node information to obtain second identification data;
and the sending unit is used for sending the first identification data and the second identification data to the main node.
Optionally, the method further comprises:
the third node judging module is used for judging whether the node is a third node or not if the fact that the main node needs to carry out pressure recovery is detected;
and the acquisition stopping module is used for stopping acquiring the second state data of the second node if the third node is the first node.
In the following, the electronic device provided by the embodiment of the present application is introduced, and the electronic device described below and the master node pressure allocation method described above may be referred to correspondingly.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. Wherein the electronic device 100 may include a processor 101 and a memory 102, and may further include one or more of a multimedia component 103, an information input/information output (I/O) interface 104, and a communication component 105.
The processor 101 is configured to control the overall operation of the electronic device 100, so as to complete all or part of the steps in the master node pressure allocation method; the memory 102 is used to store various types of data to support operation at the electronic device 100, such data may include, for example, instructions for any application or method operating on the electronic device 100, as well as application-related data. The Memory 102 may be implemented by any type or combination of volatile and non-volatile Memory devices, such as one or more of Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic or optical disk.
The multimedia component 103 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 102 or transmitted through the communication component 105. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 104 provides an interface between the processor 101 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 105 is used for wired or wireless communication between the electronic device 100 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding Communication component 105 may include: Wi-Fi part, Bluetooth part, NFC part.
The electronic Device 100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components, and is configured to perform the master node pressure sharing method according to the above embodiments.
The following describes a computer-readable storage medium provided in an embodiment of the present application, and the computer-readable storage medium described below and the master node pressure allocation method described above may be referred to in correspondence.
The present application further provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the master node pressure apportionment method described above.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relationships such as first and second, etc., are intended only to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms include, or any other variation is intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A master node pressure offloading method, comprising:
if the first node detects that the master node needs to perform pressure sharing, acquiring second node information;
determining a second node by using the second node information, and collecting second state data corresponding to the second node;
and acquiring first state data corresponding to the first node, and sending the second state data and the first state data to the main node.
2. The master node pressure offloading method of claim 1, wherein the detecting that the master node requires pressure offloading comprises:
acquiring operating pressure data of the main node, and judging whether the operating pressure data is greater than a pressure allocation threshold value;
and if the pressure is larger than the pressure allocation threshold value, determining that the pressure allocation is required for the main node.
3. The master node pressure offloading method of claim 2, further comprising, prior to obtaining the operational pressure data for the master node:
acquiring pressure level information corresponding to the main node;
acquiring first node information according to the pressure level information, and judging whether the first node information is matched with the node information;
and if so, determining the node as the first node.
4. The master node pressure offloading method of claim 1, wherein the detecting that the master node requires pressure offloading comprises:
judging whether a pressure allocation instruction sent by the main node is received;
and if the pressure allocation instruction is received, determining that the node is the first node, and detecting that the main node needs to perform pressure allocation.
5. The master node pressure sharing method of claim 1, wherein the collecting second state data corresponding to the second node comprises:
sending a state collection instruction to the second node;
and acquiring the second state data sent by the second node in response to the state collection instruction.
6. The master node pressure offloading method of claim 1, wherein sending the second status data and the first status data to the master node comprises:
identifying the first state data by using the node information to obtain first identification data;
identifying the second state data by using the second node information to obtain second identification data;
and sending the first identification data and the second identification data to the main node.
7. The master node pressure offloading method of any of claims 1-6, further comprising:
if the fact that the main node needs to carry out pressure recovery is detected, whether the node is a third node or not is judged;
and if so, stopping acquiring the second state data of the second node.
8. A master node pressure offloading apparatus, comprising:
the judging module is used for acquiring the information of the second node if the first node detects that the master node needs to perform pressure sharing;
the data acquisition module is used for determining a second node by using the second node information and collecting second state data corresponding to the second node;
and the data sending module is used for acquiring first state data corresponding to the first node and sending the second state data and the first state data to the main node.
9. An electronic device comprising a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor for executing the computer program to implement the master node pressure apportionment method according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the master node pressure split method of any one of claims 1 to 7.
CN202110089413.1A 2021-01-22 2021-01-22 Main node pressure allocation method and device, electronic equipment and storage medium Pending CN112804337A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110089413.1A CN112804337A (en) 2021-01-22 2021-01-22 Main node pressure allocation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110089413.1A CN112804337A (en) 2021-01-22 2021-01-22 Main node pressure allocation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112804337A true CN112804337A (en) 2021-05-14

Family

ID=75811251

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110089413.1A Pending CN112804337A (en) 2021-01-22 2021-01-22 Main node pressure allocation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112804337A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105656647A (en) * 2014-11-12 2016-06-08 中兴通讯股份有限公司 Method, master equipment, slave equipment and system for realizing labor division in stacking system
CN106506255A (en) * 2016-09-21 2017-03-15 微梦创科网络科技(中国)有限公司 A kind of method of pressure test, apparatus and system
CN107277111A (en) * 2017-05-19 2017-10-20 腾讯科技(深圳)有限公司 A kind of company-data processing method, master node, slave node and cluster
CN108874623A (en) * 2018-05-31 2018-11-23 郑州云海信息技术有限公司 Distributed type assemblies method for monitoring performance, device, equipment, system and storage medium
CN110955518A (en) * 2019-10-31 2020-04-03 北京浪潮数据技术有限公司 Pressure load adjusting method of distributed storage management system
CN111880997A (en) * 2020-07-29 2020-11-03 曙光信息产业(北京)有限公司 Distributed monitoring system, monitoring method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105656647A (en) * 2014-11-12 2016-06-08 中兴通讯股份有限公司 Method, master equipment, slave equipment and system for realizing labor division in stacking system
CN106506255A (en) * 2016-09-21 2017-03-15 微梦创科网络科技(中国)有限公司 A kind of method of pressure test, apparatus and system
CN107277111A (en) * 2017-05-19 2017-10-20 腾讯科技(深圳)有限公司 A kind of company-data processing method, master node, slave node and cluster
CN108874623A (en) * 2018-05-31 2018-11-23 郑州云海信息技术有限公司 Distributed type assemblies method for monitoring performance, device, equipment, system and storage medium
CN110955518A (en) * 2019-10-31 2020-04-03 北京浪潮数据技术有限公司 Pressure load adjusting method of distributed storage management system
CN111880997A (en) * 2020-07-29 2020-11-03 曙光信息产业(北京)有限公司 Distributed monitoring system, monitoring method and device

Similar Documents

Publication Publication Date Title
KR101600129B1 (en) Application efficiency engine
EP3355187A1 (en) Loading method and device for terminal application (app)
CN111049705A (en) Method and device for monitoring distributed storage system
CN108633311A (en) A kind of method, apparatus and control node of the con current control based on call chain
CN114070739B (en) Cluster deployment method, device, equipment and computer readable storage medium
JP2007334716A (en) Operation management system, monitoring device, device to be monitored, operation management method, and program
CN112799923A (en) System abnormality reason determining method, device, equipment and storage medium
JP2022033685A (en) Method, apparatus, electronic device, computer readable storage medium and computer program for determining robustness
CN112231108A (en) Task processing method and device, computer readable storage medium and server
JP2018010421A (en) Computer system, computer, and data filtering method
CN112306802A (en) Data acquisition method, device, medium and electronic equipment of system
CN111221700A (en) Cluster node state monitoring method, device, equipment and readable storage medium
US20190258725A1 (en) Service regression detection using real-time anomaly detection of log data
CN110471977B (en) Data exchange method, device, equipment and medium
JP2013206368A (en) Virtual environment operation support system
JP5321195B2 (en) Monitoring control system, monitoring control method, monitoring control server, and monitoring control program
CN112559565A (en) Abnormity detection method, system and device
CN112804337A (en) Main node pressure allocation method and device, electronic equipment and storage medium
CN112817687A (en) Data synchronization method and device
CN111316691B (en) Caching and providing data to devices based on available resources
CN114490091B (en) Method and device for monitoring rule engine performance in industrial data acquisition management system
US11777810B2 (en) Status sharing in a resilience framework
KR102464688B1 (en) Method and apparatus for detrmining event level of monitoring result
CN114116128B (en) Container instance fault diagnosis method, device, equipment and storage medium
CN114168071B (en) Distributed cluster capacity expansion method, distributed cluster capacity expansion device and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210514

RJ01 Rejection of invention patent application after publication