CN108377268A - A kind of method and system of adjustment task priority - Google Patents

A kind of method and system of adjustment task priority Download PDF

Info

Publication number
CN108377268A
CN108377268A CN201810159315.9A CN201810159315A CN108377268A CN 108377268 A CN108377268 A CN 108377268A CN 201810159315 A CN201810159315 A CN 201810159315A CN 108377268 A CN108377268 A CN 108377268A
Authority
CN
China
Prior art keywords
address
service
state parameter
file
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
CN201810159315.9A
Other languages
Chinese (zh)
Other versions
CN108377268B (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.)
Shenzhen Micro Tax Silver Information Service Co Ltd
Original Assignee
Shenzhen Micro Tax Silver Information Service 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 Shenzhen Micro Tax Silver Information Service Co Ltd filed Critical Shenzhen Micro Tax Silver Information Service Co Ltd
Priority to CN201810159315.9A priority Critical patent/CN108377268B/en
Publication of CN108377268A publication Critical patent/CN108377268A/en
Application granted granted Critical
Publication of CN108377268B publication Critical patent/CN108377268B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a kind of method and systems of adjustment task priority, obtain log information;The log information includes multiple service IP address and fileinfo corresponding with each service IP address;According to each service IP address, the running state parameter of corresponding server is obtained;According to fileinfo corresponding with service IP address, it may be determined that go out the historic state parameter of server;According to preset rules, the corresponding running state parameter of all service IP address and historic state parameter are handled, determine the corresponding precedence information of each service IP address, and will be in precedence information update to database.The technical solution dynamically updates the corresponding priority of each service IP address by the network condition of the server where each operation system of multi dimensional analysis, and efficiently solving the problems, such as file download rate, frequently shake and whole download efficiency be not high.

Description

A kind of method and system of adjustment task priority
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of method and system of adjustment task priority.
Background technology
Document distribution system refers to centrally stored business associated documents, and provides file distributing under for other operation systems The system for carrying service.When enterprise operation system needs some service scripts, file download request can be sent and give file distributing system Corresponding file is then returned to the operation system for sending request by system, document distribution system.
With the business development of enterprise, the operation system complexity of enterprise can further increase, at this moment, in order to reduce system Complexity can decouple operation system, be decomposed into multiple operation systems, and each operation system is responsible at single business Reason.And increasing along with operation system, the file download request of document distribution system processing can also double accordingly, at this moment, Document distribution system will be to download request distribution downloading task priority, be asked according to downloading task priority to dispatch download It asks, otherwise can handle to come over.
And traditional downloading task scheduling mode generally uses the scheduling strategy of random schedule either fixed priority, this The problem of kind mode often causes downloading rate frequently to shake because of the influence of the factors such as network environment of each operation system, from And influence the download efficiency of document distribution system entirety.If the network condition of each operation system, foundation can be considered Network condition dynamically adjusts task priority, by the great download efficiency for promoting document distribution system entirety.
It is those skilled in the art's urgent problem to be solved as it can be seen that how to realize the dynamic adjustment of task priority.
Invention content
The purpose of the embodiment of the present invention is to provide a kind of method and system of adjustment task priority, and it is excellent that task may be implemented The dynamic of first grade adjusts, and efficiently solving the problems, such as file download rate, frequently shake and whole download efficiency be not high.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of method of adjustment task priority, including:
Obtain log information;Wherein, the log information include multiple service IP address and with each business IP The corresponding fileinfo in address;
According to each service IP address, the running state parameter of corresponding server is obtained;
According to fileinfo corresponding with the service IP address, the historic state parameter of the server is determined;
According to preset rules, to all corresponding running state parameters of service IP address and the historic state Parameter is handled, and determines the corresponding precedence information of each service IP address, and the precedence information is updated Into database.
Optionally, the acquisition log information includes:
According to preset cycle time, the daily record letter stored in the cycle time is obtained from the database Breath.
Optionally, foundation fileinfo corresponding with the service IP address, determines going through for the server History state parameter includes:
The file size that includes according to the fileinfo, file start download time and end of file download time, Calculate the file download rate of the server;
According to the file status information that the fileinfo includes, the file download success of the server is calculated Rate.
Optionally, described according to preset rules, to the corresponding running state parameter of all service IP address and The historic state parameter is handled, and determines that the corresponding precedence information of each service IP address includes:
According to the weighted value of preset parameters, the operating status corresponding to all service IP address Parameter and historic state parameter progress are integrated ordered, determine the corresponding precedence information of each service IP address.
The embodiment of the present invention additionally provides a kind of system of adjustment task priority, including log acquisition unit, parameter obtain Take unit, determination unit and processing unit;
The log acquisition unit, for obtaining log information;Wherein, the log information includes multiple service IP address And fileinfo corresponding with each service IP address;
The parameter acquiring unit, for according to each service IP address, obtaining the operation of corresponding server State parameter;
The determination unit, for according to fileinfo corresponding with the service IP address, determining the service The historic state parameter of device;
The processing unit, for according to preset rules, the operating status corresponding to all service IP address Parameter and the historic state parameter are handled, and determine the corresponding precedence information of each service IP address, and will In the precedence information update to database.
Optionally, the log acquisition unit is specifically used for according to preset cycle time, from the database Obtain the log information stored in the cycle time.
Optionally, the determination unit includes rate calculations subelement and success rate computation subunit;
The rate calculations subelement, file size, file for including according to the fileinfo start to download Time and end of file download time calculate the file download rate of the server;
The success rate computation subunit, the file status information for including according to the fileinfo, calculates The file download success rate of the server.
Optionally, the processing unit is specifically used for the weighted value according to preset parameters, to all described The corresponding running state parameter of service IP address and historic state parameter progress are integrated ordered, determine each described The corresponding precedence information of service IP address.
The embodiment of the present invention additionally provides a kind of system of adjustment task priority, including:
Memory, for storing computer program;
Processor, for the step of executing the computer program to realize the method such as above-mentioned adjustment task priority.
By obtaining log information it can be seen from above-mentioned technical proposal;According to the business IP for including in log information Location obtains the running state parameter of corresponding server;The running state parameter can reflect the current network of server Situation.According to fileinfo corresponding with the service IP address, it may be determined that go out the historic state parameter of the server; According to preset rules, all corresponding running state parameters of service IP address and the historic state parameter are carried out Processing determines the corresponding precedence information of each service IP address, and the precedence information is updated to database In.The technical solution dynamically updates each industry by the network condition of the server where each operation system of multi dimensional analysis The corresponding priority of IP address of being engaged in, to solve the file download rate frequency that traditional random schedule or Fixed-priority Scheduling Strategy generate Numerous problem shaken and whole download efficiency is not high.
Description of the drawings
In order to illustrate the embodiments of the present invention more clearly, attached drawing needed in the embodiment will be done simply below It introduces, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ordinary skill people For member, without creative efforts, other drawings may also be obtained based on these drawings.
Fig. 1 is a kind of flow chart of the method for adjustment task priority provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of the system of adjustment task priority provided in an embodiment of the present invention;
Fig. 3 is a kind of hardware architecture diagram of the system of adjustment task priority provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole embodiments.Based on this Embodiment in invention, without making creative work, what is obtained is every other by those of ordinary skill in the art Embodiment belongs to the scope of the present invention.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description The present invention is described in further detail.
It is stored with business associated documents in document distribution system, file distributing and download can be provided for other operation systems Service.According to the execution function of document distribution system, document distribution system can be divided into file interface module, task scheduling Module, database module, cache module and file storage module.
In traditional approach, the general scheduling strategy using random schedule either fixed priority, to handle numerous texts Part downloads request.By taking the scheduling strategy of fixed priority as an example, it can be preserved in the database module of document distribution system Task priority information after file interface module receives the file download request from multiple and different operation systems, can incite somebody to action File download request is transmitted to task scheduling modules.Task scheduling modules are inquired according to file download request from database module Corresponding precedence information distributes corresponding priority for file download request, and returns to file interface module.File interface Module obtains the file specified by each file download request according to the priority of distribution from cache module.If cache module is not There are the files specified by file download request, then obtain corresponding file from file storage module by file interface module.Text The file of acquisition is returned to each operation system for initiating to ask by part interface module, and relevant log information is saved in number According to library module.
When using the scheduling strategy of random schedule or fixed priority, actual network environmental factors are not considered Enter.When there are multiple file download requests, file download rate will be sometimes fast and sometimes slow, frequent to become to become.Sometimes also The request that can download completion soon originally below can be blocked because the request first handled is downloaded too slow, can influenced Whole download efficiency.
So an embodiment of the present invention provides a kind of method and systems of adjustment task priority, by obtaining daily record letter Breath;According to the service IP address for including in log information, the running state parameter of corresponding server is obtained;And foundation and industry The business corresponding fileinfo of IP address, determines the historic state parameter of server;Running state parameter and historic state ginseng The network condition of server, corresponding to all service IP address according to preset rules where number reflects operation system The running state parameter and the historic state parameter are handled, it may be determined that it is corresponding to go out each service IP address Precedence information, and by precedence information update to database, the dynamic to complete task priority updates.Work as file After dissemination system receives file download request, it can be distributed for file download request according to updated precedence information Corresponding priority.The precedence information stored in database be the dynamic that is carried out according to the network condition of each service IP address more Newly, file download rate frequently shake and the whole download that traditional random schedule or Fixed-priority Scheduling Strategy generate is efficiently solved Inefficient problem.
Next, the method that a kind of adjustment task priority that the embodiment of the present invention is provided is discussed in detail.Fig. 1 is this hair A kind of flow chart of the method for adjustment task priority that bright embodiment provides, this method include:
S101:Obtain log information.
Document distribution system can preserve the log information of generation to database after completing corresponding file download task In.
Include service IP address and corresponding fileinfo in every log information.With accumulative, the data of time A large amount of log information is stored in library, correspondingly, in the log information of acquisition may include have multiple service IP address with And fileinfo corresponding with each service IP address.
According to the service IP address, corresponding server can be searched, to obtain the real-time network conditions of server.Text Relevant information when file download is contained in part information, these information can reflect network feelings corresponding when download file Condition.In embodiments of the present invention, Main Basiss service IP address and fileinfo in log information, carries out task priority Update.
In view of the log information data volume stored in database is larger, within current time immediate a period of time The network condition of server when log information can more reflect download file, so, it in embodiments of the present invention, can be according to pre- The cycle time first set obtains the log information stored in the cycle time from the database.Correspondingly, can be Task priority is once updated in a cycle time.
Wherein, the length of cycle time can be set according to actual demand, be not specifically limited herein.
S102:According to each service IP address, the running state parameter of corresponding server is obtained.
One service IP address corresponds to a server, and document distribution system is according to service IP address information, testing service The running state parameter of device.The running state parameter reflects the real time execution situation of server.
Latency response time or packet loss of server etc. can accurately reflect the current network feelings of server Condition in embodiments of the present invention can be using Latency response time or packet loss as the running state parameter of server.
In the concrete realization, the real-time network feelings of the server corresponding to ping orders test service IP address can be used Condition.
By taking Latency response time as an example, the ping for the Latency response time that service IP address is 192.168.10.10 is obtained Order is as follows:
64bytes from 192.168.10.10:Icmp_seq=0ttl=254time=1.557ms
64bytes from 192.168.10.10:Icmp_seq=1ttl=254time=1.601ms
64bytes from 192.168.10.10:Icmp_seq=2ttl=254time=1.814ms
64bytes from 192.168.10.10:Icmp_seq=3ttl=254time=1.537ms
64bytes from 192.168.10.10:Icmp_seq=4ttl=254time=1.577ms
Wherein, time indicates Latency response time.Latency response time is shorter, then it is better to represent network condition.
In the example above, multiple Latency response time is obtained, passes through the side being averaged to these Latency response times Formula calculates server finally corresponding Latency response time.
The mode of multiple exploitation average value, can promote the accuracy of Latency response time.
S103:According to fileinfo corresponding with the service IP address, the historic state of the server is determined Parameter.
The relevant information of file download is contained in fileinfo, for example, filename, file size, file start to download Time, end of file download time and file status information etc..
Filename is for distinguishing different files;File status information can reflect file download as a result, specific real In existing, digital representation file status information can be used, when file status information is " 0 ", indicates file download success;Work as file When status information is " 1 ", file download failure is indicated.
Historic state parameter can reflect network condition of the server within the past period.File download rate and File download success rate is directly related with the network condition of server, and file download rate is faster, file download success rate is higher, Illustrate that the network condition of server is better.In embodiments of the present invention, file download rate and file download success may be used The two parameters of rate are as historic state parameter.Specifically, can be according to file size that the fileinfo includes, file Start download time and end of file download time, calculates the file download rate of the server;And according to the file The file status information that information includes calculates the file download success rate of the server.
Each service IP address has its corresponding fileinfo, in the multiple service IP address for including in log information Occurs multiple situation there may be the same service IP address.For example, include 10 log informations in log information, every All include in log information there are one service IP address, these service IP address be followed successively by 192.168.10.10, 192.168.10.11、192.168.10.12、192.168.10.10、192.168.10.10、192.168.10.13、 192.168.10.14,192.168.10.135,192.168.10.10 and 192.168.10.16, wherein service IP address 192.168.10.10 occurring 4 times.
In log information, service IP address often occurs once, there is its corresponding fileinfo.But it comes from same The file download request of a service IP address, because on same server, network condition is the same.So , can be using service IP address as processing unit when calculation document downloading rate and file download success rate, it will be in log information The corresponding fileinfo of same service IP address is summarized, to calculate the corresponding file download of each service IP address Rate and file download success rate.
By taking file download rate as an example, opened comprising the file size corresponding to a file, file in a fileinfo The information such as download time and end of file download time that begin can first calculate under each file in embodiments of the present invention Rate is carried, then the downloading rate of the corresponding All Files of the same service IP address is averaged again, which is made For the corresponding file download rate of the service IP address.
It in the concrete realization, can be according to formula:File download rate=file size/(end of file download time-text Part starts download time), calculate the file download rate of each file.
By taking file download success rate as an example, the corresponding fileinfo of the same service IP address is summarized, Mei Gewen Include file status information in part information, can know the download of some file according to file status information as a result, being to download Success or failed download, so as to count the corresponding file download success rate of the service IP address.
S104:According to preset rules, to the corresponding running state parameter of all service IP address and described go through History state parameter is handled, and determines the corresponding precedence information of each service IP address, and the priority is believed In breath update to database.
Each service IP address has its corresponding running state parameter and historic state parameter.
It in embodiments of the present invention, can be according to the weighted value of preset parameters, to all business IP The corresponding running state parameter in address and historic state parameter progress are integrated ordered, determine each business IP The corresponding precedence information in address.
In view of running state parameter reflects the current network conditions of service IP address, historic state parameter reflects industry The web-based history situation for IP address of being engaged in, so, in the setting of weighted value, the weighted value of running state parameter can be arranged It is higher than running state parameter.
Using Latency response time as running state parameter, file download rate and file download success rate are as history shape For state parameter, the weighted value more than file download rate that the weighted value of Latency response time can be arranged, file download The weighted value more than file download success rate of the weighted value setting of rate.It, can be according to accordingly when carrying out integrated ordered The sequence of Latency response time from small to large, is ranked up each service IP address;When there is multiple service IP address corresponding When Latency response time is identical, then the sequence according to the file download rate of these service IP address from high to low, to these industry Business IP address is ranked up;When there is the corresponding file download rate of multiple service IP address identical, then according to these business IP The sequence of the file download success rate of address from high to low, is ranked up these service IP address.In addition, when there are multiple industry When the case where Latency response time of IP address, file download rate and file download success rate all same of being engaged in, it can set at random The priority orders of these fixed service IP address, can also be according to the preferential of these service IP address originally stored in database Grade sequence is set, and is not specifically limited to this.
In the manner described above, after the sequence of finishing service IP address, can according to priority orders from high to low, according to The priority of the secondary each service IP address of setting.
It is to be ranked up to service IP address according to the weighted value of each parameter, naturally it is also possible to use it in above-mentioned introduction He carries out comprehensive analysis calculating by algorithm, is not specifically limited to this.
After determining the corresponding precedence information of each service IP address, the precedence information can be updated to number According in library, to realize that the dynamic of precedence information in database updates.
Correspondingly, document distribution system is when receiving the file download request that each operation system is sent, it can foundation The service IP address carried in each file download request obtains each file download request and corresponds to from the database Priority;Since the precedence information stored in database can dynamically be updated according to actual network environment, so The priority of file download request more rationally can ensure the stability of file download rate.
The precedence information of each service IP address can be stored in table form in the database, as shown in table 1,
Serial number Service IP address Priority
001 192.168.10.10 100
002 192.168.12.18 200
…… …… ……
Table 1
For example, from the file download request that IP address is 192.168.10.10, task scheduling modules are from database module It is 100 to inquire the corresponding task priority information of the IP address, then the download priority for its distribution is 100.
One service IP address corresponds to a server, on a server may there are one or multiple operation systems, often A operation system can send file download request according to business demand to document distribution system, same for the ease of distinguishing Different operation systems under service IP address, can be arranged corresponding System Number, namely in file download request in addition to It carries except service IP address and filename, it can be with carrying system number and request transmission time.
Wherein, the purpose that request transmission time is carried in file download request is to distinguish from the same service IP address Multiple file download requests priority.
When the same service IP address is corresponding with multiple file download requests, since what is stored in database is each business Therefore the corresponding priority of IP address can be these file download requests point according to the precedence information stored in database With identical priority, at this point, can be according to the sequencing of the request transmission time of each file download request, further Determine the priority of these file download requests.
For example, there are 2 to be asked from the download that IP address is 192.168.10.10, the request transmission time of A is asked to be 20180101000001, it is 20180101010101 to ask the request transmission time of B, then the download priority after distributing is respectively 100、101。
It should be noted that log information is stored in database, in addition to being used to calculate running state parameter and going through Outside history state parameter, the specifying information for recording each file download request is can be also used for, for use in looking into whenever necessary in the future It sees details, can also include file download correspondingly, in log information other than including service IP address and fileinfo The request transmission time of request.
By obtaining log information it can be seen from above-mentioned technical proposal;According to the business IP for including in log information Location obtains the running state parameter of corresponding server;The running state parameter can reflect the current network of server Situation.According to fileinfo corresponding with the service IP address, it may be determined that go out the historic state parameter of the server; According to preset rules, all corresponding running state parameters of service IP address and the historic state parameter are carried out Processing determines the corresponding precedence information of each service IP address, and the precedence information is updated to database In.The technical solution dynamically updates each industry by the network condition of the server where each operation system of multi dimensional analysis The corresponding priority of IP address of being engaged in, to solve the file download rate frequency that traditional random schedule or Fixed-priority Scheduling Strategy generate Numerous problem shaken and whole download efficiency is not high.
Fig. 2 is a kind of structural schematic diagram of the system of adjustment task priority provided in an embodiment of the present invention, the system Including log acquisition unit 21, parameter acquiring unit 22, determination unit 23 and processing unit 24;
The log acquisition unit 21, for obtaining log information;Wherein, the log information includes multiple business IP Location and fileinfo corresponding with each service IP address;
The parameter acquiring unit 22, for according to each service IP address, obtaining the fortune of corresponding server Row state parameter;
The determination unit 23, for according to fileinfo corresponding with the service IP address, determining the clothes The historic state parameter of business device;
The processing unit 24, for according to preset rules, the operation shape corresponding to all service IP address State parameter and the historic state parameter are handled, and determine the corresponding precedence information of each service IP address, and It will be in precedence information update to database.
Optionally, the log acquisition unit is specifically used for according to preset cycle time, from the database Obtain the log information stored in the cycle time.
Optionally, the determination unit includes rate calculations subelement and success rate computation subunit;
The rate calculations subelement, file size, file for including according to the fileinfo start to download Time and end of file download time calculate the file download rate of the server;
The success rate computation subunit, the file status information for including according to the fileinfo, calculates The file download success rate of the server.
Optionally, the processing unit is specifically used for the weighted value according to preset parameters, to all described The corresponding running state parameter of service IP address and historic state parameter progress are integrated ordered, determine each described The corresponding precedence information of service IP address.
The explanation of feature may refer to the related description of embodiment corresponding to Fig. 1 in embodiment corresponding to Fig. 2, here no longer It repeats one by one.
By obtaining log information it can be seen from above-mentioned technical proposal;According to the business IP for including in log information Location obtains the running state parameter of corresponding server;The running state parameter can reflect the current network of server Situation.According to fileinfo corresponding with the service IP address, it may be determined that go out the historic state parameter of the server; According to preset rules, all corresponding running state parameters of service IP address and the historic state parameter are carried out Processing determines the corresponding precedence information of each service IP address, and the precedence information is updated to database In.The technical solution dynamically updates each industry by the network condition of the server where each operation system of multi dimensional analysis The corresponding priority of IP address of being engaged in, to solve the file download rate frequency that traditional random schedule or Fixed-priority Scheduling Strategy generate Numerous problem shaken and whole download efficiency is not high.
Fig. 3 is a kind of hardware architecture diagram of the system 30 of adjustment task priority provided in an embodiment of the present invention, packet It includes:Memory 31, for storing computer program;Processor 32, for executing the computer program to realize such as above-mentioned tune The step of method of whole task priority.
Be provided for the embodiments of the invention above it is a kind of adjustment task priority method and system carried out detailed Jie It continues.Each embodiment is described by the way of progressive in specification, the highlights of each of the examples are with other embodiment Difference, just to refer each other for identical similar portion between each embodiment.For system disclosed in embodiment, by It is corresponded to the methods disclosed in the examples in it, so description is fairly simple, reference may be made to the description of the method. It should be pointed out that for those skilled in the art, it without departing from the principle of the present invention, can also be right Some improvement and modification can also be carried out by the present invention, these improvement and modification are also fallen within the protection scope of the claims of the present invention.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, depends on the specific application and design constraint of technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.

Claims (9)

1. a kind of method of adjustment task priority, which is characterized in that including:
Obtain log information;Wherein, the log information include multiple service IP address and with each service IP address Corresponding fileinfo;
According to each service IP address, the running state parameter of corresponding server is obtained;
According to fileinfo corresponding with the service IP address, the historic state parameter of the server is determined;
According to preset rules, to all corresponding running state parameters of service IP address and the historic state parameter It is handled, determines the corresponding precedence information of each service IP address, and the precedence information is updated to number According in library.
2. according to the method described in claim 1, it is characterized in that, the acquisition log information includes:
According to preset cycle time, the log information stored in the cycle time is obtained from the database.
3. according to the method described in claim 1, it is characterized in that, foundation file corresponding with the service IP address Information determines that the historic state parameter of the server includes:
The file size that includes according to the fileinfo, file start download time and end of file download time, calculate Go out the file download rate of the server;
According to the file status information that the fileinfo includes, the file download success rate of the server is calculated.
4. according to the method described in claim 1-3 any one, which is characterized in that it is described according to preset rules, to all institutes It states the corresponding running state parameter of service IP address and the historic state parameter is handled, determine each industry The corresponding precedence information of business IP address includes:
According to the weighted value of preset parameters, the running state parameter corresponding to all service IP address It is integrated ordered with historic state parameter progress, determine the corresponding precedence information of each service IP address.
5. a kind of system of adjustment task priority, which is characterized in that including log acquisition unit, parameter acquiring unit, determination Unit and processing unit;
The log acquisition unit, for obtaining log information;Wherein, the log information include multiple service IP address and Fileinfo corresponding with each service IP address;
The parameter acquiring unit, for according to each service IP address, obtaining the operating status of corresponding server Parameter;
The determination unit, for according to fileinfo corresponding with the service IP address, determining the server Historic state parameter;
The processing unit, for according to preset rules, the running state parameter corresponding to all service IP address It is handled with the historic state parameter, determines the corresponding precedence information of each service IP address, and will be described In precedence information update to database.
6. system according to claim 5, which is characterized in that the log acquisition unit is specifically used for according to presetting Cycle time, obtain the log information stored in the cycle time from the database.
7. system according to claim 5, which is characterized in that the determination unit includes rate calculations subelement and successfully Rate computation subunit;
The rate calculations subelement, file size, file for including according to the fileinfo start download time With end of file download time, the file download rate of the server is calculated;
The success rate computation subunit, the file status information for including according to the fileinfo calculate described The file download success rate of server.
8. according to the system described in claim 5-7 any one, which is characterized in that the processing unit is specifically used for according to pre- The weighted value of the parameters first set, to all corresponding running state parameters of service IP address and the history State parameter progress is integrated ordered, determines the corresponding precedence information of each service IP address.
9. a kind of system of adjustment task priority, which is characterized in that including:
Memory, for storing computer program;
Processor adjusts priority of task for executing the computer program to realize as described in Claims 1-4 any one The step of method of grade.
CN201810159315.9A 2018-02-26 2018-02-26 Method and system for adjusting task priority Active CN108377268B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810159315.9A CN108377268B (en) 2018-02-26 2018-02-26 Method and system for adjusting task priority

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810159315.9A CN108377268B (en) 2018-02-26 2018-02-26 Method and system for adjusting task priority

Publications (2)

Publication Number Publication Date
CN108377268A true CN108377268A (en) 2018-08-07
CN108377268B CN108377268B (en) 2020-12-11

Family

ID=63018063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810159315.9A Active CN108377268B (en) 2018-02-26 2018-02-26 Method and system for adjusting task priority

Country Status (1)

Country Link
CN (1) CN108377268B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413610A (en) * 2019-06-19 2019-11-05 中国平安财产保险股份有限公司 Improve method and system, the database server of business datum report export efficiency
CN112583740A (en) * 2019-09-30 2021-03-30 北京国双科技有限公司 Network communication method and device
CN115242623A (en) * 2022-07-25 2022-10-25 济南浪潮数据技术有限公司 Log collection method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030204603A1 (en) * 2002-04-26 2003-10-30 International Business Machines Corporation Efficient delivery of boot code images from a network server
CN102480529A (en) * 2010-11-24 2012-05-30 北京无线恒远科技有限公司 Domain name analysis method and domain name analysis server for realizing load balance of wide area network
CN103248660A (en) * 2012-02-13 2013-08-14 深圳市腾讯计算机系统有限公司 Method and system for cloud subscription downloading
CN104105209A (en) * 2013-04-03 2014-10-15 华为技术有限公司 Multi-system resource management method and device
CN107291545A (en) * 2017-08-07 2017-10-24 星环信息科技(上海)有限公司 The method for scheduling task and equipment of multi-user in computing cluster

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030204603A1 (en) * 2002-04-26 2003-10-30 International Business Machines Corporation Efficient delivery of boot code images from a network server
CN102480529A (en) * 2010-11-24 2012-05-30 北京无线恒远科技有限公司 Domain name analysis method and domain name analysis server for realizing load balance of wide area network
CN103248660A (en) * 2012-02-13 2013-08-14 深圳市腾讯计算机系统有限公司 Method and system for cloud subscription downloading
CN104105209A (en) * 2013-04-03 2014-10-15 华为技术有限公司 Multi-system resource management method and device
CN107291545A (en) * 2017-08-07 2017-10-24 星环信息科技(上海)有限公司 The method for scheduling task and equipment of multi-user in computing cluster

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413610A (en) * 2019-06-19 2019-11-05 中国平安财产保险股份有限公司 Improve method and system, the database server of business datum report export efficiency
CN110413610B (en) * 2019-06-19 2023-10-27 中国平安财产保险股份有限公司 Method and system for improving export efficiency of business data report forms and database server
CN112583740A (en) * 2019-09-30 2021-03-30 北京国双科技有限公司 Network communication method and device
CN112583740B (en) * 2019-09-30 2023-04-07 北京国双科技有限公司 Network communication method and device
CN115242623A (en) * 2022-07-25 2022-10-25 济南浪潮数据技术有限公司 Log collection method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN108377268B (en) 2020-12-11

Similar Documents

Publication Publication Date Title
CN104967619B (en) File push methods, devices and systems
US10831387B1 (en) Snapshot reservations in a distributed storage system
CN108377268A (en) A kind of method and system of adjustment task priority
CN105893044B (en) Icon generation method and device
CN102687144A (en) Managing queries
CN108604194A (en) Probability adjusting
US9692648B2 (en) Dynamically managing a system of servers
CN106815254A (en) A kind of data processing method and device
CN103391312A (en) Resource offline downloading method and device
CN109710665A (en) Report downloading method, apparatus, equipment and readable storage medium storing program for executing
CN109150608A (en) Interface service upgrade method and system for voice dialogue platform
CN109669915A (en) A kind of computer task management method, device and relevant device
CN109241099A (en) A kind of data query method and terminal device
CN110083600A (en) A kind of method, apparatus, calculating equipment and the storage medium of log collection processing
CN110531933A (en) Data processing method and server
CN110134707A (en) A kind of data query method, apparatus, electronic equipment and storage medium
CN116383248A (en) Data query task acceleration method, device, equipment and storage medium
CN108733839A (en) A kind of statistical method and device of mass data
CN109150757A (en) A kind of advertising resource processing method, device and electronic equipment
CN106713456A (en) Network bandwidth statistics method and device
CN109246234A (en) A kind of image file method for down loading, device, electronic equipment and storage medium
CN111082964B (en) Distribution method and device of configuration information
CN116881012A (en) Container application vertical capacity expansion method, device, equipment and readable storage medium
CN110442455A (en) A kind of data processing method and device
CN110007946A (en) A kind of update method of algorithm model, device, equipment and medium

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
CB02 Change of applicant information

Address after: Guangdong Nanshan District street of Shenzhen city in Guangdong province 518000 Shenzhen international software park a 8 Building 202 room

Applicant after: Shenzhen Weizhong credit Technology Co., Ltd

Address before: Guangdong Nanshan District street of Shenzhen city in Guangdong province 518000 Shenzhen international software park a 8 Building 202 room

Applicant before: Shenzhen micro tax silver Information Service Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant