CN109889602A - Collection of resources frequency adjusting method, device, system and storage medium - Google Patents

Collection of resources frequency adjusting method, device, system and storage medium Download PDF

Info

Publication number
CN109889602A
CN109889602A CN201910192369.XA CN201910192369A CN109889602A CN 109889602 A CN109889602 A CN 109889602A CN 201910192369 A CN201910192369 A CN 201910192369A CN 109889602 A CN109889602 A CN 109889602A
Authority
CN
China
Prior art keywords
resource
user
frequency
collection
acquisition
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
CN201910192369.XA
Other languages
Chinese (zh)
Other versions
CN109889602B (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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN201910192369.XA priority Critical patent/CN109889602B/en
Publication of CN109889602A publication Critical patent/CN109889602A/en
Application granted granted Critical
Publication of CN109889602B publication Critical patent/CN109889602B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of collection of resources frequency adjusting methods, according to the behavior state acquisition of information user of user to the operating habit data of the resource in cloud;Behavior state information includes the resource class that the resource information that is operating of user, user possess and resource quantity, operating habit data include operating frequency of the user to every resource;According to the frequency acquisition of operating habit data point reuse items resource;Wherein, the frequency acquisition of every resource is positively correlated with corresponding operating frequency.The invention also discloses a kind of collection of resources frequency adjusting device, system and storage mediums.The present invention reduces the performance pressures of HCP while having ensured low hardware cost and control real-time.

Description

Collection of resources frequency adjusting method, device, system and storage medium
Technical field
The present invention relates to computer field more particularly to a kind of collection of resources frequency adjusting method, device, system and storages Medium.
Background technique
HCP (hybrid-cloud platform mixes cloud management platform) is one based on cloudy model, to all kinds of public affairs There are cloud and private clound uniformly to be received pipe, provides the cloud Guan Pingtai of unified access interface for user.HCP receives all kinds of resources of pipe, needs It to acquire resource data in real time to show the newest state of resource and essential information to user, realize the monitoring to resource.In order to The real-time demand for meeting monitoring resource, the period for acquiring resource data must be short enough, and the too short period can bring to HCP Biggish performance pressures.
To solve the problems, such as above-mentioned performance pressures, the method generally used at present is as follows: 1, constantly being extended according to user demand Hardware;2, the frequency and total access times of limitation interface access.However 1 higher cost of method is used, it can then be reduced using method 2 The real-time that resource data is presented.The performance pressures for how alleviating HCP under the premise of low hardware cost control real-time is high are asked Topic becomes a technical problem for needing to solve at present.
Summary of the invention
The main purpose of the present invention is to provide a kind of collection of resources frequency adjusting methods, it is intended to how solve in low hardware The technical issues of alleviating the performance pressures of HCP under the premise of cost monitoring real-time is high.
To achieve the above object, the present invention provides a kind of collection of resources frequency adjusting method, the collection of resources frequency tune Adjusting method method is the following steps are included: according to the behavior state acquisition of information user of user to the operating habit number of the resource in cloud According to;Behavior state information includes that the resource class that the resource information that is operating of user, user possess and resource quantity, operation are practised Used data include operating frequency of the user to every resource;According to the frequency acquisition of operating habit data point reuse items resource;Its In, the frequency acquisition of every resource is positively correlated with corresponding operating frequency.
Optionally, the behavior state acquisition of information user according to user is to the operating habit data of the resource in cloud Step includes: user's request that parsing receives, and obtains behavior state information;Learning behavior status information obtains operating habit Data.
Optionally, after described the step of parsing the user's request received, obtaining behavior state information further include: will go Cache unit is stored in for status information;Behavior state information taken out from cache unit with preset sending cycle described to learn Behavior state information.
Optionally, the behavior state information further includes the time interval that user finally initiates request;It is described according to operation Be accustomed to data point reuse items resource frequency acquisition the step of before further include: by user finally initiate request time interval with Preset time threshold is compared, and obtains the current liveness of user;Wherein, between the time that user finally initiates request It is divided into user and finally initiates time interval between the time point and current point in time of request, liveness finally initiates to ask with user The time interval asked is negatively correlated;The step of frequency acquisition according to operating habit data point reuse items resource includes: basis Operating habit data and liveness adjust the frequency acquisition of every resource;Wherein, frequency acquisition and liveness are positively correlated.
Optionally, the operating habit data further include the active habit data of user, and being actively accustomed to data is user's Correlation data between whether liveness and user are offline;It is described that every resource is adjusted according to operating habit data and liveness Frequency acquisition the step of include: according to liveness and actively habit data judge user currently whether offline;When user is offline When, the frequency acquisition of every resource is adjusted to zero, returns to the behavior state acquisition of information user according to user to cloud Resource operating habit data the step of;When user is not offline, according to the operating frequency of user's operation items resource and work Jerk adjusts the frequency acquisition of every resource.
Optionally, before the step of frequency acquisition according to operating habit data point reuse items resource further include: obtain Take the load capacity of the machine;The step of frequency acquisition according to operating habit data point reuse items resource includes: according to operation It is accustomed to data and load capacity adjusts the frequency acquisition of every resource;Frequency acquisition and load capacity are negatively correlated.
Optionally, the step of load capacity for obtaining the machine further include: obtain the configuration parameter of the machine;It is described according to behaviour Make habit data and the step of load capacity adjusts the frequency acquisition of every resource include: according to operating habit data, load capacity and Configuration parameter adjusts the frequency acquisition of every resource.
Optionally, before the step of frequency acquisition according to operating habit data point reuse items resource further include: connect Receive the monitoring data being monitored to the collection process of resource data;It is described according to operating habit data point reuse items resource Frequency acquisition the step of include: the frequency acquisition that every resource is adjusted according to operating habit data and monitoring data.
Optionally, the monitoring data include the cloud account state of user, the delay parameter and money for acquiring resource data At least one of collection result of source data;The acquisition that every resource is adjusted according to operating habit data and monitoring data The step of frequency includes: the acquisition according to the cloud account state, the delay parameter and resource data of acquisition resource data of user As a result at least one of and operating habit data, the frequency acquisition of every resource is adjusted.
In addition, to achieve the above object, the present invention also provides a kind of collection of resources frequency adjusting device, the collections of resources Frequency adjusting device includes: acquisition module, for the behaviour according to the behavior state acquisition of information user of user to the resource in cloud Make habit data;Behavior state information includes the resource class and number of resources that the resource information that is operating of user, user possess Amount, operating habit data include operating frequency of the user to every resource;Frequency acquisition adjusts module, for according to operating habit The frequency acquisition of data point reuse items resource;Wherein, the frequency acquisition of every resource is positively correlated with corresponding operating frequency.
In addition, to achieve the above object, the present invention also provides a kind of collection of resources frequency adjusting system, the collections of resources Frequency adjusting system includes: memory, processor and stores the collection of resources that can be run on a memory and on a processor frequently Rate adjustment programme realizes such as above-mentioned collection of resources frequency adjusting method when collection of resources frequency adjustment programme is executed by processor The step of.
In addition, to achieve the above object, the present invention also provides a kind of storage medium, being stored with resource on the storage medium Frequency acquisition adjustment programme realizes such as above-mentioned collection of resources frequency tune when collection of resources frequency adjustment programme is executed by processor The step of adjusting method.
A kind of collection of resources frequency adjusting method, device and the storage medium that the embodiment of the present invention proposes, by user Request is analyzed, and obtains the behavioral data and status information of user, and practise according to behavioral data and status information study user It is used, the operating frequency of user's operation items resource is obtained, and then items are adjusted according to the operating frequency of user's operation items resource The frequency acquisition of resource.Wherein, frequency acquisition and operating frequency are positively correlated, so that the higher resource pair of user's operation frequency The frequency acquisition answered can correspondingly increase, and the corresponding frequency acquisition of the lower resource of user's operation frequency can be reduced accordingly, The real time monitoring demand to resource is met, development hardware, and the acquisition by reducing the lower resource of operating frequency are not necessarily to Frequency alleviates performance pressures, realizes the performance pressures for alleviating HCP under the premise of low hardware cost control real-time is high.
Detailed description of the invention
Fig. 1 is the HCP structural schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of collection of resources frequency adjusting method first embodiment of the present invention;
Fig. 3 is the refinement flow diagram for the step S200 that collection of resources frequency adjusts in Fig. 2;
Fig. 4 is the flow diagram of collection of resources frequency adjusting method second embodiment of the present invention;
Fig. 5 is the refinement flow diagram for the step S210 that collection of resources frequency adjusts in Fig. 4;
Fig. 6 is the flow diagram of collection of resources frequency adjusting method 3rd embodiment of the present invention;
Fig. 7 is the flow diagram of collection of resources frequency adjusting method fourth embodiment of the present invention;
Fig. 8 is the structural block diagram of collection of resources frequency adjusting device of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are: according to the behavior state acquisition of information user of user to the money in cloud The operating habit data in source;Behavior state information include the resource class that the resource information that is operating of user, user possess and Resource quantity, operating habit data include operating frequency of the user to every resource;It is provided according to operating habit data point reuse items The frequency acquisition in source;Wherein, the frequency acquisition of every resource is positively correlated with corresponding operating frequency.
The present invention provides a solution, by analyzing user's request, obtains the behavioral data and shape of user State information, and according to behavioral data and status information study user's habit, the operating frequency of user's operation items resource is obtained, into And the frequency acquisition of every resource is adjusted according to the operating frequency of user's operation items resource.Wherein, frequency acquisition and operation frequency Rate is positively correlated, so that the corresponding frequency acquisition of the higher resource of user's operation frequency can correspondingly increase, and user's operation The corresponding frequency acquisition of the lower resource of frequency can be reduced accordingly, meet the real time monitoring demand to resource, without expanding Open up hardware, and by reduction the lower resource of operating frequency frequency acquisition alleviate performance pressures, realize low hardware at Alleviate the performance pressures of HCP under the premise of this control real-time is high.
HCP of the invention can be realized with the server cluster of the either multiple server compositions of independent server. HCP is uniformly received pipe to all kinds of public clouds and private clound, provides unified access interface for user.User possesses unique cloud account Number, for logging in public cloud by HCP, user may have access to after logging in and using the resource in public cloud.HCP can receive simultaneously Manage multiple users.
As shown in Figure 1, Fig. 1 is the structural schematic diagram of the HCP for the hardware running environment that the embodiment of the present invention is related to.
As shown in Figure 1, the HCP includes: processor 1001, such as CPU, network interface 1004, user interface 1003, storage Device 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing the connection communication between these components.User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), and optional user interface 1003 can be with Including standard wireline interface and wireless interface.Network interface 1004 optionally may include standard wireline interface and wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile ), such as magnetic disk storage memory.Memory 1005 optionally can also be the storage dress independently of aforementioned processor 1001 It sets.
Optionally, HCP can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor, audio-frequency electric Road, WiFi module etc..Wherein, sensor such as optical sensor, motion sensor and other sensors.Specifically, described Optical sensor includes ambient light sensor and proximity sensor, and the ambient light sensor can be adjusted according to the light and shade of ambient light The brightness of display screen is saved, the proximity sensor can close display screen and/or adjustment backlight when HCP is close to object.The fortune Dynamic sensor includes gravity accelerometer, and as a kind of motion sensor, gravity accelerometer can detect at HCP When motion state in all directions (generally three axis) acceleration magnitude, it may also be used for identification HCP posture application (such as Horizontal/vertical screen switching, the induction control of dependent game, magnetometer pose calibrating), Vibration identification correlation function (for example pedometer, strikes Hit) etc.;Certainly, HCP can also configure the other sensors such as gyroscope, barometer, hygrometer, infrared sensor, herein no longer It repeats.
It will be understood by those skilled in the art that HCP structure shown in Fig. 1 does not constitute the restriction to HCP, may include Than illustrating more or fewer components, the different arrangements of certain components or component are perhaps combined.
As shown in Figure 1, in further embodiments, the memory 1005 as a kind of storage medium includes depositing for electrical connection The content of storage unit, network communication module and Subscriber Interface Module SIM, storage unit storage includes but is not limited to have resource to adopt Collect frequency adjustment programme and operating system.The operating system is for managing collection of resources frequency adjustment programme, network communication module And Subscriber Interface Module SIM.
In HCP shown in Fig. 1, user interface 1003 is mainly used for connecting client (user terminal), carries out with client Data communication;And processor 1001 can be used for calling the collection of resources frequency adjustment programme stored in memory 1005, and hold The following operation of row:
According to the behavior state acquisition of information user of user to the operating habit data of the resource in cloud;Behavior state information The resource class and resource quantity, operating habit data that the resource information that is operating including user, user possess include user To the operating frequency of every resource;
According to the frequency acquisition of operating habit data point reuse items resource;Wherein, the frequency acquisition of every resource with it is corresponding Operating frequency be positively correlated.
Further, according to the behavior state acquisition of information user of user to the step of the operating habit data of the resource in cloud Suddenly include: user's request that parsing receives, obtain behavior state information;Learning behavior status information obtains operating habit number According to.
Further, after the step of parsing the user's request received, obtaining behavior state information further include: by behavior Status information is stored in cache unit;Behavior state information is taken out from cache unit to learn the row with preset sending cycle For status information.
Further, behavior state information further includes the time interval that user finally initiates request;According to operating habit number Before the step of the frequency acquisition for adjusting every resource further include: user is finally initiated the time interval of request with it is preset Time threshold is compared, and obtains the current liveness of user;Wherein, user initiates the time interval of request finally to use The time interval between the time point and current point in time of request is finally initiated at family, liveness and user finally initiate request when Between be spaced it is negatively correlated;It include: according to operating habit number according to the step of frequency acquisition of operating habit data point reuse items resource According to the frequency acquisition for adjusting every resource with liveness;Wherein, frequency acquisition and liveness are positively correlated.
Further, operating habit data further include the active habit data of user, are actively accustomed to the work that data are user Correlation data between whether jerk and user are offline;The acquisition of every resource is adjusted according to operating habit data and liveness The step of frequency include: according to liveness and actively habit data judge user currently whether offline;It when a user is offline, will be each The frequency acquisition of resource is adjusted to zero, returns to the operation according to the behavior state acquisition of information user of user to the resource in cloud The step of being accustomed to data;When user is not offline, adjusted according to the operating frequency of user's operation items resource and liveness every The frequency acquisition of resource.
Further, according to before the step of the frequency acquisition of operating habit data point reuse items resource further include: obtain The load capacity of the machine;It include: according to operating habit number according to the step of frequency acquisition of operating habit data point reuse items resource According to the frequency acquisition for adjusting every resource with load capacity;Frequency acquisition and load capacity are negatively correlated.
Further, the step of obtaining the load capacity of the machine further include: obtain the configuration parameter of the machine;According to operating habit The step of frequency acquisition of data and the every resource of load capacity adjustment includes: according to operating habit data, load capacity and configuration ginseng Number adjusts the frequency acquisition of every resource.
Further, according to before the step of the frequency acquisition of operating habit data point reuse items resource further include: receive The monitoring data that the collection process of resource data is monitored;According to the acquisition of operating habit data point reuse items resource The step of frequency includes: the frequency acquisition that every resource is adjusted according to operating habit data and monitoring data.
Further, monitoring data include the cloud account state of user, the delay parameter and resource for acquiring resource data At least one of collection result of data adjusts the frequency acquisition of every resource according to operating habit data and monitoring data Step includes: according in the cloud account state of user, the delay parameter of acquisition resource data and the collection result of resource data At least one and operating habit data, adjust the frequency acquisition of every resource.
Referring to Fig. 2, a kind of collection of resources frequency adjusting method first embodiment, comprising the following steps:
Step S200, according to the behavior state acquisition of information user of user to the operating habit data of the resource in cloud;Row It include the resource class and resource quantity that the resource information that is operating of user, user possess, operating habit number for status information According to the operating frequency including user to every resource;
After user logs in cloud by HCP, the resource in cloud can be used.It, can be to resource after user obtains resource Carry out relevant operation.Wherein, cloud is public cloud.Public cloud includes one or more cloud environments.One cloud environment can possess One or more resources.The unit that HCP manages publicly-owned cloud resource is cloud environment.User can obtain in one or more cloud environments One or more resources.Every resource includes but is not limited to the CPU money in cloud needed for user initiates request time-histories sort run Source, memory source, hard disk resources, file resource and Internet resources.User may be different to the operating frequency of every resource.If with Family is from when initiating not operating a certain resource in request to current time always, then user is to the operating frequency of this resource Zero.The behavior state of user is the operation behavior and state that user accesses public cloud process.Wherein, operation behavior includes user couple The operation of the resource of acquisition, state include the resource that user possesses.The behavior state information of user then includes that user is operating Resource information, the resource class that possesses of user and resource quantity etc..Resource information includes the ID of resource (Identification, identity) information.In the present embodiment, ID different resources is a resource class.HCP can be with The classification of resource is identified by detecting the ID of resource.
Operating habit data are used to embody the operating habit of user's operation resource, such as the operating frequency of operating resource.With It family may be different to the operating habit of different resources.In order to monitored in Support Resource real-time while reduce HCP property The HCP of energy pressure, the application is acquired by the way that the resource being accustomed to different operation is corresponding using different frequency acquisitions, with reality Existing finer monitoring controls, when being uniformly acquired using identical frequency acquisition all kinds of resources to reduce caused by need not The performance pressures wanted.In the present embodiment, the operating habit data of user include operating frequency of the user to every resource.
Specifically, HCP obtains the behavior state information of user, according to the behavior state acquisition of information user of user to cloud Resource operating habit data, HCP is by the available user of behavior state information of analysis user to the resource in cloud Operating habit data.Specifically, HCP obtains the behavior state information of user with the preset acquisition period, and according to getting Behavior state information analysis obtains user to the operating habit data of the resource in cloud.
Referring to Fig. 3, step S200 includes: in one of the embodiments,
Step S300 parses the user's request received, obtains behavior state information;
Step S310, learning behavior status information obtain operating habit data.
HCP receives user's request.Wherein, user's request is the request of a certain resource of user's request, and HCP parses the use Family request, the behavior state information of available user.Further, HCP learns user's habit according to behavior status information, Obtain the operating habit data of user.
In order to reduce the triggering times of step S310, the orderly execution of each step is ensured, it is necessary to behavior state information It is cached.
In one of the embodiments, after step S300 further include: behavior state information is stored in cache unit;With pre- If sending cycle by behavior state information from cache unit take out to learn the behavior state information.
Sending cycle and acquisition period can be different periodic quantity.
Step S210, according to the frequency acquisition of operating habit data point reuse items resource;Wherein, the acquisition frequency of every resource Rate is positively correlated with corresponding operating frequency.
In the present embodiment, operating habit data include the operating frequency of user's operation items resource.HCP is with certain rule Adjust the frequency acquisition of every resource.The frequency acquisition of every resource is positively correlated with corresponding operating frequency, i.e. HCP will be mentioned accordingly The frequency acquisition of the high resource of high operating frequency, and accordingly reduce the frequency acquisition of the low resource of operating frequency.
HCP will be acquired every resource with frequency acquisition adjusted, and the resource data of acquisition is presented to use The monitoring to resource is realized at family.
In the present embodiment, by analyzing user's request, the behavioral data and status information of user, and root are obtained According to behavioral data and status information study user's habit, the operating frequency of user's operation items resource is obtained, and then according to user The operating frequency for operating every resource adjusts the frequency acquisition of every resource.Wherein, frequency acquisition and operating frequency are positively correlated, from And the corresponding frequency acquisition of the higher resource of user's operation frequency is correspondinglyd increase, and the lower money of user's operation frequency The corresponding frequency acquisition in source can be reduced accordingly, meet the real time monitoring demand to resource, be not necessarily to development hardware, and pass through The frequency acquisition for reducing the lower resource of operating frequency alleviates performance pressures, realizes high in low hardware cost control real-time Under the premise of alleviate HCP performance pressures.
Referring to Fig. 4, a kind of collection of resources frequency adjusting method second embodiment is based on above-mentioned embodiment shown in Fig. 2, institute Stating behavior state information further includes the time interval that user finally initiates request;Before step S210 further include:
Step S400, the time interval that user is finally initiated to request are compared with preset time threshold, obtain Obtain the current liveness of user;Wherein, it is the time point that user finally initiates request that user, which finally initiates the time interval of request, The time interval that time interval between current point in time, liveness and user finally initiate request is negatively correlated;
Step S210 includes: the frequency acquisition that every resource is adjusted according to operating habit data and liveness;Wherein, it acquires Frequency and liveness are positively correlated.
Wherein, it is under current time that user, which finally initiates the time interval of request, and user finally initiates the time point of request Time interval between current point in time.Liveness is used to describe the active degree that active user initiates request.Liveness with The time interval that user finally initiates request is negatively correlated.I.e. user finally initiate request the more big then user of time interval it is current Liveness is lower, correspondingly, user finally initiate request the smaller then user of time interval it is current liveness it is higher.This implementation In example, preset time threshold includes multiple threshold intervals.The time interval that HCP can finally initiate request according to user is fallen into Threshold interval, it is corresponding to obtain the current liveness of user.As shown in table 1, when the time interval that user finally initiates request is fallen Enter [t0, t1) in section when, then liveness is A1, when the time interval that user finally initiates request falls into [t1, t2) in section When, then liveness is A2, when the time interval that user finally initiates request is fallen into the section [t (n-1), tn], then liveness For An.
Table 1
Further, HCP adjusts the frequency acquisition of every resource according to operating habit data and liveness.That is the application In, HCP is according to the corresponding acquisition for adjusting every resource of the current liveness of the operating frequency of user's operation items resource and user Frequency.Wherein, frequency acquisition and liveness are positively correlated.In the present embodiment, HCP is according to the current liveness of user to every resource Frequency acquisition carry out integrated regulation, and respectively corresponded according to the operating frequency of user's operation items resource and adjust every resource Frequency acquisition.
Operating habit data further include the active habit data of user in one of the embodiments, are actively accustomed to data For the activity of the user and user it is whether offline between correlation data.Specifically, HCP study user finally initiates request Time interval obtains the active habit data of user.Since HCP is the behavior state letter for obtaining user with the preset acquisition period The behavior state information that breath, i.e. user obtain user is a lasting process, and the behavior state information of the user of acquisition is more Group, the every behavior state information for obtaining one group of user of HCP then store behavior status information.I.e. HCP is persistently obtained User finally initiate request time interval be also it is multiple, HCP finally initiates the time interval of request by learning multiple users, Obtain the active habit data of user.Wherein, actively habit data for describe the activity of the user and user it is whether offline it Between correlation.HCP can judge user under current liveness by active habit data, and whether user is offline.
Referring to Fig. 5, in the present embodiment, step S210 includes:
Step S500 according to liveness and is actively accustomed to data and judges whether user is currently offline;
The frequency acquisition of every resource is adjusted to zero, return step S200 when a user is offline by step S510;
When HCP judges that user is offline, then the frequency acquisition of every resource is adjusted to zero, every resource is adopted in stopping Collection, and return and continue to execute step S200.
Step S520 is adjusted each when user is not offline according to the operating frequency of user's operation items resource and liveness The frequency acquisition of item resource.
In the present embodiment, it is compared by the way that user finally to be initiated to the time interval of request with preset time threshold Analysis obtains the current liveness of user, and further operating habit data and liveness adjust the frequency acquisition of every resource, Frequency acquisition is correspondinglyd increase when user activity is high, frequency acquisition is accordingly reduced when user activity is low, is realized more smart The acquisition and monitoring of thin resource data, further alleviate the performance pressures of HCP.
Referring to Fig. 6, a kind of collection of resources frequency adjusting method 3rd embodiment is based on above-mentioned embodiment shown in Fig. 2, step Before rapid S210 further include:
Step S600 obtains the load capacity of the machine;
Step S210 includes: the frequency acquisition that every resource is adjusted according to operating habit data and load capacity;Frequency acquisition With load capacity negative correlation.
The machine is HCP, and the load capacity of the machine is CPU (Central Processing Unit, the central processing of HCP Device) occupancy.Load capacity is higher, then it represents that the performance pressures of HCP are bigger.
In the present embodiment, HCP adjusts items according to operating habit data and load capacity by obtaining the load capacity of the machine The frequency acquisition of resource.Specifically, HCP carries out integrated regulation to the frequency acquisition of every resource according to load capacity, and according to The corresponding frequency acquisition for adjusting every resource of the operating habit data at family.Wherein, frequency acquisition and load capacity are negatively correlated, i.e., with Under the premise of the operating habit data at family are certain, load capacity is higher, then the frequency acquisition accordingly adjusted will be lower, and load capacity is got over Low, then the frequency acquisition accordingly adjusted will be higher.
Step S600 further includes the configuration parameter for obtaining the machine in one of the embodiments,;Step S210 further include: root The frequency acquisition of every resource is adjusted according to operating habit data, load capacity and configuration parameter.
Wherein, configuration of the configuration parameter for describing HCP is excellent.The the configuration of HCP the excellent, can bear bigger operation pressure Power.In the present embodiment, the frequency acquisition of every resource is carried out by integrated regulation according to load capacity and configuration parameter, and according to user The corresponding frequency acquisition for adjusting every resource of operating habit data.Under the premise of load capacity and certain operating habit data, The configuration of the HCP of configuration parameter description is more excellent, and the frequency acquisition accordingly adjusted is then higher.In the present embodiment, configuration parameter can be with For the synthesis numerical value of the multinomial configuration of HCP, can be calculated by certain rule according to the numerical value of the multinomial configuration of HCP.
In the present embodiment, by obtaining the load capacity and configuration parameter of the machine, according to operating habit data, load capacity and Configuration parameter adjusts the frequency acquisition of every resource, so that can correspondingly increase resource when the excellent or load capacity of HCP configuration is low Frequency acquisition accordingly reduces the frequency acquisition of resource when HCP configures difference or load capacity is high, realizes finer resource data Acquisition and monitoring, further alleviate the performance pressures of HCP.
Referring to Fig. 7, a kind of collection of resources frequency adjusting method fourth embodiment is based on above-mentioned embodiment shown in Fig. 2, institute Before stating step S210 further include:
Step S700 receives the monitoring data being monitored to the collection process of resource data;
HCP can carry out the acquisition of resource data after adjusting frequency acquisition according to the frequency acquisition.Due in number of resources According in collection process, it is possible to will appear the situation of resource data acquisition exception, it is therefore necessary to this process be monitored from And being normally carried out or stopping monitoring resource for the Support Resource monitoring that takes appropriate measures is operated to protect HCP.
The collection process of HCP monitoring resource data obtains monitoring data.Monitoring data packet in one of the embodiments, Include at least one of cloud account state, the delay parameter for acquiring resource data and the collection result of resource data of user. The cloud account of user in available mode just can by HCP log in cloud carry out resource request, user cloud account not When available, user can not log in cloud and operate, it is therefore necessary to when user's cloud account is unavailable, stop HCP to resource Policer operation.When the delay of acquisition resource data is higher, then it represents that resource data acquisition is abnormal, it is therefore necessary to obtain acquisition The delay parameter of resource data accordingly adjusts the frequency acquisition of every resource.Failure is possible to the acquisition of resource data, such as It is completely the same to acquire the unsuccessful or adjacent resource data acquired twice, it is therefore necessary to for the acquisition knot of resource data Fruit makes corresponding measure.
In the present embodiment, step S210 includes: the acquisition that every resource is adjusted according to operating habit data and monitoring data Frequency.
In the present embodiment, HCP according to operating habit data adjust separately every resource frequency acquisition and according to monitoring number According to the adjustment that the frequency acquisition of every resource is carried out to entirety.Specifically, cloud account state, acquisition resource of the HCP according to user At least one of the delay parameter of data and the collection result of resource data, the acquisition frequency of the every resource of whole adjustment Rate, and the frequency acquisition for adjusting every resource is respectively corresponded according to operating habit data.
When monitoring data are the cloud account state of user, HCP detects the cloud account state of user, judges the cloud account of user Whether number state can be used, and when the cloud account state for detecting user is unavailable, HCP stops to the corresponding user institute of the cloud account The acquisition and monitoring of the resource needed.
When monitoring data are to acquire the delay parameter of resource data, the delay parameter of HCP detection acquisition resource will be acquired The delay parameter of resource data is compared with delay threshold value, when the delay parameter is greater than delay threshold value, then corresponding reduction pair The frequency acquisition for the resource answered.
When monitoring data are the collection result of resource data, HCP detects the collection result of resource data, judges number of resources According to whether success is acquired, if acquisition failure, is adjusted to zero for the frequency acquisition of the resource, and resource data acquisition failure is analyzed The reason of, the reason of acquisition failure, is notified to user.Wherein, the case where resource data acquisition fails includes that HCP is not collected Any resource data and the adjacent resource data acquired twice of HCP are completely the same.
In the present embodiment, by receiving the monitoring data being monitored to the collection process of resource data, according to Operating habit data and monitoring data adjust the frequency acquisition of every resource, can monitoring data to the collection process of resource into Row analysis, thus the frequency acquisition of corresponding adjustresources, or the abnormal conditions of collection of resources are notified to user so that user Taking appropriate measures makes collection of resources monitoring process restore normal, realizes the acquisition and monitoring of finer resource data, The performance pressures of HCP are further alleviated, while the normal of Support Resource monitoring is capable of by detection collection of resources failure automatically It carries out, improves reliability.
Referring to Fig. 8, the embodiment of the present invention also proposes a kind of collection of resources frequency adjusting device, the collection of resources frequency tune Engagement positions include:
Module 810 is obtained, for the operating habit according to the behavior state acquisition of information user of user to the resource in cloud Data;Behavior state information includes the resource class and resource quantity that the resource information that is operating of user, user possess, operation Being accustomed to data includes operating frequency of the user to every resource;
Frequency acquisition adjusts module 820, for the frequency acquisition according to operating habit data point reuse items resource;Wherein, The frequency acquisition of every resource is positively correlated with corresponding operating frequency.
Further, the collection of resources frequency adjusting device further include: study module, for parsing the user received Request obtains behavior state information;Learning behavior status information obtains operating habit data.
Further, the collection of resources frequency adjusting device further include: cache module, for behavior state information to be deposited Enter cache unit;Behavior state information is taken out from cache unit to learn the behavior state and believe with preset sending cycle Breath.
In the present embodiment, by analyzing user's request, the behavioral data and status information of user, and root are obtained According to behavioral data and status information study user's habit, the operating frequency of user's operation items resource is obtained, and then according to user The operating frequency for operating every resource adjusts the frequency acquisition of every resource.Wherein, frequency acquisition and operating frequency are positively correlated, from And the corresponding frequency acquisition of the higher resource of user's operation frequency is correspondinglyd increase, and the lower money of user's operation frequency The corresponding frequency acquisition in source can be reduced accordingly, meet the real time monitoring demand to resource, be not necessarily to development hardware, and pass through The frequency acquisition for reducing the lower resource of operating frequency alleviates performance pressures, realizes high in low hardware cost control real-time Under the premise of alleviate HCP performance pressures.
Further, behavior state information further includes the time interval that user finally initiates request, obtains module 810 and also uses It is compared in the time interval that user is finally initiated to request with preset time threshold, acquisition user is current to be enlivened Degree;Wherein, it is that user finally initiated between the time point and current point in time of request that user, which finally initiates the time interval of request, Time interval, the time interval that liveness and user finally initiate request is negatively correlated;Frequency acquisition adjustment module 820 is also used to The frequency acquisition of every resource is adjusted according to operating habit data and liveness;Wherein, frequency acquisition and liveness are positively correlated.
Further, operating habit data further include the active habit data of user, are actively accustomed to the work that data are user Correlation data between whether jerk and user are offline;Frequency acquisition adjustment module 820 is also used to according to liveness and enlivens Habit data judge whether user is currently offline;When a user is offline, the frequency acquisition of every resource is adjusted to zero, returns to root The step of according to the behavior state acquisition of information user of user to the operating habit data of the resource in cloud;When user is not offline, The frequency acquisition of every resource is adjusted according to the operating frequency of user's operation items resource and liveness.
In the present embodiment, it is compared by the way that user finally to be initiated to the time interval of request with preset time threshold Analysis obtains the current liveness of user, and further operating habit data and liveness adjust the frequency acquisition of every resource, Frequency acquisition is correspondinglyd increase when user activity is high, frequency acquisition is accordingly reduced when user activity is low, is realized more smart The acquisition and monitoring of thin resource data, further alleviate the performance pressures of HCP.
Further, the load capacity that module 810 is also used to obtain the machine is obtained;Frequency acquisition adjustment module 820 is also used to The frequency acquisition of every resource is adjusted according to operating habit data and load capacity;Frequency acquisition and load capacity are negatively correlated.
Further, the configuration parameter that module 810 is also used to obtain the machine is obtained;Frequency acquisition adjustment module 820 is also used In the frequency acquisition for adjusting every resource according to operating habit data, load capacity and configuration parameter.
In the present embodiment, by obtaining the load capacity and configuration parameter of the machine, according to operating habit data, load capacity and Configuration parameter adjusts the frequency acquisition of every resource, so that can correspondingly increase resource when the excellent or load capacity of HCP configuration is low Frequency acquisition accordingly reduces the frequency acquisition of resource when HCP configures difference or load capacity is high, realizes finer resource data Acquisition and monitoring, further alleviate the performance pressures of HCP.
Further, frequency acquisition adjustment module 820, which is also used to receive, is monitored the collection process of resource data The monitoring data arrived;It include: according to operating habit number according to the step of frequency acquisition of operating habit data point reuse items resource According to the frequency acquisition for adjusting every resource with monitoring data.
Further, monitoring data include the cloud account state of user, the delay parameter and resource for acquiring resource data At least one of collection result of data;Frequency acquisition adjustment module 820 is also used to the cloud account state according to user, acquisition At least one of collection result of the delay parameter of resource data and resource data and operating habit data, adjustment are every The frequency acquisition of resource.
In the present embodiment, by receiving the monitoring data being monitored to the collection process of resource data, according to Operating habit data and monitoring data adjust the frequency acquisition of every resource, can monitoring data to the collection process of resource into Row analysis, thus the frequency acquisition of corresponding adjustresources, or the abnormal conditions of collection of resources are notified to user so that user Taking appropriate measures makes collection of resources monitoring process restore normal, realizes the acquisition and monitoring of finer resource data, The performance pressures of HCP are further alleviated, while the normal of Support Resource monitoring is capable of by detection collection of resources failure automatically It carries out, improves reliability.
The embodiment of the present invention also proposes a kind of collection of resources frequency adjusting system, the collection of resources frequency adjusting system packet Include: memory, processor and storage on a memory and the collection of resources frequency adjustment programme that can run on a processor, resource It realizes when frequency acquisition adjustment programme is executed by processor such as any one above-mentioned collection of resources frequency adjusting method embodiment Step.
The embodiment of the present invention also proposes a kind of storage medium, and collection of resources frequency adjustment journey is stored on the storage medium Sequence realizes such as any one above-mentioned collection of resources frequency adjustment side when the collection of resources frequency adjustment programme is executed by processor The step of method embodiment.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a HCP (can be by a server Or realized as server cluster) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (12)

1. a kind of collection of resources frequency adjusting method, which is characterized in that the collection of resources frequency adjusting method includes following step It is rapid:
According to user described in the behavior state acquisition of information of user to the operating habit data of the resource in cloud;The behavior state Information includes the resource class and resource quantity that the resource information that is operating of user, user possess, the operating habit data Including user to the operating frequency of every resource;
According to the frequency acquisition of the operating habit data point reuse items resource;Wherein, the frequency acquisition of every resource with The corresponding operating frequency is positively correlated.
2. collection of resources frequency adjusting method as described in claim 1, which is characterized in that the behavior state according to user User described in acquisition of information includes: to the step of operating habit data of the resource in cloud
The user's request received is parsed, the behavior state information is obtained;
Learn the behavior state information, obtains the operating habit data.
3. collection of resources frequency adjusting method as claimed in claim 2, which is characterized in that the user that the parsing receives asks After the step of asking, obtaining the behavior state information further include:
The behavior state information is stored in cache unit;
The behavior state information is taken out from the cache unit to learn the behavior state and believe with preset sending cycle Breath.
4. collection of resources frequency adjusting method as described in any one of claims 1 to 3, which is characterized in that the behavior state Information further includes the time interval that user finally initiates request;The adopting according to the operating habit data point reuse items resource Before the step of collecting frequency further include:
The time interval that the user is finally initiated to request is compared with preset time threshold, and it is current to obtain user Liveness;Wherein, it is that user finally initiates time point of request and current that the user, which finally initiates the time interval of request, The time interval that time interval between time point, the liveness and the user finally initiate request is negatively correlated;
The step of frequency acquisition according to the operating habit data point reuse items resource includes:
The frequency acquisition of every resource is adjusted according to the operating habit data and the liveness;Wherein, the frequency acquisition It is positively correlated with the liveness.
5. collection of resources frequency adjusting method as claimed in claim 4, which is characterized in that the operating habit data further include The active habit data of user, the actively habit data are between whether the activity of the user and the user are offline Correlation data;The step of frequency acquisition that every resource is adjusted according to the operating habit data and the liveness, wraps It includes:
Judge whether the user is currently offline according to the liveness and the actively habit data;
When a user is offline, the frequency acquisition of every resource is adjusted to zero, returns to the behavior state information according to user The step of obtaining operating habit data of the user to the resource in cloud;
When user is not offline, every resource is adjusted according to the operating frequency of the user's operation items resource and the liveness Frequency acquisition.
6. collection of resources frequency adjusting method as described in claim 1, which is characterized in that described according to the operating habit number Before the step of the frequency acquisition for adjusting every resource further include:
Obtain the load capacity of the machine;
The step of frequency acquisition according to the operating habit data point reuse items resource includes:
The frequency acquisition of every resource is adjusted according to the operating habit data and the load capacity;The frequency acquisition with it is described Load capacity is negatively correlated.
7. collection of resources frequency adjusting method as claimed in claim 6, which is characterized in that the load capacity for obtaining the machine Step further include:
Obtain the configuration parameter of the machine;
It is described to include: according to the step of frequency acquisition of the operating habit data and the every resource of load capacity adjustment
The frequency acquisition of every resource is adjusted according to the operating habit data, the load capacity and the configuration parameter.
8. collection of resources frequency adjusting method as described in claim 1, which is characterized in that described according to the operating habit number Before the step of the frequency acquisition for adjusting every resource further include:
Receive the monitoring data being monitored to the collection process of resource data;
The step of frequency acquisition according to the operating habit data point reuse items resource includes:
The frequency acquisition of every resource is adjusted according to the operating habit data and the monitoring data.
9. collection of resources frequency adjusting method as claimed in claim 8, which is characterized in that the monitoring data include user's At least one of cloud account state, the delay parameter for acquiring resource data and collection result of resource data, the basis The operating habit data and the monitoring data adjust the step of frequency acquisition of every resource and include:
According to the cloud account state of user, acquire in the delay parameter of resource data and the collection result of resource data at least One and the operating habit data adjust the frequency acquisition of every resource.
10. a kind of collection of resources frequency adjusting device, which is characterized in that the collection of resources frequency adjusting device includes:
Module is obtained, for user described in the behavior state acquisition of information according to user to the operating habit number of the resource in cloud According to;The behavior state information includes the resource class and resource quantity that the resource information that is operating of user, user possess, institute Stating operating habit data includes operating frequency of the user to every resource;
Frequency acquisition adjusts module, for the frequency acquisition according to the operating habit data point reuse items resource;Wherein, described The frequency acquisition of every resource is positively correlated with the corresponding operating frequency.
11. a kind of collection of resources frequency adjusting system, which is characterized in that the collection of resources frequency adjusting system includes: storage Device, processor and the collection of resources frequency adjustment programme that is stored on the memory and can run on the processor, institute It states when collection of resources frequency adjustment programme is executed by the processor and realizes resource as claimed in any one of claims 1-9 wherein The step of frequency acquisition method of adjustment.
12. a kind of storage medium, which is characterized in that collection of resources frequency adjustment programme is stored on the storage medium, it is described Collection of resources frequency adjustment programme realizes collection of resources frequency as claimed in any one of claims 1-9 wherein when being executed by processor The step of rate method of adjustment.
CN201910192369.XA 2019-03-13 2019-03-13 Resource acquisition frequency adjusting method, device, system and storage medium Active CN109889602B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910192369.XA CN109889602B (en) 2019-03-13 2019-03-13 Resource acquisition frequency adjusting method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910192369.XA CN109889602B (en) 2019-03-13 2019-03-13 Resource acquisition frequency adjusting method, device, system and storage medium

Publications (2)

Publication Number Publication Date
CN109889602A true CN109889602A (en) 2019-06-14
CN109889602B CN109889602B (en) 2021-11-19

Family

ID=66932242

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910192369.XA Active CN109889602B (en) 2019-03-13 2019-03-13 Resource acquisition frequency adjusting method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN109889602B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559177A (en) * 2020-12-15 2021-03-26 杭州和利时自动化有限公司 Industrial control system and load management method and equipment thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799512A (en) * 2012-07-04 2012-11-28 南京邮电大学 Virtual machine monitoring method in vector-autoregression-based cloud computing
CN104035608A (en) * 2013-03-08 2014-09-10 宏碁股份有限公司 Touch panel sampling frequency adjusting device and method
CN105472009A (en) * 2015-12-18 2016-04-06 国云科技股份有限公司 Self-adapting frequency monitoring method of cloud platform resource
CN106250305A (en) * 2016-08-17 2016-12-21 浪潮电子信息产业股份有限公司 The self-adaptation control method of monitoring system data collection cycle under cloud computing environment
CN106502868A (en) * 2016-11-18 2017-03-15 国云科技股份有限公司 A kind of dynamic adjustment monitoring frequency method suitable for cloud computing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799512A (en) * 2012-07-04 2012-11-28 南京邮电大学 Virtual machine monitoring method in vector-autoregression-based cloud computing
CN104035608A (en) * 2013-03-08 2014-09-10 宏碁股份有限公司 Touch panel sampling frequency adjusting device and method
CN105472009A (en) * 2015-12-18 2016-04-06 国云科技股份有限公司 Self-adapting frequency monitoring method of cloud platform resource
CN106250305A (en) * 2016-08-17 2016-12-21 浪潮电子信息产业股份有限公司 The self-adaptation control method of monitoring system data collection cycle under cloud computing environment
CN106502868A (en) * 2016-11-18 2017-03-15 国云科技股份有限公司 A kind of dynamic adjustment monitoring frequency method suitable for cloud computing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559177A (en) * 2020-12-15 2021-03-26 杭州和利时自动化有限公司 Industrial control system and load management method and equipment thereof
CN112559177B (en) * 2020-12-15 2024-01-26 杭州和利时自动化有限公司 Industrial control system and load management method and equipment thereof

Also Published As

Publication number Publication date
CN109889602B (en) 2021-11-19

Similar Documents

Publication Publication Date Title
WO2019178123A1 (en) Methodologies to transform data analytics systems into cross-platform real-time decision-making systems that optimize for configurable goal metrics
EP3231199B1 (en) Notifications on mobile devices
US20240070548A1 (en) Systems and methods for preventing machine learning models from negatively affecting mobile devices through intermittent throttling
CN107577706B (en) User behavior data processing method, device and computer readable storage medium
CN109343801A (en) Date storage method, equipment and computer readable storage medium
CN110399583A (en) Page display method, device, electronic equipment and storage medium
CN110808872A (en) Method and device for realizing flow experiment and electronic equipment
CN114595124B (en) Time sequence abnormity detection model evaluation method, related device and storage medium
CN113596798A (en) Resource sharing method and device
CN113569138A (en) Intelligent device control method and device, electronic device and storage medium
CN110309339A (en) Picture tag generation method and device, terminal and storage medium
CN112169310A (en) Game resource loading method and device, computer equipment and storage medium
CN109059178A (en) Control method, device, air conditioner and the computer readable storage medium of air conditioner
CN109889602A (en) Collection of resources frequency adjusting method, device, system and storage medium
CN115398861B (en) Abnormal file detection method and related product
CN109819019A (en) Monitoring and statistical analysis technique and system for the acquisition of large scale network data
CN114300082B (en) Information processing method and device and computer readable storage medium
CN114267440B (en) Medical order information processing method and device and computer readable storage medium
CN106210120B (en) A kind of recommended method and its device of server
CN115589432A (en) Message push management method, device, medium and equipment
CN113590604B (en) Service data processing method, device and server
CN115062197A (en) Attendance data detection method and device and storage medium
CN106230657A (en) A kind of data push method and supplying system thereof
CN112543195A (en) Information security assessment method and device for intelligent networked automobile and electronic equipment
CN117311909B (en) Resource processing method, device, equipment and storage medium of virtual scene

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
GR01 Patent grant
GR01 Patent grant