CN109298934A - Heart beat cycle method of adjustment, apparatus and system - Google Patents

Heart beat cycle method of adjustment, apparatus and system Download PDF

Info

Publication number
CN109298934A
CN109298934A CN201811039291.XA CN201811039291A CN109298934A CN 109298934 A CN109298934 A CN 109298934A CN 201811039291 A CN201811039291 A CN 201811039291A CN 109298934 A CN109298934 A CN 109298934A
Authority
CN
China
Prior art keywords
heart beat
client
cycle
beat cycle
heart
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
Application number
CN201811039291.XA
Other languages
Chinese (zh)
Other versions
CN109298934B (en
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.)
Comba Network Systems Co Ltd
Original Assignee
Comba Telecom Technology Guangzhou Ltd
Comba Telecom Systems China Ltd
Comba Telecom Systems Guangzhou Co Ltd
Tianjin Comba Telecom Systems 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 Comba Telecom Technology Guangzhou Ltd, Comba Telecom Systems China Ltd, Comba Telecom Systems Guangzhou Co Ltd, Tianjin Comba Telecom Systems Co Ltd filed Critical Comba Telecom Technology Guangzhou Ltd
Priority to CN201811039291.XA priority Critical patent/CN109298934B/en
Publication of CN109298934A publication Critical patent/CN109298934A/en
Application granted granted Critical
Publication of CN109298934B publication Critical patent/CN109298934B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

The present invention relates to a kind of heart beat cycle methods of adjustment, apparatus and system, wherein the described method comprises the following steps: obtain client to be adjusted under each dimension relative client group it is data cached;It is multiplied respectively with history in bit rate data to the baseline heart cycle data of relative client group under each dimension, obtains the corresponding product of each dimension;The corresponding each product of each dimension that adds up, obtains the initial heart cycle of client to be adjusted;By initial heart cycle plus preset minimum heart beat cycle, best heart beat cycle is obtained, and the current heart beat cycle of client to be adjusted is updated to best heart beat cycle.The embodiment of the present invention can dynamically adjust heart beat cycle according to the characteristic and practical operation situation of client, heartbeat detection resource is set to concentrate to client most in need, it improves resource utilization and chooses precision with heart beat cycle, to reach the optimal balance between resource consumption and detection effect.

Description

Heart beat cycle method of adjustment, apparatus and system
Technical field
The present invention relates to fields of communication technology, more particularly to a kind of heart beat cycle method of adjustment, apparatus and system.
Background technique
In network system, the detection in place of client is generally realized by heartbeat detection technology.For example, in server In the network system of multiple client composition, heartbeat message is usually obtained with certain heart beat cycle whether to determine client In place.
During realization, inventor has found that at least there are the following problems in traditional technology: right in traditional heartbeat detection Heart beat cycle selection precision is low, and computing resource consumption is big.
Summary of the invention
Based on this, it is necessary to which for choosing in traditional heartbeat detection to heart beat cycle, precision is low, and computing resource consumption is big The problem of, a kind of heart beat cycle method of adjustment, apparatus and system are provided.
To achieve the goals above, the embodiment of the invention provides a kind of heart beat cycle methods of adjustment, comprising the following steps:
Obtain client to be adjusted under each dimension relative client group it is data cached;Data cached includes the benchmark heart Hop cycle data and history are in bit rate data;Each dimension includes one or more groups of clients;
It is multiplied, obtains in bit rate data with history to the baseline heart cycle data of relative client group under each dimension respectively To the corresponding product of each dimension;The corresponding each product of each dimension that adds up, obtains the initial heart cycle of client to be adjusted;
By initial heart cycle plus preset minimum heart beat cycle, best heart beat cycle is obtained, and by client to be adjusted Current heart beat cycle is held to be updated to best heart beat cycle.
Initial heart cycle is obtained into best heartbeat plus preset minimum heart beat cycle in one of the embodiments, In the step of period:
Based on following formula, best heart beat cycle is obtained:
T is best heart beat cycle, and N is total dimension in multidimensional groups of clients heart cycle data library, TiFor client to be adjusted End corresponds to the baseline heart cycle data of groups of clients, K in i-th dimensioniClient is corresponded in i-th dimension for client to be adjusted The history of group is in bit rate data;A is preset minimum heart beat cycle.
The current heart beat cycle of client to be adjusted is updated to the step of best heart beat cycle in one of the embodiments, Suddenly include:
When variance values are greater than preset threshold amplitude value, the current heart beat cycle of client to be adjusted is updated to Best heart beat cycle;Variance values are the value of the amplitude of variation of the relatively current heart beat cycle of best heart beat cycle.
Obtain in one of the embodiments, client to be adjusted under each dimension relative client group it is data cached The step of before include:
It inquires multidimensional and is grouped heart cycle data library, obtain corresponding to client to be adjusted corresponding client under each dimension End group;Multidimensional grouping heart cycle data library is used to store the data cached of each groups of clients under each dimension;
Dimension includes any of the following or any combination: device type, deployment region and monitoring rank.
It further comprises the steps of: in one of the embodiments,
The history of each client in groups of clients is obtained in bit rate data;
Average value processing is carried out in bit rate data to the history of each client, obtains the history of corresponding groups of clients in bit rate Data.
On the other hand, the embodiment of the invention also provides a kind of heart beat cycles to adjust device, comprising:
Data capture unit, for obtain client to be adjusted under each dimension relative client group it is data cached; Data cached includes baseline heart cycle data and history in bit rate data;Each dimension includes one or more groups of clients;
Heart beat cycle processing unit, for respectively to relative client group under each dimension baseline heart cycle data and History is multiplied in bit rate data, obtains the corresponding product of each dimension;The corresponding each product of each dimension that adds up, obtains visitor to be adjusted The initial heart cycle at family end;
Heart beat cycle updating unit, for initial heart cycle plus preset minimum heart beat cycle, to be obtained the best heart Hop cycle, and the current heart beat cycle of client to be adjusted is updated to best heart beat cycle.
On the other hand, the embodiment of the invention also provides a kind of heart beat cycles to adjust system, including server and connection Each client of server;
Server is used to execute the step of heart beat cycle method of adjustment of above-mentioned any one.
Each client is separately connected server by communication interface in one of the embodiments,;
Communication interface is SPI interface, I2C interface, UART interface, CANBUS interface or Ethernet interface.
On the other hand, the embodiment of the invention also provides a kind of computer readable storage medium, it is stored thereon with computer Program, when computer program is executed by a controller the step of realization any of the above-described heart beat cycle method of adjustment.
A technical solution in above-mentioned technical proposal is had the following advantages and beneficial effects:
Obtain client to be adjusted under each dimension relative client group it is data cached;Data cached includes the benchmark heart Hop cycle data and history are in bit rate data;Each dimension includes one or more groups of clients;Respectively to phase under each dimension It answers the baseline heart cycle data of groups of clients to be multiplied with history in bit rate data, obtains the corresponding product of each dimension;It is cumulative each The corresponding each product of a dimension, obtains the initial heart cycle of client to be adjusted;By initial heart cycle plus it is preset most Small heart beat cycle obtains best heart beat cycle, and the current heart beat cycle of client to be adjusted is updated to best heartbeat week Phase.And then heart beat cycle can be dynamically adjusted according to the characteristic and practical operation situation of client, enable heartbeat detection resource It is enough to be concentrated to client most in need, improve resource utilization and choose precision with heart beat cycle, with reach resource consumption and Optimal balance between detection effect.
Detailed description of the invention
Fig. 1 is the applied environment figure of heart beat cycle method of adjustment in one embodiment;
Fig. 2 is the first pass schematic diagram of heart beat cycle method of adjustment in one embodiment;
Fig. 3 is flow diagram of the history in bit rate data acquisition step of groups of clients in one embodiment;
Fig. 4 is the second procedure schematic diagram of heart beat cycle method of adjustment in one embodiment;
Fig. 5 is the third flow diagram of heart beat cycle method of adjustment in one embodiment;
Fig. 6 is the multidimensional groups of clients schematic diagram of heart beat cycle method of adjustment in one embodiment;
Fig. 7 is that the multidimensional groups of clients reference period of heart beat cycle method of adjustment and history are shown in bit rate in one embodiment It is intended to;
Fig. 8 is matching of the client to be adjusted of heart beat cycle method of adjustment in one embodiment in multidimensional groups of clients Schematic diagram;
Fig. 9 is the structural schematic diagram that heart beat cycle adjusts device in one embodiment;
Figure 10 is the structural schematic diagram that heart beat cycle adjusts system in one embodiment.
Specific embodiment
The application in order to facilitate understanding is described more fully the application below with reference to relevant drawings.In attached drawing Give the preferred embodiment of the application.But the application can realize in many different forms, however it is not limited to this paper institute The embodiment of description.On the contrary, purpose of providing these embodiments is make it is more thorough and comprehensive to disclosure of this application.
Traditional heartbeat detection technology mainly include the following types: 1, preset fixation heart beat cycle: server and client side The heart beat cycle of upper preset fixation, then carries out heartbeat detection with fixed heart beat cycle.Or the meeting in preset heart beat cycle Consider the location information of client, but is still heartbeat detection to be carried out with fixed heart beat cycle, but use the first after setting Method can only carry out heartbeat detection with fixed heart beat cycle, cannot dynamically be adjusted according to the attribute and state of client;2, Preset multiple and different heart beat cycle is then selecting one as optimal heart beat cycle: preset on server or client Several heart beat cycles therefrom select an optimal heart beat cycle according to operation result after attempting operation with these heart beat cycles, Heartbeat detection is then carried out with the optimal heart beat cycle, but is supplied using second method by the way that several heart beat cycles have been provided previously Selection, precision is inadequate, and resource consumption is big;3, heart beat cycle: this method is adjusted according to cpu load and network link congestion situation Heart beat cycle is mainly dynamically adjusted by the judgement of cpu load and network link congestion situation, but uses the third method In view of cpu load and network resource usage situation, detects validity and accuracy is low.
And in the heart beat cycle method of adjustment of various embodiments of the present invention, it can be according to the characteristic and actual motion feelings of client Condition dynamically adjusts heart beat cycle, so that heartbeat detection resource is concentrated to client most in need, improves resource utilization With heartbeat detection validity, to reach the optimal balance between resource consumption and detection effect.
Heart beat cycle method of adjustment provided by the present application, can be applied in application environment as shown in Figure 1, wherein clothes Business device 102 is separately connected each client 104.Wherein, server 102 can be utilized for signal processing and signal transmission etc., client End 104 can be to server transport heart beat status message.Wherein, server 102 can use independent server either multiple clothes The server cluster of business device composition is realized.
In one embodiment, as shown in Fig. 2, providing a kind of heart beat cycle method of adjustment, it is applied to Fig. 1 in this way In server 102 for be illustrated, comprising the following steps:
Step S210, obtain client to be adjusted under each dimension relative client group it is data cached;It is data cached Including baseline heart cycle data and history in bit rate data;Each dimension includes one or more groups of clients.
Wherein, baseline heart cycle data refers to the benchmark of client to be adjusted affiliated groups of clients under respective dimensions Period.Baseline heart cycle data can be preset according to historical experience.History is client to be adjusted bit rate data value End under respective dimensions affiliated groups of clients in bit rate data.History can be 1 (i.e. in the initial value of bit rate data 100%) Dynamic Maintenance more new historical rate data in place, can be carried out according to the actual motion situation in place of client later.Client Group refers to corresponding to grouping of the client to be adjusted under respective dimensions.The corresponding baseline heart periodicity of one groups of clients According to a history in bit rate data.It may include one under same dimension it should be noted that may include one or more dimensions A or multiple client group, a groups of clients can correspond to one or more clients.Client to be adjusted is under different dimensions With corresponding groups of clients.The groups of clients of client to be adjusted can be grouped according to the characteristic of client.For example, according to Client is grouped in the characteristic of the dimension or the similitude of classification.
Specifically, according to client to be adjusted, corresponding groups of clients, server can obtain to be adjusted under each dimension Client the data cached of relative client group under each dimension (includes baseline heart cycle data and history in bit rate number According to).
Step S220, respectively to the baseline heart cycle data and history of relative client group under each dimension in bit rate number According to multiplication, the corresponding product of each dimension is obtained;The corresponding each product of each dimension that adds up, obtains the initial heart of client to be adjusted Hop cycle.
Wherein, initial heart cycle refers to calculating the intermediate result data that best heart beat cycle process obtains.
Specifically, respectively to client to be adjusted under each dimension the baseline heart cycle data of relative client group and History is multiplied in bit rate data, obtains the corresponding product of each dimension.Each product corresponding to each dimension adds up, Jin Erke Obtain the initial heart cycle of client to be adjusted.
Step S230 obtains best heart beat cycle by initial heart cycle plus preset minimum heart beat cycle, and will be to The current heart beat cycle of adjustment client is updated to best heart beat cycle.
Wherein, minimum heart beat cycle refers to preset heart beat cycle constant.Heart beat cycle refers to visitor to be adjusted Heart beat status message is transmitted to the period of server in family end.Best heart beat cycle refers to client transmissions heart beat status to be adjusted Optimal period of the message to server.
Specifically, intermediate heart beat cycle is added preset minimum heart beat cycle by server, and then obtains client to be adjusted The best heart beat cycle at end.The current heart beat cycle of client to be adjusted is updated to best heart beat cycle, and then realizes and treats The heart beat cycle of adjustment client is optimized and revised.
In a specific embodiment, initial heart cycle is obtained into the best heart plus preset minimum heart beat cycle In the step of hop cycle:
Based on following formula, the best heart beat cycle of client to be adjusted is obtained:
T is best heart beat cycle, and N is total dimension in multidimensional groups of clients heart cycle data library, TiFor client to be adjusted Hold the baseline heart cycle data of the corresponding groups of clients in i-th dimension, KiFor client to be adjusted in i-th dimension corresponding visitor The history of family end group is in bit rate data;A is preset minimum heart beat cycle.
In a specific embodiment, as shown in figure 3, further comprising the steps of:
Step S310 obtains the history of each client in groups of clients in bit rate data.
Wherein, the history of client can be 1.0 (i.e. 100%) in the initial value of bit rate data.
It specifically, can be according to the reality of client by the history of each client in acquisition groups of clients in bit rate data Situation in place is run, carrys out Dynamic Maintenance and updates the history of groups of clients in bit rate data.
Step S320 carries out average value processing in bit rate data to the history of each client, obtains corresponding groups of clients History is in bit rate data.
Specifically, the history of each client is added in bit rate data accumulation, the history obtained under the groups of clients is in place The summation of rate data, the summation by history in bit rate data is removed in client terminal quantity, and then obtains corresponding to going through for the groups of clients History is in bit rate data.The history for updating groups of clients under respective dimensions by Dynamic Maintenance makes it possible to basis in bit rate data Client practical operation situation dynamically adjusts heart beat cycle, enables heartbeat detection resource to there is a client collection most in need In, improve resource utilization and heartbeat detection validity.
In above-described embodiment, obtain client to be adjusted under each dimension relative client group it is data cached;Caching Data include baseline heart cycle data and history in bit rate data;Each dimension includes one or more groups of clients;Respectively It is multiplied with history in bit rate data to the baseline heart cycle data of relative client group under each dimension, it is corresponding to obtain each dimension Product;The corresponding each product of each dimension that adds up, obtains the initial heart cycle of client to be adjusted;By initial heart cycle In addition preset minimum heart beat cycle, obtains best heart beat cycle, and the current heart beat cycle of client to be adjusted is updated to Best heart beat cycle.And then heart beat cycle can be dynamically adjusted according to the characteristic and practical operation situation of client, make heartbeat Detecting resource can concentrate to client most in need, improve resource utilization and choose precision with heart beat cycle, to reach Optimal balance between resource consumption and detection effect.
In one embodiment, as shown in figure 4, providing a kind of heart beat cycle method of adjustment, it is applied to Fig. 1 in this way In server 102 for be illustrated, comprising the following steps:
Step S410, obtain client to be adjusted under each dimension relative client group it is data cached;It is data cached Including baseline heart cycle data and history in bit rate data;Each dimension includes one or more groups of clients.
Wherein, the particular content process of above-mentioned steps S410 can refer to content above, and details are not described herein again.
Step S420, respectively to the baseline heart cycle data and history of relative client group under each dimension in bit rate number According to multiplication, the corresponding product of each dimension is obtained;The corresponding each product of each dimension that adds up, obtains the initial heart of client to be adjusted Hop cycle.
Wherein, the particular content process of above-mentioned steps S420 can refer to content above, and details are not described herein again.
Step S430 obtains best heart beat cycle by initial heart cycle plus preset minimum heart beat cycle.
Wherein, the particular content process of above-mentioned steps S430 can refer to content above, and details are not described herein again.
Step S440, when variance values are greater than preset threshold amplitude value, by the current heartbeat of client to be adjusted Period is updated to best heart beat cycle;Variance values are the amplitude of variation of the relatively current heart beat cycle of best heart beat cycle Value.
Specifically, server can calculate best heart beat cycle after getting the best heart beat cycle of client to be adjusted The amplitude of variation of relatively current heart beat cycle, and then obtain corresponding to the variance values of best heart beat cycle.Server is becoming When changing range value greater than preset threshold amplitude value, the current heart beat cycle of client to be adjusted is updated to best heartbeat week Phase avoids excessively frequently adjusting heart beat cycle, improves heart beat cycle and chooses efficiency, with reach resource consumption and detection effect it Between optimal balance.
Further, a threshold amplitude value is set, when amplitude of variation of the best heart beat cycle than current heart beat cycle When value is greater than the threshold amplitude value, the current heart beat cycle of client to be adjusted is updated to best heart beat cycle, is otherwise kept The current heart beat cycle of client to be adjusted is constant.For example, the threshold amplitude value can be set as 20%, it is assumed that client to be adjusted Holding current heart beat cycle is 5s (second), if being 5.5s, change of the 5.5s relative to 5s by the best heart beat cycle being calculated Change amplitude is (5.5-5)/5=10%, is less than threshold amplitude value (20%), then the heart beat cycle of client to be adjusted remains unchanged (it is still 5s), does not adjust.If the best heart beat cycle being calculated is 7s, 7s is (7-5)/5 relative to the amplitude of variation of 5s =40%, it is greater than threshold amplitude value (20%), then the current heart beat cycle of client to be adjusted is updated to best heart beat cycle (7s)。
Based on the present embodiment, according to the baseline heart cycle data of different dimensions different clients group and history in bit rate number According to the best heart beat cycle for calculating client to be adjusted is combined, makes full use of similar client to have the characteristics that similitude, be Client provides more accurate heart beat cycle.
In one embodiment, as shown in figure 5, providing a kind of heart beat cycle method of adjustment, it is applied to Fig. 1 in this way In server 102 for be illustrated, comprising the following steps:
Step S510, inquiry multidimensional are grouped heart cycle data library, obtain corresponding to client to be adjusted under each dimension Corresponding groups of clients;Multidimensional grouping heart cycle data library is used to store the data cached of each groups of clients under each dimension;Dimension Degree includes any of the following or any combination: device type, deployment region and monitoring rank.
Wherein, multidimensional grouping groups of clients heart cycle data library refer to according to different dimensions and client features into The heart cycle data library of row client packets.The corresponding baseline heart of groups of clients is stored in heart cycle data library respectively Cycle data and history are in bit rate data.
Specifically, server can be grouped heart cycle data library by inquiring preset multidimensional, obtain corresponding to visitor to be adjusted Family end corresponding groups of clients under each dimension, and then the baseline heart cycle data and history of relative client group can be obtained In bit rate data.
Further, each dimension can establish certain amount of group.For example, device type dimension: A type client It is one group for one group, Type B client;Deployment region dimension: groups of clients can be carried out according to geographical location, such as is placed on certain The client in building is a groups of clients, and the client for being deployed in an other building is a groups of clients;Monitor rank dimension Degree: high, normal, basic three monitoring rank can be divided into according to monitoring rank needs.
Step S520, obtain client to be adjusted under each dimension relative client group it is data cached;It is data cached Including baseline heart cycle data and history in bit rate data;Each dimension includes one or more groups of clients.
Wherein, the particular content process of above-mentioned steps S520 can refer to content above, and details are not described herein again.
Step S530, respectively to the baseline heart cycle data and history of relative client group under each dimension in bit rate number According to multiplication, the corresponding product of each dimension is obtained;The corresponding each product of each dimension that adds up, obtains the initial heart of client to be adjusted Hop cycle.
Wherein, the particular content process of above-mentioned steps S530 can refer to content above, and details are not described herein again.
Step S540 obtains best heart beat cycle by initial heart cycle plus preset minimum heart beat cycle, and will be to The adjustment client current phychology period is updated to best heart beat cycle
Wherein, the particular content process of above-mentioned steps S540 can refer to content above, and details are not described herein again.
Based on the present embodiment, according to the baseline heart cycle data of different dimensions different clients group and history in bit rate number According to come combine calculate client heart beat cycle, make full use of similar client to have the characteristics that similitude, provided for client More accurate heart beat cycle setting, and heart beat cycle can be dynamically adjusted according to client practical operation situation, make the heart Jumping detection resource can concentrate to client most in need, improve resource utilization and heartbeat detection validity.
In one embodiment, as shown in fig. 6, being the multidimensional groups of clients schematic diagram of heart beat cycle method of adjustment.It is each A dimension can establish certain amount of group.If dimension 1 includes 5 groups of clients (G11, G12, G13, G14 and G15);Dimension Degree 2 includes 3 groups of clients (G31, G32 comprising 6 groups of clients (G21, G22, G23, G24, G25 and G26) and dimension 3 And G33).
Specifically, heart beat cycle base value can be established respectively from dimensions such as device type, deployment region, monitoring ranks According to each dimension can establish certain amount of group, and the different baseline heart periods can be set in different groups.Different visitors The history of family end group can be set to 100% in the initial value of bit rate, later according to the actual motion of client situation in place, to move State safeguards more new historical rate data in place.
By taking device type, deployment region and monitoring three dimensions of rank as an example, as shown in fig. 7, device type is the 1st dimension, Deployment region is the 2nd dimension, and monitoring rank is the 3rd dimension.1st dimension device type is divided into 5 groups (G11, G12, G13, G14, G15), and the 2nd Dimension deployment region is divided into 6 groups (G21, G22, G23, G24, G25, G26), and the 3rd dimension monitoring rank is divided into 3 groups (G31, G32, G33). Wherein, the value of reference period can be configured according to the actual situation, and history can be set to 100% in the initial value of bit rate, it Afterwards according to the actual motion of client situation in place, carry out Dynamic Maintenance more new historical rate data in place.
According to the characteristic of client, the groups of clients to match is distributed for it in different dimensions, and store in the database. Such as client to be adjusted, in device type dimension, it belongs to G11 groups of clients;In deployment region dimension, it belongs to G23 client End group;Belong to G33 groups of clients in monitoring rank dimension, then its corresponding groups of clients is G11, G23 and G33 respectively, such as Shown in Fig. 8.Reference period corresponding with relative client group and history are respectively T in bit rateG11、TG23、TG33、KG11、KG23With KG33.That is the client T to be adjusted1=TG11, T2=TG23, T3=TG33, K1=KG11, K2=KG23And K3=KG33.It then should be wait adjust The best heart beat cycle of whole client are as follows:
Assuming that A=0.5s, the history at certain moment is K in bit rateG11=0.55, KG23=0.95, KG33=0.9, then at this time should The best heart beat cycle of client to be adjusted are as follows:
T=2*0.55+1.0*0.85+1.0*0.9+0.5=3.35s.
Round up after retaining decimal point 1 (i.e. the precision of 0.1s), obtains 3.4s.
Assuming that the current heart beat cycle of client to be adjusted be 3s, then best heart beat cycle 3.4s relative to variation width Degree is (3.4-3)/3=13.3%, is less than threshold amplitude (20%), then this heart beat cycle, which remains unchanged, (is still 5s), does not have to Adjustment.
After a period of time, the history at certain moment is K in bit rateG11=0.85, KG23=0.98, KG33=0.9, then this When the client best heart beat cycle be
T=TG11×KG11+TG23×KG23+TG33×KG33+A
=2*0.95+1.0*0.98+1.0*0.9+0.5=4.28s.
Round up after retaining decimal point 1 (i.e. the precision of 0.1s), obtains 4.3s.Best heart beat cycle 4.3s relative to The amplitude of variation of current heart beat cycle is (4.3-3)/3=43%, is greater than threshold amplitude (20%), then by the client to be adjusted End heart beat cycle is adjusted to 4.3s.
Based on the present embodiment, according to the baseline heart cycle data of different dimensions different clients group and history in bit rate number According to come combine calculate client heart beat cycle, make full use of similar client to have the characteristics that similitude, provided for client More accurate heart beat cycle setting, and heart beat cycle can be dynamically adjusted according to client practical operation situation, make the heart Jumping detection resource can concentrate to client most in need, improve resource utilization and heartbeat detection validity.
It should be understood that although each step in the flow chart of Fig. 2 to Fig. 5 is successively shown according to the instruction of arrow, But these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these There is no stringent sequences to limit for the execution of step, these steps can execute in other order.Moreover, Fig. 2 is into Fig. 5 At least part step may include that perhaps these sub-steps of multiple stages or stage are not necessarily same to multiple sub-steps One moment executed completion, but can execute at different times, and the execution in these sub-steps or stage sequence is also not necessarily Be successively carry out, but can at least part of the sub-step or stage of other steps or other steps in turn or Alternately execute.
In one embodiment, as shown in figure 9, providing a kind of heart beat cycle adjustment device, which includes:
Data capture unit 910, for obtaining the caching number of client to be adjusted relative client group under each dimension According to;Data cached includes baseline heart cycle data and history in bit rate data;Each dimension includes one or more clients Group.
Heart beat cycle processing unit 920, for the baseline heart periodicity respectively to relative client group under each dimension It is multiplied according to history in bit rate data, obtains the corresponding product of each dimension;The corresponding each product of each dimension that adds up, obtains wait adjust The initial heart cycle of whole client.
Heart beat cycle updating unit 930, for plus preset minimum heart beat cycle, obtaining best initial heart cycle Heart beat cycle, and the current heart beat cycle of client to be adjusted is updated to best heart beat cycle.
Specific about heart beat cycle adjustment device limits the limit that may refer to above for heart beat cycle method of adjustment Fixed, details are not described herein.Modules in above-mentioned heart beat cycle adjustment device can fully or partially through software, hardware and its Combination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with It is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution corresponding Operation.
In one embodiment, as shown in Figure 10, a kind of heart beat cycle adjustment system, server 110 and company are provided Each client 120 of server 110 is connect, server 110 is used to execute the step of the heart beat cycle method of adjustment of above-mentioned any one It is rapid:
Obtain client to be adjusted under each dimension relative client group it is data cached;Data cached includes the benchmark heart Hop cycle data and history are in bit rate data;Each dimension includes one or more groups of clients;
It is multiplied, obtains in bit rate data with history to the baseline heart cycle data of relative client group under each dimension respectively To the corresponding product of each dimension;The corresponding each product of each dimension that adds up, obtains the initial heart cycle of client to be adjusted;
By initial heart cycle plus preset minimum heart beat cycle, best heart beat cycle is obtained, and by client to be adjusted Current heart beat cycle is held to be updated to best heart beat cycle.
Further, server 110 is also used to perform the steps of
When variance values are greater than preset threshold amplitude value, the current heart beat cycle of client to be adjusted is updated to Best heart beat cycle;Variance values are the value of the amplitude of variation of the relatively current heart beat cycle of best heart beat cycle.
Further, server 210 is also used to perform the steps of
It inquires multidimensional and is grouped heart cycle data library, obtain corresponding to client to be adjusted corresponding client under each dimension End group;Multidimensional grouping heart cycle data library is used to store the data cached of each groups of clients under each dimension;
Dimension includes any of the following or any combination: device type, deployment region and monitoring rank.
Further, server 210 is also used to perform the steps of
The history of each client in groups of clients is obtained in bit rate data;
Average value processing is carried out in bit rate data to the history of each client, obtains the history of corresponding groups of clients in bit rate Data.
In a specific embodiment, each client is separately connected server by communication interface;Communication interface is SPI (Serial Peripheral Interface, Serial Peripheral Interface (SPI)) interface, I2C (Inter-Integrated Circuit, A kind of serial communication bus) interface, UART (Universal Asynchronous Receiver/Transmitter, it is general different Walk receiving-transmitting transmitter) interface, CANBUS (Controller Area Net-work Bus) interface or Ethernet interface.
Specifically, server and client side is connected by a kind of communication link, the interaction for heart beat status message.Service Communication link between device and client can be TCP/IP network communication link, be also possible to SPI, I2C, UART, CANBUS Etc. other communication links.Multidimensional groups of clients heart cycle data library is established according to the different characteristics of client on the server (baseline heart cycle data and history comprising different dimensions different clients group are in bit rate data).Server is based on client Affiliated groups of clients obtains corresponding baseline heart cycle data and is gone through from the multidimensional groups of clients heart cycle data library History obtains best heart beat cycle in bit rate data after calculation processing, realizes that dynamic adjusts the client corresponding heartbeat week Phase.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor
Obtain client to be adjusted under each dimension relative client group it is data cached;Data cached includes the benchmark heart Hop cycle data and history are in bit rate data;Each dimension includes one or more groups of clients;
It is multiplied, obtains in bit rate data with history to the baseline heart cycle data of relative client group under each dimension respectively To the corresponding product of each dimension;The corresponding each product of each dimension that adds up, obtains the initial heart cycle of client to be adjusted;
By initial heart cycle plus preset minimum heart beat cycle, best heart beat cycle is obtained, and by client to be adjusted Current heart beat cycle is held to be updated to best heart beat cycle.
Further, it is performed the steps of when computer program is executed by processor
When variance values are greater than preset threshold amplitude value, the current heart beat cycle of client to be adjusted is updated to Best heart beat cycle;Variance values are the value of the amplitude of variation of the relatively current heart beat cycle of best heart beat cycle.
Further, it is performed the steps of when computer program is executed by processor
It inquires multidimensional and is grouped heart cycle data library, obtain corresponding to client to be adjusted corresponding client under each dimension End group;Multidimensional grouping heart cycle data library is used to store the data cached of each groups of clients under each dimension;
Dimension includes any of the following or any combination: device type, deployment region and monitoring rank.
Further, it is performed the steps of when computer program is executed by processor
The history of each client in groups of clients is obtained in bit rate data;
Average value processing is carried out in bit rate data to the history of each client, obtains the history of corresponding groups of clients in bit rate Data.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the stream of the embodiment of above-mentioned each division operation method Journey.Wherein, to any of memory, storage, database or other media used in each embodiment provided herein Reference, may each comprise non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), can Programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory It may include random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is with a variety of shapes Shi Ke get, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (9)

1. a kind of heart beat cycle method of adjustment, which comprises the following steps:
Obtain client to be adjusted under each dimension relative client group it is data cached;It is described data cached including the benchmark heart Hop cycle data and history are in bit rate data;Each dimension includes one or more groups of clients;
Respectively to the baseline heart cycle data and the history of relative client group under each dimension in bit rate number According to multiplication, the corresponding product of each dimension is obtained;The corresponding each product of each dimension that adds up, obtains the client to be adjusted Initial heart cycle;
By the initial heart cycle plus preset minimum heart beat cycle, best heart beat cycle is obtained, and will be described to be adjusted The current heart beat cycle of client is updated to the best heart beat cycle.
2. heart beat cycle method of adjustment according to claim 1, which is characterized in that by the initial heart cycle plus pre- If minimum heart beat cycle, in the step of obtaining best heart beat cycle:
Based on following formula, best heart beat cycle is obtained:
T is the best heart beat cycle, and N is total dimension in the multidimensional groups of clients heart cycle data library, TiTo be described wait adjust Whole client corresponds to the baseline heart cycle data of groups of clients, K in i-th dimensioniIt is the client to be adjusted i-th The history of groups of clients is corresponded in dimension in bit rate data;A is the preset minimum heart beat cycle.
3. heart beat cycle method of adjustment according to claim 1, which is characterized in that the client to be adjusted is current Heart beat cycle is updated to the step of best heart beat cycle and includes:
When variance values are greater than preset threshold amplitude value, the current heart beat cycle of the client to be adjusted is updated to The best heart beat cycle;The variance values are the variation of the relatively described current heart beat cycle of the best heart beat cycle The value of amplitude.
4. heart beat cycle method of adjustment according to claim 1, which is characterized in that obtain client to be adjusted in each dimension Include: before spending the data cached step of lower relative client group
It inquires multidimensional and is grouped heart cycle data library, obtain corresponding to the client to be adjusted under each dimension accordingly The groups of clients;Multidimensional grouping heart cycle data library is used to store the caching number of each groups of clients under each dimension According to;
The dimension includes any of the following or any combination: device type, deployment region and monitoring rank.
5. heart beat cycle method of adjustment according to any one of claims 1 to 4, which is characterized in that further comprise the steps of:
The history of each client in the groups of clients is obtained in bit rate data;
Average value processing is carried out in bit rate data to the history of each client, the history for obtaining corresponding to the groups of clients exists Bit rate data.
6. a kind of heart beat cycle adjusts device characterized by comprising
Data capture unit, for obtain client to be adjusted under each dimension relative client group it is data cached;It is described Data cached includes baseline heart cycle data and history in bit rate data;Each dimension includes one or more clients Group;
Heart beat cycle processing unit, for the baseline heart periodicity respectively to relative client group under each dimension It is multiplied according to the history in bit rate data, obtains the corresponding product of each dimension;The corresponding each product of each dimension that adds up, Obtain the initial heart cycle of the client to be adjusted;
Heart beat cycle updating unit, for the initial heart cycle plus preset minimum heart beat cycle, to be obtained the best heart Hop cycle, and the current heart beat cycle of the client to be adjusted is updated to the best heart beat cycle.
7. a kind of heart beat cycle adjusts system, which is characterized in that each client including server and the connection server;
The server requires the step of heart beat cycle method of adjustment of 1 to 5 any one for perform claim.
8. heart beat cycle according to claim 7 adjusts system, which is characterized in that each client passes through communication interface It is separately connected the server;
The communication interface is SPI interface, I2C interface, UART interface, CANBUS interface or Ethernet interface.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt The step of controller realizes heart beat cycle method of adjustment described in any one of claims 1 to 5 when executing.
CN201811039291.XA 2018-09-06 2018-09-06 Heartbeat period adjusting method, device and system Active CN109298934B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811039291.XA CN109298934B (en) 2018-09-06 2018-09-06 Heartbeat period adjusting method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811039291.XA CN109298934B (en) 2018-09-06 2018-09-06 Heartbeat period adjusting method, device and system

Publications (2)

Publication Number Publication Date
CN109298934A true CN109298934A (en) 2019-02-01
CN109298934B CN109298934B (en) 2021-01-15

Family

ID=65166162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811039291.XA Active CN109298934B (en) 2018-09-06 2018-09-06 Heartbeat period adjusting method, device and system

Country Status (1)

Country Link
CN (1) CN109298934B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338389A (en) * 2021-12-28 2022-04-12 中国联合网络通信集团有限公司 Heartbeat packet sending method and device, electronic equipment and storage medium
CN117336213A (en) * 2023-12-01 2024-01-02 四川才子软件信息网络有限公司 Subsystem monitoring method, system and equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070294600A1 (en) * 2006-05-08 2007-12-20 Inventec Corporation Method of detecting heartbeats and device thereof
CN102843250A (en) * 2011-06-21 2012-12-26 中兴通讯股份有限公司 Adaptive method and adaptive device of heartbeat cycle
CN103209089A (en) * 2012-01-17 2013-07-17 华为技术有限公司 Method for obtaining heart beat period, terminal and server
CN104918267A (en) * 2014-03-12 2015-09-16 国家电网公司 Heartbeat detection method of wireless sensor network and apparatus thereof
CN105577507A (en) * 2014-11-10 2016-05-11 ***通信集团广东有限公司 Heartbeat packet transmission interval adjustment method, device and server
CN106506277A (en) * 2016-11-17 2017-03-15 广东美的暖通设备有限公司 Communication means, communicator and home appliance
CN107426003A (en) * 2017-05-02 2017-12-01 华为技术有限公司 A kind of fault detection method and device
US10027779B1 (en) * 2009-07-20 2018-07-17 Conviva Inc. Monitoring the performance of a content player

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070294600A1 (en) * 2006-05-08 2007-12-20 Inventec Corporation Method of detecting heartbeats and device thereof
US10027779B1 (en) * 2009-07-20 2018-07-17 Conviva Inc. Monitoring the performance of a content player
CN102843250A (en) * 2011-06-21 2012-12-26 中兴通讯股份有限公司 Adaptive method and adaptive device of heartbeat cycle
CN103209089A (en) * 2012-01-17 2013-07-17 华为技术有限公司 Method for obtaining heart beat period, terminal and server
CN104918267A (en) * 2014-03-12 2015-09-16 国家电网公司 Heartbeat detection method of wireless sensor network and apparatus thereof
CN105577507A (en) * 2014-11-10 2016-05-11 ***通信集团广东有限公司 Heartbeat packet transmission interval adjustment method, device and server
CN106506277A (en) * 2016-11-17 2017-03-15 广东美的暖通设备有限公司 Communication means, communicator and home appliance
CN107426003A (en) * 2017-05-02 2017-12-01 华为技术有限公司 A kind of fault detection method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338389A (en) * 2021-12-28 2022-04-12 中国联合网络通信集团有限公司 Heartbeat packet sending method and device, electronic equipment and storage medium
CN114338389B (en) * 2021-12-28 2023-05-30 中国联合网络通信集团有限公司 Heartbeat packet sending method and device, electronic equipment and storage medium
CN117336213A (en) * 2023-12-01 2024-01-02 四川才子软件信息网络有限公司 Subsystem monitoring method, system and equipment
CN117336213B (en) * 2023-12-01 2024-02-27 四川才子软件信息网络有限公司 Subsystem monitoring method, system and equipment

Also Published As

Publication number Publication date
CN109298934B (en) 2021-01-15

Similar Documents

Publication Publication Date Title
US20220046083A1 (en) Performing load balancing self adjustment within an application environment
CN109254842B (en) Resource management method and device for distributed stream system and readable storage medium
TWI547817B (en) Method, system and apparatus of planning resources for cluster computing architecture
CN110474852B (en) Bandwidth scheduling method and device
EP2864946A1 (en) Method and apparatus for contextual linear bandits
CN110929878B (en) Distributed random gradient descent method
CN111866187B (en) Task scheduling method for distributed deep learning reasoning cloud platform
JP2007317068A (en) Recommending device and recommending system
CN111142942A (en) Window data processing method and device, server and storage medium
CN109298934A (en) Heart beat cycle method of adjustment, apparatus and system
CN110311863B (en) Routing path determination method and device
CN111143036A (en) Virtual machine resource scheduling method based on reinforcement learning
CN103699433A (en) Method and system for performing dynamic adjustment on number of tasks in Hadoop platform
CN110503194A (en) A kind of method and system of distributed parallel training
CN109445386A (en) A kind of most short production time dispatching method of the cloud manufacturing operation based on ONBA
CN116909735A (en) Calculation power scheduling method and device, server and storage medium
Ji et al. Adaptive provisioning in-band network telemetry at computing power network
CN109885384A (en) Task concurrency optimization method, apparatus, computer equipment and storage medium
CN116235529A (en) Method for implementing an ad hoc network of a plurality of access network devices and electronic device for implementing the method
CN113763043A (en) Advertisement landing page display method and device, storage medium and computer equipment
CN117687791A (en) Internet of things acquisition platform computing resource scheduling method based on reinforcement learning
CN112720455A (en) Optimal joint acceleration and deceleration calculation method and device and application thereof
CN109871958B (en) Method, device and equipment for training model
CN111488208A (en) Edge cloud cooperative computing node scheduling optimization method based on variable step length bat algorithm
CN111415261A (en) Control method, system and device for dynamically updating flow control threshold of bank system

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200108

Address after: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Applicant after: Jingxin Communication System (China) Co., Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant before: Jingxin Communication System (China) Co., Ltd.

Applicant before: Jingxin Communication System (Guangzhou) Co., Ltd.

Applicant before: Jingxin Communication Technology (Guangzhou) Co., Ltd.

Applicant before: TIANJIN COMBA TELECOM SYSTEMS CO., LTD.

GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Patentee after: Jingxin Network System Co.,Ltd.

Address before: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Patentee before: Comba Telecom System (China) Ltd.