CN108228352A - Event filtering method and device - Google Patents

Event filtering method and device Download PDF

Info

Publication number
CN108228352A
CN108228352A CN201711476082.7A CN201711476082A CN108228352A CN 108228352 A CN108228352 A CN 108228352A CN 201711476082 A CN201711476082 A CN 201711476082A CN 108228352 A CN108228352 A CN 108228352A
Authority
CN
China
Prior art keywords
event
duration
effective time
background server
server
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
CN201711476082.7A
Other languages
Chinese (zh)
Other versions
CN108228352B (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.)
Beijing Vision World Technology Co Ltd
Original Assignee
Beijing Vision World Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Vision World Technology Co Ltd filed Critical Beijing Vision World Technology Co Ltd
Priority to CN201711476082.7A priority Critical patent/CN108228352B/en
Publication of CN108228352A publication Critical patent/CN108228352A/en
Application granted granted Critical
Publication of CN108228352B publication Critical patent/CN108228352B/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
    • 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/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • 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/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

An embodiment of the present invention provides a kind of event filtering method and device, the method includes:The present load of background server is determined according to prefixed time interval;According to the present load, the event effective time in strobe utility is adjusted;Event is extracted from event cache pool, when the corresponding management duration of the event of extraction exceeds the event effective time, the event is filtered out.The event filtering scheme provided through the embodiment of the present invention, not only ensured background server processing is validity event, but also guarantees to alleviate server load.

Description

Event filtering method and device
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of event filtering method and device.
Background technology
With development in science and technology, more and more intelligent equipments are come into people’s lives so that life is more and more intelligent Change, such as:Sweeper, small water droplet etc..Sweeper can clean the life of user or working region, and small water droplet then may be used The monitoring area that user specifies is monitored, these intelligent equipments largely reduce the input of manpower.
At present, this kind of video capture equipment of small water droplet monitors, and report monitor event specified monitoring area in real time To front-end server, after front-end server carries out preliminary treatment to the event that video capture equipment reports, by event buffer to thing In part cache pool, background server extracts event from event cache pool and is filtered, and will push event after filtration treatment To counterpart terminal equipment, user can check the scene in specified monitoring area by terminal device.
In the prior art, the fixed strobe utility of event effective time is used when server is filtered event processing, This kind is excessive or when server load is excessive in pending event by the way of fixed strobe utility filter event, can hold Continuous increase server load even results in server crash.
Invention content
In view of above-mentioned existing problem, it is proposed that the present invention overcomes the above problem or at least partly in order to provide one kind The event filtering method and device to solve the above problems.
According to an aspect of the invention, there is provided a kind of event filtering method, including:It is determined according to prefixed time interval The present load of background server;According to the present load, the event effective time in strobe utility is adjusted;From event buffer Event is extracted in pond, when the corresponding management duration of the event of extraction exceeds the event effective time, the event is filtered out.
Optionally, it is described to determine that the present load of background server includes according to prefixed time interval:Determine the backstage Event total amount, the CPU usage of the server and the server that server filters out in the prefixed time interval Memory usage;According to the memory usage of the event total amount, the CPU usage and the server, determine that backstage takes The present load of business device.
Optionally, it is described to determine that the present load of background server includes according to prefixed time interval:Determine the backstage clothes The event total amount that business device filters out in the prefixed time interval.
Optionally, described according to the present load, the event effective time adjusted in strobe utility includes:According to default Event total amount and effective time correspondence, determine corresponding first effective time of the event total amount;By described first Effective time is set as the event effective time in the strobe utility.
Optionally, before described the step of filtering out the event, the method further includes:When the event pair extracted When the management duration answered exceeds the event effective time, the user identifier carried in the event is determined;When the user marks When knowing for the first user identifier, judge whether the management duration is more than the first preset duration;Wherein, first preset duration More than the event effective time;If it is not, the event is then handled, and after the reporting of user processing that the user identifier indicates The event;If so, perform described the step of filtering out the event.
Optionally, before described the step of filtering out the event, the method further includes:When the event pair extracted When the management duration answered exceeds the event effective time, the user identifier carried in the event is determined;Determine the user Corresponding second preset duration is identified, wherein, second preset duration is pre-set by the user that the user identifier indicates; Judge whether the management duration is more than second preset duration;If it is not, then handle the event, and to the user identifier The reporting of user of instruction treated the event;If so, perform described the step of filtering out the event.
Optionally, it is a length of during the corresponding management of event:Caching duration of the event in the event buffer pond.
Optionally, it is a length of during the corresponding management of event:Using front-end server receive the event as start time, to institute It states event and the duration that end time is formed is extracted as from the event buffer pond.
Optionally, it is a length of during the corresponding management of event:Using the event generated time point as start time, the extremely event The duration that end time is formed is extracted as from the event buffer pond.
According to another aspect of the present invention, a kind of event filtering device is provided, including:Determining module, for according to Prefixed time interval determines the present load of background server;Module is adjusted, for according to the present load, adjusting filter Event effective time in system;Filtering module, for extracting event from event cache pool, when the corresponding management of the event of extraction When duration exceeds the event effective time, the event is filtered out.
Optionally, the determining module includes:Parameter determination submodule, for determining the background server described pre- If the CPU usage of the event total amount filtered out in time interval, the server and the memory usage of the server;Load Determination sub-module, for the memory usage according to the event total amount, the CPU usage and the server, after determining The present load of platform server.
Optionally, the determining module includes:Quantity determination sub-module, for determining the background server described pre- If the event total amount filtered out in time interval.
Optionally, the adjustment module includes:Duration determination sub-module, for according to preset event total amount with it is effective when Long correspondence determines corresponding first effective time of the event total amount;Duration sets submodule, for by described first Effective time is set as the event effective time in the strobe utility.
Optionally, described device further includes:First flag determining module, for when the corresponding management of the event extracted When length is beyond the event effective time, the user identifier carried in the event is determined;First judgment module, for when described When user identifier is the first user identifier, judge whether the management duration is more than the first preset duration;Wherein, described first is pre- If duration is more than the event effective time;First processing module, for if it is not, then handle the event, and to the user Identify reporting of user treated the event of instruction;If so, perform the operation for filtering out the event.
Optionally, described device further includes:Second identifier determining module, for when the corresponding management of the event extracted When length is beyond the event effective time, before the event is filtered out, the user identifier carried in the event is determined;In advance If duration determining module, for determining corresponding second preset duration of the user identifier, wherein, second preset duration by The user of the user identifier instruction pre-sets;Second judgment module, for judging it is described whether the management duration is more than Second preset duration;Second processing module, for if it is not, then handle the event, and to the user that the user identifier indicates The event that reports that treated;If so, perform the operation for filtering out the event.
Optionally, it is a length of during the corresponding management of event:Caching duration of the event in the event buffer pond.
Optionally, it is a length of during the corresponding management of event:Using front-end server receive the event as start time, to institute It states event and the duration that end time is formed is extracted as from the event buffer pond.
Optionally, it is a length of during the corresponding management of event:Using the event generated time point as start time, the extremely event The duration that end time is formed is extracted as from the event buffer pond.
In accordance with a further aspect of the present invention, a kind of computing device is provided, including:It memory, processor and is stored in On reservoir and the computer program that can run on a processor, wherein, the processor realizes such as this hair when performing described program Any one event filtering method described in bright embodiment.
According to another aspect of the invention, a kind of storage unit is provided, is stored thereon with computer program, the program quilt Processor performs any one event filtering method as described in the embodiment of the present invention.
Through the embodiment of the present invention, it is effective according to the event in the present load of background server dynamic adjustment strobe utility Duration, not only ensured background server processing is validity event, but also guarantees to alleviate server load.Such as work as background service When device present load is overweight, it can be shortened with the event effective time in strobe utility, so as to which the data for increasing the event of being filtered out subtract The quantity of event, the final load for mitigating background server are handled less.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific embodiment for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this field Technical staff will become clear.Attached drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is a kind of step flow diagram of according to embodiments of the present invention one event filtering method;
Fig. 2 is a kind of step flow diagram of according to embodiments of the present invention two event filtering method;
Fig. 3 is a kind of step flow diagram of according to embodiments of the present invention three event filtering method;
Fig. 4 is a kind of schematic block diagram of according to embodiments of the present invention four event filtering device;
Fig. 5 schematically show for perform event filtering method according to the present invention computing device structural frames Figure;And
Fig. 6 schematically shows to keep or carry the program generation for realizing event filtering method according to the present invention The computer-readable storage unit of code.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Embodiment one
With reference to Fig. 1, a kind of step flow diagram of event filtering method of the embodiment of the present invention one is shown.
The event filtering method of the embodiment of the present invention includes the following steps:
Step 101:The present load of background server is determined according to prefixed time interval.
Background server adjusts strobe utility, the adjustment to strobe utility according to prefixed time interval in the embodiment of the present invention Be mainly reflected in it includes event effective time adjustment.The adjustment of event effective time is included:Increase event is effective Duration shortens event effective time.
The present load of background server can be characterized by the event total amount that background server filters out in preset time, It can also be characterized by the CPU usage of background server, memory usage, background server can also be combined in preset time The event total amount that inside filters out, CPU usage, memory usage three determine the load of background server.
Step 102:According to present load, the event effective time in strobe utility is adjusted.
Each video capture equipment reported event is to front-end server, and front-end server is to the image that is carried in the event that reports It stores to image library, and generates the key with storage image opening relationships, treated with the image generation in key replacement events Event, by treated, event is added in event buffer pond.The event that each video equipment reports is handled through front-end processor It is added in event buffer pond afterwards.Back-end server then extracts event from event cache pool and is handled, will treated thing Part pushes to terminal device.
During specific implementation, front-end server can also tentatively filter the event that video capture equipment reports Processing.Specifically, front-end server is after event is received, and judges whether the time interval that event is generated to the event that receives is big In default filtering duration, if so, directly event is filtered out, wherein carrying event generated time in the event reported.
When present load according to background server adjusts the event effective time in strobe utility, if present load is more than Predetermined threshold value can then shorten event effective time;If conversely, present load be less than predetermined threshold value, can increase event it is effective when It is long.
Step 103:Event is extracted from event cache pool, when the corresponding management duration of the event of extraction is effective beyond event During duration, which is filtered out.
Background server from event cache pool extracts event and is handled one by one, judges event after each extraction event Whether corresponding management duration exceeds the event effective time included in strobe utility.When the corresponding management duration of event exceeds thing During part effective time, then the meaning without reprocessing can not have been ensured by illustrating the timeliness of the event, if still to the event into Row processing will increase the processing load of background server, moreover can occupy the money of background server due to handling the event Source, therefore the event of the not super event effective time of management duration in rear upload will be handled by lag, cause also in rear event Failure, the new events that so cycle will be unable to ensure to upload are handled in time.Therefore in the embodiment of the present invention, management duration is exceeded The event of event effective time directly filters out.
Event it is corresponding management duration can be:Caching duration of the event in event buffer pond or with front end services Device receive event be extracted as from event cache pool by start time, to event duration that end time forms or The duration that end time is formed is extracted as from event cache pool by start time, to event using event generated time point Deng.
Event filtering method provided in an embodiment of the present invention, the present load dynamic according to background server adjust filter Event effective time in system, not only ensured background server processing is validity event, but also guarantees alleviation server and bear It carries.Such as when background server present load is overweight, it can be shortened with the event effective time in strobe utility, be filtered so as to increase Except the data of event reduce the quantity of processing event, the final load for mitigating background server.
Embodiment two
With reference to Fig. 2, a kind of step flow diagram of event filtering method of the embodiment of the present invention two is shown.
The event filtering method of the embodiment of the present invention includes the following steps:
Step 201:Determine the event total amount that background server filters out within a preset time interval.
Prefixed time interval can be configured by those skilled in the art according to actual demand, right in the embodiment of the present invention This is not specifically limited.Such as:It is set as 5 minutes, 8 minutes or 10 minutes etc..
Using the event total amount filtered out in prefixed time interval as measurement background server load in the embodiment of the present invention Parameter.The the event total amount filtered out in prefixed time interval the big, illustrates that background server load is heavier;Conversely, between preset time It is smaller every the interior event total amount filtered out, illustrate that background server load is lighter.
A kind of mode of the present load of preferably background server is:Determine background server within a preset time interval Event total amount, the CPU usage of server and the memory usage of server filtered out;According to event total amount, CPU usage and The memory usage of server determines the present load of background server.
Step 202:According to the correspondence of preset event total amount and effective time, event total amount corresponding first is determined Effective time.
The correspondence for event total amount and the effective time of can prestoring in background server.Event total amount can with preset duration It may be exponential relationship to think linear relationship, and event total amount is inversely proportional with effective time.Such as:It is total that multiple events can be preset Section is measured, different effective times is corresponded to for each event total amount region.
Step 203:The event effective time first effective time being set as in strobe utility.
Step 204:Event is extracted from event cache pool, when the corresponding management duration of the event of extraction is effective beyond event During duration, the user identifier carried in event is determined.
User identifier can be carried by giving the correct time in each event, and the corresponding user identifier of different video capture apparatus is different, because The user identifier carried in this event reported is also different.It is true by the user identifier carried in event in the embodiment of the present invention Determine whether user is member user.
It should be noted that if when the time of extraction corresponding management duration is without departing from event effective time, then need not hold Row subsequent step 205 directly performs step 206.When user identifier is non-member's user identifier, it is determined that used to be common Family then directly filters out the event.
Step 205:When user identifier is the first user identifier (such as member user's mark), when judging the management of event It is long whether to be more than the first preset duration;If so, perform step 207;If it is not, then perform step 206.
There is member user's identification list in back-stage management, the user identifier carried in event is can determine by inquiring the list Whether it is member user's mark, so that it is determined that whether the corresponding user of video capture equipment for reporting the event is member user.
In the embodiment of the present invention for promoted member user usage experience, for member user set compared to ordinary user and Say that longer event retains duration, i.e. the first preset duration, and the event of ordinary user retains duration then in strobe utility Event effective time.First preset duration is more than the event effective time in strobe utility.
If the management duration of event is more than the first preset duration, it is determined that the management duration of the event has been had exceeded as meeting The event of member's user setting retains duration, then needs to filter out the event.It is pre- that if the management duration of event is less than or equal to first If duration, it is determined that the management duration of the event although have exceeded the event set for ordinary user retain duration but without departing from Event for member user's setting retains duration, therefore can retain the event, which is further processed.
It should be noted that it is to be uniformly set as the to retain duration for the event of each member user in the embodiment of the present invention It is illustrated for one preset duration.During specific implementation, each member user can also set event according to actual demand Retain duration, the event that exclusively enjoys that each member user is then managed in background server as oneself setting retains duration.
Step 206:If it is not, processing event, and to reporting of user treated event that user identifier indicates.
Background server includes the processing of event compression, preservation and the inquiry of the corresponding image to event, background service Device inquires the corresponding image of the event from image library, and image is carried out the corresponding terminal of compression generation event prompt information reporting Equipment, not the message generate corresponding index.Event prompt message can be shown on terminal device.When premises equipment requests are looked into When seeing the event, forward end server sends message, and front-end server is corresponded to according to the corresponding search index event of prompting message Image feedback to terminal device.
Step 207:If so, event is filtered out.
After background server filters out event, information reporting front-end server will be filtered out, front-end server can will be in picture library The corresponding image-erasing of the event, to discharge memory space.Moreover, background server can also should directly from picture library The corresponding image-erasing of event.
Event filtering method provided in an embodiment of the present invention, the present load dynamic according to background server adjust filter Event effective time in system, not only ensured background server processing is validity event, but also guarantees alleviation server and bear It carries.Such as when background server present load is overweight, it can be shortened with the event effective time in strobe utility, be filtered so as to increase Except the data of event reduce the quantity of processing event, the final load for mitigating background server.In addition, also by member user with it is non- Member user distinguishes, and longer event is set to retain duration for member user, can promote the usage experience of member user.
Embodiment three
With reference to Fig. 3, a kind of step flow diagram of event filtering method of the embodiment of the present invention three is shown.
The event filtering method of the embodiment of the present invention includes the following steps:
Step 301:The present load of background server is determined according to prefixed time interval.
Step 302:According to present load, the event effective time in strobe utility is adjusted.
It, can this hair with reference to the related description in embodiment two for determining the concrete mode of background server present load This is repeated no more in bright embodiment.
Prestore the correspondence of load and effective time in background server, therefore can be according to after present load is determined Corresponding effective time is determined according to the correspondence, using determining effective time as the event effective time in strobe utility.
Step 303:Event is extracted from event cache pool, when the corresponding management duration of the event of extraction is effective beyond event During duration, the user identifier carried in event is determined.
Setting one is suitable for the event effective time of each user in strobe utility in the embodiment of the present invention;And it also supports Each user sets exclusive event to retain duration i.e. the second preset duration respectively.When carrying out process to event, thing is first determined whether Part corresponds to the event effective time whether management duration exceeds in strobe utility;If beyond event effective time, further sentence The disconnected exclusive event whether exceeded set by user retains duration;It if, can be directly to the event without departing from event effective time It is handled.In addition, however, it is determined that the corresponding management duration of event still can decide whether to exceed without departing from event effective time Exclusive event set by user retains duration.
Step 304:Determine corresponding second preset duration of user identifier.
Wherein, the second preset duration is pre-set by the user that user identifier indicates.
Second preset duration can be less than the event effective time in strobe utility, can also be greater than or equal to strobe utility In event effective time.
Step 305:Judge whether the corresponding management duration of the event is more than the second preset duration;If so, perform step 306;If it is not, then perform step 307.
Second preset duration is the patient event delay duration of user, if user is high to event requirement of real-time, Second preset duration can be set as to a smaller numerical value;It, can be by second conversely, if user is low to event requirement of real-time Preset duration is set as a larger numerical value.
If the corresponding management duration of event exceeds the second preset duration, it is determined that the event has been not intended to for the user Justice is then directly deleted.
Step 306:If so, the event is filtered out.
Step 307:If it is not, handle the event, and the reporting of user indicated to user identifier treated the event.
If event effective time of the corresponding management duration of event in the strobe utility but without departing from the of user setting Two preset durations, it is determined that the event is still valuable for the user, therefore continues to handle the event, and report Event that treated is to user.
The event filtering method of the embodiment of the present invention, the present load dynamic according to background server are adjusted in strobe utility Event effective time, not only ensured background server processing be validity event, but also guarantee alleviate server load.Such as When background server present load is overweight, it can be shortened with the event effective time in strobe utility, thing is filtered out so as to increase The data of part reduce the quantity of processing event, the final load for mitigating background server.In addition, user can also be according to itself need Setting event is asked to retain duration i.e. the second preset duration, background server determines event according to corresponding second preset duration of user Whether effectively, disclosure satisfy that the use demand of different user, provide personalized service to the user.
Example IV
With reference to Fig. 4, a kind of schematic block diagram of event filtering device of the embodiment of the present invention four is shown.
The event filtering device that the present invention is implemented can include:Determining module 401, for being determined according to prefixed time interval The present load of background server;Module 402 is adjusted, for according to the present load, the event adjusted in strobe utility to have Imitate duration;Filtering module 403, for extracting event from event cache pool, when the corresponding management duration of the event of extraction exceeds During the event effective time, the event is filtered out.
Preferably, the determining module 401 can include:Parameter determination submodule 4011, for determining the backstage clothes Business device filtered out in the prefixed time interval event total amount, the server CPU usage and the server in Deposit occupancy;Determination sub-module 4012 is loaded, for according to the event total amount, the CPU usage and the server Memory usage determines the present load of background server.
Preferably, the determining module 401 can include:Quantity determination sub-module 4013, for determining the backstage clothes The event total amount that business device filters out in the prefixed time interval.
Preferably, the adjustment module 402 can include:Duration determination sub-module 4021, for according to preset event The correspondence of total amount and effective time determines corresponding first effective time of the event total amount;Duration sets submodule 4022, for first effective time to be set as to the event effective time in the strobe utility.
Preferably, the event filtering device provided in the embodiment of the present invention can also include:First flag determining module 404, for when the corresponding management duration of the event extracted exceeds the event effective time, determining to carry in the event User identifier;First judgment module 405, for working as the user identifier for the first user identifier (such as member user's mark) When, judge whether the management duration is more than the first preset duration;Wherein, it is effective to be more than the event for first preset duration Duration;First processing module 406, for if it is not, then handling the event, and at the reporting of user indicated to the user identifier The event after reason;If so, perform the operation for filtering out the event.
Preferably, the event filtering device provided in the embodiment of the present invention can also include:Second identifier determining module 407, for when the corresponding management duration of the event extracted exceeds the event effective time, the event to be filtered described Except the user identifier for, determining to carry in the event before;Preset duration determining module 408, for determining the user identifier Corresponding second preset duration, wherein, second preset duration is pre-set by the user that the user identifier indicates;Second Judgment module 409, for judging whether the management duration is more than second preset duration;Second processing module 410, is used for If it is not, then handle the event, and the reporting of user indicated to the user identifier treated the event;If so, it holds The row operation for filtering out the event.
Preferably, it is a length of during the corresponding management of event:Caching duration of the event in the event buffer pond.
Preferably, it is a length of during the corresponding management of event:Using front-end server receive the event as start time, to institute It states event and the duration that end time is formed is extracted as from the event buffer pond.
Preferably, it is a length of during the corresponding management of event:Using the event generated time point as start time, the extremely event The duration that end time is formed is extracted as from the event buffer pond.
The event filtering device of the embodiment of the present invention is used to implement corresponding event in previous embodiment one to embodiment three Filter method, related part refers to illustrating in embodiment of the method can details are not described herein.
The event filtering device provided through this embodiment, the present load dynamic according to background server adjust filter Event effective time in system, not only ensured background server processing is validity event, but also guarantees alleviation server and bear It carries.Such as when background server present load is overweight, it can be shortened with the event effective time in strobe utility, be filtered so as to increase Except the data of event reduce the quantity of processing event, the final load for mitigating background server.
Provided herein event filtering scheme not with the intrinsic phase of any certain computer, virtual system or miscellaneous equipment It closes.Various general-purpose systems can also be used together with teaching based on this.As described above, construction has present invention side Structure required by the system of case is obvious.In addition, the present invention is not also directed to any certain programmed language.It should be bright In vain, various programming languages can be utilized to realize the content of invention described herein, and is retouched above to what language-specific was done State is to disclose preferred forms of the invention.
In the specification provided in this place, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, such as right As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool Thus claims of body embodiment are expressly incorporated in the specific embodiment, wherein the conduct of each claim in itself The separate embodiments of the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.It can be the module or list in embodiment Member or component be combined into a module or unit or component and can be divided into addition multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification is (including adjoint power Profit requirement, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of arbitrary It mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization or to be run on one or more processor Software module realize or realized with combination thereof.It will be understood by those of skill in the art that it can use in practice Microprocessor or digital signal processor (DSP) come realize in event filtering scheme according to embodiments of the present invention some or The some or all functions of person's whole component.The present invention is also implemented as perform method as described herein one Divide either whole equipment or program of device (for example, computer program and computer program product).Such this hair of realization Bright program can may be stored on the computer-readable medium or can have the form of one or more signal.It is such Signal can be downloaded from internet website to be obtained either providing on carrier signal or providing in the form of any other.
For example, Fig. 5 shows the computing device that can realize event filtering method according to the present invention.The computing device passes Include processor 510 and computer program product or computer-readable medium in the form of memory 520 on system.Memory 520 can be the electricity of such as flash memory, EEPROM (electrically erasable programmable read-only memory), EPROM, hard disk or ROM etc Quantum memory.Memory 520 has storage for performing the storage of the program code 531 of any method and step in the above method Space 530.For example, storage program code memory space 530 can store be respectively used to realize above method in it is various Each program code 531 of step.These program codes can be read from one or more computer program product or It is written in this one or more computer program product.These computer program products include such as hard disk, compact-disc (CD), the program code carrier of storage card or floppy disk etc.Such computer program product is usually for example shown in fig. 6 Portable or static memory cell.The storage unit can have and 520 similar arrangement of memory in the computing device of Fig. 5 Memory paragraph, memory space etc..Program code can be compressed in a suitable form.In general, storage unit is including computer-readable Code 531 ', you can with the code read by such as 510 etc processor, when these codes are run by computing device, lead The computing device is caused to perform each step in method described above.
" one embodiment ", " embodiment " or " one or more embodiment " referred to herein it is meant that with reference to Special characteristic, structure or the characteristic of embodiment description are included at least one embodiment of the present invention.Further, it is noted that Here word example " in one embodiment " is not necessarily all referring to same embodiment.In the specification provided in this place, Numerous specific details are set forth.It is to be appreciated, however, that the embodiment of the present invention can be without these specific details It is put into practice.In some instances, well known method, structure and technology is not been shown in detail, so as not to fuzzy to this specification Understand.
It should be noted that the present invention will be described rather than limits the invention, and ability for above-described embodiment Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and run after fame Claim.
The invention discloses A1, a kind of event filtering method, including:
The present load of background server is determined according to prefixed time interval;
According to the present load, the event effective time in strobe utility is adjusted;
Event is extracted from event cache pool, when the corresponding management duration of the event of extraction exceeds the event effective time When, the event is filtered out.
A2, the method according to A1, wherein, the present load that background server is determined according to prefixed time interval Including:
Determine the CPU of event total amount, the server that the background server filters out in the prefixed time interval The memory usage of occupancy and the server;
According to the memory usage of the event total amount, the CPU usage and the server, background server is determined Present load.
A3, the method according to A1, wherein, the present load packet that background server is determined according to prefixed time interval It includes:
Determine the event total amount that the background server filters out in the prefixed time interval.
A4, the method according to A3, wherein, described according to the present load, the event adjusted in strobe utility has Effect duration includes:
According to the correspondence of preset event total amount and effective time, the event total amount corresponding first is determined effectively Duration;
The event effective time first effective time being set as in the strobe utility.
A5, the method according to A1, wherein, before described the step of filtering out the event, the method is also wrapped It includes:
When the corresponding management duration of the event extracted exceeds the event effective time, determine to carry in the event User identifier;
When the user identifier is the first user identifier, judge whether the management duration is more than the first preset duration; Wherein, first preset duration is more than the event effective time;
If it is not, then handle the event, and the reporting of user indicated to the user identifier treated the event;
If so, perform described the step of filtering out the event.
A6, the method according to A1, wherein, before described the step of filtering out the event, the method is also wrapped It includes:
When the corresponding management duration of the event extracted exceeds the event effective time, determine to carry in the event User identifier;
Determine corresponding second preset duration of the user identifier, wherein, second preset duration is marked by the user The user for knowing instruction pre-sets;
Judge whether the management duration is more than second preset duration;
If it is not, then handle the event, and the reporting of user indicated to the user identifier treated the event;
If so, perform described the step of filtering out the event.
A7, the method according to A1, wherein:It is a length of during the corresponding management of event:Event is in the event buffer pond Caching duration.
A8, the method according to A1, wherein, when event corresponding management, is a length of:It is received with front-end server described Event is extracted as the duration that end time is formed by start time, to the event from the event buffer pond.
A9, the method according to A1, wherein, when event corresponding management, is a length of:Using the event generated time point as Start time, the extremely event are extracted as the duration that end time is formed from the event buffer pond.
The invention discloses B10, a kind of event filtering device, including:
Determining module, for determining the present load of background server according to prefixed time interval;
Module is adjusted, for according to the present load, adjusting the event effective time in strobe utility;
Filtering module, for extracting event from event cache pool, when the corresponding management duration of the event of extraction exceeds institute When stating event effective time, the event is filtered out.
B11, the device according to B10, wherein, the determining module includes:
Parameter determination submodule, for determining that the event that the background server filters out in the prefixed time interval is total The memory usage of amount, the CPU usage of the server and the server;
Determination sub-module is loaded, for being accounted for according to the memory of the event total amount, the CPU usage and the server With rate, the present load of background server is determined.
B12, the device according to B10, wherein, the determining module includes:
Quantity determination sub-module, for determining that the event that the background server filters out in the prefixed time interval is total Amount.
B13, the device according to B12, wherein, the adjustment module includes:
Duration determination sub-module for the correspondence according to preset event total amount and effective time, determines the thing Corresponding first effective time of part total amount;
Duration sets submodule, for event that first effective time is set as in the strobe utility it is effective when It is long.
B14, the device according to B10, wherein, described device further includes:
First flag determining module exceeds the event effective time for working as the corresponding management duration of extracted event When, determine the user identifier carried in the event;
First judgment module, for whether when the user identifier is the first user identifier, judging the management duration More than the first preset duration;Wherein, first preset duration is more than the event effective time;
First processing module, for if it is not, then handling the event, and at the reporting of user indicated to the user identifier The event after reason;If so, perform the operation for filtering out the event.
B15, the device according to B10, wherein, described device further includes:
Second identifier determining module exceeds the event effective time for working as the corresponding management duration of extracted event When, before the event is filtered out, determine the user identifier carried in the event;
Preset duration determining module, for determining corresponding second preset duration of the user identifier, wherein, described second Preset duration is pre-set by the user that the user identifier indicates;
Second judgment module, for judging whether the management duration is more than second preset duration;
Second processing module, for if it is not, then handling the event, and at the reporting of user indicated to the user identifier The event after reason;If so, perform the operation for filtering out the event.
B16, the device according to B10, wherein:It is a length of during the corresponding management of event:Event is in the event buffer pond In caching duration.
B17, the device according to B10, wherein, when event corresponding management, is a length of:Institute is received with front-end server It states event and is extracted as the duration that end time is formed from the event buffer pond by start time, to the event.
B18, the device according to B10, wherein, when event corresponding management, is a length of:With the event generated time point The duration that end time is formed is extracted as from the event buffer pond by start time, to the event.
The invention discloses C19, a kind of computing device, including:Memory, processor and storage are on a memory and can be The computer program run on processor, wherein, the processor is realized when performing described program as described in any one of A1-A9 Event filtering method.
The invention discloses D20, a kind of storage units, are stored thereon with computer program, which is executed by processor Event filtering method as described in any one of A1-A9.

Claims (10)

1. a kind of event filtering method, including:
The present load of background server is determined according to prefixed time interval;
According to the present load, the event effective time in strobe utility is adjusted;
Event is extracted from event cache pool, when the corresponding management duration of the event of extraction exceeds the event effective time, The event is filtered out.
It is 2. described to determine the current negative of background server according to prefixed time interval according to the method described in claim 1, wherein Load includes:
Determine event total amount, the CPU occupancy of the server that the background server filters out in the prefixed time interval The memory usage of rate and the server;
According to the memory usage of the event total amount, the CPU usage and the server, working as background server is determined Preceding load.
3. according to the method described in claim 1, wherein, the present load that background server is determined according to prefixed time interval Including:
Determine the event total amount that the background server filters out in the prefixed time interval.
4. it is described according to the present load according to the method described in claim 3, wherein, adjust the event in strobe utility Effective time includes:
According to the correspondence of preset event total amount and effective time, determine the event total amount it is corresponding first it is effective when It is long;
The event effective time first effective time being set as in the strobe utility.
5. according to the method described in claim 1, wherein, before described the step of filtering out the event, the method is also Including:
When the corresponding management duration of the event extracted exceeds the event effective time, the use carried in the event is determined Family identifies;
When the user identifier is the first user identifier, judge whether the management duration is more than the first preset duration;Wherein, First preset duration is more than the event effective time;
If it is not, then handle the event, and the reporting of user indicated to the user identifier treated the event;
If so, perform described the step of filtering out the event.
6. according to the method described in claim 1, wherein, before described the step of filtering out the event, the method is also Including:
When the corresponding management duration of the event extracted exceeds the event effective time, the use carried in the event is determined Family identifies;
Determine corresponding second preset duration of the user identifier, wherein, second preset duration is referred to by the user identifier The user shown pre-sets;
Judge whether the management duration is more than second preset duration;
If it is not, then handle the event, and the reporting of user indicated to the user identifier treated the event;
If so, perform described the step of filtering out the event.
7. according to the method described in claim 1, wherein:It is a length of during the corresponding management of event:Event is in the event buffer pond In caching duration.
8. according to the method described in claim 1, wherein, when event corresponding management, is a length of:Institute is received with front-end server It states event and is extracted as the duration that end time is formed from the event buffer pond by start time, to the event.
9. according to the method described in claim 1, wherein, when event corresponding management, is a length of:With the event generated time point The duration that end time is formed is extracted as from the event buffer pond by start time, to the event.
10. a kind of event filtering device, including:
Determining module, for determining the present load of background server according to prefixed time interval;
Module is adjusted, for according to the present load, adjusting the event effective time in strobe utility;
Filtering module, for extracting event from event cache pool, when the corresponding management duration of the event of extraction exceeds the thing During part effective time, the event is filtered out.
CN201711476082.7A 2017-12-29 2017-12-29 Event filtering method and device Active CN108228352B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711476082.7A CN108228352B (en) 2017-12-29 2017-12-29 Event filtering method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711476082.7A CN108228352B (en) 2017-12-29 2017-12-29 Event filtering method and device

Publications (2)

Publication Number Publication Date
CN108228352A true CN108228352A (en) 2018-06-29
CN108228352B CN108228352B (en) 2021-07-20

Family

ID=62646059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711476082.7A Active CN108228352B (en) 2017-12-29 2017-12-29 Event filtering method and device

Country Status (1)

Country Link
CN (1) CN108228352B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185741A (en) * 2011-06-10 2011-09-14 浙江大学 Method for estimating needs of transaction in processor in multi-tier architecture
US20140040460A1 (en) * 2012-07-31 2014-02-06 Fujitsu Limited Transaction data acquisition method, recording medium, and information processing apparatus
CN105279018A (en) * 2015-10-28 2016-01-27 广东欧珀移动通信有限公司 Method and terminal for turning off information push
CN106411927A (en) * 2016-10-28 2017-02-15 北京奇虎科技有限公司 Monitoring video recording method and device
CN107332906A (en) * 2017-06-30 2017-11-07 郑州云海信息技术有限公司 Distributed system office management method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185741A (en) * 2011-06-10 2011-09-14 浙江大学 Method for estimating needs of transaction in processor in multi-tier architecture
US20140040460A1 (en) * 2012-07-31 2014-02-06 Fujitsu Limited Transaction data acquisition method, recording medium, and information processing apparatus
CN105279018A (en) * 2015-10-28 2016-01-27 广东欧珀移动通信有限公司 Method and terminal for turning off information push
CN106411927A (en) * 2016-10-28 2017-02-15 北京奇虎科技有限公司 Monitoring video recording method and device
CN107332906A (en) * 2017-06-30 2017-11-07 郑州云海信息技术有限公司 Distributed system office management method and device

Also Published As

Publication number Publication date
CN108228352B (en) 2021-07-20

Similar Documents

Publication Publication Date Title
CN103347009B (en) A kind of information filtering method and device
US8843452B2 (en) Utilizing metadata to optimize efficiency for archiving emails
DE112016005870T5 (en) SEARCH AND RETRIEVAL DATA PROCESSING SYSTEM FOR CALCULATING NEAR-REAL-TIME DATA AGGREGATIONS
CN110895524B (en) Composite overdue method, device, server and storage medium of full-load redis time key
CN110009347B (en) Block chain transaction information auditing method and device
CN107734336A (en) A kind of compression method and device of video memory space
CN108365989A (en) Event-handling method and device
CN110493806A (en) Mobile network complains source tracing method and device
CN104618142B (en) News subscribing method, treatment node device and bus apparatus
CN106953868A (en) The processing method and system for the material that internet is asked for visa
CN108509322B (en) Method for avoiding excessive return visit, electronic device and computer readable storage medium
CN111177601A (en) Page rendering processing method, device and equipment and readable storage medium
CN106547425A (en) A kind of method and apparatus of the informing message of processing intelligent terminal
CN112465446A (en) Work order data processing method and device, electronic equipment and storage medium
CN105335367B (en) Method, device and server for determining application program associated with file directory
CN108228352A (en) Event filtering method and device
CN103475543A (en) Abnormal system service call detection method and system
CN108829572A (en) The analysis method and device of user's login behavior
CN110109970B (en) Data query processing method and device
CN109643307B (en) Stream processing system and method
CN116126859A (en) Data management method and device, electronic equipment and storage medium
CN112632121B (en) Block chain data acquisition method and device
CN109857703B (en) Pocket space duty ratio statistical method and device based on minium file system
CN104461714A (en) Method and device for processing progresses of server
CN115167297A (en) Intelligent manufacturing industry Internet of things based on thread control and control method

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