CN105357026A - Resource information collection method and computing node - Google Patents
Resource information collection method and computing node Download PDFInfo
- Publication number
- CN105357026A CN105357026A CN201510615267.6A CN201510615267A CN105357026A CN 105357026 A CN105357026 A CN 105357026A CN 201510615267 A CN201510615267 A CN 201510615267A CN 105357026 A CN105357026 A CN 105357026A
- Authority
- CN
- China
- Prior art keywords
- resource information
- computing node
- default
- change
- reports
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/10—Current supply arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Embodiments of the invention disclose a resource information collection method and a computing node. The method can comprise the steps that: the computing node collects current resource information of the computing node; the computing node judges whether the current resource information satisfies a preset condition of preset active report of the resource information; and if the current resource information satisfies the preset condition of the preset active report of the resource information, the computing node reports the current resource information to a master node of a cluster to which the computing node belongs. Consumption of transmission resources during resource collection can be reduced.
Description
Technical field
The present invention relates to communication technical field, particularly relate to a kind of resource information collection method and computing node.
Background technology
In today of information explosion, cloud computing, large data processing all play vital effect in every field, such as: be all widely used in fields such as industry, medical treatment, transport and communications, and in continuous fast development.And along with the data grows produced every day many, need the amount of information that is processed also increasing, and the processing speed of information depends on the service efficiency to resource to a great extent thereupon.In addition, if resource utilization can be improved more under large-scale data center, cluster, reduce the important directions that the wasting of resources is a lot of technical research, industrial development.At present, in order to improve the main scheduling of resource (DistributedResourceScheduler in a distributed manner of technology that resource utilization uses, DRS) and distributed power supply management (DistributedPowerManagement, DPM) technology be representative.Wherein, resource is collected provides the source data on basis to export as the algorithm and model improving resource utilization, and when improving resource utilization, resource is collected is step that is crucial and basis.The host node timing that current resource is collected in mainly cluster is mutual with computing node, to obtain the resource information of each computing node.But, time in this technology owing to collecting the resource information of computing node at every turn, be all that host node timing sends to computing node the request of acquisition, computing node responds this acquisition request again to report resource information to host node, visible, very large to transmission resource consumption when current resource is collected.
Summary of the invention
Embodiments provide a kind of resource information collection method and computing node, can reduce when resource is collected transmission resource consumption.
First aspect, the embodiment of the present invention provides a kind of resource information collection method, comprising:
Computing node collects the Current resource information of described computing node;
Described computing node judges whether described Current resource information meets the pre-conditioned of the active reporting resource information preset;
If when described Current resource information meets described default active reporting resource information pre-conditioned, described computing node reports described Current resource information to the host node of cluster belonging to described computing node.
In the first possible implementation of first aspect, described method also comprises:
Described computing node obtains the last resource information reported, and wherein, calls time from once reporting the latest in resource information that to be described computing node reported to described host node that the described last time reports;
Described computing node judges whether described Current resource information meets the pre-conditioned of the active reporting resource information preset, and comprising:
Described computing node judges whether the change of the resource information that described Current resource information reported relative to the described last time meets the variable condition of the triggering active reporting resource information preset.
In conjunction with the first possible implementation of first aspect, in the implementation that the second of first aspect is possible, described computing node judges whether the change of the resource information that described Current resource information reported relative to the described last time meets the variable condition of the triggering active reporting resource information preset, and comprising:
The difference in change of the stock number that the resource information that the described computing node calculating described last time reports represents and the stock number that described Current resource information represents, and judge whether described difference in change is greater than the default change upper limit threshold of default triggering active reporting resource information.
In conjunction with the first possible implementation of first aspect, in the third possible implementation of first aspect, described method also comprises:
The difference in change of the resource information that the described computing node calculating described last time reports and described Current resource information, and judge whether described difference in change is greater than default change lower threshold, if, then the mark that reports of the resource information being used for adding up described computing node is increased N, wherein, described N be greater than zero real number;
Described computing node judges whether the change of the resource information that described Current resource information reported relative to the described last time meets the variable condition of the triggering active reporting resource information preset, and comprising:
Report the currency of mark whether to be greater than default the default of triggering active reporting resource information described in described computing node judges and report threshold value.
In conjunction with first aspect, in the 4th kind of possible implementation of first aspect, described method also comprises:
Described computing node obtain last report on call time, wherein, call time from once reporting the latest in resource information that to be described computing node reported to described host node that the described last time reports;
Described computing node judges whether described Current resource information meets the pre-conditioned of the active reporting resource information preset, and comprising:
Described computing node judges to gather the time threshold whether time difference of calling time on the current acquisition time of described Current resource information and described last time report is greater than default triggering active reporting resource information.
In conjunction with any one possible implementation above-mentioned of first aspect, in the 5th kind of possible implementation of first aspect, described method also comprises:
Described computing node receives the Web Service request that described host node sends;
Described computing node responds described Web Service request, to report described Current resource information to described host node.
Second aspect, the embodiment of the present invention provides a kind of computing node, comprising: collector unit, judging unit and report unit, wherein:
Described collector unit, for collecting the Current resource information of described computing node;
Described judging unit, for judging whether described Current resource information meets the pre-conditioned of the active reporting resource information preset;
Describedly report unit, if when judging that described Current resource information meets described default active reporting resource information pre-conditioned for described judging unit, report described Current resource information to the host node of cluster belonging to described computing node.
In the first possible implementation of second aspect, described computing node also comprises:
First acquiring unit, for obtaining the resource information that the last time reports, wherein, calls time from once reporting the latest in resource information that to be described computing node reported to described host node that the described last time reports;
Described judging unit is for judging whether the change of the resource information that described Current resource information reported relative to the described last time meets the variable condition of the triggering active reporting resource information preset.
In conjunction with the first possible implementation of second aspect, in the implementation that the second of second aspect is possible, the difference in change of the stock number that described judging unit represents for the stock number that calculates resource information that the described last time reports and represent and described Current resource information, and judge whether described difference in change is greater than the default change upper limit threshold of default triggering active reporting resource information.
In conjunction with the first possible implementation of second aspect, in the third possible implementation of second aspect, described computing node also comprises:
Increase unit, for calculating the difference in change of resource information that the described last time reports and described Current resource information, and judge whether described difference in change is greater than default change lower threshold, if, then the mark that reports of the resource information being used for adding up described computing node is increased N, wherein, described N be greater than zero real number;
Described judging unit reports threshold value for reporting the currency of mark whether to be greater than default the default of triggering active reporting resource information described in judging.
In conjunction with second aspect, in the 4th kind of possible implementation of second aspect, described computing node also comprises:
Second acquisition unit, calls time on obtaining that the last time reports, and wherein, calls time from once reporting the latest in resource information that to be described computing node reported to described host node that the described last time reports;
Described judging unit for the current acquisition time and described last time judging to gather described Current resource information report on time difference of calling time whether be greater than the time threshold of default triggering active reporting resource information.
In conjunction with any one possible implementation above-mentioned of second aspect, in the 5th kind of possible implementation of second aspect, described computing node also comprises:
Receiving element, for receiving the Web Service request that described host node sends;
Describedly report unit also for responding described Web Service request, to report described Current resource information to described host node.
In technique scheme, computing node collects the Current resource information of described computing node; Described computing node judges whether described Current resource information meets the pre-conditioned of the active reporting resource information preset; If when described Current resource information meets described default active reporting resource information pre-conditioned, described computing node reports described Current resource information to the host node of cluster belonging to described computing node.Computing node can be realized so initiatively to message resource information on host node, thus can reduce when resource is collected transmission resource consumption.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is that the embodiment of the present invention provides resource information collection method applicable system architecture diagram;
Fig. 2 is the schematic flow sheet of a kind of resource information collection method that the embodiment of the present invention provides;
Fig. 3 is the schematic flow sheet of the another kind of resource information collection method that the embodiment of the present invention provides;
Fig. 4 is the structural representation of a kind of cluster that the embodiment of the present invention provides;
Fig. 5 is the schematic flow sheet of the another kind of resource information collection method that the embodiment of the present invention provides;
Fig. 6 is the schematic flow sheet of the another kind of resource information collection method that the embodiment of the present invention provides;
Fig. 7 is the structural representation of a kind of computing node that the embodiment of the present invention provides;
Fig. 8 is the structural representation of the another kind of computing node that the embodiment of the present invention provides;
Fig. 9 is the structural representation of the another kind of computing node that the embodiment of the present invention provides;
Figure 10 is the structural representation of the another kind of computing node that the embodiment of the present invention provides;
Figure 11 is the structural representation of the another kind of computing node that the embodiment of the present invention provides;
Figure 12 is the structural representation of the another kind of computing node that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, Fig. 1 is that the embodiment of the present invention provides resource information collection method applicable system architecture diagram, as shown in Figure 1, this framework can comprise host node 11 and several computing nodes 12, wherein, host node 11 can be understood as again management node (ManagementNode), in addition, host node 11 and several computing nodes 12 form a cluster, such as: cluster virtual machine.Can some or all ofly be virtual machine in host node 11 and computing node 12, and these virtual machines can be deployed in one or more main frame.Certainly, host node 11 and computing node 12 also can be independently main process equipments.In above-mentioned framework, host node 11 collects the resource information of each computing node, thus host node 11 can carry out DRS or DPM according to the resource information of each computing node 12 to the resource of whole cluster, to improve resource utilization.
Refer to figure, Fig. 2 is the schematic flow sheet of a kind of resource information collection method that the embodiment of the present invention provides, and as shown in Figure 2, comprises the following steps:
201, computing node collects the Current resource information of described computing node.
Computing node can be the Current resource information that the local resource disposed collects that thread receives computing node by computing node, such as: following at least one resource information:
Free time (idle) resource situation of current C PU or be interpreted as the available resources of CPU;
Current available internal memory situation;
The number of times of current storage input and output (InputOutput, IO);
The number of times of current network IO.
Wherein, the number of times of above-mentioned storage IO can comprise the current number of times carrying out reading and writing (InputOutputOperationsPerSecond, IOPS) and operate per second of memory, i.e. the number of times sum of read operation per second and write operation.The number of times of above-mentioned network I/O can comprise network transmission package number (PacketsPerSecondPPS) per second.
202, computing node judges whether described Current resource information meets the pre-conditioned of the active reporting resource information preset, and if so, then performs step 203, if not, then and can process ends.
Wherein, upper this pre-conditionedly initiatively can report the condition of resource information by triggering computational nodes for presetting to host node, such as: when the resource information change of computing node exceedes a certain higher limit, then computing node meets above-mentioned pre-conditioned; Or when the resource information acquisition time of computing node exceedes special time threshold value with the last time reported, then computing node meets above-mentioned pre-conditioned etc.
203, computing node reports described Current resource information to the host node of cluster belonging to described computing node.
Computing node can be realized by above-mentioned steps and initiatively report resource information to host node, thus not need host node to send acquisition request conforms to computing node, thus can reduce when resource is collected transmission resource consumption.In addition, when being deployed in the business stable operation inside computing node, the consumption of its resource should be uniform within a period of time, change is little, periodically the main frame and network overhead that cause is reported so can be reduced by the mode of this active reporting, avoid unnecessary repetition message transmission, cluster master control node resource can also be reduced simultaneously and collect and scheduling decision load.And after master control node malfunction and failure can be avoided, complete a new history data collection for the previous period in cluster resource scheduling cannot provide decision recommendation.
In the present embodiment, above-mentioned computing node can be the virtual machine in virtual cluster, and certainly, above-mentioned computing node also can be the physical computer in computer cluster.
In the present embodiment, computing node collects the Current resource information of described computing node; Described computing node judges whether described Current resource information meets the pre-conditioned of the active reporting resource information preset; If when described Current resource information meets described default active reporting resource information pre-conditioned, described computing node reports described Current resource information to the host node of cluster belonging to described computing node.Computing node can be realized so initiatively to message resource information on host node, thus can reduce when resource is collected transmission resource consumption.
Refer to Fig. 3, Fig. 3 is the schematic flow sheet of the another kind of resource information collection method that the embodiment of the present invention provides, and as shown in Figure 3, comprises the following steps:
301, computing node collects the Current resource information of described computing node.
In the present embodiment, computing node can have individual local resource collect thread, this thread is timed triggering, and timing is defaulted as 5 seconds or 3 seconds etc., and particular user can according to oneself business actual conditions amendment default configuration.This resource collection thread can collect at least one item in the idling-resource situation of current C PU, current available internal memory situation, the number of times of current storage IO and the number of times of current network IO.Such as: as shown in Figure 4, can comprise cpu monitor module, internal memory monitoring module in computing node, store IO monitoring module, network I/O monitoring module and report decision-making module, such resource collects that thread can call cpu monitor module, internal memory monitoring module, stores IO monitoring module, network I/O monitoring module collects the idling-resource situation of current C PU, current available internal memory situation, the current number of times of storage IO and the number of times of current network IO successively.Again by the resource information transfer of collection to reporting decision-making module, whether report resource information to host node by reporting decision-making module decision-making.Wherein, decision-making here specifically can refer step 302.In addition, above-mentioned host node can also comprise resource snapshot request module, and host node can report resource information by active request computing node by this module, such as: after host node breaks down, active request computing node reports resource information.In addition, in the present embodiment, computing node can be that the mode of resource snapshot reports resource information to host node.
302, computing node judges whether described Current resource information meets the pre-conditioned of the active reporting resource information preset, and if so, then performs step 303, if not, then and can process ends.
In the present embodiment, said method can also comprise the steps:
Computing node obtains the last resource information reported, and wherein, calls time from once reporting the latest in resource information that to be described computing node reported to described host node that the described last time reports;
Step 302 can comprise:
Computing node judges whether the change of the resource information that described Current resource information reported relative to the described last time meets the variable condition of the triggering active reporting resource information preset.
In this execution mode, computing node can record the resource information that the last time reports, such as: when computing node often reports first resource information to host node, computing node is just by its record.Certainly, record here also can upgrade in time, such as: only record the nearest resource information reported for 2 times or 5 times.
Such step 302 just can compare according to Current resource information and the last resource information reported, when by compare find that Current resource information changes greatly with the last resource information reported time, just initiatively can go up host node and report Current resource information.
Such as: above-mentioned computing node judges whether the change of the resource information that described Current resource information reported relative to the described last time meets the step of the variable condition of the triggering active reporting resource information preset, and can comprise:
The difference in change of the stock number that the resource information that the computing node calculating described last time reports represents and the stock number that described Current resource information represents, and judge whether described difference in change is greater than the default change upper limit threshold of default triggering active reporting resource information.
Wherein, above-mentioned stock number can comprise the idling-resource situation of CPU, available internal memory situation, at least one item stored in the number of times of IO and the number of times of network I/O.Above-mentioned judgement can be the idling-resource situation of CPU, available internal memory situation, store the default change upper limit threshold that difference in change that in the number of times of IO and the number of times of network I/O, any one is corresponding is greater than default triggering active reporting resource information, just can trigger active and report Current resource information to host node.Such as: meet following any one, just can trigger active and report Current resource information to host node:
Computing node judges whether the difference of the CPU usage of the CPU usage that the described last time reports and current point in time is greater than default CPU and changes upper limit threshold; Or
Computing node judges whether the difference of the memory usage of the memory usage that the described last time reports and current point in time is greater than default internal memory and changes upper limit threshold; Or
Computing node judges whether the difference of storage IO the number of storage input and output IO number that the described last time reports and current point in time is greater than default internal memory and changes upper limit threshold; Or
Computing node judges whether the difference of the network I/O number of times of the network I/O number of times that the described last time reports and current point in time is greater than default internal memory and changes upper limit threshold.
The above-mentioned any one of a demand fulfillment can be realized like this and just can report Current resource information to host node.In addition, here the Current resource information reported can also be only report the resource information being greater than upper limit threshold, such as: just the difference of the utilization rate of CPU and the CPU usage of current point in time is greater than default CPU when changing upper limit threshold, and other stock number is not when meeting above-mentioned condition, just only can report CPU usage to host node, to reduce reporting information.
Certainly, if also can be wherein one meet then report collection to all resource informations.Such as: as shown in Figure 5, said method can comprise the steps:
1) timer expiry triggers.This step triggers resource information i.e..
2) difference of the CPU usage of the last CPU usage that reports and current point in time is calculated;
3) difference of the memory usage of the last memory usage that reports and current point in time is calculated;
4) difference of storage IO the number of last storage IO number of reporting and current point in time is calculated;
5) difference of storage IO the number of last storage input and output IO number of reporting and current point in time is calculated;
6) judge whether the difference of the CPU usage of the CPU usage that the described last time reports and current point in time is greater than default CPU and changes upper limit threshold, if so, then perform step 10), if not, then perform step 7);
7) judge whether the difference of the memory usage of the memory usage that the described last time reports and current point in time is greater than default internal memory and changes upper limit threshold, if so, then perform step 10), if not, then perform step 8);
8) judge whether the difference of storage IO the number of storage IO number that the described last time reports and current point in time is greater than default internal memory and changes upper limit threshold, if so, then performs step 10), if not, then perform step 9);
9) judge whether the difference of the network I/O number of times of the network I/O number of times that the described last time reports and current point in time is greater than default internal memory and changes upper limit threshold, if so, then perform step 10), if not, then process ends).
10) Current resource information is reported to host node.
In the present embodiment, said method can also comprise the steps:
The difference in change of the resource information that the computing node calculating described last time reports and described Current resource information, and judge whether described difference in change is greater than default change lower threshold, if, then the mark that reports of the resource information being used for adding up described computing node is increased N, wherein, described N be greater than zero real number.
In this execution mode, can in advance for each stock number configure a mark, there is a specific initial value in mark, such as: 0 or 50 etc., often exceedes and once preset change lower threshold and just can add N, such as: add 1 point or add 5 and grade.
In this execution mode, above-mentioned computing node judges whether the change of the resource information that described Current resource information reported relative to the described last time meets the step of the variable condition of the triggering active reporting resource information preset, and can comprise:
Report the currency of mark whether to be greater than default the default of triggering active reporting resource information described in described computing node judges and report threshold value.
In this execution mode, can realize determining whether active reporting resource information according to the marking of Current resource information.
Such as: as shown in Figure 6, said method can comprise the steps:
1) timer expiry triggers.This step triggers resource information i.e..
2) difference of the CPU usage of the last CPU usage that reports and current point in time is calculated;
3) difference of the memory usage of the last memory usage that reports and current point in time is calculated;
4) difference of storage IO the number of last storage input and output IO number of reporting and current point in time is calculated;
5) difference of storage IO the number of last storage input and output IO number of reporting and current point in time is calculated;
6) judge whether the difference of the CPU usage of the CPU usage that the described last time reports and current point in time is greater than default CPU and changes lower threshold, if so, then perform step 7), if not, then perform step 8);
7) mark of CPU usage is added N;
8) judge whether the difference of the memory usage of the memory usage that the described last time reports and current point in time is greater than default internal memory and changes upper limit threshold, if so, then perform step 9), if not, then perform step 10);
9) mark of memory usage is added N;
10) judge whether the difference of storage IO the number of storage IO number that the described last time reports and current point in time is greater than default internal memory and changes upper limit threshold, if so, then performs step 11), if not, then perform step 12);
11) mark storing IO number is added N;
12) judge whether the difference of the network I/O number of times of the network I/O number of times that the described last time reports and current point in time is greater than default internal memory and changes upper limit threshold, if so, then perform step 13), if not, then process ends.
13) mark of network I/O number of times is added N;
14) judge above-mentioned multinomial in the no mark that there is any one exceed preset report threshold value, if so, then perform step 15), if not, then process ends.
15) Current resource information is reported to host node.
In the present embodiment, said method can also comprise the steps:
Computing node obtain last report on call time, wherein, call time from once reporting the latest in resource information that to be described computing node reported to described host node that the described last time reports;
Step 302 can comprise:
Computing node judges to gather the time threshold whether time difference of calling time on the current acquisition time of described Current resource information and described last time report is greater than default triggering active reporting resource information.
In this execution mode, can realize when finding that current time and the last computing node report the time interval of resource information to exceed time threshold (delta_t) of setting to host node, then sending resource statistics information up-to-date on computing node to host node immediately.
303, computing node reports described Current resource information to the host node of cluster belonging to described computing node.
In the present embodiment, said method can also comprise the steps:
304, computing node receives the Web Service request that described host node sends;
Computing node just can perform step 303 after receiving above-mentioned Web Service request, and namely step 303 can comprise:
Computing node responds described Web Service request, to report described Current resource information to described host node.
In this execution mode, can consider after host node is surprisingly restarted, the resource statistics information of each computing node is not had within the time period that first resource collects, its normal DRS decision-making may be affected, so increase after host node starts, initiatively send a resource updates request to computing node, after computing node receives, send resource statistics information up-to-date separately immediately on host node.After host node malfunction and failure can be avoided, complete a new history data collection for the previous period in cluster resource scheduling cannot provide decision recommendation.
In the present embodiment, the basis of the embodiment shown in Fig. 2 adds the execution mode of plurality of optional, and can reduce when resource is collected transmission resource consumption.
Be apparatus of the present invention embodiment below, the method that apparatus of the present invention embodiment realizes for performing the inventive method embodiment one to two, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to the embodiment of the present invention one and embodiment two.
Refer to Fig. 7, Fig. 7 is the structural representation of a kind of computing node that the embodiment of the present invention provides, and as shown in Figure 7, comprising: collector unit 71, judging unit 72 and report unit 73, wherein:
Collector unit 71, for collecting the Current resource information of described computing node;
Judging unit 72, for judging whether described Current resource information meets the pre-conditioned of the active reporting resource information preset;
Describedly report unit 73, if when judging that described Current resource information meets described default active reporting resource information pre-conditioned for described judging unit, report described Current resource information to the host node of cluster belonging to described computing node.
In the present embodiment, as shown in Figure 8, computing node can also comprise:
First acquiring unit 74, for obtaining the resource information that the last time reports, wherein, calls time from once reporting the latest in resource information that to be described computing node reported to described host node that the described last time reports;
Judging unit 72 may be used for judging whether the change of the resource information that described Current resource information reported relative to the described last time meets the variable condition of the triggering active reporting resource information preset.
In the present embodiment, judging unit 72 may be used for calculating the difference in change of stock number that resource information that the described last time reports represents and the stock number that described Current resource information represents, and judges whether described difference in change is greater than the default change upper limit threshold of default triggering active reporting resource information.
In the present embodiment, as shown in Figure 9, computing node can also comprise:
Change calculations unit 75, for calculating the difference in change of resource information that the described last time reports and described Current resource information, and judge whether described difference in change is greater than default change lower threshold, if, then the mark that reports of the resource information being used for adding up described computing node is increased N, wherein, described N be greater than zero real number;
Judging unit 72 may be used for reporting the currency of mark whether to be greater than default the default of triggering active reporting resource information described in judgement and reports threshold value.
In the present embodiment, as shown in Figure 10, computing node can also comprise:
Second acquisition unit 76, calls time on obtaining that the last time reports, and wherein, calls time from once reporting the latest in resource information that to be described computing node reported to described host node that the described last time reports;
Judging unit 72 may be used for that the current acquisition time that judges to gather described Current resource information and described last time report on time difference of calling time whether be greater than the time threshold of default triggering active reporting resource information.
In the present embodiment, as shown in figure 11, computing node can also comprise:
Receiving element 77, for receiving the Web Service request that described host node sends;
Report unit 73 can also be used for responding described Web Service request, to report described Current resource information to described host node.
In the present embodiment, computing node collects the Current resource information of described computing node; Described computing node judges whether described Current resource information meets the pre-conditioned of the active reporting resource information preset; If when described Current resource information meets described default active reporting resource information pre-conditioned, described computing node reports described Current resource information to the host node of cluster belonging to described computing node.Computing node can be realized so initiatively to message resource information on host node, thus can reduce when resource is collected transmission resource consumption.
Refer to Figure 12, Figure 12 is the structural representation of the another kind of computing node that the embodiment of the present invention provides, as shown in figure 12, comprise: processor 121, network interface 122, memory 123 and communication bus 124, wherein, described communication bus 124 connects communication for realizing described processor 121, between network interface 122 and memory 123, and described processor 121 performs the program stored in described memory 123 and is used for realizing following methods:
Collect the Current resource information of described computing node;
Judge whether described Current resource information meets the pre-conditioned of the active reporting resource information preset;
If when described Current resource information meets described default active reporting resource information pre-conditioned, report described Current resource information to the host node of cluster belonging to described computing node.
In the present embodiment, the program that processor 121 performs can also comprise:
Described computing node obtains the last resource information reported, and wherein, calls time from once reporting the latest in resource information that to be described computing node reported to described host node that the described last time reports;
What processor 121 performed judges whether described Current resource information meets the pre-conditioned program of the active reporting resource information preset, and can comprise:
Judge whether the change of the resource information that described Current resource information reported relative to the described last time meets the variable condition of the triggering active reporting resource information preset.
In the present embodiment, what processor 121 performed judges whether the change of the resource information that described Current resource information reported relative to the described last time meets the program of the variable condition of the triggering active reporting resource information preset, and can comprise:
Calculate the difference in change of stock number that resource information that the described last time reports represents and the stock number that described Current resource information represents, and judge whether described difference in change is greater than the default change upper limit threshold of default triggering active reporting resource information.
In the present embodiment, the program that processor 121 performs can also comprise:
Calculate the difference in change of resource information that the described last time reports and described Current resource information, and judge whether described difference in change is greater than default change lower threshold, if so, then the mark that reports of the resource information being used for adding up described computing node is increased N, wherein, described N be greater than zero real number;
What processor 121 performed judges whether the change of the resource information that described Current resource information reported relative to the described last time meets the program of the variable condition of the triggering active reporting resource information preset, and can comprise:
Report the currency of mark whether to be greater than default the default of triggering active reporting resource information described in judgement and report threshold value.
In the present embodiment, the program that processor 121 performs can also comprise:
Obtain last report on call time, wherein, call time from once reporting the latest in resource information that to be described computing node reported to described host node that the described last time reports;
What processor 121 performed judges whether described Current resource information meets the pre-conditioned program of the active reporting resource information preset, and can comprise:
Judge to gather the time threshold whether time difference of calling time on the current acquisition time of described Current resource information and described last time report is greater than default triggering active reporting resource information.
In the present embodiment, the program that processor 121 performs can also comprise:
Receive the Web Service request that described host node sends;
Respond described Web Service request, to report described Current resource information to described host node.
In the present embodiment, computing node collects the Current resource information of described computing node; Described computing node judges whether described Current resource information meets the pre-conditioned of the active reporting resource information preset; If when described Current resource information meets described default active reporting resource information pre-conditioned, described computing node reports described Current resource information to the host node of cluster belonging to described computing node.Computing node can be realized so initiatively to message resource information on host node, thus can reduce when resource is collected transmission resource consumption.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random access memory (RandomAccessMemory is called for short RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.
Claims (12)
1. a resource information collection method, is characterized in that, comprising:
Computing node collects the Current resource information of described computing node;
Described computing node judges whether described Current resource information meets the pre-conditioned of the active reporting resource information preset;
If when described Current resource information meets described default active reporting resource information pre-conditioned, described computing node reports described Current resource information to the host node of cluster belonging to described computing node.
2. the method for claim 1, is characterized in that, described method also comprises:
Described computing node obtains the last resource information reported, and wherein, calls time from once reporting the latest in resource information that to be described computing node reported to described host node that the described last time reports;
Described computing node judges whether described Current resource information meets the pre-conditioned of the active reporting resource information preset, and comprising:
Described computing node judges whether the change of the resource information that described Current resource information reported relative to the described last time meets the variable condition of the triggering active reporting resource information preset.
3. method as claimed in claim 2, is characterized in that, described computing node judges whether the change of the resource information that described Current resource information reported relative to the described last time meets the variable condition of the triggering active reporting resource information preset, and comprising:
The difference in change of the stock number that the resource information that the described computing node calculating described last time reports represents and the stock number that described Current resource information represents, and judge whether described difference in change is greater than the default change upper limit threshold of default triggering active reporting resource information.
4. method as claimed in claim 2, it is characterized in that, described method also comprises:
The difference in change of the resource information that the described computing node calculating described last time reports and described Current resource information, and judge whether described difference in change is greater than default change lower threshold, if, then the mark that reports of the resource information being used for adding up described computing node is increased N, wherein, described N be greater than zero real number;
Described computing node judges whether the change of the resource information that described Current resource information reported relative to the described last time meets the variable condition of the triggering active reporting resource information preset, and comprising:
Report the currency of mark whether to be greater than default the default of triggering active reporting resource information described in described computing node judges and report threshold value.
5. the method for claim 1, is characterized in that, described method also comprises:
Described computing node obtain last report on call time, wherein, call time from once reporting the latest in resource information that to be described computing node reported to described host node that the described last time reports;
Described computing node judges whether described Current resource information meets the pre-conditioned of the active reporting resource information preset, and comprising:
Described computing node judges to gather the time threshold whether time difference of calling time on the current acquisition time of described Current resource information and described last time report is greater than default triggering active reporting resource information.
6., as the method as described in arbitrary in claim 1-5, it is characterized in that, described method also comprises:
Described computing node receives the Web Service request that described host node sends;
Described computing node responds described Web Service request, to report described Current resource information to described host node.
7. a computing node, is characterized in that, comprising: collector unit, judging unit and report unit, wherein:
Described collector unit, for collecting the Current resource information of described computing node;
Described judging unit, for judging whether described Current resource information meets the pre-conditioned of the active reporting resource information preset;
Describedly report unit, if when judging that described Current resource information meets described default active reporting resource information pre-conditioned for described judging unit, report described Current resource information to the host node of cluster belonging to described computing node.
8. computing node as claimed in claim 7, it is characterized in that, described computing node also comprises:
First acquiring unit, for obtaining the resource information that the last time reports, wherein, calls time from once reporting the latest in resource information that to be described computing node reported to described host node that the described last time reports;
Described judging unit is for judging whether the change of the resource information that described Current resource information reported relative to the described last time meets the variable condition of the triggering active reporting resource information preset.
9. computing node as claimed in claim 8, it is characterized in that, the difference in change of the stock number that described judging unit represents for the stock number that calculates resource information that the described last time reports and represent and described Current resource information, and judge whether described difference in change is greater than the default change upper limit threshold of default triggering active reporting resource information.
10. computing node as claimed in claim 8, it is characterized in that, described computing node also comprises:
Change calculations unit, for calculating the difference in change of resource information that the described last time reports and described Current resource information, and judge whether described difference in change is greater than default change lower threshold, if, then the mark that reports of the resource information being used for adding up described computing node is increased N, wherein, described N be greater than zero real number;
Described judging unit reports threshold value for reporting the currency of mark whether to be greater than default the default of triggering active reporting resource information described in judging.
11. computing nodes as claimed in claim 7, it is characterized in that, described computing node also comprises:
Second acquisition unit, calls time on obtaining that the last time reports, and wherein, calls time from once reporting the latest in resource information that to be described computing node reported to described host node that the described last time reports;
Described judging unit for the current acquisition time and described last time judging to gather described Current resource information report on time difference of calling time whether be greater than the time threshold of default triggering active reporting resource information.
12. as the computing node as described in arbitrary in claim 7-11, and it is characterized in that, described computing node also comprises:
Receiving element, for receiving the Web Service request that described host node sends;
Describedly report unit also for responding described Web Service request, to report described Current resource information to described host node.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510615267.6A CN105357026B (en) | 2015-09-24 | 2015-09-24 | A kind of resource information collection method and calculate node |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510615267.6A CN105357026B (en) | 2015-09-24 | 2015-09-24 | A kind of resource information collection method and calculate node |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105357026A true CN105357026A (en) | 2016-02-24 |
CN105357026B CN105357026B (en) | 2019-07-23 |
Family
ID=55332903
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510615267.6A Active CN105357026B (en) | 2015-09-24 | 2015-09-24 | A kind of resource information collection method and calculate node |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105357026B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106095638A (en) * | 2016-05-30 | 2016-11-09 | 浪潮电子信息产业股份有限公司 | The method of a kind of server resource alarm, Apparatus and system |
CN107368400A (en) * | 2017-08-01 | 2017-11-21 | 广东欧珀移动通信有限公司 | CPU monitoring methods, device, computer-readable recording medium and mobile terminal |
CN108153650A (en) * | 2018-02-02 | 2018-06-12 | 郑州云海信息技术有限公司 | Obtain method, system, device and the storage medium of Cloud Server resource information |
CN114679499A (en) * | 2021-12-30 | 2022-06-28 | 惠州市智慧大数据有限公司 | Enterprise data collection monitoring method and device, computer equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101026857A (en) * | 2006-02-17 | 2007-08-29 | 中兴通讯股份有限公司 | Method for preparing resource in advance for hard switching process |
CN101170446A (en) * | 2007-12-03 | 2008-04-30 | 华为技术有限公司 | A license management method, server, client and system |
CN101304330A (en) * | 2008-06-28 | 2008-11-12 | 华为技术有限公司 | Resource allocation method, server, network equipment and network system |
CN101808119A (en) * | 2010-03-04 | 2010-08-18 | 杭州华三通信技术有限公司 | Method and equipment for multiple storage array load balancing |
CN101925107A (en) * | 2009-06-15 | 2010-12-22 | 华为技术有限公司 | Method, device and system for achieving resource scheduling |
CN102137429A (en) * | 2010-08-13 | 2011-07-27 | 华为技术有限公司 | Method, device and system for reporting and updating resource information |
CN102651908A (en) * | 2011-02-28 | 2012-08-29 | 华为技术有限公司 | Method and equipment for transmitting data |
CN103841129A (en) * | 2012-11-21 | 2014-06-04 | 华为技术有限公司 | Cloud computing resource information acquisition server, cloud computing resource information acquisition client and information processing method |
CN103973885A (en) * | 2014-04-02 | 2014-08-06 | 联想(北京)有限公司 | Data reporting method and mobile terminal |
-
2015
- 2015-09-24 CN CN201510615267.6A patent/CN105357026B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101026857A (en) * | 2006-02-17 | 2007-08-29 | 中兴通讯股份有限公司 | Method for preparing resource in advance for hard switching process |
CN101170446A (en) * | 2007-12-03 | 2008-04-30 | 华为技术有限公司 | A license management method, server, client and system |
CN101304330A (en) * | 2008-06-28 | 2008-11-12 | 华为技术有限公司 | Resource allocation method, server, network equipment and network system |
CN101925107A (en) * | 2009-06-15 | 2010-12-22 | 华为技术有限公司 | Method, device and system for achieving resource scheduling |
CN101808119A (en) * | 2010-03-04 | 2010-08-18 | 杭州华三通信技术有限公司 | Method and equipment for multiple storage array load balancing |
CN102137429A (en) * | 2010-08-13 | 2011-07-27 | 华为技术有限公司 | Method, device and system for reporting and updating resource information |
CN102651908A (en) * | 2011-02-28 | 2012-08-29 | 华为技术有限公司 | Method and equipment for transmitting data |
CN103841129A (en) * | 2012-11-21 | 2014-06-04 | 华为技术有限公司 | Cloud computing resource information acquisition server, cloud computing resource information acquisition client and information processing method |
CN103973885A (en) * | 2014-04-02 | 2014-08-06 | 联想(北京)有限公司 | Data reporting method and mobile terminal |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106095638A (en) * | 2016-05-30 | 2016-11-09 | 浪潮电子信息产业股份有限公司 | The method of a kind of server resource alarm, Apparatus and system |
CN107368400A (en) * | 2017-08-01 | 2017-11-21 | 广东欧珀移动通信有限公司 | CPU monitoring methods, device, computer-readable recording medium and mobile terminal |
CN108153650A (en) * | 2018-02-02 | 2018-06-12 | 郑州云海信息技术有限公司 | Obtain method, system, device and the storage medium of Cloud Server resource information |
CN114679499A (en) * | 2021-12-30 | 2022-06-28 | 惠州市智慧大数据有限公司 | Enterprise data collection monitoring method and device, computer equipment and storage medium |
CN114679499B (en) * | 2021-12-30 | 2024-07-16 | 惠州市智慧大数据有限公司 | Enterprise data collection monitoring method, enterprise data collection monitoring device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105357026B (en) | 2019-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6224244B2 (en) | Power balancing to increase working density and improve energy efficiency | |
CN106533723B (en) | Virtual resource scheduling method, device and system | |
CN111966289B (en) | Partition optimization method and system based on Kafka cluster | |
CN108845878A (en) | The big data processing method and processing device calculated based on serverless backup | |
CN104065741A (en) | Data collection system and method | |
CN105049268A (en) | Distributed computing resource allocation system and task processing method | |
CN107204894A (en) | The monitoring method and device of network servicequality | |
CN103019853A (en) | Method and device for dispatching job task | |
CN105357026A (en) | Resource information collection method and computing node | |
CN115277566B (en) | Load balancing method and device for data access, computer equipment and medium | |
EP2977898B1 (en) | Task allocation in a computing environment | |
CN112084016A (en) | Flow calculation performance optimization system and method based on flink | |
CN104850394A (en) | Management method of distributed application program and distributed system | |
CN111045811A (en) | Task allocation method and device, electronic equipment and storage medium | |
CN111181774A (en) | High-availability method, system, terminal and storage medium for MapReduce task | |
CN111835578B (en) | Information transmission management method, information transmission management apparatus, and readable storage medium | |
CN114244718A (en) | Power transmission line communication network equipment management system | |
CN109840141A (en) | Thread control method, device, electronic equipment and storage medium based on cloud monitoring | |
CN111418187A (en) | Scalable statistics and analysis mechanism in cloud networks | |
CN115357395A (en) | Fault equipment task transfer method and system, electronic equipment and storage medium | |
CN110096339B (en) | System load-based capacity expansion and contraction configuration recommendation system and method | |
CN107203256A (en) | Energy-conservation distribution method and device under a kind of network function virtualization scene | |
CN111783487A (en) | Fault early warning method and device for card reader equipment | |
CN117076195A (en) | Parameter adjusting method and device, storage medium and electronic device | |
CN109308219B (en) | Task processing method and device and distributed computer system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |