Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of priority control method, device and car networking service platform,
To alleviate the car networking service platform of the prior art the processing business ability and low efficiency the technical issues of.
In a first aspect, the embodiment of the invention provides a kind of priority control methods, wherein this method is applied to car networking
Service platform, the above method include: the resources occupation rate for each business level for including in the monitoring car networking service platform;
Judge whether resources occupation rate is more than pre-set resource threshold;If so, will be more than the corresponding operation layer of resources occupation rate
Grade is set as priority business level;Obtain the refinement service that priority business level includes;According to pre-set service priority
Refinement service is handled.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein on
State method further include: the refinement service creation for including according to the resources occupation rate of each business level and each business level
Configuration file;Wherein, configuration file further includes the service priority of refinement service;Save configuration file.
The possible embodiment of with reference to first aspect the first, the embodiment of the invention provides second of first aspect
Possible embodiment, wherein the above method further include: the money of above-mentioned business level is extracted according to the pre-set time cycle
Source occupancy;Processing is ranked up to operation layer grade according to resources occupation rate, to be updated to configuration file.
The possible embodiment of second with reference to first aspect, the embodiment of the invention provides the third of first aspect
Possible embodiment, wherein judge that the step of whether resources occupation rate is more than pre-set resource threshold includes: to obtain more
Configuration file after new, successively judges whether the resources occupation rate of each business level is more than pre-set resource threshold.
With reference to first aspect, the embodiment of the invention provides the 4th kind of possible embodiments of first aspect, wherein money
Occupancy corresponding resource in source includes one of following or a variety of: cpu resource, memory source or Internet resources;Judgement money
The step of whether source occupancy is more than pre-set resource threshold include: when the resources occupation rate of one of resource be more than it is pre-
When the resource threshold being first arranged, determine that resources occupation rate is more than pre-set resource threshold.
With reference to first aspect, the embodiment of the invention provides the 5th kind of possible embodiments of first aspect, wherein on
State method further include: if the resources occupation rate for continuing to monitor priority business level is lower than resource threshold, by preferred operation layer
Grade is labeled as general service level.
Second aspect, the embodiment of the present invention also provide a kind of priority control apparatus, wherein above-mentioned apparatus is set to vehicle connection
Net service platform, comprising: monitoring modular, the resource occupation of each business level for including in monitoring car the Internet services platform
Rate;Judgment module, for judging whether resources occupation rate is more than pre-set resource threshold;Setup module, for when judgement
The judging result of module is when being, will be more than that the corresponding business level of resources occupation rate is set as priority business level;Obtain mould
Block, the refinement service for including for obtaining priority business level;Processing module, for according to pre-set service priority pair
Refinement service is handled.
In conjunction with second aspect, the embodiment of the invention provides the first possible embodiments of second aspect, wherein on
State device further include: configuration module, for including according to the resources occupation rate and each business level of each business level
Refine service creation configuration file;Wherein, configuration file further includes the service priority of the refinement service;Preserving module is used
In the preservation configuration file.
In conjunction with the first possible embodiment of second aspect, the embodiment of the invention provides second of second aspect
Possible embodiment, wherein above-mentioned apparatus further include:
Setup module will be excellent if the resources occupation rate for continuing to monitor priority business level is lower than resource threshold
Select business level labeled as general service level.
The third aspect, the embodiment of the present invention also provide a kind of car networking service platform, wherein car networking service platform includes
Processor and memory, the memory are stored with the machine-executable instruction that can be executed by the processor, the processing
Device executes the machine-executable instruction to realize method described in above-mentioned first aspect.
Fourth aspect, the embodiment of the invention also provides a kind of machine readable storage medium, machine readable storage medium is deposited
Machine-executable instruction is contained, when being called and being executed by processor, the machine is executable to be referred to the machine-executable instruction
Order promotes processor to realize method described in above-mentioned first aspect.
The embodiment of the present invention bring it is following the utility model has the advantages that
A kind of priority control method, device and car networking service platform provided in an embodiment of the present invention, can be with monitoring car
The resources occupation rate for each business level for including in the Internet services platform;When the resources occupation rate of some business level is more than pre-
When the resource threshold being first arranged;Set priority business level for the business level, and obtain that priority business level includes it is thin
Change service, according to pre-set service priority to refinement service handle, effectively prevent business hierarchical data amount compared with
The phenomenon that server Caton caused by big or collapse, not only increase the ability and effect of car networking service platform business processing
Rate also brings very big convenience for people's trip, and then improves the Experience Degree of user.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification, claims
And specifically noted structure is achieved and obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those skilled in the art institute without making creative work
The every other embodiment obtained, shall fall within the protection scope of the present invention.
Currently, car networking service platform is when carrying out business processing, the control seldom to the grading row major grade of operation layer is led
The phenomenon that causing server to be easy to appear Caton or even collapse, reduces the processing capacity and efficiency of business, is based on this, and the present invention is real
It applies example and provides a kind of priority control method, device and car networking service platform, car networking platform processes business can be improved
Ability and efficiency, improve user experience and then meet the needs of people are to car networking.
For convenient for understanding the present embodiment, first to a kind of priority control method disclosed in the embodiment of the present invention
It describes in detail.
Car networking service platform is referred to as car networking TSP (Telematics Service Provider, content clothes
Be engaged in supplier) platform, the platform can be telematics service provider offer platform, gathered location-based service, GIS
(Geographic Information System, GIS-Geographic Information System) services and the present computer technologies such as communication service, is
Car owner and individual provide powerful service, including navigation, amusement, information, security protection, SNS (Social Networking
Services, social networking service), and the business such as long-range maintenance.
The business level for including in car networking service platform refers to core layer, extended layer and perisphere in general sense;
It is this kind of that core layer is mainly concerned with safe auxiliary, remote diagnosis and security protection rescue.In this layer, vehicle is served
Itself is related, it is desirable that the data of vehicle data or driving behavior go to realize by the intelligence of vehicle itself
Function provides service.Why it is set to core layer, is the data because of either vehicle data or driving behavior, is all
Vehicle is exclusive, not reproducible substitution.
Extended layer is not related to vehicle itself, but provides according to demand of the people when driving.Extended layer does not relate to
And Vehicular system and driving behavior data are arrived, but in need in conjunction with vehicle, this partial service, in mobile interchange stratum reticulare
Face can solve, and not be related to in-vehicle network and vehicle core data.
Perisphere be based on trip after demand provide service, substantially belong to market scope after automobile, such as maintenance, automobile
Beauty etc., the intersection with vehicle is not in driving behavior.
Based on above-mentioned business level, car networking service platform can carry out the deployment of business level, and to each operation layer
The refinement service of grade carries out priority configuration, and therefore, the embodiment of the invention provides a kind of priority control method, this method is answered
For car networking service platform.
A kind of flow chart of priority control method as shown in Figure 1, method includes the following steps:
Step S102, the resources occupation rate for each business level for including in monitoring car the Internet services platform.
When specific implementation, each business level has corresponding processing server, therefore, can be by monitoring each business
The corresponding processing server of level realizes the resources occupation rate of each business level for including in monitoring car the Internet services platform
Process, such as monitor the cpu resource, memory source or Internet resources of corresponding processing server.
Step S104 judges whether resources occupation rate is more than pre-set resource threshold;
Step S106, if so, will be more than that the corresponding business level of resources occupation rate is set as priority business level;
Car networking service platform sets corresponding business level to after priority business level handled, can reduce or
Person interrupts other business level services, the priority processing business level.
Step S108 obtains the refinement service that the priority business level includes.
Step S110 is handled refinement service according to pre-set service priority.
Wherein, above-mentioned refinement service is the specific service type for including of each business level, using business level as core
Layer for, at this point, the refinement service of business level may include safely auxiliary, remote diagnosis and security protection rescue etc. specific business.
Further, each specific business is also previously provided with service priority, in order to which the processing of the business level takes
Business device services each refinement according to the service priority and carries out priority processing.
A kind of priority control method provided in an embodiment of the present invention, can be every with include in monitoring car the Internet services platform
The resources occupation rate of a business level;When the resources occupation rate of some business level is more than pre-set resource threshold;It will
The business level is set as priority business level, and obtains the refinement service that priority business level includes, according to pre-set
Service priority to refinement service handle, effectively prevent business hierarchical data amount it is larger caused by server Caton or
The phenomenon that collapse, not only increases the ability and efficiency of car networking service platform business processing, also brings for people's trip very big
Convenience, and then improve the Experience Degree of user.
Preferably priority is monitored and is checked for the ease of server, the above method further include: according to each
The refinement service creation configuration file that the resources occupation rate of business level and each business level include;Wherein, configuration file
It further include the service priority of refinement service;Save configuration file.
Specifically, including the refinement service in business level, business level resource threshold, business level in the configuration file
And the service priority to refinement service.Car networking service platform is arranged different business levels according to configuration file different
Resource threshold, and business level is refined according to configuration file specific to each service, and guarantee that each refinement takes
Business all individually deployment, refining between service is isolation.Later, it is arranged in configuration file according to the importance of refinement service
The priority of each refinement service.
For the ease of understanding that Fig. 2 shows a kind of industry to each operation layer grade for including in car networking service platform
The division schematic diagram for level of being engaged in, including car networking service platform, and the business level being connect with car networking service platform, and
And car networking service platform is also stored with above-mentioned configuration file.
Wherein, business level generally includes core layer, extended layer and perisphere, may include multiple under each business layer frame
Refinement service, wherein A1, A2 etc. indicate the refinement service under core layer, and B1, B2 etc. indicate the refinement service under extended layer,
C1, C2 etc. indicate the refinement service under perisphere.
Based on the division schematic diagram of business level shown in Fig. 2, configuration file the resource threshold of core layer can be arranged
To occupy the resource threshold that the 70% of the cpu resource, resource threshold of extended layer is set as occupying the 60% of memory source, perisphere
For occupy Internet resources 75%, when the resources occupation rate of any one business level reaches threshold value set by configuration file,
The business level is set as priority business level and carries out business processing by server.When the business level is priority business level,
Server will acquire the refinement service that the business level is included.By taking core layer is priority business level as an example, configuration file will
The business level of core layer is refined as assisting safely, remote diagnosis and security protection rescue these three refinement services, and make three refinements
It is not communicated mutually between service, the priority that safety assists is set as by 2, remote diagnosis according to the importance configuration file of refinement service
Priority be set as the priority of 3, security protection relief and be set as 1, server will be handled according to the priority orders of refinement service.
Further, the embodiment of the invention also includes the renewal processes of configuration file, specifically, this method comprises: according to pre-
The time cycle being first arranged extracts the resources occupation rate of business level, and server will be according to the resources occupation rate monitored
Rearrangement processing is carried out to operation layer grade.Configuration file after the available update of server, successively judgement is each again
Whether the resources occupation rate of business level has been more than in advance to the resource threshold of business level setting.
In actual use, the corresponding resource of above-mentioned resources occupation rate may include one of following or a variety of:
Cpu resource, memory source or Internet resources;
It therefore, may include to upper during judging whether resources occupation rate is more than pre-set resource threshold
It states multiple resources to be monitored, when the resources occupation rate of one of resource is more than pre-set resource threshold, determines money
Source occupancy is more than pre-set resource threshold.If the resources occupation rate of the priority business level continued to monitor is lower than pre-
The preferred business level can also be labeled as general service level, increase the flexibility of monitoring by the resource threshold being first arranged.
Corresponding to the priority control method that above embodiment provides, the embodiment of the invention also provides a kind of priority
Control device, a kind of structural schematic diagram of priority control apparatus as shown in Figure 3, it is flat which is set to car networking service
Platform, as shown in figure 3, the device includes:
Monitoring modular 30, the resources occupation rate of each business level for including in monitoring car the Internet services platform;
Judgment module 32, for judging whether resources occupation rate is more than pre-set resource threshold;
Setup module 34, for that will be more than the corresponding business of resources occupation rate when the judging result of judgment module, which is, is
Level is set as priority business level;
Obtain module 36, the refinement service for including for obtaining priority business level;
Processing module 38, for handling according to pre-set service priority refinement service.
Further, on the basis of Fig. 3, Fig. 4 shows the structural schematic diagram of another priority control apparatus, removes Fig. 3
Shown in structure, above-mentioned apparatus further include:
Configuration module 40, for the resources occupation rate and each business level according to each business level include it is thin
Change service creation configuration file;Wherein, configuration file further includes the service priority of refinement service;
Preserving module 42, for saving configuration file.
Further, above-mentioned apparatus further include:
Setup module 44 will if the resources occupation rate for continuing to monitor priority business level is lower than resource threshold
It is preferred that business level is labeled as general service level.
Priority control apparatus provided in an embodiment of the present invention has with priority control method provided by the above embodiment
Identical technical characteristic reaches identical technical effect so also can solve identical technical problem.
The embodiment of the invention also provides a kind of car networking service platform, which includes processor and deposits
Reservoir, the memory are stored with the machine-executable instruction that can be executed by the processor, described in the processor executes
Machine-executable instruction is to realize above-mentioned priority control method.
A kind of structural block diagram of car networking service platform shown in Figure 5, comprising: processor 500, memory 501, always
Line 502 and communication interface 503, the processor 500, communication interface 503 and memory 501 are connected by bus 502;Processor
500 for executing the executable module stored in memory 501, such as computer program.
Wherein, memory 501 may include high-speed random access memory (RAM, Random Access Memory),
It may further include non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.By extremely
A few communication interface 503 (can be wired or wireless) is realized logical between the system network element and at least one other network element
Letter connection, can be used internet, wide area network, local network, Metropolitan Area Network (MAN) etc..
Bus 502 can be isa bus, pci bus or eisa bus etc..The bus can be divided into address bus, number
According to bus, control bus etc..Only to be indicated with a four-headed arrow in Fig. 5, it is not intended that an only bus convenient for indicating
Or a type of bus.
Wherein, memory 501 is for storing program, and the processor 500 executes the journey after receiving and executing instruction
Sequence, the priority control method that aforementioned any embodiment of the embodiment of the present invention discloses can be applied in processor 500, Huo Zheyou
Processor 500 is realized.
Processor 500 may be a kind of IC chip, the processing capacity with signal.It is above-mentioned during realization
Each step of method can be completed by the integrated logic circuit of the hardware in processor 500 or the instruction of software form.On
The processor 500 stated can be general processor, including central processing unit (Central Processing Unit, abbreviation
CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital
Signal Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated
Circuit, abbreviation ASIC), ready-made programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or
Person other programmable logic device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute sheet
Disclosed each method, step and logic diagram in inventive embodiments.General processor can be microprocessor or the processing
Device is also possible to any conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in
Hardware decoding processor executes completion, or in decoding processor hardware and software module combination execute completion.Software mould
Block can be located at random access memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable storage
In the storage medium of this fields such as device, register maturation.The storage medium is located at memory 501, and processor 500 reads memory
Information in 501, in conjunction with the step of its hardware completion above method.
The computer program of priority control method, device provided by the embodiment of the present invention and car networking service platform produces
Product, the computer readable storage medium including storing program code, before the instruction that said program code includes can be used for execution
Method described in the embodiment of the method for face, specific implementation can be found in embodiment of the method, and details are not described herein.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description
It with the specific work process of device, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
Finally, it should be noted that above embodiments, only a specific embodiment of the invention, to illustrate skill of the invention
Art scheme, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to the present invention into
Go detailed description, it should be understood by those skilled in the art that: anyone skilled in the art takes off in the present invention
In the technical scope of dew, it can still modify to technical solution documented by previous embodiment or can readily occur in change
Change or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make relevant art
Scheme essence be detached from technical solution of the embodiment of the present invention spirit and scope, should all cover protection scope of the present invention it
It is interior.Therefore, protection scope of the present invention should be subject to the protection scope in claims.