CN108377268B - Method and system for adjusting task priority - Google Patents

Method and system for adjusting task priority Download PDF

Info

Publication number
CN108377268B
CN108377268B CN201810159315.9A CN201810159315A CN108377268B CN 108377268 B CN108377268 B CN 108377268B CN 201810159315 A CN201810159315 A CN 201810159315A CN 108377268 B CN108377268 B CN 108377268B
Authority
CN
China
Prior art keywords
service
file
address
state parameters
information
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.)
Active
Application number
CN201810159315.9A
Other languages
Chinese (zh)
Other versions
CN108377268A (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 Weizhong Credit Technology Co ltd
Original Assignee
Shenzhen Weizhong Credit 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 Shenzhen Weizhong Credit Technology Co ltd filed Critical Shenzhen Weizhong Credit Technology 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

Images

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

Abstract

The embodiment of the invention discloses a method and a system for adjusting task priority, which are used for acquiring log information; the log information comprises a plurality of service IP addresses and file information corresponding to each service IP address; acquiring the running state parameters of the corresponding server according to each service IP address; according to the file information corresponding to the service IP address, the historical state parameters of the server can be determined; and processing the running state parameters and the historical state parameters corresponding to all the service IP addresses according to a preset rule, determining the priority information corresponding to each service IP address, and updating the priority information into a database. According to the technical scheme, the network condition of the server where each service system is located is analyzed in a multi-dimensional mode, the priority corresponding to each service IP address is dynamically updated, and the problems that the file downloading rate is frequently jittered and the overall downloading efficiency is low are effectively solved.

Description

Method and system for adjusting task priority
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and a system for adjusting task priorities.
Background
The file distribution system is a system for storing business-related files in a centralized manner and providing file distribution and download services for other business systems. When an enterprise business system needs a certain business file, a file downloading request is sent to a file distribution system, and the file distribution system returns a corresponding file to the business system sending the request.
With the business development of the enterprise, the complexity of the business system of the enterprise is further improved, and at this time, in order to reduce the complexity of the system, the business system is decoupled and decomposed into a plurality of business systems, and each business system is responsible for single business processing. And with the increase of service systems, the file downloading requests processed by the file distribution system are also multiplied correspondingly, at the moment, the file distribution system allocates downloading task priorities to the downloading requests, the downloading requests are scheduled according to the downloading task priorities, and otherwise the downloading requests cannot be processed.
However, the conventional downloading task scheduling method generally adopts a random scheduling strategy or a fixed priority scheduling strategy, and this method often causes the problem of frequent jitter of the downloading rate due to the influence of factors such as the network environment of each service system, thereby affecting the overall downloading efficiency of the file distribution system. If the network condition of each service system can be comprehensively considered, the task priority is dynamically adjusted according to the network condition, and the overall downloading efficiency of the file distribution system is greatly improved.
Therefore, how to implement dynamic adjustment of task priority is an urgent problem to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a system for adjusting task priority, which can realize dynamic adjustment of the task priority and effectively solve the problems of frequent jitter of file downloading rate and low overall downloading efficiency.
To solve the foregoing technical problem, an embodiment of the present invention provides a method for adjusting task priority, including:
acquiring log information; the log information comprises a plurality of service IP addresses and file information corresponding to each service IP address;
acquiring the running state parameters of the corresponding server according to each service IP address;
determining the historical state parameters of the server according to the file information corresponding to the service IP address;
and processing the running state parameters and the historical state parameters corresponding to all the service IP addresses according to a preset rule, determining priority information corresponding to each service IP address, and updating the priority information into a database.
Optionally, the obtaining log information includes:
and acquiring the log information stored in the period time from the database according to the preset period time.
Optionally, the determining the historical state parameter of the server according to the file information corresponding to the service IP address includes:
calculating the file downloading rate of the server according to the file size, the file starting downloading time and the file ending downloading time which are included in the file information;
and calculating the file downloading success rate of the server according to the file state information included in the file information.
Optionally, the processing the operating state parameters and the historical state parameters corresponding to all the service IP addresses according to a preset rule, and determining the priority information corresponding to each service IP address includes:
and comprehensively sequencing the running state parameters and the historical state parameters corresponding to all the service IP addresses according to the preset weighted values of all the parameters to determine the priority information corresponding to all the service IP addresses.
The embodiment of the invention also provides a system for adjusting the task priority, which comprises a log acquisition unit, a parameter acquisition unit, a determination unit and a processing unit;
the log obtaining unit is used for obtaining log information; the log information comprises a plurality of service IP addresses and file information corresponding to each service IP address;
the parameter acquiring unit is used for acquiring the running state parameters of the corresponding server according to each service IP address;
the determining unit is used for determining the historical state parameters of the server according to the file information corresponding to the service IP address;
and the processing unit is used for processing the running state parameters and the historical state parameters corresponding to all the service IP addresses according to a preset rule, determining priority information corresponding to each service IP address, and updating the priority information into a database.
Optionally, the log obtaining unit is specifically configured to obtain, according to a preset cycle time, log information stored in the cycle time from the database.
Optionally, the determining unit includes a rate calculating subunit and a success rate calculating subunit;
the rate calculation subunit is configured to calculate a file download rate of the server according to a file size, a file start download time, and a file end download time included in the file information;
and the success rate calculating subunit is used for calculating the file downloading success rate of the server according to the file state information included in the file information.
Optionally, the processing unit is specifically configured to perform comprehensive sequencing on the operating state parameters and the historical state parameters corresponding to all the service IP addresses according to preset weighted values of the parameters, and determine priority information corresponding to each service IP address.
The embodiment of the invention also provides a system for adjusting task priority, which comprises:
a memory for storing a computer program;
a processor for executing said computer program for carrying out the steps of the method for adjusting task priorities as described above.
According to the technical scheme, the log information is acquired; acquiring the running state parameters of the corresponding server according to the service IP address contained in the log information; the operating state parameter may reflect the current network condition of the server. According to the file information corresponding to the service IP address, the historical state parameters of the server can be determined; and processing the running state parameters and the historical state parameters corresponding to all the service IP addresses according to a preset rule, determining priority information corresponding to each service IP address, and updating the priority information into a database. According to the technical scheme, the network condition of a server where each service system is located is analyzed in a multi-dimensional mode, and the priority corresponding to each service IP address is dynamically updated, so that the problems that the file downloading rate is frequently jittered and the overall downloading efficiency is low due to the traditional random scheduling or fixed priority scheduling are solved.
Drawings
In order to illustrate the embodiments of the present invention more clearly, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a method for adjusting task priority according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a system for adjusting task priorities according to an embodiment of the present invention;
fig. 3 is a schematic hardware structure diagram of a system for adjusting task priority according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The file distribution system stores the service-related files and can provide file distribution and download services for other service systems. According to the execution function of the file distribution system, the file distribution system can be divided into a file interface module, a task scheduling module, a database module, a cache module and a file storage module.
Conventionally, random scheduling or fixed priority scheduling policy is generally adopted to process a plurality of file download requests. Taking the fixed priority scheduling policy as an example, task priority information may be stored in a database module of the file distribution system, and the file interface module may forward a file download request to the task scheduling module after receiving the file download request from a plurality of different service systems. And the task scheduling module inquires corresponding priority information from the database module according to the file downloading request, allocates corresponding priority to the file downloading request and returns the corresponding priority to the file interface module. And the file interface module acquires the file specified by each file downloading request from the buffer module according to the distributed priority. If the cache module does not have the file specified by the file downloading request, the file interface module acquires the corresponding file from the file storage module. The file interface module returns the acquired files to each service system initiating the request, and stores the related log information to the database module.
When a random scheduling strategy or a fixed priority scheduling strategy is adopted, actual network environment factors are not taken into consideration. When a plurality of file downloading requests exist, the file downloading rate is changed from fast to slow and frequently. Sometimes, the downloading of the first processed request is too slow to block the later request which can be downloaded quickly, so that the overall downloading efficiency is affected.
Therefore, the embodiment of the invention provides a method and a system for adjusting task priority, which are implemented by acquiring log information; acquiring the running state parameters of the corresponding server according to the service IP address contained in the log information; determining the historical state parameters of the server according to the file information corresponding to the service IP address; the operation state parameters and the historical state parameters reflect the network condition of a server where a service system is located, the operation state parameters and the historical state parameters corresponding to all the service IP addresses are processed according to preset rules, priority information corresponding to all the service IP addresses can be determined, and the priority information is updated to a database so as to complete dynamic updating of task priorities. After the file distribution system receives the file downloading request, the corresponding priority can be distributed to the file downloading request according to the updated priority information. The priority information stored in the database is dynamically updated according to the network condition of each service IP address, so that the problems of frequent jitter of file downloading rate and low overall downloading efficiency caused by the traditional random scheduling or fixed priority scheduling are effectively solved.
Next, a method for adjusting task priority according to an embodiment of the present invention is described in detail. Fig. 1 is a flowchart of a method for adjusting task priority according to an embodiment of the present invention, where the method includes:
s101: and acquiring log information.
After the file distribution system completes the corresponding file downloading task, the generated log information is stored in the database.
Each piece of log information contains a service IP address and corresponding file information. As time accumulates, a large amount of log information is stored in the database, and accordingly, the obtained log information may include a plurality of service IP addresses and file information corresponding to each of the service IP addresses.
According to the service IP address, the corresponding server can be searched, so that the real-time network condition of the server is obtained. The file information includes related information during file downloading, and the information can reflect the corresponding network condition during file downloading. In the embodiment of the invention, the task priority is updated mainly according to the service IP address and the file information in the log information.
In view of the fact that the data volume of the log information stored in the database is large, and the log information in a period of time closest to the current time can reflect the network condition of the server when the file is downloaded, in the embodiment of the present invention, the log information stored in the period of time can be obtained from the database according to the preset period of time. Accordingly, the task priority can be updated once in a cycle time.
The period of the cycle time may be set according to actual requirements, and is not specifically limited herein.
S102: and acquiring the running state parameters of the corresponding server according to each service IP address.
One service IP address corresponds to one server, and the file distribution system tests the running state parameters of the server according to the service IP address information. The operation state parameter reflects the real-time operation condition of the server.
The delay response time or the packet loss rate of the server can accurately reflect the current network condition of the server, and in the embodiment of the invention, the delay response time or the packet loss rate can be used as the running state parameter of the server.
In a specific implementation, a ping command may be used to test a real-time network condition of a server corresponding to a service IP address.
Taking the delayed response time as an example, the ping command for obtaining the delayed response time with the service IP address of 192.168.10.10 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
where time represents the delay response time. The shorter the delay response time, the better the network condition.
In the above example, the delay response times are obtained multiple times, and the delay response time finally corresponding to the server is calculated by averaging the delay response times.
The accuracy of the delay response time can be improved by a mode of taking values and calculating the average value for multiple times.
S103: and determining the historical state parameters of the server according to the file information corresponding to the service IP address.
The file information includes information related to file downloading, such as a file name, a file size, a file start downloading time, a file end downloading time, and file status information.
The file names are used for distinguishing different files; the file state information can reflect the result of file downloading, in the concrete implementation, the file state information can be represented by numbers, and when the file state information is '0', the file downloading is successful; when the file status information is "1", it indicates that the file download failed.
The historical state parameters may reflect network conditions of the server over a period of time in the past. The file downloading rate and the file downloading success rate are directly related to the network condition of the server, and the faster the file downloading rate is, the higher the file downloading success rate is, the better the network condition of the server is. In the embodiment of the invention, two parameters of the file downloading rate and the file downloading success rate can be used as the historical state parameters. Specifically, the file downloading rate of the server may be calculated according to the file size, the file start downloading time, and the file end downloading time included in the file information; and calculating the success rate of downloading the file of the server according to the file state information included in the file information.
Each service IP address has corresponding file information, and the condition that the same service IP address appears for multiple times may exist in a plurality of service IP addresses contained in the log information. For example, the log information includes 10 pieces of log information, each piece of log information includes a service IP address, and the service IP addresses are 192.168.10.10, 192.168.10.11, 192.168.10.12, 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 in sequence, where the service IP address 192.168.10.10 appears 4 times.
In the log information, each time the service IP address appears, the corresponding file information is available. But the network situation is the same because the file download requests from the same service IP address are on the same server. Therefore, when the file downloading rate and the file downloading success rate are calculated, the service IP addresses can be used as the processing unit, and the file information corresponding to the same service IP address in the log information is collected, so that the file downloading rate and the file downloading success rate corresponding to each service IP address are calculated.
Taking the file download rate as an example, one file information includes information such as the file size, the file start download time, and the file end download time corresponding to one file.
In a specific implementation, the following formula may be used: the file download rate is the file size/(file end download time-file start download time), and the file download rate of each file is calculated.
Taking the success rate of file downloading as an example, the file information corresponding to the same service IP address is summarized, each file information contains file status information, and whether the downloading result of a certain file is successful or unsuccessful can be known according to the file status information, so that the success rate of file downloading corresponding to the service IP address can be counted.
S104: and processing the running state parameters and the historical state parameters corresponding to all the service IP addresses according to a preset rule, determining priority information corresponding to each service IP address, and updating the priority information into a database.
Each service IP address has corresponding operation state parameters and historical state parameters.
In the embodiment of the present invention, the operating state parameters and the historical state parameters corresponding to all the service IP addresses may be comprehensively sorted according to the preset weight values of the parameters, so as to determine the priority information corresponding to each service IP address.
Considering that the operating state parameter reflects the current network condition of the service IP address, and the historical state parameter reflects the historical network condition of the service IP address, the weight value of the operating state parameter can be set higher than that of the operating state parameter in setting the weight value.
Taking the delayed response time as the operating state parameter and the file download rate and the file download success rate as the historical state parameters as examples, the weighted value of the delayed response time may be set to be a weighted value greater than the file download rate, and the weighted value of the file download rate may be set to be a weighted value greater than the file download success rate. Correspondingly, when the comprehensive sequencing is carried out, all the service IP addresses can be sequenced according to the sequence of delay response time from small to large; when the delay response time corresponding to a plurality of service IP addresses is the same, sequencing the service IP addresses according to the sequence of the file downloading speed of the service IP addresses from high to low; and when the file downloading rates corresponding to a plurality of service IP addresses are the same, sequencing the service IP addresses according to the sequence from high to low of the file downloading success rates of the service IP addresses. In addition, when the delay response time, the file download rate, and the file download success rate of the plurality of service IP addresses are the same, the priority order of the service IP addresses may be randomly set, or may be set according to the priority order of the service IP addresses that is previously stored in the database, which is not specifically limited.
According to the above mode, after finishing the sequencing of the service IP addresses, the priority of each service IP address can be set in turn according to the priority sequence from high to low.
In the above description, the service IP addresses are sorted according to the weight of each parameter, and certainly, other algorithms may be used to perform comprehensive analysis and calculation, which is not specifically limited.
After the priority information corresponding to each service IP address is determined, the priority information can be updated to a database so as to realize dynamic update of the priority information in the database.
Correspondingly, when receiving a file downloading request sent by each service system, the file distribution system can obtain the priority corresponding to each file downloading request from the database according to the service IP address carried in each file downloading request; because the priority information stored in the database can be dynamically updated according to the actual network environment, the priority of the file downloading request can be more reasonable, and the stability of the file downloading rate is ensured.
The priority information of each service IP address may be stored in a database in the form of a table, as shown in table 1,
serial number Service IP address Priority level
001 192.168.10.10 100
002 192.168.12.18 200
…… …… ……
TABLE 1
For example, from a file download request with an IP address of 192.168.10.10, the task scheduling module queries from the database module that the task priority information corresponding to the IP address is 100, and then allocates the download priority to the file download request as 100.
One service IP address corresponds to one server, one server may have one or more service systems, each service system may send a file download request to a file distribution system according to service requirements, and in order to distinguish different service systems under the same service IP address, a corresponding system number may be set, that is, the file download request may carry a system number and request sending time in addition to the service IP address and the file name.
The purpose of carrying the request sending time in the file downloading request is to distinguish the priority of a plurality of file downloading requests from the same service IP address.
When the same service IP address corresponds to a plurality of file downloading requests, the priority corresponding to each service IP address is stored in the database, so that the same priority can be allocated to the file downloading requests according to the priority information stored in the database, and at the moment, the priority of the file downloading requests can be further determined according to the sequence of the request sending time of each file downloading request.
For example, if there are 2 download requests from 192.168.10.10 IP addresses, the request transmission time of request a is 20180101000001, and the request transmission time of request B is 20180101010101, the assigned download priorities are 100 and 101, respectively.
It should be noted that the log information is stored in the database, and besides being used for calculating the operating state parameter and the historical state parameter, the log information can also be used for recording specific information of each file download request, so as to be used for viewing detailed conditions in future when necessary, and correspondingly, the log information can also include request sending time of the file download request besides the service IP address and the file information.
According to the technical scheme, the log information is acquired; acquiring the running state parameters of the corresponding server according to the service IP address contained in the log information; the operating state parameter may reflect the current network condition of the server. According to the file information corresponding to the service IP address, the historical state parameters of the server can be determined; and processing the running state parameters and the historical state parameters corresponding to all the service IP addresses according to a preset rule, determining priority information corresponding to each service IP address, and updating the priority information into a database. According to the technical scheme, the network condition of a server where each service system is located is analyzed in a multi-dimensional mode, and the priority corresponding to each service IP address is dynamically updated, so that the problems that the file downloading rate is frequently jittered and the overall downloading efficiency is low due to the traditional random scheduling or fixed priority scheduling are solved.
Fig. 2 is a schematic structural diagram of a system for adjusting task priority according to an embodiment of the present invention, where the system includes a log obtaining unit 21, a parameter obtaining unit 22, a determining unit 23, and a processing unit 24;
the log obtaining unit 21 is configured to obtain log information; the log information comprises a plurality of service IP addresses and file information corresponding to each service IP address;
the parameter obtaining unit 22 is configured to obtain an operating state parameter of a corresponding server according to each service IP address;
the determining unit 23 is configured to determine a historical state parameter of the server according to the file information corresponding to the service IP address;
the processing unit 24 is configured to process the operating state parameters and the historical state parameters corresponding to all the service IP addresses according to a preset rule, determine priority information corresponding to each service IP address, and update the priority information to a database.
Optionally, the log obtaining unit is specifically configured to obtain, according to a preset cycle time, log information stored in the cycle time from the database.
Optionally, the determining unit includes a rate calculating subunit and a success rate calculating subunit;
the rate calculation subunit is configured to calculate a file download rate of the server according to a file size, a file start download time, and a file end download time included in the file information;
and the success rate calculating subunit is used for calculating the file downloading success rate of the server according to the file state information included in the file information.
Optionally, the processing unit is specifically configured to perform comprehensive sequencing on the operating state parameters and the historical state parameters corresponding to all the service IP addresses according to preset weighted values of the parameters, and determine priority information corresponding to each service IP address.
The description of the features in the embodiment corresponding to fig. 2 may refer to the related description of the embodiment corresponding to fig. 1, and is not repeated here.
According to the technical scheme, the log information is acquired; acquiring the running state parameters of the corresponding server according to the service IP address contained in the log information; the operating state parameter may reflect the current network condition of the server. According to the file information corresponding to the service IP address, the historical state parameters of the server can be determined; and processing the running state parameters and the historical state parameters corresponding to all the service IP addresses according to a preset rule, determining priority information corresponding to each service IP address, and updating the priority information into a database. According to the technical scheme, the network condition of a server where each service system is located is analyzed in a multi-dimensional mode, and the priority corresponding to each service IP address is dynamically updated, so that the problems that the file downloading rate is frequently jittered and the overall downloading efficiency is low due to the traditional random scheduling or fixed priority scheduling are solved.
Fig. 3 is a schematic hardware structure diagram of a system 30 for adjusting task priority according to an embodiment of the present invention, including: a memory 31 for storing a computer program; a processor 32 for executing said computer program for carrying out the steps of the method of adjusting task priorities as described above.
The method and system for adjusting task priority provided by the embodiments of the present invention are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

Claims (5)

1. A method for adjusting task priority, comprising:
acquiring log information; the log information comprises a plurality of service IP addresses and file information corresponding to each service IP address;
acquiring the running state parameters of the corresponding server according to each service IP address;
determining the historical state parameters of the server according to the file information corresponding to the service IP address;
processing the running state parameters and the historical state parameters corresponding to all the service IP addresses according to a preset rule, determining priority information corresponding to each service IP address, and updating the priority information into a database;
the determining the historical state parameters of the server according to the file information corresponding to the service IP address comprises:
calculating the file downloading rate of the server according to the file size, the file starting downloading time and the file ending downloading time which are included in the file information;
calculating the file downloading success rate of the server according to the file state information included in the file information;
processing the operating state parameters and the historical state parameters corresponding to all the service IP addresses according to a preset rule, and determining the priority information corresponding to each service IP address comprises the following steps:
and comprehensively sequencing the running state parameters and the historical state parameters corresponding to all the service IP addresses according to the preset weighted values of all the parameters to determine the priority information corresponding to all the service IP addresses.
2. The method of claim 1, wherein obtaining log information comprises:
and acquiring the log information stored in the period time from the database according to the preset period time.
3. A system for adjusting task priority is characterized by comprising a log acquisition unit, a parameter acquisition unit, a determination unit and a processing unit;
the log obtaining unit is used for obtaining log information; the log information comprises a plurality of service IP addresses and file information corresponding to each service IP address;
the parameter acquiring unit is used for acquiring the running state parameters of the corresponding server according to each service IP address;
the determining unit is used for determining the historical state parameters of the server according to the file information corresponding to the service IP address;
the processing unit is used for processing the running state parameters and the historical state parameters corresponding to all the service IP addresses according to a preset rule, determining priority information corresponding to each service IP address, and updating the priority information into a database;
the determining unit comprises a rate calculating subunit and a success rate calculating subunit;
the rate calculation subunit is configured to calculate a file download rate of the server according to a file size, a file start download time, and a file end download time included in the file information;
the success rate calculating subunit is used for calculating the file downloading success rate of the server according to the file state information included in the file information;
the processing unit is specifically configured to perform comprehensive sequencing on the operating state parameters and the historical state parameters corresponding to all the service IP addresses according to preset weighted values of the parameters, and determine priority information corresponding to each service IP address.
4. The system according to claim 3, wherein the log obtaining unit is specifically configured to obtain, from the database, log information stored in a preset cycle time according to the cycle time.
5. A system for adjusting task priority, comprising:
a memory for storing a computer program;
a processor for executing the computer program for carrying out the steps of the method of adjusting task priority according to any one of claims 1 to 2.
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 CN108377268A (en) 2018-08-07
CN108377268B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413610B (en) * 2019-06-19 2023-10-27 中国平安财产保险股份有限公司 Method and system for improving export efficiency of business data report forms and database server
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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7171479B2 (en) * 2002-04-26 2007-01-30 International Business Machines Corporation Efficient delivery of boot code images from a network server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN108377268A (en) 2018-08-07

Similar Documents

Publication Publication Date Title
CN110365765B (en) Bandwidth scheduling method and device of cache server
CN107423120B (en) Task scheduling method and device
US9984013B2 (en) Method, controller, and system for service flow control in object-based storage system
CN108377268B (en) Method and system for adjusting task priority
CN112162865A (en) Server scheduling method and device and server
CN109101325B (en) Task scheduling method, device and system and electronic equipment
CN110659123B (en) Distributed task distribution scheduling method and device based on message
US20200012602A1 (en) Cache allocation method, and apparatus
US9647915B2 (en) Detailed end-to-end latency tracking of messages
US20220417342A1 (en) System and method for pushing information, and device and storage medium thereof
CN109981702B (en) File storage method and system
CN110191159B (en) Load adjusting method, system and equipment of resource server
CN113347111B (en) Flow adjusting method and management system based on user experience
CN113810304A (en) Load balancing method, device, equipment and computer storage medium
CN112346829A (en) Method and equipment for task scheduling
CN110471749A (en) Task processing method, device, computer readable storage medium and computer equipment
CN106713456B (en) Network bandwidth statistical method and device
CN110825533B (en) Data transmitting method and device
CN111338679A (en) Software upgrading method and device and related equipment
CN104850431B (en) Stabilized treatment method and apparatus based on FOTA upgrading
CN115086299B (en) File downloading method, device, equipment, medium and program product
CN112925472A (en) Request processing method and device, electronic equipment and computer storage medium
CN111277451A (en) Service evaluation method, device, terminal equipment and medium
CN116166181A (en) Cloud monitoring method and cloud management platform
CN114124763A (en) Method and system for measuring broadband access rate

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
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.

GR01 Patent grant
GR01 Patent grant