WO2019196277A1 - Refresh task assignment method, electronic device and storage medium - Google Patents

Refresh task assignment method, electronic device and storage medium Download PDF

Info

Publication number
WO2019196277A1
WO2019196277A1 PCT/CN2018/099412 CN2018099412W WO2019196277A1 WO 2019196277 A1 WO2019196277 A1 WO 2019196277A1 CN 2018099412 W CN2018099412 W CN 2018099412W WO 2019196277 A1 WO2019196277 A1 WO 2019196277A1
Authority
WO
WIPO (PCT)
Prior art keywords
refresh
task
current
machine
refresh task
Prior art date
Application number
PCT/CN2018/099412
Other languages
French (fr)
Chinese (zh)
Inventor
黄涛
杨勇
宋剑锋
钟宇料
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019196277A1 publication Critical patent/WO2019196277A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration

Definitions

  • the present application relates to the field of data processing technologies, and in particular, to a refresh task assignment method, an electronic device, and a storage medium.
  • the refresh of the data usually adopts a COGNOS model refresh mode
  • the COGNOS model refresh is generally a manual allocation refreshing machine or a scheduled task to customize the allocation refreshing machine, or adopting a setting refreshing machine.
  • Concurrency is the way to automatically schedule to assign tasks.
  • the above refresh method is not robust enough.
  • refreshing the machine will have to bear greater system performance pressure.
  • the refresh efficiency is rapidly decreasing, and there may be serious problems such as the aging of the report data commitment.
  • Such a refreshing method not only restricts the performance of the refreshing machine, but also seriously affects the refreshing efficiency when the performance of the refreshing machine is insufficient to support all the refreshing tasks.
  • a refresh task allocation method comprising:
  • the current refresh task is refreshed by the current refresh machine.
  • a refresh task assignment device comprising:
  • An obtaining unit configured to acquire a refresh task list, where the refresh task is stored in the refresh task list;
  • a determining unit configured to determine a current refresh task from the refresh task list according to the configured priority rule
  • the obtaining unit is further configured to acquire at least one refreshing machine
  • the determining unit is further configured to determine, according to performance parameters and concurrency of the at least one refreshing machine, a current refreshing machine;
  • a refreshing unit configured to refresh the current refresh task by using the current refreshing machine.
  • An electronic device comprising:
  • a memory storing at least one instruction
  • a non-volatile readable storage medium having stored therein at least one instruction, the at least one instruction being executed by a processor in an electronic device to implement the refresh task assignment method.
  • the present application obtains a refresh task list, where the refresh task list stores a refresh task; according to the configured priority rule, the current refresh task is determined from the refresh task list; and at least one refresh machine is acquired. Determining a current refreshing machine according to the performance parameter and the degree of concurrency of the at least one refreshing machine; refreshing the current refreshing task by using the current refreshing machine.
  • the manner of assigning each refresh task can be optimized, and the refresh efficiency can be improved.
  • FIG. 1 is a flow chart of a preferred embodiment of a refresh task assignment method of the present application.
  • FIG. 2 is a functional block diagram of a preferred embodiment of the refresh task assignment apparatus of the present application.
  • FIG. 3 is a schematic structural diagram of an electronic device according to a preferred embodiment of a method for implementing a refresh task according to the present application.
  • FIG. 1 it is a flowchart of a preferred embodiment of the refresh task assignment method of the present application.
  • the order of the steps in the flowchart may be changed according to different requirements, and some steps may be omitted.
  • the refresh task assignment method is applied to one or more electronic devices, which are devices capable of automatically performing numerical calculation and/or information processing according to preset or stored instructions, the hardware including but not It is limited to a microprocessor, an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a digital signal processor (DSP), an embedded device, and the like.
  • ASIC application specific integrated circuit
  • FPGA field-programmable gate array
  • DSP digital signal processor
  • the electronic device can be any electronic product that can interact with a user, such as a personal computer, a tablet, a smart phone, a personal digital assistant (PDA), a game machine, an interactive network television ( Internet Protocol Television (IPTV), smart wearable devices, etc.
  • a personal computer such as a personal computer, a tablet, a smart phone, a personal digital assistant (PDA), a game machine, an interactive network television ( Internet Protocol Television (IPTV), smart wearable devices, etc.
  • PDA personal digital assistant
  • IPTV Internet Protocol Television
  • smart wearable devices etc.
  • the electronic device may also include a network device and/or a user device.
  • the network device includes, but is not limited to, a single network server, a server group composed of multiple network servers, or a cloud computing-based cloud composed of a large number of hosts or network servers.
  • the network in which the electronic device is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), and the like.
  • the Internet includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), and the like.
  • VPN virtual private network
  • the electronic device acquires a refresh task list, where the refresh task is stored in the refresh task list.
  • the refresh task list may be an empty table, or at least one refresh task may be stored.
  • the refresh task refers to a task that needs to perform a refresh operation
  • the refresh task includes, but is not limited to, an OLAP (Online Analytical Processing) data extraction that needs to use COGNOS.
  • the transformation engine performs the task of refreshing the refresh of the COGNOS model.
  • the refresh refers to a process of generating a data cube (Data CUBE) by refreshing the COGNOS model to obtain the latest data, wherein the generated data cube is used for being provided to the report and used as a local data source.
  • Data CUBE data cube
  • the refresh task can be used as a pre-task of the mail sending event, etc., to generate a required data cube by refreshing, and provide data for the report of the mail sending event by the required data cube.
  • the electronic device determines a current refresh task from the refresh task list according to the configured priority rule.
  • the electronic device configures the priority rule before the electronic device determines the current refresh task from the refresh task list according to the configured priority rule.
  • the electronic device configuring the priority rule includes, but is not limited to, one or a combination of the following:
  • the electronic device configures the priority rule according to a generation time of each refresh task in the refresh task list.
  • the electronic device sets, according to the generation time of each refresh task in the refresh task list, the order of each refresh task in the refresh task list from high to low.
  • the electronic device configures the priority rule according to an important level of each refresh task in the refresh task list.
  • the electronic device correspondingly sets an order of each refresh task in the refresh task list according to a high to low order in which the importance level of each refresh task in the refresh task list is high to low.
  • the electronic device configures the priority rule according to the type of each refresh task in the refresh task list.
  • the electronic device sets an order of each refresh task in the refresh task list according to a priority of a priority of each refresh task in the refresh task list from high to low.
  • the electronic device first determines the same type of refresh task with the highest priority, and then performs the same type of refresh task with the highest priority. In the order of the generation time from the first to the last, the order of each refresh task in the same type of refresh task with the highest priority is set correspondingly.
  • the electronic device determines, according to the configured priority rule, that the current refresh task from the refresh task list includes, but is not limited to, one or more of the following combinations:
  • the electronic device acquires the generation time of each refresh task in the refresh task list, and selects the top-ranked task as the current refresh task according to the sequence of the generation time.
  • the electronic device acquires the generation time of the refresh task A, the refresh task B, and the refresh task C, if The generated time of the refresh task A is earlier than the generation time of the refresh task B, and the generation time of the refresh task B is earlier than the generation time of the refresh task C, and the electronic device filters out the location
  • the refresh task A is described as the current refresh task.
  • the electronic device acquires the important level of each refresh task in the configured refresh task list, and selects the top-ranked task as the current refresh task according to the order of the important levels.
  • the electronic device when generating each refresh task, the electronic device prompts the user to set an important level of each refresh task, and the electronic device acquires an important level of each refresh task, and refreshes according to each
  • the order of importance of the tasks from high to low corresponds to the order in which each of the refresh tasks is configured.
  • the electronic device acquires the configured important level of the refresh task A and the refresh task B.
  • the importance level and the importance level of the refresh task C if the pre-configured importance level is 0-9 in order from high to low, at this time, if the acquired importance level of the refresh task A is 0, the refresh The importance level of task B is 5, and the importance level of the refresh task C is 9, it can be concluded that the importance level of the refresh task A is higher than the importance level of the refresh task B, and the refresh task B is The important level is higher than the important level of the refresh task C, and the electronic device may filter out the refresh task A as the current refresh task.
  • the order of each refresh task in the refresh task list can be customized according to the actual needs of the user operation, thereby more satisfying the actual needs of the user, and preferentially performing the most urgent need for the user to refresh. Mission, user experience is better.
  • the electronic device acquires the type of each refresh task in the refresh task list, and selects the top-ranked task as the current refresh task according to the priority order of the configured type.
  • the electronic device when generating each refresh task, the electronic device prompts the user to set a priority of the type of each refresh task, and the electronic device acquires the priority of the type, and according to the priority of the type
  • the order of each of the refresh tasks is configured in order from high to low.
  • the electronic device acquires the type of the refresh task A as type D, and the refresh task
  • the type of B is type E
  • the type of the refresh task C is type F.
  • the electronic device may filter out the refresh task A as the current refresh task.
  • the electronic device acquires at least one refreshing machine.
  • the refreshing machine includes a server or the like for performing a refresh task.
  • the electronic device determines, according to performance parameters and concurrency of the at least one refreshing machine, a current refreshing machine.
  • the one refreshing machine can be determined as the current refreshing machine when a refreshing machine simultaneously satisfies the performance parameters and the concurrency of the at least one refreshing machine, and the specific implementation manner will be The description is separately made below. It can be understood that the present application does not limit the order of the performance parameters and the judging process of the at least one refreshing machine.
  • the electronic device determines, according to the performance parameter of the at least one refreshing machine, that the current refreshing machine comprises:
  • the idleness represents an idle ratio of performance parameters of each refreshing machine.
  • the performance parameters include, but are not limited to, one or a combination of the following:
  • IPOS Internet Protocol over SDH, network protocol in synchronous digital transmission system
  • the electronic device acquires the original capacity and the existing capacity of the CPU of the refreshing machine G, and acquires the original capacity and the existing capacity of the memory of the refreshing machine G, if the CPU usage of the refreshing machine G is greater than or equal to 80. %, and the memory occupancy rate is greater than or equal to 75%, the electronic device may determine that the idleness of the refreshing machine G is low, that is, the state of the refreshing machine G is busy, and the refreshing machine G does not Can be used as the current refresh machine;
  • the electronic device may determine that the refreshing machine H has the highest degree of idleness, and the refreshing machine H may be used as the current refreshing machine, and the determination result combined with the subsequent concurrency is further determined.
  • the determining, by the electronic device, the current refreshing machine according to the concurrency of the at least one refreshing machine includes:
  • the electronic device may determine the refresh machine H as the current refresh machine.
  • the concurrency indicates the number of refresh tasks that each refreshing machine can process at the same time per unit time.
  • the method before determining the current refreshing machine according to the performance parameter and the concurrency of the at least one refreshing machine, the method further includes:
  • the electronic device configures a degree of concurrency of the at least one refresh machine.
  • the manner in which the electronic device configures the concurrency of the at least one refreshing machine includes, but is not limited to, one or a combination of the following:
  • the electronic device configures the concurrency to be the first concurrency if the number of CPU cores is greater than or equal to the first core number, and the memory is greater than or equal to the first memory, and the disk capacity is greater than or equal to the first disk capacity, the electronic device configures the concurrency to be the first concurrency if the number of CPU cores is greater than or equal to the first core number, and the memory is greater than or equal to the first memory, and the disk capacity is greater than or equal to the first disk capacity, the electronic device configures the concurrency to be the first concurrency .
  • the electronic device configures the concurrency to be 6 daily refresh task amounts, and the weekly refresh task amount 4
  • the monthly refresh task is 2.
  • the CPU core number is greater than the third core number and less than or equal to the second core number, or the memory is greater than the third memory and less than or equal to the second memory, or the disk capacity is greater than the third disk capacity and less than or equal to the second disk
  • the capacity is that the electronic device configures the concurrency to be a second concurrency.
  • the electronic device configures the concurrency to be a daily refresh.
  • the number of tasks is one, the number of refreshed tasks is 0, and the number of refreshed tasks is 0.
  • the electronic device configures the concurrency to be a third concurrency.
  • the electronic device configures the concurrency to 0 for the daily refresh task, and the weekly refresh task amount is 0.
  • the monthly refresh task volume is 0.
  • the electronic device configures the concurrency to be a fourth concurrency.
  • the electronic device configures the concurrency to three for the daily refresh task, two for the weekly refresh task, and one for the monthly refresh task.
  • the first core number is greater than the second core number, and the second core number is greater than the third core number; the first memory is larger than the second memory, and the The second memory is larger than the third memory; the first disk capacity is greater than the second disk capacity, and the second disk capacity is greater than the third disk capacity.
  • the number of the first concurrency is greater than the number of the fourth concurrency, the number of the fourth concurrency is greater than the number of the second concurrency, and the number of the second concurrency is greater than the third The number of concurrency.
  • the electronic device refreshes the current refresh task by using the current refreshing machine.
  • the method further includes:
  • the electronic device records a refresh progress of the current refresh task, and determines an interruption of the current refresh task according to a refresh progress of the current refresh task, and when the refresh machine is restarted after a preset time period
  • the electronic device continues to refresh the current refresh task by using the current refreshing machine from the interruption of the current refresh task; when the refreshing machine is not restarted after a preset time period elapses, the electronic device will use the current current
  • the portion of the current refresh task that is the starting point of the refresh task is determined as the to-be-refreshed task, and the refreshing machine is re-allocated for the task to be refreshed.
  • the refresh task A includes three parts: x, y, and z
  • the refreshing machine H in the process of refreshing the refresh task A by using the refresh machine H, the refreshing machine H is faulty, and the refresh is interrupted.
  • the electronic device records that x in the refresh task A has been refreshed, and y and z are not refreshed, then the electronic device determines that y is an interruption, and if the preset time is 10 seconds, the refreshing machine H Restarting, the electronic device can continue to refresh y and z from y by using the refreshing machine H; if the refreshing machine H is not restarted after a preset time of 10 seconds, the electronic device will y and z is determined to be a task to be refreshed starting from y, and reallocating the refreshing machine for the task to be refreshed.
  • the electronic device can ensure that the current refreshing task does not affect the progress of the current refreshing task when the current refreshing machine fails, thereby avoiding waste of time and delaying execution of subsequent tasks.
  • the method further includes:
  • the electronic device acquires an associated refresh task of the current refresh task, and allocates a refresh machine to the associated refresh task.
  • the association refresh task includes, but is not limited to, a refresh task related to a theme of the current refresh task, a refresh task related to content of the current refresh task, and a user-specified and the current refresh task.
  • Related refresh tasks etc.
  • the supplementary refresh content is the associated refresh task of the current refresh task A.
  • the electronic device may directly allocate a refresh machine to the associated refresh task of the refresh task A.
  • the electronic device can ensure the continuous execution of the associated task, so that the execution of the refresh task is more organized.
  • the electronic device updates the refresh task list, and updates performance parameters and concurrency of the at least one refreshing machine
  • the electronic device Obtaining a second refresh task from the updated refresh task list according to the configured priority rule, and determining a second refreshing machine according to the updated at least one performance parameter and the concurrency of the refreshing machine, where the electronic device utilizes the second The refreshing machine refreshes the second refresh task.
  • the electronic device can further determine how to allocate the next refresh task.
  • the electronic device by updating the refresh task list in real time, and updating performance parameters and concurrency of the at least one refreshing machine, the electronic device is ensured in a case where the current refreshing machine performance is superior. It is still possible to participate in the allocation of the refresh task, such that even if the current refreshing machine has just allocated the current refreshing task, the current refreshing machine is still the best assigned object, and can still be allocated as long as it is judged in the technical solution.
  • the second refresh task is performed to the current refreshing machine to ensure that each refresh task can sequentially obtain an optimal refreshing scheme according to the configured priority rule.
  • the present application can obtain a refresh task list, where the refresh task list stores a refresh task; according to the configured priority rule, the current refresh task is determined from the refresh task list; at least one refresh machine is acquired; The at least one refreshing performance parameter and concurrency of the machine determines the current refreshing of the machine, so that the performance of the current refreshing machine used for each refreshing task is guaranteed to be optimal, that is, the manner in which the task is refreshed each time.
  • the refresh efficiency can be improved.
  • the refresh task assignment device 11 includes an acquisition unit 110, a determination unit 111, a refresh unit 112, a configuration unit 113, a recording unit 114, an allocation unit 115, and an update unit 116.
  • a module/unit referred to in this application refers to a series of computer readable instruction segments that can be executed by the processor 13 and that are capable of performing fixed functions, which are stored in the memory 12. In this embodiment, the functions of the respective modules/units will be detailed in the subsequent embodiments.
  • the obtaining unit 110 acquires a refresh task list, where the refresh task is stored in the refresh task list.
  • the refresh task list may be an empty table, or at least one refresh task may be stored.
  • the refresh task refers to a task that needs to perform a refresh operation
  • the refresh task includes, but is not limited to, an OLAP (Online Analytical Processing) data extraction that needs to use COGNOS.
  • the transformation engine performs the task of refreshing the refresh of the COGNOS model.
  • the refresh refers to a process of generating a data cube (Data CUBE) by refreshing the COGNOS model to obtain the latest data, wherein the generated data cube is used for being provided to the report and used as a local data source.
  • Data CUBE data cube
  • the refresh task can be used as a pre-task of the mail sending event, etc., to generate a required data cube by refreshing, and provide data for the report of the mail sending event by the required data cube.
  • the determining unit 111 determines the current refresh task from the refresh task list according to the configured priority rule.
  • the configuration unit 113 configures the priority rule.
  • the configuration unit 113 configures the priority rule to include, but is not limited to, one or more of the following combinations:
  • the configuration unit 113 configures the priority rule according to the generation time of each refresh task in the refresh task list.
  • the configuration unit 113 sets, according to the generation time of each refresh task in the refresh task list, the order of each refresh task in the refresh task list from high to low.
  • the configuration unit 113 configures the priority rule according to an important level of each refresh task in the refresh task list.
  • the configuration unit 113 sets the order of each refresh task in the refresh task list according to the order of importance of each refresh task in the refresh task list from high to low.
  • the configuration unit 113 configures the priority rule according to the type of each refresh task in the refresh task list.
  • the configuration unit 113 sets the order of each refresh task in the refresh task list according to the order of priority of each refresh task in the refresh task list from high to low. .
  • the configuration unit 113 may also adopt a combination of the foregoing setting schemes. For example, the configuration unit 113 first determines the same type of refresh task with the highest priority, and then the highest priority. In the refresh task of the same type, the order of each refresh task in the same type of refresh task with the highest priority is set in the order of the generation time from the first to the last.
  • the determining unit 111 determines, according to the configured priority rule, that the current refresh task includes, but is not limited to, one or more of the following combinations:
  • the determining unit 111 acquires the generation time of each refresh task in the refresh task list, and selects the top-ranked task as the current refresh task according to the sequence of the generation time.
  • the determining unit 111 acquires the generation time of the refresh task A, the refresh task B, and the refresh task C, If the generated time of the refresh task A is earlier than the generation time of the refresh task B, and the generation time of the refresh task B is earlier than the generation time of the refresh task C, the determining unit 111 filters The refresh task A is taken out as the current refresh task.
  • the determining unit 111 acquires the important level of each refresh task in the configured refresh task list, and selects the top ranked task as the current refresh task according to the order of the important levels.
  • the determining unit 111 prompts the user to set an important level of each refresh task, and the determining unit 111 acquires an important level of each refresh task, and according to each The order of importance of the refresh tasks from high to low corresponds to the order in which each of the refresh tasks is configured.
  • the determining unit 111 acquires the configured important level of the refresh task A and the refresh task.
  • the importance level of B and the importance level of the refresh task C If the pre-configured importance level is 0-9 in order from high to low, at this time, if the acquired importance level of the refresh task A is 0, The importance level of the refresh task B is 5, and the importance level of the refresh task C is 9, it can be concluded that the importance level of the refresh task A is higher than the important level of the refresh task B, and the refresh task B The importance level is higher than the importance level of the refresh task C, and the determining unit 111 may filter out the refresh task A as the current refresh task.
  • the order of each refresh task in the refresh task list can be customized according to the actual needs of the user operation, thereby more satisfying the actual needs of the user, and preferentially performing the most urgent need for the user to refresh. Mission, user experience is better.
  • the determining unit 111 acquires the type of each refresh task in the refresh task list, and selects the top-ranked task as the current refresh task according to the priority order of the configured type.
  • the determining unit 111 prompts the user to set the priority of the type of each refresh task, and the determining unit 111 acquires the priority of the type, and according to the type
  • the order of priority from high to low corresponds to the order in which each of the refresh tasks is configured.
  • the determining unit 111 acquires the type of the refresh task A as type D, and the refresh The type of the task B is the type E, and the type of the refresh task C is the type F.
  • the type D of the obtained configuration has a higher priority than the priority of the type E, and the type If the priority of E is higher than the priority of the type F, it can be concluded that the order of the refresh task A precedes the order of the refresh task B, and the order of the refresh task B precedes
  • the refreshing task C may filter out the refresh task A as the current refresh task.
  • the obtaining unit 110 acquires at least one refreshing machine.
  • the refreshing machine includes a server or the like for performing a refresh task.
  • the determining unit 111 determines the current refreshing machine according to the performance parameter and the degree of concurrency of the at least one refreshing machine.
  • the one refreshing machine can be determined as the current refreshing machine when a refreshing machine simultaneously satisfies the performance parameters and the concurrency of the at least one refreshing machine, and the specific implementation manner will be The description is separately made below. It can be understood that the present application does not limit the order of the performance parameters and the judging process of the at least one refreshing machine.
  • the determining unit 111 determines, according to the performance parameter of the at least one refreshing machine, that the current refreshing machine comprises:
  • the determining unit 111 acquires a performance parameter of the at least one refreshing machine, determines an idle degree of the at least one refreshing machine according to the performance parameter, and the determining unit 111 acquires a refreshing machine with the highest degree of idleness, and the idle state The highest refresh machine is determined to be the current refresh machine.
  • the idleness represents an idle ratio of performance parameters of each refreshing machine.
  • the performance parameters include, but are not limited to, one or a combination of the following:
  • IPOS Internet Protocol over SDH, network protocol in synchronous digital transmission system
  • the determining unit 111 acquires the original capacity and the existing capacity of the CPU of the refreshing machine G, and acquires the original capacity and the existing capacity of the memory of the acquisition refreshing machine G, if the CPU usage of the refreshing machine G is greater than or equal to 80%, and the memory occupancy rate is greater than or equal to 75%, the determining unit 111 may determine that the idleness of the refreshing machine G is low, that is, the state of the refreshing machine G is busy, the refreshing machine G may not be used as the current refresh machine;
  • the determining unit 111 acquires the original capacity and the existing capacity of the CPU of the refreshing machine H, and acquires the original capacity and the existing capacity of the memory of the refreshing machine H, if the CPU usage and memory usage of the refreshing machine H are refreshed.
  • the determining unit 111 may determine that the refreshing machine H has the highest degree of idleness, and the refreshing machine H may be used as the current refreshing machine, specifically combining the judgment result of the subsequent concurrency degree. determine.
  • the determining unit 111 determines, according to the concurrency of the at least one refreshing machine, that the current refreshing machine includes:
  • the determining unit 111 acquires the concurrency of the configured at least one refreshing machine, determines a refreshing machine with the most remaining amount of concurrency from the at least one refreshing machine, and determines the refreshing machine with the most remaining amount of concurrency as The current refresh machine.
  • the determining unit 111 may determine the refreshing machine H as the current refreshing machine.
  • the concurrency indicates the number of refresh tasks that each refreshing machine can process at the same time per unit time.
  • the method before determining the current refreshing machine according to the performance parameter and the concurrency of the at least one refreshing machine, the method further includes:
  • the configuration unit 113 configures the degree of concurrency of the at least one refresh machine.
  • the manner in which the configuration unit 113 configures the concurrency of the at least one refreshing machine includes, but is not limited to, one or a combination of the following:
  • the configuration unit 113 configures the concurrency to be the first concurrent degree.
  • the configuration unit 113 configures the concurrency to be 6 daily refresh task amounts, and the weekly refresh task amount. 4, the monthly refresh task is 2.
  • the configuration unit 113 configures the concurrency to be a second concurrency.
  • the configuration unit 113 configures the concurrency as a day.
  • the refresh task volume is one, the weekly refresh task volume is 0, and the monthly refresh task volume is 0.
  • the configuration unit 113 configures the concurrency to be the third concurrency .
  • the configuration unit 113 configures the concurrency to be 0 for the daily refresh task amount, and the weekly refresh task amount. 0, monthly refresh task amount 0.
  • the configuration unit 113 configures the concurrency to be the fourth concurrency.
  • the configuration unit 113 configures the concurrency to be three daily refresh task amounts, two weekly refresh task amounts, and one monthly refresh task amount.
  • the first core number is greater than the second core number, and the second core number is greater than the third core number; the first memory is larger than the second memory, and the The second memory is larger than the third memory; the first disk capacity is greater than the second disk capacity, and the second disk capacity is greater than the third disk capacity.
  • the number of the first concurrency is greater than the number of the fourth concurrency, the number of the fourth concurrency is greater than the number of the second concurrency, and the number of the second concurrency is greater than the third The number of concurrency.
  • the refresh unit 112 refreshes the current refresh task by using the current refresh machine.
  • the method further includes:
  • the recording unit 114 records the refresh progress of the current refresh task, determines the interruption of the current refresh task according to the refresh progress of the current refresh task, and when the refresh machine restarts after the preset duration, the refresh
  • the unit 112 continues to refresh the current refresh task by using the current refreshing machine from the interruption of the current refresh task; when the refreshing machine is not restarted after a preset time period elapses, the determining unit 111 will The portion of the current refresh task that is the starting point of the current refresh task is determined as the to-be-refreshed task, and the allocating unit 115 re-allocates the refresh machine for the task to be refreshed.
  • the refresh task A includes three parts: x, y, and z
  • the refreshing machine H is faulty, and the refresh is interrupted.
  • the recording unit 114 records that x in the refresh task A has been refreshed, and y and z are not refreshed, then the determining unit 111 determines that y is an interruption, and if the preset time is 10 seconds, the refresh
  • the refresh unit 112 can continue to refresh y and z from y by using the refreshing machine H; if the refreshing machine H is not restarted after a preset time of 10 seconds, the determining unit 111 determines y and z as tasks to be refreshed starting from y, and the allocating unit 115 reallocates the refreshing machine for the task to be refreshed.
  • the electronic device can ensure that the current refreshing task does not affect the progress of the current refreshing task when the current refreshing machine fails, thereby avoiding waste of time and delaying execution of subsequent tasks.
  • the method further includes:
  • the acquiring unit 110 acquires an associated refresh task of the current refresh task, and the allocating unit 115 allocates a refreshing machine to the associated refresh task.
  • the association refresh task includes, but is not limited to, a refresh task related to a theme of the current refresh task, a refresh task related to content of the current refresh task, and a user-specified and the current refresh task.
  • Related refresh tasks etc.
  • the supplementary refresh content is the associated refresh task of the current refresh task A.
  • the allocating unit 115 may directly allocate a refreshing machine to the associated refresh task of the refresh task A.
  • the electronic device can ensure the continuous execution of the associated task, so that the execution of the refresh task is more organized.
  • the updating unit 116 updates the refresh task list, and updates performance parameters and concurrency of the at least one refreshing machine, and the acquiring unit 110 Obtaining a second refresh task from the updated refresh task list according to the configured priority rule, the determining unit 111 determining the second refreshing machine according to the updated performance parameter and the degree of concurrency of the at least one refreshing machine, the refreshing unit 112
  • the second refresh task is refreshed by the second refreshing machine.
  • the refresh unit 112 may further determine how to allocate the next refresh task.
  • the refreshing task list is updated in real time, and the performance parameters and the concurrency of the at least one refreshing machine are updated to ensure that the refreshing unit is better when the current refreshing machine performance is superior.
  • 112 can still participate in the allocation of the refresh task, such that even if the current refreshing machine has just allocated the current refresh task, as long as the judgment in the technical solution, the current refreshing machine is still the best allocation object, can still be allocated
  • the second refresh task is to the current refreshing machine to ensure that each refresh task can obtain an optimal refreshing scheme according to the configured priority rule.
  • the present application can obtain a refresh task list, where the refresh task list stores a refresh task; according to the configured priority rule, the current refresh task is determined from the refresh task list; at least one refresh machine is acquired; The at least one refreshing performance parameter and concurrency of the machine determines the current refreshing of the machine, so that the performance of the current refreshing machine used for each refreshing task is guaranteed to be optimal, that is, the manner in which the task is refreshed each time.
  • the refresh efficiency can be improved.
  • FIG. 3 is a schematic structural diagram of an electronic device according to a preferred embodiment of the method for implementing a refresh task according to the present application.
  • the electronic device 1 is a device capable of automatically performing numerical calculation and/or information processing according to an instruction set or stored in advance, and the hardware includes, but not limited to, a microprocessor, an application specific integrated circuit (ASIC). ), Field-Programmable Gate Array (FPGA), Digital Signal Processor (DSP), embedded devices, etc.
  • ASIC application specific integrated circuit
  • FPGA Field-Programmable Gate Array
  • DSP Digital Signal Processor
  • the electronic device 1 can also be, but is not limited to, any electronic product that can interact with a user through a keyboard, a mouse, a remote controller, a touch panel, or a voice control device, such as a personal computer, a tablet, or a smart phone. , Personal Digital Assistant (PDA), game consoles, Internet Protocol Television (IPTV), smart wearable devices, etc.
  • PDA Personal Digital Assistant
  • IPTV Internet Protocol Television
  • the electronic device 1 can also be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the network in which the electronic device 1 is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), and the like.
  • the Internet includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), and the like.
  • VPN virtual private network
  • the electronic device 1 includes, but is not limited to, a memory 12, a processor 13, and computer readable instructions stored in the memory 12 and executable on the processor 13. , for example, refresh the task dispatcher.
  • the schematic diagram is merely an example of the electronic device 1, does not constitute a limitation on the electronic device 1, may include more or less components than those illustrated, or combine some components, or different. Components such as the electronic device 1 may also include input and output devices, network access devices, buses, and the like.
  • the processor 13 may be a central processing unit (CPU), or may be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
  • the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the processor 13 is an operation core and a control center of the electronic device 1, and connects the entire electronic device by using various interfaces and lines. Each part of 1 and an operating system of the electronic device 1 and various installed applications, program codes, and the like.
  • the processor 13 executes an operating system of the electronic device 1 and various types of installed applications.
  • the processor 13 executes the application to implement the steps in the foregoing various refresh task assignment method embodiments, such as steps S10, S11, S12, S13, and S14 shown in FIG.
  • the processor 13 implements the functions of each module/unit in each device embodiment when executing the computer readable instructions, for example, acquiring a refresh task list, where the refresh task list stores a refresh task; a priority rule, determining a current refresh task from the refresh task list; acquiring at least one refresh machine; determining, according to the performance parameter and the degree of concurrency of the at least one refreshing machine, a current refreshing machine; using the current refreshing machine pair The current refresh task is refreshed.
  • the computer readable instructions may be partitioned into one or more modules/units, the one or more modules/units being stored in the memory 12 and executed by the processor 13 to Complete this application.
  • the one or more modules/units may be a series of computer readable instruction segments capable of performing a particular function for describing the execution of the computer readable instructions in the electronic device 1.
  • the computer readable instructions may be divided into an acquisition unit 110, a determination unit 111, a refresh unit 112, a configuration unit 113, a recording unit 114, an allocation unit 115, and an update unit 116.
  • the memory 12 can be used to store the computer readable instructions and/or modules, which are stored or executed in a memory 12 by running or executing computer readable instructions and/or modules stored in the memory 12.
  • the internal data implements various functions of the electronic device 1.
  • the memory 12 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; Stores data created based on the use of the phone (such as audio data, phone book, etc.).
  • the memory 12 may include a high-speed random access memory, and may also include a non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a secure digital (SD).
  • a non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a secure digital (SD).
  • SSD secure digital
  • flash card at least one disk storage device, flash device, or other volatile solid state storage device.
  • the memory 12 may be an external memory and/or an internal memory of the electronic device 1. Further, the memory 12 may be a circuit having a storage function in a physical form, such as a RAM (Random-Access Memory), a FIFO (First In First Out), or the like. Alternatively, the memory 12 may also be a memory having a physical form such as a memory stick, a TF card, or the like.
  • the modules/units integrated by the electronic device 1 can be stored in a non-volatile readable storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the present application implements all or part of the processes in the foregoing embodiments, and may also be implemented by computer-readable instructions, which may be stored in a non-volatile manner. In reading a storage medium, the computer readable instructions, when executed by a processor, implement the steps of the various method embodiments described above.
  • the computer readable instructions comprise computer readable instruction code, which may be in the form of source code, an object code form, an executable file or some intermediate form or the like.
  • the non-transitory readable medium may include any entity or device capable of carrying the computer readable instruction code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read only memory (ROM, Read-Only Memory), Random Access Memory (RAM), electrical carrier signals, telecommunications signals, and software distribution media.
  • Non-volatile readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, Volatile readable media does not include electrical carrier signals and telecommunication signals.
  • the memory 12 in the electronic device 1 stores a plurality of instructions to implement a refresh task assignment method
  • the processor 13 can execute the plurality of instructions to: obtain a refresh task list, The refresh task is stored in the refresh task list; the current refresh task is determined from the refresh task list according to the configured priority rule; at least one refresh machine is acquired; and the current performance parameter and the degree of concurrency of the at least one refreshed machine are used to determine the current Refreshing the machine; refreshing the current refresh task with the current refresh machine.
  • modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software function modules.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Plural Heterocyclic Compounds (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A refresh task assignment method, an electronic device and a storage medium. The refresh task assignment method comprises: acquiring a refresh task list, wherein refresh tasks are stored in the refresh task list (S10); according to a configured priority rule, determining a current refresh task from the refresh task list (S11); acquiring at least one refresh machine (S12); determining a current refresh machine according to a performance parameter and concurrency level of the at least one refresh machine (S13); and using the current refresh machine to refresh the current refresh task (S14). By means of the method, the manner of assigning a refresh task each time is optimal, improving the refresh efficiency.

Description

刷新任务分配方法、电子设备及存储介质Refresh task assignment method, electronic device and storage medium
本申请要求于2018年04月10日提交中国专利局,申请号为201810316518.4发明名称为“刷新任务分配方法、电子设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application entitled "Refreshing task assignment method, electronic device and computer readable storage medium" by the Chinese Patent Office on April 10, 2018, the entire disclosure of which is incorporated by reference. Combined in this application.
技术领域Technical field
本申请涉及数据处理技术领域,尤其涉及一种刷新任务分配方法、电子设备及存储介质。The present application relates to the field of data processing technologies, and in particular, to a refresh task assignment method, an electronic device, and a storage medium.
背景技术Background technique
现有技术方案中,数据的刷新通常采用COGNOS(康格诺)模型刷新的方式,所述COGNOS模型刷新一般是手动分配刷新机器或者是使用计划任务定制分配刷新机器,又或者采取设定刷新机器并发度进行自动调度以分配任务的方式。但是对于大批量的模型自动刷新任务,上述刷新方式则不够健壮。特别是针对大集群的应用环境,当刷新任务特别多的时候,刷新机器则要承受更大的系统性能压力。系统压力大时,刷新效率呈急速下降趋势,可能出现报表数据承诺时效超出等严重问题。这样的刷新方式,不仅制约于刷新机器的性能,并且在刷新机器的性能不足以支撑所有的刷新任务时,严重影响刷新效率。In the prior art solution, the refresh of the data usually adopts a COGNOS model refresh mode, and the COGNOS model refresh is generally a manual allocation refreshing machine or a scheduled task to customize the allocation refreshing machine, or adopting a setting refreshing machine. Concurrency is the way to automatically schedule to assign tasks. However, for large-scale model auto-refresh tasks, the above refresh method is not robust enough. Especially for large cluster application environments, when the refresh task is particularly large, refreshing the machine will have to bear greater system performance pressure. When the system pressure is high, the refresh efficiency is rapidly decreasing, and there may be serious problems such as the aging of the report data commitment. Such a refreshing method not only restricts the performance of the refreshing machine, but also seriously affects the refreshing efficiency when the performance of the refreshing machine is insufficient to support all the refreshing tasks.
发明内容Summary of the invention
鉴于以上内容,有必要提供一种刷新任务分配方法、电子设备及非易失性可读存储介质,能够使每次刷新任务分配的方式最佳,提高刷新效率。In view of the above, it is necessary to provide a refresh task assignment method, an electronic device, and a non-volatile readable storage medium, which can optimize the manner of each refresh task allocation and improve the refresh efficiency.
一种刷新任务分配方法,所述方法包括:A refresh task allocation method, the method comprising:
获取刷新任务列表,所述刷新任务列表中存储着刷新任务;Obtaining a refresh task list, where the refresh task is stored in the refresh task list;
根据配置的优先级规则,从所述刷新任务列表中确定当前刷新任务;Determining a current refresh task from the refresh task list according to the configured priority rule;
获取至少一个刷新机器;Get at least one refresh machine;
根据所述至少一个刷新机器的性能参数及并发度,确定当前刷新机器;Determining a current refreshing machine according to the performance parameter and the degree of concurrency of the at least one refreshing machine;
利用所述当前刷新机器对所述当前刷新任务进行刷新。The current refresh task is refreshed by the current refresh machine.
一种刷新任务分配装置,所述装置包括:A refresh task assignment device, the device comprising:
获取单元,用于获取刷新任务列表,所述刷新任务列表中存储着刷新任务;An obtaining unit, configured to acquire a refresh task list, where the refresh task is stored in the refresh task list;
确定单元,用于根据配置的优先级规则,从所述刷新任务列表中确定当前刷新任务;a determining unit, configured to determine a current refresh task from the refresh task list according to the configured priority rule;
所述获取单元,还用于获取至少一个刷新机器;The obtaining unit is further configured to acquire at least one refreshing machine;
所述确定单元,还用于根据所述至少一个刷新机器的性能参数及并发度,确定当前刷新机器;The determining unit is further configured to determine, according to performance parameters and concurrency of the at least one refreshing machine, a current refreshing machine;
刷新单元,用于利用所述当前刷新机器对所述当前刷新任务进行刷新。And a refreshing unit, configured to refresh the current refresh task by using the current refreshing machine.
一种电子设备,所述电子设备包括:An electronic device, the electronic device comprising:
存储器,存储至少一个指令;及a memory storing at least one instruction; and
处理器,执行所述存储器中存储的指令以实现所述刷新任务分配方法。And executing, by the processor, instructions stored in the memory to implement the refresh task assignment method.
一种非易失性可读存储介质,所述非易失性可读存储介质中存储有至少一个指令,所述至少一个指令被电子设备中的处理器执行以实现所述刷新任务分配方法。A non-volatile readable storage medium having stored therein at least one instruction, the at least one instruction being executed by a processor in an electronic device to implement the refresh task assignment method.
由以上技术方案可以看出,本申请获取刷新任务列表,所述刷新任务列表中存储着刷新任务;根据配置的优先级规则,从所述刷新任务列表中确定当前刷新任务;获取至少一个刷新机器;根据所述至少一个刷新机器的性能参数及并发度,确定当前刷新机器;利用所述当前刷新机器对所述当前刷新任务进行刷新。利用本申请能够使每次刷新任务分配的方式最佳,提高刷新效率。It can be seen from the foregoing technical solution that the present application obtains a refresh task list, where the refresh task list stores a refresh task; according to the configured priority rule, the current refresh task is determined from the refresh task list; and at least one refresh machine is acquired. Determining a current refreshing machine according to the performance parameter and the degree of concurrency of the at least one refreshing machine; refreshing the current refreshing task by using the current refreshing machine. With this application, the manner of assigning each refresh task can be optimized, and the refresh efficiency can be improved.
附图说明DRAWINGS
图1是本申请刷新任务分配方法的较佳实施例的流程图。1 is a flow chart of a preferred embodiment of a refresh task assignment method of the present application.
图2是本申请刷新任务分配装置的较佳实施例的功能模块图。2 is a functional block diagram of a preferred embodiment of the refresh task assignment apparatus of the present application.
图3是本申请实现刷新任务分配方法的较佳实施例的电子设备的结构示意图。FIG. 3 is a schematic structural diagram of an electronic device according to a preferred embodiment of a method for implementing a refresh task according to the present application.
具体实施方式detailed description
为了使本申请的目的、技术方案和优点更加清楚,下面结合附图和具体实施例对本申请进行详细描述。In order to make the objects, technical solutions, and advantages of the present application more clear, the present application will be described in detail below with reference to the accompanying drawings and specific embodiments.
如图1所示,是本申请刷新任务分配方法的较佳实施例的流程图。根据不同的需求,该流程图中步骤的顺序可以改变,某些步骤可以省略。As shown in FIG. 1, it is a flowchart of a preferred embodiment of the refresh task assignment method of the present application. The order of the steps in the flowchart may be changed according to different requirements, and some steps may be omitted.
所述刷新任务分配方法应用于一个或者多个电子设备中,所述电子设备是一种能够按照事先设定或存储的指令,自动进行数值计算和/或信息处理的设备,其硬件包括但不限于微处理器、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程门阵列(Field-Programmable Gate Array,FPGA)、数字处理器(Digital Signal Processor,DSP)、嵌入式设备等。The refresh task assignment method is applied to one or more electronic devices, which are devices capable of automatically performing numerical calculation and/or information processing according to preset or stored instructions, the hardware including but not It is limited to a microprocessor, an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a digital signal processor (DSP), an embedded device, and the like.
所述电子设备可以是任何一种可与用户进行人机交互的电子产品,例如,个人计算机、平板电脑、智能手机、个人数字助理(Personal Digital Assistant,PDA)、游戏机、交互式网络电视(Internet Protocol Television,IPTV)、智能式穿戴式设备等。The electronic device can be any electronic product that can interact with a user, such as a personal computer, a tablet, a smart phone, a personal digital assistant (PDA), a game machine, an interactive network television ( Internet Protocol Television (IPTV), smart wearable devices, etc.
所述电子设备还可以包括网络设备和/或用户设备。其中,所述网络设备包括,但不限于单个网络服务器、多个网络服务器组成的服务器组或基于云计算(Cloud Computing)的由大量主机或网络服务器构成的云。The electronic device may also include a network device and/or a user device. The network device includes, but is not limited to, a single network server, a server group composed of multiple network servers, or a cloud computing-based cloud composed of a large number of hosts or network servers.
所述电子设备所处的网络包括但不限于互联网、广域网、城域网、局域网、虚拟专用网络(Virtual Private Network,VPN)等。The network in which the electronic device is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), and the like.
S10,所述电子设备获取刷新任务列表,所述刷新任务列表中存储着刷 新任务。S10. The electronic device acquires a refresh task list, where the refresh task is stored in the refresh task list.
在本实施例中,所述刷新任务列表可以是空表,也可以存储至少一个刷新任务。In this embodiment, the refresh task list may be an empty table, or at least one refresh task may be stored.
在本实施例中,所述刷新任务是指需要进行刷新操作的任务,所述刷新任务包括,但不限于:需要使用COGNOS(康格诺)的OLAP(Online Analytical Processing,联机分析处理)数据抽取转换引擎(Transformer)对所述COGNOS模型的刷新进行刷新操作的任务。具体地,刷新是指通过刷新所述COGNOS模型,从而获取到最新的数据,生成数据立方体(Data CUBE)的过程,其中,生成的数据立方体用于提供给报表,作为本地数据源使用。In this embodiment, the refresh task refers to a task that needs to perform a refresh operation, and the refresh task includes, but is not limited to, an OLAP (Online Analytical Processing) data extraction that needs to use COGNOS. The transformation engine performs the task of refreshing the refresh of the COGNOS model. Specifically, the refresh refers to a process of generating a data cube (Data CUBE) by refreshing the COGNOS model to obtain the latest data, wherein the generated data cube is used for being provided to the report and used as a local data source.
例如:在发送邮件时,刷新任务可以作为邮件发送事件的前置任务等,通过刷新生成需要的数据立方体,并由所述需要的数据立方体为所述邮件发送事件的报表提供数据。For example, when sending a mail, the refresh task can be used as a pre-task of the mail sending event, etc., to generate a required data cube by refreshing, and provide data for the report of the mail sending event by the required data cube.
S11,所述电子设备根据配置的优先级规则,从所述刷新任务列表中确定当前刷新任务。S11. The electronic device determines a current refresh task from the refresh task list according to the configured priority rule.
优选地,在所述电子设备根据配置的优先级规则,从所述刷新任务列表中确定当前刷新任务前,所述电子设备配置所述优先级规则。Preferably, the electronic device configures the priority rule before the electronic device determines the current refresh task from the refresh task list according to the configured priority rule.
优选地,所述电子设备配置所述优先级规则包括,但不限于以下一种或者多种的组合:Preferably, the electronic device configuring the priority rule includes, but is not limited to, one or a combination of the following:
(1)所述电子设备根据所述刷新任务列表中每个刷新任务的生成时间,配置所述优先级规则。(1) The electronic device configures the priority rule according to a generation time of each refresh task in the refresh task list.
具体地,所述电子设备根据所述刷新任务列表中每个刷新任务的生成时间由先到后的顺序,由高到低对应设置所述刷新任务列表中每个刷新任务的排列顺序。Specifically, the electronic device sets, according to the generation time of each refresh task in the refresh task list, the order of each refresh task in the refresh task list from high to low.
(2)所述电子设备根据所述刷新任务列表中每个刷新任务的重要等级,配置所述优先级规则。(2) The electronic device configures the priority rule according to an important level of each refresh task in the refresh task list.
具体地,所述电子设备根据所述刷新任务列表中每个刷新任务的重要等级由高到低的顺序,由高到低对应设置所述刷新任务列表中每个刷新任务的排列顺序。Specifically, the electronic device correspondingly sets an order of each refresh task in the refresh task list according to a high to low order in which the importance level of each refresh task in the refresh task list is high to low.
(3)所述电子设备根据所述刷新任务列表中每个刷新任务的类型,配置所述优先级规则。(3) The electronic device configures the priority rule according to the type of each refresh task in the refresh task list.
具体地,所述电子设备根据所述刷新任务列表中每个刷新任务的类型的优先级由高到低的顺序,由高到低对应设置所述刷新任务列表中每个刷新任务的排列顺序。Specifically, the electronic device sets an order of each refresh task in the refresh task list according to a priority of a priority of each refresh task in the refresh task list from high to low.
当然,在其他实施例中,也可以采取上述设置方案的组合,例如:所述电子设备先确定优先级最高的同一个类型的刷新任务,再从所述优先级最高的同一个类型的刷新任务中,按照生成时间由先到后的顺序,对应设置所述优先级最高的同一个类型的刷新任务中每个刷新任务的排列顺序等。Of course, in other embodiments, a combination of the foregoing setting schemes may also be adopted. For example, the electronic device first determines the same type of refresh task with the highest priority, and then performs the same type of refresh task with the highest priority. In the order of the generation time from the first to the last, the order of each refresh task in the same type of refresh task with the highest priority is set correspondingly.
优选地,所述电子设备根据配置的优先级规则,从所述刷新任务列表中确定当前刷新任务包括,但不限于以下一种或者多种的组合:Preferably, the electronic device determines, according to the configured priority rule, that the current refresh task from the refresh task list includes, but is not limited to, one or more of the following combinations:
(1)所述电子设备获取所述刷新任务列表中每个刷新任务的生成时间, 按照生成时间的先后顺序,筛选出排在最前的任务作为所述当前刷新任务。(1) The electronic device acquires the generation time of each refresh task in the refresh task list, and selects the top-ranked task as the current refresh task according to the sequence of the generation time.
例如:当所述刷新任务列表中包括刷新任务A、刷新任务B及刷新任务C时,所述电子设备获取所述刷新任务A、所述刷新任务B及所述刷新任务C的生成时间,如果获取到的所述刷新任务A的生成时间早于所述刷新任务B的生成时间,且所述刷新任务B的生成时间早于所述刷新任务C的生成时间,则所述电子设备筛选出所述刷新任务A作为所述当前刷新任务。For example, when the refresh task A includes the refresh task A, the refresh task B, and the refresh task C, the electronic device acquires the generation time of the refresh task A, the refresh task B, and the refresh task C, if The generated time of the refresh task A is earlier than the generation time of the refresh task B, and the generation time of the refresh task B is earlier than the generation time of the refresh task C, and the electronic device filters out the location The refresh task A is described as the current refresh task.
(2)所述电子设备获取配置的所述刷新任务列表中每个刷新任务的重要等级,按照重要等级的顺序,筛选出排在最前的任务作为所述当前刷新任务。(2) The electronic device acquires the important level of each refresh task in the configured refresh task list, and selects the top-ranked task as the current refresh task according to the order of the important levels.
具体地,在生成每个刷新任务时,所述电子设备提示用户设置所述每个刷新任务的重要等级,所述电子设备获取所述每个刷新任务的重要等级,并根据所述每个刷新任务的重要等级由高到低的顺序对应配置所述每个刷新任务的排列顺序。Specifically, when generating each refresh task, the electronic device prompts the user to set an important level of each refresh task, and the electronic device acquires an important level of each refresh task, and refreshes according to each The order of importance of the tasks from high to low corresponds to the order in which each of the refresh tasks is configured.
例如:当所述刷新任务列表中包括所述刷新任务A、所述刷新任务B及所述刷新任务C时,所述电子设备获取配置的所述刷新任务A的重要等级、所述刷新任务B的重要等级及所述刷新任务C的重要等级,如果预先配置的重要等级由高到低依次为0-9,此时,如果获取到的所述刷新任务A的重要等级为0,所述刷新任务B的重要等级为5,所述刷新任务C的重要等级为9,则可以得出,所述刷新任务A的重要等级高于所述刷新任务B的重要等级,且所述刷新任务B的重要等级高于所述刷新任务C的重要等级,则所述电子设备可以筛选出所述刷新任务A作为所述当前刷新任务。For example, when the refresh task A includes the refresh task A, the refresh task B, and the refresh task C, the electronic device acquires the configured important level of the refresh task A and the refresh task B. The importance level and the importance level of the refresh task C, if the pre-configured importance level is 0-9 in order from high to low, at this time, if the acquired importance level of the refresh task A is 0, the refresh The importance level of task B is 5, and the importance level of the refresh task C is 9, it can be concluded that the importance level of the refresh task A is higher than the importance level of the refresh task B, and the refresh task B is The important level is higher than the important level of the refresh task C, and the electronic device may filter out the refresh task A as the current refresh task.
通过上述配置方式,即可根据所述用户操作时的实际需求对所述刷新任务列表中每个刷新任务的排列顺序进行自定义设置,从而更加满足用户的实际需要,优先进行用户最急需刷新的任务,用户体验更佳。Through the above configuration manner, the order of each refresh task in the refresh task list can be customized according to the actual needs of the user operation, thereby more satisfying the actual needs of the user, and preferentially performing the most urgent need for the user to refresh. Mission, user experience is better.
(3)所述电子设备获取所述刷新任务列表中每个刷新任务的类型,按照配置的类型的优先级顺序,筛选出排在最前的任务作为所述当前刷新任务。(3) The electronic device acquires the type of each refresh task in the refresh task list, and selects the top-ranked task as the current refresh task according to the priority order of the configured type.
具体地,在生成每个刷新任务时,所述电子设备提示用户设置所述每个刷新任务的类型的优先级,所述电子设备获取所述类型的优先级,并根据所述类型的优先级由高到低的顺序对应配置所述每个刷新任务的排列顺序。Specifically, when generating each refresh task, the electronic device prompts the user to set a priority of the type of each refresh task, and the electronic device acquires the priority of the type, and according to the priority of the type The order of each of the refresh tasks is configured in order from high to low.
例如:当所述刷新任务列表中包括所述刷新任务A、所述刷新任务B及所述刷新任务C时,所述电子设备获取到所述刷新任务A的类型为类型D、所述刷新任务B的类型为类型E,及所述刷新任务C的类型为类型F,此时,如果获取到的配置的所述类型D的优先级高于所述类型E的优先级,且所述类型E的优先级高于所述类型F的优先级,则可以得出,所述刷新任务A的排列顺序先于所述刷新任务B的排列顺序,且所述刷新任务B的排列顺序先于所述刷新任务C的排列顺序,则所述电子设备可以筛选出所述刷新任务A作为所述当前刷新任务。For example, when the refresh task A includes the refresh task A, the refresh task B, and the refresh task C, the electronic device acquires the type of the refresh task A as type D, and the refresh task The type of B is type E, and the type of the refresh task C is type F. In this case, if the type D of the obtained configuration has a higher priority than the priority of the type E, and the type E If the priority of the refresh task A is higher than the priority of the type F, the order of the refresh task A is prior to the order of the refresh task B, and the order of the refresh task B precedes the After the order of the tasks C is refreshed, the electronic device may filter out the refresh task A as the current refresh task.
S12,所述电子设备获取至少一个刷新机器。S12. The electronic device acquires at least one refreshing machine.
在本实施例中,所述刷新机器包括用于执行刷新任务的服务器等。In the present embodiment, the refreshing machine includes a server or the like for performing a refresh task.
S13,所述电子设备根据所述至少一个刷新机器的性能参数及并发度, 确定当前刷新机器。S13. The electronic device determines, according to performance parameters and concurrency of the at least one refreshing machine, a current refreshing machine.
在本申请的至少一个实施例中,在一个刷新机器同时满足所述至少一个刷新机器的性能参数及并发度时,才能将所述一个刷新机器确定为所述当前刷新机器,具体实施方式将在下面分别进行描述。可以理解的是,本申请对所述至少一个刷新机器的性能参数及并发度的判断过程的顺序不做限制。In at least one embodiment of the present application, the one refreshing machine can be determined as the current refreshing machine when a refreshing machine simultaneously satisfies the performance parameters and the concurrency of the at least one refreshing machine, and the specific implementation manner will be The description is separately made below. It can be understood that the present application does not limit the order of the performance parameters and the judging process of the at least one refreshing machine.
优选地,所述电子设备根据所述至少一个刷新机器的性能参数,确定当前刷新机器包括:Preferably, the electronic device determines, according to the performance parameter of the at least one refreshing machine, that the current refreshing machine comprises:
所述电子设备获取所述至少一个刷新机器的性能参数,根据所述性能参数确定所述至少一个刷新机器的空闲度,获取空闲度最高的刷新机器,并将所述空闲度最高的刷新机器确定为所述当前刷新机器。Obtaining, by the electronic device, a performance parameter of the at least one refreshing machine, determining an idle degree of the at least one refreshing machine according to the performance parameter, acquiring a refreshing machine with the highest idleness, and determining the refreshing machine with the highest idleness Refresh the machine for the current one.
其中,所述空闲度表示每个刷新机器的性能参数的空闲比例。Wherein, the idleness represents an idle ratio of performance parameters of each refreshing machine.
优选地,所述性能参数包括,但不限于以下一种或者多种的组合:Preferably, the performance parameters include, but are not limited to, one or a combination of the following:
(1)CPU(Central Processing Unit,中央处理器)的原始容量及现存容量。(1) Original capacity and existing capacity of the CPU (Central Processing Unit).
(2)内存的原始容量及现存容量。(2) The original capacity and existing capacity of the memory.
(3)磁盘的原始容量及现存容量。(3) The original capacity and existing capacity of the disk.
(4)IPOS(Internet Protocol over SDH,同步数字传输体制中的网络协议)的原始容量及现存容量。(4) Original capacity and existing capacity of IPOS (Internet Protocol over SDH, network protocol in synchronous digital transmission system).
例如:所述电子设备获取刷新机器G的CPU的原始容量及现存容量,及获取所述获取刷新机器G的内存的原始容量及现存容量,如果所述刷新机器G的CPU占用率大于或者等于80%,且内存的占用率大于或者等于75%,则所述电子设备可以确定所述刷新机器G的空闲度低,也就是说,所述刷新机器G的状态为忙,所述刷新机器G不可以作为所述当前刷新机器;For example, the electronic device acquires the original capacity and the existing capacity of the CPU of the refreshing machine G, and acquires the original capacity and the existing capacity of the memory of the refreshing machine G, if the CPU usage of the refreshing machine G is greater than or equal to 80. %, and the memory occupancy rate is greater than or equal to 75%, the electronic device may determine that the idleness of the refreshing machine G is low, that is, the state of the refreshing machine G is busy, and the refreshing machine G does not Can be used as the current refresh machine;
所述电子设备获取刷新机器H的CPU的原始容量及现存容量,及获取所述获取刷新机器H的内存的原始容量及现存容量,如果所述刷新机器H的CPU占用率及内存的占用率的比例都是最低的,则所述电子设备可以确定所述刷新机器H的空闲度最高,则所述刷新机器H可能被作为所述当前刷新机器,具体将结合后面并发度的判断结果进一步确定。Obtaining, by the electronic device, the original capacity and the existing capacity of the CPU of the refreshing machine H, and acquiring the original capacity and the existing capacity of the memory of the acquiring refreshing machine H, if the CPU usage and the memory occupancy rate of the refreshing machine H are refreshed If the ratio is the lowest, the electronic device may determine that the refreshing machine H has the highest degree of idleness, and the refreshing machine H may be used as the current refreshing machine, and the determination result combined with the subsequent concurrency is further determined.
在本实施例中,所述电子设备根据所述至少一个刷新机器的并发度,确定当前刷新机器包括:In this embodiment, the determining, by the electronic device, the current refreshing machine according to the concurrency of the at least one refreshing machine includes:
所述电子设备获取配置的所述至少一个刷新机器的并发度,从所述至少一个刷新机器中确定并发度剩余量最多的刷新机器,并将所述并发度剩余量最多的刷新机器确定为所述当前刷新机器。Obtaining, by the electronic device, a concurrency of the configured at least one refreshing machine, determining, from the at least one refreshing machine, a refreshing machine having the most remaining amount of concurrency, and determining, as the refreshing device having the highest remaining amount of concurrency, The current refresh machine.
例如:如果在获取到的至少一个刷新机器中,所述刷新机器H的并发度剩余量最多,则所述电子设备可以将所述刷新机器H确定为所述当前刷新机器。For example, if at least one refresh machine is acquired, the refresh machine H has the most remaining amount of concurrency, the electronic device may determine the refresh machine H as the current refresh machine.
其中,所述并发度表示单位时间内,每个刷新机器可以同时处理的刷新任务的数量。The concurrency indicates the number of refresh tasks that each refreshing machine can process at the same time per unit time.
优选地,在根据所述至少一个刷新机器的性能参数及并发度,确定当前刷新机器前,所述方法还包括:Preferably, before determining the current refreshing machine according to the performance parameter and the concurrency of the at least one refreshing machine, the method further includes:
所述电子设备配置所述至少一个刷新机器的并发度。The electronic device configures a degree of concurrency of the at least one refresh machine.
具体地,所述电子设备配置所述至少一个刷新机器的并发度的方式包括,但不限于以下一种或者多种的组合:Specifically, the manner in which the electronic device configures the concurrency of the at least one refreshing machine includes, but is not limited to, one or a combination of the following:
(1)如果CPU核数大于或者等于第一核数,且内存大于或者等于第一内存,且磁盘容量大于或者等于第一磁盘容量,则所述电子设备配置所述并发度为第一并发度。(1) if the number of CPU cores is greater than or equal to the first core number, and the memory is greater than or equal to the first memory, and the disk capacity is greater than or equal to the first disk capacity, the electronic device configures the concurrency to be the first concurrency .
例如:如果CPU核数大于或者等于8核,且内存大于或者等于32G,且磁盘容量大于或者等于500G,则所述电子设备配置所述并发度为日刷新任务量6个,周刷新任务量4个,月刷新任务量2个。For example, if the number of CPU cores is greater than or equal to 8 cores, and the memory is greater than or equal to 32G, and the disk capacity is greater than or equal to 500G, the electronic device configures the concurrency to be 6 daily refresh task amounts, and the weekly refresh task amount 4 The monthly refresh task is 2.
(2)如果CPU核数大于第三核数且小于或者等于第二核数,或者内存大于第三内存且小于或者等于第二内存,或者磁盘容量大于第三磁盘容量且小于或者等于第二磁盘容量,则所述电子设备配置所述并发度为第二并发度。(2) If the CPU core number is greater than the third core number and less than or equal to the second core number, or the memory is greater than the third memory and less than or equal to the second memory, or the disk capacity is greater than the third disk capacity and less than or equal to the second disk The capacity is that the electronic device configures the concurrency to be a second concurrency.
例如:如果CPU核数大于2核且小于或者等于4核,或者内存大于8G且小于或者等于16G,或者磁盘容量大于100G且小于或者等于300G,则所述电子设备配置所述并发度为日刷新任务量1个,周刷新任务量0个,月刷新任务量0个。For example, if the number of CPU cores is greater than 2 cores and less than or equal to 4 cores, or the memory is greater than 8G and less than or equal to 16G, or the disk capacity is greater than 100G and less than or equal to 300G, the electronic device configures the concurrency to be a daily refresh. The number of tasks is one, the number of refreshed tasks is 0, and the number of refreshed tasks is 0.
(3)如果CPU核数小于或者等于第三核数,或者内存小于或者等于第三内存,或者磁盘容量小于或者等于第三容量,则所述电子设备配置所述并发度为第三并发度。(3) If the number of CPU cores is less than or equal to the third core number, or the memory is less than or equal to the third memory, or the disk capacity is less than or equal to the third capacity, the electronic device configures the concurrency to be a third concurrency.
例如:如果CPU核数小于或者等于2核,或者内存小于或者等于8G,或者磁盘容量小于或者等于100G,则所述电子设备配置所述并发度为日刷新任务量0个,周刷新任务量0个,月刷新任务量0个。For example, if the number of CPU cores is less than or equal to 2 cores, or the memory is less than or equal to 8G, or the disk capacity is less than or equal to 100G, the electronic device configures the concurrency to 0 for the daily refresh task, and the weekly refresh task amount is 0. The monthly refresh task volume is 0.
(4)在除上述三种情况的其他情况下,则所述电子设备配置所述并发度为第四并发度。(4) In other cases than the above three cases, the electronic device configures the concurrency to be a fourth concurrency.
例如:在其他情况下,则所述电子设备配置所述并发度为日刷新任务量3个,周刷新任务量2个,月刷新任务量1个。For example, in other cases, the electronic device configures the concurrency to three for the daily refresh task, two for the weekly refresh task, and one for the monthly refresh task.
由上述方案可以得到,所述第一核数大于所述第二核数,且所述第二核数大于所述第三核数;所述第一内存大于所述第二内存,且所述第二内存大于所述第三内存;所述第一磁盘容量大于所述第二磁盘容量,且所述第二磁盘容量大于所述第三磁盘容量。所述第一并发度的数量大于所述第四并发度的数量,所述第四并发度的数量大于所述第二并发度的数量,且所述第二并发度的数量大于所述第三并发度的数量。According to the foregoing solution, the first core number is greater than the second core number, and the second core number is greater than the third core number; the first memory is larger than the second memory, and the The second memory is larger than the third memory; the first disk capacity is greater than the second disk capacity, and the second disk capacity is greater than the third disk capacity. The number of the first concurrency is greater than the number of the fourth concurrency, the number of the fourth concurrency is greater than the number of the second concurrency, and the number of the second concurrency is greater than the third The number of concurrency.
S14,所述电子设备利用所述当前刷新机器对所述当前刷新任务进行刷新。S14. The electronic device refreshes the current refresh task by using the current refreshing machine.
优选地,在所述电子设备利用所述当前刷新机器对所述当前刷新任务进行刷新时,如果所述当前刷新机器中断执行,所述方法还包括:Preferably, when the electronic device uses the current refreshing machine to refresh the current refreshing task, if the current refreshing machine is interrupted, the method further includes:
所述电子设备记录所述当前刷新任务的刷新进度,根据所述当前刷新任务的刷新进度确定所述当前刷新任务的中断处,当经过预设时长后,所述刷新机器重新启动时,所述电子设备从所述当前刷新任务的中断处利用所述当前刷新机器继续刷新所述当前刷新任务;当经过预设时长后,所述刷新机器 未重新启动时,所述电子设备将以所述当前刷新任务的中断处为起点的所述当前刷新任务中未刷新的部分确定为所述待刷新任务,并为所述待刷新任务重新分配刷新机器。The electronic device records a refresh progress of the current refresh task, and determines an interruption of the current refresh task according to a refresh progress of the current refresh task, and when the refresh machine is restarted after a preset time period The electronic device continues to refresh the current refresh task by using the current refreshing machine from the interruption of the current refresh task; when the refreshing machine is not restarted after a preset time period elapses, the electronic device will use the current current The portion of the current refresh task that is the starting point of the refresh task is determined as the to-be-refreshed task, and the refreshing machine is re-allocated for the task to be refreshed.
例如:如果所述刷新任务A中包括x、y、z三个部分,在利用所述刷新机器H刷新所述刷新任务A的过程中,所述刷新机器H故障,中断了刷新,此时,所述电子设备记录显示所述刷新任务A中的x已经刷新完毕,而y和z未刷新,则所述电子设备确定y为中断处,如果经过预设时长10秒后,所述刷新机器H重新启动,则所述电子设备可以利用所述刷新机器H从y开始继续刷新y和z;如果经过预设时长10秒后,所述刷新机器H未重新启动,则所述电子设备将y和z确定为以y为起点的待刷新任务,并为所述待刷新任务重新分配刷新机器。For example, if the refresh task A includes three parts: x, y, and z, in the process of refreshing the refresh task A by using the refresh machine H, the refreshing machine H is faulty, and the refresh is interrupted. The electronic device records that x in the refresh task A has been refreshed, and y and z are not refreshed, then the electronic device determines that y is an interruption, and if the preset time is 10 seconds, the refreshing machine H Restarting, the electronic device can continue to refresh y and z from y by using the refreshing machine H; if the refreshing machine H is not restarted after a preset time of 10 seconds, the electronic device will y and z is determined to be a task to be refreshed starting from y, and reallocating the refreshing machine for the task to be refreshed.
通过上述实施方式,所述电子设备即可保证在所述当前刷新机器出现故障时,仍然不影响所述当前刷新任务的进行,避免造成时间的浪费,耽误后续任务的执行。Through the foregoing implementation manner, the electronic device can ensure that the current refreshing task does not affect the progress of the current refreshing task when the current refreshing machine fails, thereby avoiding waste of time and delaying execution of subsequent tasks.
优选地,在所述电子设备利用所述当前刷新机器对所述当前刷新任务进行刷新时,所述方法还包括:Preferably, when the electronic device refreshes the current refresh task by using the current refreshing machine, the method further includes:
所述电子设备获取所述当前刷新任务的关联刷新任务,并为所述关联刷新任务分配刷新机器。The electronic device acquires an associated refresh task of the current refresh task, and allocates a refresh machine to the associated refresh task.
具体地,所述关联刷新任务包括,但不限于:与所述当前刷新任务的主题相关的刷新任务,与所述当前刷新任务的内容相关的刷新任务,及用户指定的与所述当前刷新任务相关的刷新任务等。Specifically, the association refresh task includes, but is not limited to, a refresh task related to a theme of the current refresh task, a refresh task related to content of the current refresh task, and a user-specified and the current refresh task. Related refresh tasks, etc.
例如:如果所述当前刷新任务A包括补充刷新内容,则所述补充刷新内容即为所述当前刷新任务A的关联刷新任务,此时,如果按照配置的优先级规则确定下一个刷新任务,则可能耽误所述刷新任务A的补充,因此,所述电子设备可以直接为所述刷新任务A的关联刷新任务分配刷新机器。For example, if the current refresh task A includes the supplementary refresh content, the supplementary refresh content is the associated refresh task of the current refresh task A. At this time, if the next refresh task is determined according to the configured priority rule, The refresh of the refresh task A may be delayed, and therefore, the electronic device may directly allocate a refresh machine to the associated refresh task of the refresh task A.
通过上述实施方式,所述电子设备即可保证关联任务的连续性执行,使刷新任务的执行更加有条理。Through the foregoing implementation manner, the electronic device can ensure the continuous execution of the associated task, so that the execution of the refresh task is more organized.
优选地,在利用所述当前刷新机器对所述当前刷新任务进行刷新后,所述电子设备更新所述刷新任务列表,及更新所述至少一个刷新机器的性能参数及并发度,所述电子设备根据配置的优先级规则,从更新的刷新任务列表中获取第二刷新任务,再根据更新的至少一个刷新机器的性能参数及并发度,确定第二刷新机器,所述电子设备利用所述第二刷新机器对所述第二刷新任务进行刷新。Preferably, after refreshing the current refresh task by using the current refreshing machine, the electronic device updates the refresh task list, and updates performance parameters and concurrency of the at least one refreshing machine, the electronic device Obtaining a second refresh task from the updated refresh task list according to the configured priority rule, and determining a second refreshing machine according to the updated at least one performance parameter and the concurrency of the refreshing machine, where the electronic device utilizes the second The refreshing machine refreshes the second refresh task.
这样,根据更新后的所述刷新任务列表及更新后的所述至少一个刷新机器的性能参数及并发度,所述电子设备即可在此基础上进一步确定下一个刷新任务如何分配。In this way, based on the updated refresh task list and the updated performance parameters and concurrency of the at least one refreshing machine, the electronic device can further determine how to allocate the next refresh task.
具体地,采用上述实施方式,通过实时更新所述刷新任务列表,及更新所述至少一个刷新机器的性能参数及并发度,保证在所述当前刷新机器性能较优的情况下,所述电子设备仍然可以参与刷新任务的分配,这样,即使所述当前刷新机器刚刚分配了所述当前刷新任务,只要经过本技术方案中的判 断,所述当前刷新机器仍然是最佳分配对象,仍然可以分配所述第二刷新任务至所述当前刷新机器,以保证每个刷新任务都可以根据配置的优先级规则依次获得最佳的刷新方案。Specifically, in the foregoing embodiment, by updating the refresh task list in real time, and updating performance parameters and concurrency of the at least one refreshing machine, the electronic device is ensured in a case where the current refreshing machine performance is superior. It is still possible to participate in the allocation of the refresh task, such that even if the current refreshing machine has just allocated the current refreshing task, the current refreshing machine is still the best assigned object, and can still be allocated as long as it is judged in the technical solution. The second refresh task is performed to the current refreshing machine to ensure that each refresh task can sequentially obtain an optimal refreshing scheme according to the configured priority rule.
综上所述,本申请能获取刷新任务列表,所述刷新任务列表中存储着刷新任务;根据配置的优先级规则,从所述刷新任务列表中确定当前刷新任务;获取至少一个刷新机器;根据所述至少一个刷新机器的性能参数及并发度,确定当前刷新机器,这样即可保证每次刷新任务所使用的当前刷新机器的性能是最佳的,也就是说使每次刷新任务分配的方式最佳,这样,当所述电子设备利用所述当前刷新机器对所述当前刷新任务进行刷新时,可以提高刷新效率。In summary, the present application can obtain a refresh task list, where the refresh task list stores a refresh task; according to the configured priority rule, the current refresh task is determined from the refresh task list; at least one refresh machine is acquired; The at least one refreshing performance parameter and concurrency of the machine determines the current refreshing of the machine, so that the performance of the current refreshing machine used for each refreshing task is guaranteed to be optimal, that is, the manner in which the task is refreshed each time. Preferably, when the electronic device refreshes the current refresh task by using the current refreshing machine, the refresh efficiency can be improved.
如图2所示,是本申请刷新任务分配装置的较佳实施例的功能模块图。所述刷新任务分配装置11包括获取单元110、确定单元111、刷新单元112、配置单元113、记录单元114、分配单元115及更新单元116。本申请所称的模块/单元是指一种能够被处理器13所执行,并且能够完成固定功能的一系列计算机可读指令段,其存储在存储器12中。在本实施例中,关于各模块/单元的功能将在后续的实施例中详述。As shown in FIG. 2, it is a functional block diagram of a preferred embodiment of the refresh task assignment apparatus of the present application. The refresh task assignment device 11 includes an acquisition unit 110, a determination unit 111, a refresh unit 112, a configuration unit 113, a recording unit 114, an allocation unit 115, and an update unit 116. A module/unit referred to in this application refers to a series of computer readable instruction segments that can be executed by the processor 13 and that are capable of performing fixed functions, which are stored in the memory 12. In this embodiment, the functions of the respective modules/units will be detailed in the subsequent embodiments.
获取单元110获取刷新任务列表,所述刷新任务列表中存储着刷新任务。The obtaining unit 110 acquires a refresh task list, where the refresh task is stored in the refresh task list.
在本实施例中,所述刷新任务列表可以是空表,也可以存储至少一个刷新任务。In this embodiment, the refresh task list may be an empty table, or at least one refresh task may be stored.
在本实施例中,所述刷新任务是指需要进行刷新操作的任务,所述刷新任务包括,但不限于:需要使用COGNOS(康格诺)的OLAP(Online Analytical Processing,联机分析处理)数据抽取转换引擎(Transformer)对所述COGNOS模型的刷新进行刷新操作的任务。具体地,刷新是指通过刷新所述COGNOS模型,从而获取到最新的数据,生成数据立方体(Data CUBE)的过程,其中,生成的数据立方体用于提供给报表,作为本地数据源使用。In this embodiment, the refresh task refers to a task that needs to perform a refresh operation, and the refresh task includes, but is not limited to, an OLAP (Online Analytical Processing) data extraction that needs to use COGNOS. The transformation engine performs the task of refreshing the refresh of the COGNOS model. Specifically, the refresh refers to a process of generating a data cube (Data CUBE) by refreshing the COGNOS model to obtain the latest data, wherein the generated data cube is used for being provided to the report and used as a local data source.
例如:在发送邮件时,刷新任务可以作为邮件发送事件的前置任务等,通过刷新生成需要的数据立方体,并由所述需要的数据立方体为所述邮件发送事件的报表提供数据。For example, when sending a mail, the refresh task can be used as a pre-task of the mail sending event, etc., to generate a required data cube by refreshing, and provide data for the report of the mail sending event by the required data cube.
确定单元111根据配置的优先级规则,从所述刷新任务列表中确定当前刷新任务。The determining unit 111 determines the current refresh task from the refresh task list according to the configured priority rule.
优选地,在所述确定单元111根据配置的优先级规则,从所述刷新任务列表中确定当前刷新任务前,配置单元113配置所述优先级规则。Preferably, before the determining unit 111 determines the current refresh task from the refresh task list according to the configured priority rule, the configuration unit 113 configures the priority rule.
优选地,所述配置单元113配置所述优先级规则包括,但不限于以下一种或者多种的组合:Preferably, the configuration unit 113 configures the priority rule to include, but is not limited to, one or more of the following combinations:
(1)所述配置单元113根据所述刷新任务列表中每个刷新任务的生成时间,配置所述优先级规则。(1) The configuration unit 113 configures the priority rule according to the generation time of each refresh task in the refresh task list.
具体地,所述配置单元113根据所述刷新任务列表中每个刷新任务的生成时间由先到后的顺序,由高到低对应设置所述刷新任务列表中每个刷新任务的排列顺序。Specifically, the configuration unit 113 sets, according to the generation time of each refresh task in the refresh task list, the order of each refresh task in the refresh task list from high to low.
(2)所述配置单元113根据所述刷新任务列表中每个刷新任务的重要等 级,配置所述优先级规则。(2) The configuration unit 113 configures the priority rule according to an important level of each refresh task in the refresh task list.
具体地,所述配置单元113根据所述刷新任务列表中每个刷新任务的重要等级由高到低的顺序,由高到低对应设置所述刷新任务列表中每个刷新任务的排列顺序。Specifically, the configuration unit 113 sets the order of each refresh task in the refresh task list according to the order of importance of each refresh task in the refresh task list from high to low.
(3)所述配置单元113根据所述刷新任务列表中每个刷新任务的类型,配置所述优先级规则。(3) The configuration unit 113 configures the priority rule according to the type of each refresh task in the refresh task list.
具体地,所述配置单元113根据所述刷新任务列表中每个刷新任务的类型的优先级由高到低的顺序,由高到低对应设置所述刷新任务列表中每个刷新任务的排列顺序。Specifically, the configuration unit 113 sets the order of each refresh task in the refresh task list according to the order of priority of each refresh task in the refresh task list from high to low. .
当然,在其他实施例中,所述配置单元113也可以采取上述设置方案的组合,例如:所述配置单元113先确定优先级最高的同一个类型的刷新任务,再从所述优先级最高的同一个类型的刷新任务中,按照生成时间由先到后的顺序,对应设置所述优先级最高的同一个类型的刷新任务中每个刷新任务的排列顺序等。Of course, in other embodiments, the configuration unit 113 may also adopt a combination of the foregoing setting schemes. For example, the configuration unit 113 first determines the same type of refresh task with the highest priority, and then the highest priority. In the refresh task of the same type, the order of each refresh task in the same type of refresh task with the highest priority is set in the order of the generation time from the first to the last.
优选地,所述确定单元111根据配置的优先级规则,从所述刷新任务列表中确定当前刷新任务包括,但不限于以下一种或者多种的组合:Preferably, the determining unit 111 determines, according to the configured priority rule, that the current refresh task includes, but is not limited to, one or more of the following combinations:
(1)所述确定单元111获取所述刷新任务列表中每个刷新任务的生成时间,按照生成时间的先后顺序,筛选出排在最前的任务作为所述当前刷新任务。(1) The determining unit 111 acquires the generation time of each refresh task in the refresh task list, and selects the top-ranked task as the current refresh task according to the sequence of the generation time.
例如:当所述刷新任务列表中包括刷新任务A、刷新任务B及刷新任务C时,所述确定单元111获取所述刷新任务A、所述刷新任务B及所述刷新任务C的生成时间,如果获取到的所述刷新任务A的生成时间早于所述刷新任务B的生成时间,且所述刷新任务B的生成时间早于所述刷新任务C的生成时间,则所述确定单元111筛选出所述刷新任务A作为所述当前刷新任务。For example, when the refresh task A includes the refresh task A, the refresh task B, and the refresh task C, the determining unit 111 acquires the generation time of the refresh task A, the refresh task B, and the refresh task C, If the generated time of the refresh task A is earlier than the generation time of the refresh task B, and the generation time of the refresh task B is earlier than the generation time of the refresh task C, the determining unit 111 filters The refresh task A is taken out as the current refresh task.
(2)所述确定单元111获取配置的所述刷新任务列表中每个刷新任务的重要等级,按照重要等级的顺序,筛选出排在最前的任务作为所述当前刷新任务。(2) The determining unit 111 acquires the important level of each refresh task in the configured refresh task list, and selects the top ranked task as the current refresh task according to the order of the important levels.
具体地,在生成每个刷新任务时,所述确定单元111提示用户设置所述每个刷新任务的重要等级,所述确定单元111获取所述每个刷新任务的重要等级,并根据所述每个刷新任务的重要等级由高到低的顺序对应配置所述每个刷新任务的排列顺序。Specifically, when each refresh task is generated, the determining unit 111 prompts the user to set an important level of each refresh task, and the determining unit 111 acquires an important level of each refresh task, and according to each The order of importance of the refresh tasks from high to low corresponds to the order in which each of the refresh tasks is configured.
例如:当所述刷新任务列表中包括所述刷新任务A、所述刷新任务B及所述刷新任务C时,所述确定单元111获取配置的所述刷新任务A的重要等级、所述刷新任务B的重要等级及所述刷新任务C的重要等级,如果预先配置的重要等级由高到低依次为0-9,此时,如果获取到的所述刷新任务A的重要等级为0,所述刷新任务B的重要等级为5,所述刷新任务C的重要等级为9,则可以得出,所述刷新任务A的重要等级高于所述刷新任务B的重要等级,且所述刷新任务B的重要等级高于所述刷新任务C的重要等级,则所述确定单元111可以筛选出所述刷新任务A作为所述当前刷新任务。For example, when the refresh task A includes the refresh task A, the refresh task B, and the refresh task C, the determining unit 111 acquires the configured important level of the refresh task A and the refresh task. The importance level of B and the importance level of the refresh task C. If the pre-configured importance level is 0-9 in order from high to low, at this time, if the acquired importance level of the refresh task A is 0, The importance level of the refresh task B is 5, and the importance level of the refresh task C is 9, it can be concluded that the importance level of the refresh task A is higher than the important level of the refresh task B, and the refresh task B The importance level is higher than the importance level of the refresh task C, and the determining unit 111 may filter out the refresh task A as the current refresh task.
通过上述配置方式,即可根据所述用户操作时的实际需求对所述刷新任 务列表中每个刷新任务的排列顺序进行自定义设置,从而更加满足用户的实际需要,优先进行用户最急需刷新的任务,用户体验更佳。Through the above configuration manner, the order of each refresh task in the refresh task list can be customized according to the actual needs of the user operation, thereby more satisfying the actual needs of the user, and preferentially performing the most urgent need for the user to refresh. Mission, user experience is better.
(3)所述确定单元111获取所述刷新任务列表中每个刷新任务的类型,按照配置的类型的优先级顺序,筛选出排在最前的任务作为所述当前刷新任务。(3) The determining unit 111 acquires the type of each refresh task in the refresh task list, and selects the top-ranked task as the current refresh task according to the priority order of the configured type.
具体地,在生成每个刷新任务时,所述确定单元111提示用户设置所述每个刷新任务的类型的优先级,所述确定单元111获取所述类型的优先级,并根据所述类型的优先级由高到低的顺序对应配置所述每个刷新任务的排列顺序。Specifically, when each refresh task is generated, the determining unit 111 prompts the user to set the priority of the type of each refresh task, and the determining unit 111 acquires the priority of the type, and according to the type The order of priority from high to low corresponds to the order in which each of the refresh tasks is configured.
例如:当所述刷新任务列表中包括所述刷新任务A、所述刷新任务B及所述刷新任务C时,所述确定单元111获取到所述刷新任务A的类型为类型D、所述刷新任务B的类型为类型E,及所述刷新任务C的类型为类型F,此时,如果获取到的配置的所述类型D的优先级高于所述类型E的优先级,且所述类型E的优先级高于所述类型F的优先级,则可以得出,所述刷新任务A的排列顺序先于所述刷新任务B的排列顺序,且所述刷新任务B的排列顺序先于所述刷新任务C的排列顺序,则所述确定单元111可以筛选出所述刷新任务A作为所述当前刷新任务。For example, when the refresh task A includes the refresh task A, the refresh task B, and the refresh task C, the determining unit 111 acquires the type of the refresh task A as type D, and the refresh The type of the task B is the type E, and the type of the refresh task C is the type F. In this case, if the type D of the obtained configuration has a higher priority than the priority of the type E, and the type If the priority of E is higher than the priority of the type F, it can be concluded that the order of the refresh task A precedes the order of the refresh task B, and the order of the refresh task B precedes The refreshing task C may filter out the refresh task A as the current refresh task.
所述获取单元110获取至少一个刷新机器。The obtaining unit 110 acquires at least one refreshing machine.
在本实施例中,所述刷新机器包括用于执行刷新任务的服务器等。In the present embodiment, the refreshing machine includes a server or the like for performing a refresh task.
所述确定单元111根据所述至少一个刷新机器的性能参数及并发度,确定当前刷新机器。The determining unit 111 determines the current refreshing machine according to the performance parameter and the degree of concurrency of the at least one refreshing machine.
在本申请的至少一个实施例中,在一个刷新机器同时满足所述至少一个刷新机器的性能参数及并发度时,才能将所述一个刷新机器确定为所述当前刷新机器,具体实施方式将在下面分别进行描述。可以理解的是,本申请对所述至少一个刷新机器的性能参数及并发度的判断过程的顺序不做限制。In at least one embodiment of the present application, the one refreshing machine can be determined as the current refreshing machine when a refreshing machine simultaneously satisfies the performance parameters and the concurrency of the at least one refreshing machine, and the specific implementation manner will be The description is separately made below. It can be understood that the present application does not limit the order of the performance parameters and the judging process of the at least one refreshing machine.
优选地,所述确定单元111根据所述至少一个刷新机器的性能参数,确定当前刷新机器包括:Preferably, the determining unit 111 determines, according to the performance parameter of the at least one refreshing machine, that the current refreshing machine comprises:
所述确定单元111获取所述至少一个刷新机器的性能参数,根据所述性能参数确定所述至少一个刷新机器的空闲度,所述确定单元111获取空闲度最高的刷新机器,并将所述空闲度最高的刷新机器确定为所述当前刷新机器。The determining unit 111 acquires a performance parameter of the at least one refreshing machine, determines an idle degree of the at least one refreshing machine according to the performance parameter, and the determining unit 111 acquires a refreshing machine with the highest degree of idleness, and the idle state The highest refresh machine is determined to be the current refresh machine.
其中,所述空闲度表示每个刷新机器的性能参数的空闲比例。Wherein, the idleness represents an idle ratio of performance parameters of each refreshing machine.
优选地,所述性能参数包括,但不限于以下一种或者多种的组合:Preferably, the performance parameters include, but are not limited to, one or a combination of the following:
(1)CPU(Central Processing Unit,中央处理器)的原始容量及现存容量。(1) Original capacity and existing capacity of the CPU (Central Processing Unit).
(2)内存的原始容量及现存容量。(2) The original capacity and existing capacity of the memory.
(3)磁盘的原始容量及现存容量。(3) The original capacity and existing capacity of the disk.
(4)IPOS(Internet Protocol over SDH,同步数字传输体制中的网络协议)的原始容量及现存容量。(4) Original capacity and existing capacity of IPOS (Internet Protocol over SDH, network protocol in synchronous digital transmission system).
例如:所述确定单元111获取刷新机器G的CPU的原始容量及现存容量,及获取所述获取刷新机器G的内存的原始容量及现存容量,如果所述刷 新机器G的CPU占用率大于或者等于80%,且内存的占用率大于或者等于75%,则所述确定单元111可以确定所述刷新机器G的空闲度低,也就是说,所述刷新机器G的状态为忙,所述刷新机器G不可以作为所述当前刷新机器;For example, the determining unit 111 acquires the original capacity and the existing capacity of the CPU of the refreshing machine G, and acquires the original capacity and the existing capacity of the memory of the acquisition refreshing machine G, if the CPU usage of the refreshing machine G is greater than or equal to 80%, and the memory occupancy rate is greater than or equal to 75%, the determining unit 111 may determine that the idleness of the refreshing machine G is low, that is, the state of the refreshing machine G is busy, the refreshing machine G may not be used as the current refresh machine;
所述确定单元111获取刷新机器H的CPU的原始容量及现存容量,及获取所述获取刷新机器H的内存的原始容量及现存容量,如果所述刷新机器H的CPU占用率及内存的占用率的比例都是最低的,则所述确定单元111可以确定所述刷新机器H的空闲度最高,则所述刷新机器H可能被作为所述当前刷新机器,具体将结合后面并发度的判断结果进一步确定。The determining unit 111 acquires the original capacity and the existing capacity of the CPU of the refreshing machine H, and acquires the original capacity and the existing capacity of the memory of the refreshing machine H, if the CPU usage and memory usage of the refreshing machine H are refreshed. The determining unit 111 may determine that the refreshing machine H has the highest degree of idleness, and the refreshing machine H may be used as the current refreshing machine, specifically combining the judgment result of the subsequent concurrency degree. determine.
在本实施例中,所述确定单元111根据所述至少一个刷新机器的并发度,确定当前刷新机器包括:In this embodiment, the determining unit 111 determines, according to the concurrency of the at least one refreshing machine, that the current refreshing machine includes:
所述确定单元111获取配置的所述至少一个刷新机器的并发度,从所述至少一个刷新机器中确定并发度剩余量最多的刷新机器,并将所述并发度剩余量最多的刷新机器确定为所述当前刷新机器。The determining unit 111 acquires the concurrency of the configured at least one refreshing machine, determines a refreshing machine with the most remaining amount of concurrency from the at least one refreshing machine, and determines the refreshing machine with the most remaining amount of concurrency as The current refresh machine.
例如:如果在获取到的至少一个刷新机器中,所述刷新机器H的并发度剩余量最多,则所述确定单元111可以将所述刷新机器H确定为所述当前刷新机器。For example, if at least one refresh machine is acquired, the flushing machine H has the most remaining amount of concurrency, the determining unit 111 may determine the refreshing machine H as the current refreshing machine.
其中,所述并发度表示单位时间内,每个刷新机器可以同时处理的刷新任务的数量。The concurrency indicates the number of refresh tasks that each refreshing machine can process at the same time per unit time.
优选地,在根据所述至少一个刷新机器的性能参数及并发度,确定当前刷新机器前,所述方法还包括:Preferably, before determining the current refreshing machine according to the performance parameter and the concurrency of the at least one refreshing machine, the method further includes:
所述配置单元113配置所述至少一个刷新机器的并发度。The configuration unit 113 configures the degree of concurrency of the at least one refresh machine.
具体地,配置单元113配置所述至少一个刷新机器的并发度的方式包括,但不限于以下一种或者多种的组合:Specifically, the manner in which the configuration unit 113 configures the concurrency of the at least one refreshing machine includes, but is not limited to, one or a combination of the following:
(1)如果CPU核数大于或者等于第一核数,且内存大于或者等于第一内存,且磁盘容量大于或者等于第一磁盘容量,则所述配置单元113配置所述并发度为第一并发度。(1) If the CPU core number is greater than or equal to the first core number, and the memory is greater than or equal to the first memory, and the disk capacity is greater than or equal to the first disk capacity, the configuration unit 113 configures the concurrency to be the first concurrent degree.
例如:如果CPU核数大于或者等于8核,且内存大于或者等于32G,且磁盘容量大于或者等于500G,则所述配置单元113配置所述并发度为日刷新任务量6个,周刷新任务量4个,月刷新任务量2个。For example, if the number of CPU cores is greater than or equal to 8 cores, and the memory is greater than or equal to 32G, and the disk capacity is greater than or equal to 500G, the configuration unit 113 configures the concurrency to be 6 daily refresh task amounts, and the weekly refresh task amount. 4, the monthly refresh task is 2.
(2)如果CPU核数大于第三核数且小于或者等于第二核数,或者内存大于第三内存且小于或者等于第二内存,或者磁盘容量大于第三磁盘容量且小于或者等于第二磁盘容量,则所述配置单元113配置所述并发度为第二并发度。(2) If the CPU core number is greater than the third core number and less than or equal to the second core number, or the memory is greater than the third memory and less than or equal to the second memory, or the disk capacity is greater than the third disk capacity and less than or equal to the second disk For the capacity, the configuration unit 113 configures the concurrency to be a second concurrency.
例如:如果CPU核数大于2核且小于或者等于4核,或者内存大于8G且小于或者等于16G,或者磁盘容量大于100G且小于或者等于300G,则所述配置单元113配置所述并发度为日刷新任务量1个,周刷新任务量0个,月刷新任务量0个。For example, if the number of CPU cores is greater than 2 cores and less than or equal to 4 cores, or the memory is greater than 8G and less than or equal to 16G, or the disk capacity is greater than 100G and less than or equal to 300G, the configuration unit 113 configures the concurrency as a day. The refresh task volume is one, the weekly refresh task volume is 0, and the monthly refresh task volume is 0.
(3)如果CPU核数小于或者等于第三核数,或者内存小于或者等于第三内存,或者磁盘容量小于或者等于第三容量,则所述配置单元113配置所述并发度为第三并发度。(3) If the CPU core number is less than or equal to the third core number, or the memory is less than or equal to the third memory, or the disk capacity is less than or equal to the third capacity, the configuration unit 113 configures the concurrency to be the third concurrency .
例如:如果CPU核数小于或者等于2核,或者内存小于或者等于8G,或者磁盘容量小于或者等于100G,则所述配置单元113配置所述并发度为日刷新任务量0个,周刷新任务量0个,月刷新任务量0个。For example, if the number of CPU cores is less than or equal to 2 cores, or the memory is less than or equal to 8G, or the disk capacity is less than or equal to 100G, the configuration unit 113 configures the concurrency to be 0 for the daily refresh task amount, and the weekly refresh task amount. 0, monthly refresh task amount 0.
(4)在除上述三种情况的其他情况下,则所述配置单元113配置所述并发度为第四并发度。(4) In other cases than the above three cases, the configuration unit 113 configures the concurrency to be the fourth concurrency.
例如:在其他情况下,则所述配置单元113配置所述并发度为日刷新任务量3个,周刷新任务量2个,月刷新任务量1个。For example, in other cases, the configuration unit 113 configures the concurrency to be three daily refresh task amounts, two weekly refresh task amounts, and one monthly refresh task amount.
由上述方案可以得到,所述第一核数大于所述第二核数,且所述第二核数大于所述第三核数;所述第一内存大于所述第二内存,且所述第二内存大于所述第三内存;所述第一磁盘容量大于所述第二磁盘容量,且所述第二磁盘容量大于所述第三磁盘容量。所述第一并发度的数量大于所述第四并发度的数量,所述第四并发度的数量大于所述第二并发度的数量,且所述第二并发度的数量大于所述第三并发度的数量。According to the foregoing solution, the first core number is greater than the second core number, and the second core number is greater than the third core number; the first memory is larger than the second memory, and the The second memory is larger than the third memory; the first disk capacity is greater than the second disk capacity, and the second disk capacity is greater than the third disk capacity. The number of the first concurrency is greater than the number of the fourth concurrency, the number of the fourth concurrency is greater than the number of the second concurrency, and the number of the second concurrency is greater than the third The number of concurrency.
刷新单元112利用所述当前刷新机器对所述当前刷新任务进行刷新。The refresh unit 112 refreshes the current refresh task by using the current refresh machine.
优选地,在所述刷新单元112利用所述当前刷新机器对所述当前刷新任务进行刷新时,如果所述当前刷新机器中断执行,所述方法还包括:Preferably, when the refreshing unit 112 uses the current refreshing machine to refresh the current refreshing task, if the current refreshing machine is interrupted, the method further includes:
记录单元114记录所述当前刷新任务的刷新进度,根据所述当前刷新任务的刷新进度确定所述当前刷新任务的中断处,当经过预设时长后,所述刷新机器重新启动时,所述刷新单元112从所述当前刷新任务的中断处利用所述当前刷新机器继续刷新所述当前刷新任务;当经过预设时长后,所述刷新机器未重新启动时,所述确定单元111将以所述当前刷新任务的中断处为起点的所述当前刷新任务中未刷新的部分确定为所述待刷新任务,分配单元115为所述待刷新任务重新分配刷新机器。The recording unit 114 records the refresh progress of the current refresh task, determines the interruption of the current refresh task according to the refresh progress of the current refresh task, and when the refresh machine restarts after the preset duration, the refresh The unit 112 continues to refresh the current refresh task by using the current refreshing machine from the interruption of the current refresh task; when the refreshing machine is not restarted after a preset time period elapses, the determining unit 111 will The portion of the current refresh task that is the starting point of the current refresh task is determined as the to-be-refreshed task, and the allocating unit 115 re-allocates the refresh machine for the task to be refreshed.
例如:如果所述刷新任务A中包括x、y、z三个部分,在利用所述刷新机器H刷新所述刷新任务A的过程中,所述刷新机器H故障,中断了刷新,此时,所述记录单元114记录显示所述刷新任务A中的x已经刷新完毕,而y和z未刷新,则所述确定单元111确定y为中断处,如果经过预设时长10秒后,所述刷新机器H重新启动,则所述刷新单元112可以利用所述刷新机器H从y开始继续刷新y和z;如果经过预设时长10秒后,所述刷新机器H未重新启动,则所述确定单元111将y和z确定为以y为起点的待刷新任务,所述分配单元115为所述待刷新任务重新分配刷新机器。For example, if the refresh task A includes three parts: x, y, and z, in the process of refreshing the refresh task A by using the refresh machine H, the refreshing machine H is faulty, and the refresh is interrupted. The recording unit 114 records that x in the refresh task A has been refreshed, and y and z are not refreshed, then the determining unit 111 determines that y is an interruption, and if the preset time is 10 seconds, the refresh When the machine H is restarted, the refresh unit 112 can continue to refresh y and z from y by using the refreshing machine H; if the refreshing machine H is not restarted after a preset time of 10 seconds, the determining unit 111 determines y and z as tasks to be refreshed starting from y, and the allocating unit 115 reallocates the refreshing machine for the task to be refreshed.
通过上述实施方式,所述电子设备即可保证在所述当前刷新机器出现故障时,仍然不影响所述当前刷新任务的进行,避免造成时间的浪费,耽误后续任务的执行。Through the foregoing implementation manner, the electronic device can ensure that the current refreshing task does not affect the progress of the current refreshing task when the current refreshing machine fails, thereby avoiding waste of time and delaying execution of subsequent tasks.
优选地,在所述刷新单元112利用所述当前刷新机器对所述当前刷新任务进行刷新时,所述方法还包括:Preferably, when the refreshing unit 112 uses the current refreshing machine to refresh the current refreshing task, the method further includes:
所述获取单元110获取所述当前刷新任务的关联刷新任务,所述分配单元115为所述关联刷新任务分配刷新机器。The acquiring unit 110 acquires an associated refresh task of the current refresh task, and the allocating unit 115 allocates a refreshing machine to the associated refresh task.
具体地,所述关联刷新任务包括,但不限于:与所述当前刷新任务的主题相关的刷新任务,与所述当前刷新任务的内容相关的刷新任务,及用户指 定的与所述当前刷新任务相关的刷新任务等。Specifically, the association refresh task includes, but is not limited to, a refresh task related to a theme of the current refresh task, a refresh task related to content of the current refresh task, and a user-specified and the current refresh task. Related refresh tasks, etc.
例如:如果所述当前刷新任务A包括补充刷新内容,则所述补充刷新内容即为所述当前刷新任务A的关联刷新任务,此时,如果按照配置的优先级规则确定下一个刷新任务,则可能耽误所述刷新任务A的补充,因此,所述分配单元115可以直接为所述刷新任务A的关联刷新任务分配刷新机器。For example, if the current refresh task A includes the supplementary refresh content, the supplementary refresh content is the associated refresh task of the current refresh task A. At this time, if the next refresh task is determined according to the configured priority rule, The refreshing of the refresh task A may be delayed, and therefore, the allocating unit 115 may directly allocate a refreshing machine to the associated refresh task of the refresh task A.
通过上述实施方式,所述电子设备即可保证关联任务的连续性执行,使刷新任务的执行更加有条理。Through the foregoing implementation manner, the electronic device can ensure the continuous execution of the associated task, so that the execution of the refresh task is more organized.
优选地,在利用所述当前刷新机器对所述当前刷新任务进行刷新后,更新单元116更新所述刷新任务列表,及更新所述至少一个刷新机器的性能参数及并发度,所述获取单元110根据配置的优先级规则,从更新的刷新任务列表中获取第二刷新任务,所述确定单元111根据更新的至少一个刷新机器的性能参数及并发度,确定第二刷新机器,所述刷新单元112利用所述第二刷新机器对所述第二刷新任务进行刷新。Preferably, after refreshing the current refresh task by using the current refreshing machine, the updating unit 116 updates the refresh task list, and updates performance parameters and concurrency of the at least one refreshing machine, and the acquiring unit 110 Obtaining a second refresh task from the updated refresh task list according to the configured priority rule, the determining unit 111 determining the second refreshing machine according to the updated performance parameter and the degree of concurrency of the at least one refreshing machine, the refreshing unit 112 The second refresh task is refreshed by the second refreshing machine.
这样,根据更新后的所述刷新任务列表及更新后的所述至少一个刷新机器的性能参数及并发度,所述刷新单元112即可在此基础上进一步确定下一个刷新任务如何分配。In this way, based on the updated refresh task list and the updated performance parameters and concurrency of the at least one refreshing machine, the refresh unit 112 may further determine how to allocate the next refresh task.
具体地,采用上述实施方式,通过实时更新所述刷新任务列表,及更新所述至少一个刷新机器的性能参数及并发度,保证在所述当前刷新机器性能较优的情况下,所述刷新单元112仍然可以参与刷新任务的分配,这样,即使所述当前刷新机器刚刚分配了所述当前刷新任务,只要经过本技术方案中的判断,所述当前刷新机器仍然是最佳分配对象,仍然可以分配所述第二刷新任务至所述当前刷新机器,以保证每个刷新任务都可以根据配置的优先级规则依次获得最佳的刷新方案。Specifically, in the foregoing embodiment, the refreshing task list is updated in real time, and the performance parameters and the concurrency of the at least one refreshing machine are updated to ensure that the refreshing unit is better when the current refreshing machine performance is superior. 112 can still participate in the allocation of the refresh task, such that even if the current refreshing machine has just allocated the current refresh task, as long as the judgment in the technical solution, the current refreshing machine is still the best allocation object, can still be allocated The second refresh task is to the current refreshing machine to ensure that each refresh task can obtain an optimal refreshing scheme according to the configured priority rule.
综上所述,本申请能获取刷新任务列表,所述刷新任务列表中存储着刷新任务;根据配置的优先级规则,从所述刷新任务列表中确定当前刷新任务;获取至少一个刷新机器;根据所述至少一个刷新机器的性能参数及并发度,确定当前刷新机器,这样即可保证每次刷新任务所使用的当前刷新机器的性能是最佳的,也就是说使每次刷新任务分配的方式最佳,这样,当所述电子设备利用所述当前刷新机器对所述当前刷新任务进行刷新时,可以提高刷新效率。In summary, the present application can obtain a refresh task list, where the refresh task list stores a refresh task; according to the configured priority rule, the current refresh task is determined from the refresh task list; at least one refresh machine is acquired; The at least one refreshing performance parameter and concurrency of the machine determines the current refreshing of the machine, so that the performance of the current refreshing machine used for each refreshing task is guaranteed to be optimal, that is, the manner in which the task is refreshed each time. Preferably, when the electronic device refreshes the current refresh task by using the current refreshing machine, the refresh efficiency can be improved.
如图3所示,是本申请实现刷新任务分配方法的较佳实施例的电子设备的结构示意图。FIG. 3 is a schematic structural diagram of an electronic device according to a preferred embodiment of the method for implementing a refresh task according to the present application.
所述电子设备1是一种能够按照事先设定或存储的指令,自动进行数值计算和/或信息处理的设备,其硬件包括但不限于微处理器、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程门阵列(Field-Programmable Gate Array,FPGA)、数字处理器(Digital Signal Processor,DSP)、嵌入式设备等。The electronic device 1 is a device capable of automatically performing numerical calculation and/or information processing according to an instruction set or stored in advance, and the hardware includes, but not limited to, a microprocessor, an application specific integrated circuit (ASIC). ), Field-Programmable Gate Array (FPGA), Digital Signal Processor (DSP), embedded devices, etc.
所述电子设备1还可以是但不限于任何一种可与用户通过键盘、鼠标、遥控器、触摸板或声控设备等方式进行人机交互的电子产品,例如,个人计算机、平板电脑、智能手机、个人数字助理(Personal Digital Assistant,PDA)、 游戏机、交互式网络电视(Internet Protocol Television,IPTV)、智能式穿戴式设备等。The electronic device 1 can also be, but is not limited to, any electronic product that can interact with a user through a keyboard, a mouse, a remote controller, a touch panel, or a voice control device, such as a personal computer, a tablet, or a smart phone. , Personal Digital Assistant (PDA), game consoles, Internet Protocol Television (IPTV), smart wearable devices, etc.
所述电子设备1还可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。The electronic device 1 can also be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
所述电子设备1所处的网络包括但不限于互联网、广域网、城域网、局域网、虚拟专用网络(Virtual Private Network,VPN)等。The network in which the electronic device 1 is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), and the like.
在本申请的一个实施例中,所述电子设备1包括,但不限于,存储器12、处理器13,以及存储在所述存储器12中并可在所述处理器13上运行的计算机可读指令,例如刷新任务分配程序。In one embodiment of the present application, the electronic device 1 includes, but is not limited to, a memory 12, a processor 13, and computer readable instructions stored in the memory 12 and executable on the processor 13. , for example, refresh the task dispatcher.
本领域技术人员可以理解,所述示意图仅仅是电子设备1的示例,并不构成对电子设备1的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述电子设备1还可以包括输入输出设备、网络接入设备、总线等。It will be understood by those skilled in the art that the schematic diagram is merely an example of the electronic device 1, does not constitute a limitation on the electronic device 1, may include more or less components than those illustrated, or combine some components, or different. Components such as the electronic device 1 may also include input and output devices, network access devices, buses, and the like.
所称处理器13可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器13是所述电子设备1的运算核心和控制中心,利用各种接口和线路连接整个电子设备1的各个部分,及执行所述电子设备1的操作系统以及安装的各类应用程序、程序代码等。The processor 13 may be a central processing unit (CPU), or may be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the processor 13 is an operation core and a control center of the electronic device 1, and connects the entire electronic device by using various interfaces and lines. Each part of 1 and an operating system of the electronic device 1 and various installed applications, program codes, and the like.
所述处理器13执行所述电子设备1的操作系统以及安装的各类应用程序。所述处理器13执行所述应用程序以实现上述各个刷新任务分配方法实施例中的步骤,例如图1所示的步骤S10、S11、S12、S13、S14。The processor 13 executes an operating system of the electronic device 1 and various types of installed applications. The processor 13 executes the application to implement the steps in the foregoing various refresh task assignment method embodiments, such as steps S10, S11, S12, S13, and S14 shown in FIG.
或者,所述处理器13执行所述计算机可读指令时实现上述各装置实施例中各模块/单元的功能,例如:获取刷新任务列表,所述刷新任务列表中存储着刷新任务;根据配置的优先级规则,从所述刷新任务列表中确定当前刷新任务;获取至少一个刷新机器;根据所述至少一个刷新机器的性能参数及并发度,确定当前刷新机器;利用所述当前刷新机器对所述当前刷新任务进行刷新。Alternatively, the processor 13 implements the functions of each module/unit in each device embodiment when executing the computer readable instructions, for example, acquiring a refresh task list, where the refresh task list stores a refresh task; a priority rule, determining a current refresh task from the refresh task list; acquiring at least one refresh machine; determining, according to the performance parameter and the degree of concurrency of the at least one refreshing machine, a current refreshing machine; using the current refreshing machine pair The current refresh task is refreshed.
示例性的,所述计算机可读指令可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器12中,并由所述处理器13执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机可读指令段,该指令段用于描述所述计算机可读指令在所述电子设备1中的执行过程。例如,所述计算机可读指令可以被分割成获取单元110、确定单元111、刷新单元112、配置单元113、记录单元114、分配单元115及更新单元116。Illustratively, the computer readable instructions may be partitioned into one or more modules/units, the one or more modules/units being stored in the memory 12 and executed by the processor 13 to Complete this application. The one or more modules/units may be a series of computer readable instruction segments capable of performing a particular function for describing the execution of the computer readable instructions in the electronic device 1. For example, the computer readable instructions may be divided into an acquisition unit 110, a determination unit 111, a refresh unit 112, a configuration unit 113, a recording unit 114, an allocation unit 115, and an update unit 116.
所述存储器12可用于存储所述计算机可读指令和/或模块,所述处理器13通过运行或执行存储在所述存储器12内的计算机可读指令和/或模块,以 及调用存储在存储器12内的数据,实现所述电子设备1的各种功能。所述存储器12可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器12可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 12 can be used to store the computer readable instructions and/or modules, which are stored or executed in a memory 12 by running or executing computer readable instructions and/or modules stored in the memory 12. The internal data implements various functions of the electronic device 1. The memory 12 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; Stores data created based on the use of the phone (such as audio data, phone book, etc.). In addition, the memory 12 may include a high-speed random access memory, and may also include a non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a secure digital (SD). Card, flash card, at least one disk storage device, flash device, or other volatile solid state storage device.
所述存储器12可以是电子设备1的外部存储器和/或内部存储器。进一步地,所述存储器12可以是集成电路中没有实物形式的具有存储功能的电路,如RAM(Random-Access Memory,随机存取存储器)、FIFO(First In First Out,)等。或者,所述存储器12也可以是具有实物形式的存储器,如内存条、TF卡(Trans-flash Card)等等。The memory 12 may be an external memory and/or an internal memory of the electronic device 1. Further, the memory 12 may be a circuit having a storage function in a physical form, such as a RAM (Random-Access Memory), a FIFO (First In First Out), or the like. Alternatively, the memory 12 may also be a memory having a physical form such as a memory stick, a TF card, or the like.
所述电子设备1集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个非易失性可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性可读存储介质中,该计算机可读指令在被处理器执行时,可实现上述各个方法实施例的步骤。The modules/units integrated by the electronic device 1 can be stored in a non-volatile readable storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the present application implements all or part of the processes in the foregoing embodiments, and may also be implemented by computer-readable instructions, which may be stored in a non-volatile manner. In reading a storage medium, the computer readable instructions, when executed by a processor, implement the steps of the various method embodiments described above.
其中,所述计算机可读指令包括计算机可读指令代码,所述计算机可读指令代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述非易失性可读介质可以包括:能够携带所述计算机可读指令代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述非易失性可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,非易失性可读介质不包括电载波信号和电信信号。Wherein, the computer readable instructions comprise computer readable instruction code, which may be in the form of source code, an object code form, an executable file or some intermediate form or the like. The non-transitory readable medium may include any entity or device capable of carrying the computer readable instruction code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read only memory (ROM, Read-Only Memory), Random Access Memory (RAM), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the contents of the non-volatile readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, Volatile readable media does not include electrical carrier signals and telecommunication signals.
结合图1,所述电子设备1中的所述存储器12存储多个指令以实现一种刷新任务分配方法,所述处理器13可执行所述多个指令从而实现:获取刷新任务列表,所述刷新任务列表中存储着刷新任务;根据配置的优先级规则,从所述刷新任务列表中确定当前刷新任务;获取至少一个刷新机器;根据所述至少一个刷新机器的性能参数及并发度,确定当前刷新机器;利用所述当前刷新机器对所述当前刷新任务进行刷新。With reference to FIG. 1, the memory 12 in the electronic device 1 stores a plurality of instructions to implement a refresh task assignment method, and the processor 13 can execute the plurality of instructions to: obtain a refresh task list, The refresh task is stored in the refresh task list; the current refresh task is determined from the refresh task list according to the configured priority rule; at least one refresh machine is acquired; and the current performance parameter and the degree of concurrency of the at least one refreshed machine are used to determine the current Refreshing the machine; refreshing the current refresh task with the current refresh machine.
具体地,所述处理器13对上述指令的具体实现方法可参考图1对应实施例中相关步骤的描述,在此不赘述。For details, refer to the description of the related steps in the corresponding embodiment of FIG. 1 for the specific implementation of the foregoing instructions, and details are not described herein.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division, and the actual implementation may have another division manner.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software function modules.
对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其他的具体形式实现本申请。It is obvious to those skilled in the art that the present application is not limited to the details of the above-described exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present application.
因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本申请内。不应将权利要求中的任何附关联图标记视为限制所涉及的权利要求。Therefore, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the invention is defined by the appended claims instead All changes in the meaning and scope of equivalent elements are included in this application. Any accompanying drawings in the claims should not be construed as limiting the claim.
此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第二等词语用来表示名称,而并不表示任何特定的顺序。In addition, it is to be understood that the word "comprising" does not exclude other elements or steps. A plurality of units or devices recited in the system claims can also be implemented by a unit or device by software or hardware. The second word is used to denote the name and does not denote any particular order.
最后应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。It should be noted that the above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto. Although the present application is described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application can be applied. Modifications or equivalents are made without departing from the spirit and scope of the technical solutions of the present application.

Claims (20)

  1. 一种刷新任务分配方法,其特征在于,所述方法包括:A refresh task assignment method, characterized in that the method comprises:
    获取刷新任务列表,所述刷新任务列表中存储着刷新任务;Obtaining a refresh task list, where the refresh task is stored in the refresh task list;
    根据配置的优先级规则,从所述刷新任务列表中确定当前刷新任务;Determining a current refresh task from the refresh task list according to the configured priority rule;
    获取至少一个刷新机器;Get at least one refresh machine;
    根据所述至少一个刷新机器的性能参数及并发度,确定当前刷新机器;Determining a current refreshing machine according to the performance parameter and the degree of concurrency of the at least one refreshing machine;
    利用所述当前刷新机器对所述当前刷新任务进行刷新。The current refresh task is refreshed by the current refresh machine.
  2. 如权利要求1所述的刷新任务分配方法,其特征在于,在根据配置的优先级规则,从所述刷新任务列表中确定当前刷新任务前,所述方法还包括:The method for allocating a refresh task according to claim 1, wherein before the current refresh task is determined from the refresh task list according to the configured priority rule, the method further includes:
    配置所述优先级规则;Configuring the priority rule;
    所述配置所述优先级规则包括以下一种或者多种的组合:The configuring the priority rule includes one or a combination of the following:
    根据所述刷新任务列表中每个刷新任务的生成时间,配置所述优先级规则;及/或Configuring the priority rule according to the generation time of each refresh task in the refresh task list; and/or
    根据所述刷新任务列表中每个刷新任务的重要等级,配置所述优先级规则;及/或Configuring the priority rule according to an important level of each refresh task in the refresh task list; and/or
    根据所述刷新任务列表中每个刷新任务的类型,配置所述优先级规则。The priority rule is configured according to the type of each refresh task in the refresh task list.
  3. 如权利要求2所述的刷新任务分配方法,其特征在于,所述根据配置的优先级规则,从所述刷新任务列表中确定当前刷新任务包括以下一种或者多种的组合:The refresh task assignment method according to claim 2, wherein the determining, according to the configured priority rule, the current refresh task from the refresh task list comprises one or more of the following combinations:
    获取所述刷新任务列表中每个刷新任务的生成时间,按照生成时间的先后顺序,筛选出排在最前的任务作为所述当前刷新任务;及/或Obtaining a generation time of each refresh task in the refresh task list, and filtering the top-ranked task as the current refresh task according to the sequence of generating time; and/or
    获取配置的所述刷新任务列表中每个刷新任务的重要等级,按照重要等级的顺序,筛选出排在最前的任务作为所述当前刷新任务;及/或Obtaining an important level of each refresh task in the configured refresh task list, and filtering the top-ranked task as the current refresh task according to an order of importance levels; and/or
    获取所述刷新任务列表中每个刷新任务的类型,按照配置的类型的优先级顺序,筛选出排在最前的任务作为所述当前刷新任务。Obtaining the type of each refresh task in the refresh task list, and filtering the top-ranked task as the current refresh task according to the priority order of the configured type.
  4. 如权利要求1所述的刷新任务分配方法,其特征在于,所述根据所述至少一个刷新机器的性能参数及并发度,确定当前刷新机器包括:The refresh task allocation method according to claim 1, wherein the determining the current refreshing machine according to the performance parameter and the concurrency of the at least one refreshing machine comprises:
    获取所述至少一个刷新机器的性能参数,根据所述性能参数确定所述至少一个刷新机器的空闲度,获取空闲度最高的刷新机器,并将所述空闲度最高的刷新机器确定为所述当前刷新机器;及Obtaining performance parameters of the at least one refreshing machine, determining, according to the performance parameter, the idleness of the at least one refreshing machine, acquiring a refreshing machine with the highest degree of idleness, and determining the refreshing machine with the highest degree of idleness as the current Refresh the machine; and
    获取配置的所述至少一个刷新机器的并发度,从所述至少一个刷新机器中确定并发度剩余量最多的刷新机器,并将所述并发度剩余量最多的刷新机器确定为所述当前刷新机器。Obtaining a concurrency of the configured at least one refreshing machine, determining, from the at least one refreshing machine, a refreshing machine having the most remaining amount of concurrency, and determining the refreshing machine having the most remaining amount of concurrency as the current refreshing machine .
  5. 如权利要求1所述的刷新任务分配方法,其特征在于,在根据所述至少一个刷新机器的性能参数及并发度,确定当前刷新机器前,所述方法还包括:The refresh task allocation method according to claim 1, wherein before the current refreshing of the machine is determined according to the performance parameter and the degree of concurrency of the at least one refreshing machine, the method further comprises:
    配置所述至少一个刷新机器的并发度;Configuring a degree of concurrency of the at least one refreshing machine;
    所述配置所述至少一个刷新机器的并发度包括以下一种或者多种的组合:The concurrency of configuring the at least one refreshing machine includes one or a combination of the following:
    如果CPU核数大于或者等于第一核数,且内存大于或者等于第一内存,且磁盘容量大于或者等于第一磁盘容量,则配置所述并发度为第一并发度;及If the number of CPU cores is greater than or equal to the first core number, and the memory is greater than or equal to the first memory, and the disk capacity is greater than or equal to the first disk capacity, configuring the concurrency to be the first concurrency;
    如果CPU核数大于第三核数且小于或者等于第二核数,或者内存大于第三内存且小于或者等于第二内存,或者磁盘容量大于第三磁盘容量且小于或者等于第二磁盘容量,则配置所述并发度为第二并发度;及If the number of CPU cores is greater than the third core number and less than or equal to the second core number, or the memory is greater than the third memory and less than or equal to the second memory, or the disk capacity is greater than the third disk capacity and less than or equal to the second disk capacity, then Configuring the concurrency to be a second concurrency; and
    如果CPU核数小于或者等于第三核数,或者内存小于或者等于第三内存,或者磁盘容量小于或者等于第三容量,则配置所述并发度为第三并发度;及If the number of CPU cores is less than or equal to the third core number, or the memory is less than or equal to the third memory, or the disk capacity is less than or equal to the third capacity, configuring the concurrency to be a third concurrency;
    在除上述三种情况的其他情况下,则配置所述并发度为第四并发度。In other cases than the above three cases, the concurrency is configured as a fourth concurrency.
  6. 如权利要求1所述的刷新任务分配方法,其特征在于,在利用所述当前刷新机器对所述当前刷新任务进行刷新时,所述方法还包括:The refresh task assignment method according to claim 1, wherein when the current refreshing machine is used to refresh the current refreshing task, the method further includes:
    如果所述当前刷新机器中断执行,记录所述当前刷新任务的刷新进度;If the current refreshing machine interrupts execution, recording a refresh progress of the current refresh task;
    根据所述当前刷新任务的刷新进度确定所述当前刷新任务的中断处;Determining an interruption of the current refresh task according to a refresh progress of the current refresh task;
    当经过预设时长后,所述刷新机器重新启动时,从所述当前刷新任务的中断处利用所述当前刷新机器继续刷新所述当前刷新任务;或者When the refreshing machine restarts after the preset time period elapses, the current refreshing machine continues to refresh the current refreshing task from the interruption of the current refreshing task; or
    当经过预设时长后,所述刷新机器未重新启动时,将以所述当前刷新任务的中断处为起点的所述当前刷新任务中未刷新的部分确定为所述待刷新任务,并为所述待刷新任务重新分配刷新机器。When the refreshing machine is not restarted, the unrefreshed portion of the current refreshing task starting from the interruption of the current refreshing task is determined as the to-be-refreshed task, and is Recall that the refresh task reassigns the refresh machine.
  7. 如权利要求1所述的刷新任务分配方法,其特征在于,在利用所述当前刷新机器对所述当前刷新任务进行刷新时,所述方法还包括:The refresh task assignment method according to claim 1, wherein when the current refreshing machine is used to refresh the current refreshing task, the method further includes:
    获取所述当前刷新任务的关联刷新任务,并为所述关联刷新任务分配刷新机器。Acquiring an associated refresh task of the current refresh task, and allocating a refresh machine to the associated refresh task.
  8. 如权利要求1所述的刷新任务分配方法,其特征在于,在利用所述当前刷新机器对所述当前刷新任务进行刷新后,所述方法还包括:The refresh task allocation method according to claim 1, wherein after the current refreshing machine is refreshed by the current refreshing machine, the method further includes:
    更新所述刷新任务列表,及更新所述至少一个刷新机器的性能参数及并发度;Updating the refresh task list, and updating performance parameters and concurrency of the at least one refresh machine;
    根据配置的优先级规则,从更新的刷新任务列表中获取第二刷新任务;Obtaining a second refresh task from the updated refresh task list according to the configured priority rule;
    根据更新的至少一个刷新机器的性能参数及并发度,确定第二刷新机器;Determining a second refreshing machine according to the updated performance parameter and the degree of concurrency of the at least one refreshing machine;
    利用所述第二刷新机器对所述第二刷新任务进行刷新。The second refresh task is refreshed by the second refreshing machine.
  9. 一种电子设备,其特征在于,所述电子设备包括存储器及处理器,所述存储器用于存储至少一个计算机可读指令,所述处理器用于执行所述至少一个计算机可读指令以实现以下步骤:An electronic device, comprising: a memory for storing at least one computer readable instruction, and a processor for executing the at least one computer readable instruction to implement the following steps :
    获取刷新任务列表,所述刷新任务列表中存储着刷新任务;Obtaining a refresh task list, where the refresh task is stored in the refresh task list;
    根据配置的优先级规则,从所述刷新任务列表中确定当前刷新任务;Determining a current refresh task from the refresh task list according to the configured priority rule;
    获取至少一个刷新机器;Get at least one refresh machine;
    根据所述至少一个刷新机器的性能参数及并发度,确定当前刷新机器;Determining a current refreshing machine according to the performance parameter and the degree of concurrency of the at least one refreshing machine;
    利用所述当前刷新机器对所述当前刷新任务进行刷新。The current refresh task is refreshed by the current refresh machine.
  10. 如权利要求9所述的电子设备,其特征在于,在所述根据配置的优先级规则,从所述刷新任务列表中确定当前刷新任务前,所述处理器还用于执 行所述至少一个计算机可读指令,以实现以下步骤:The electronic device according to claim 9, wherein said processor is further configured to execute said at least one computer before said current refresh task is determined from said refresh task list according to said configured priority rule Readable instructions to implement the following steps:
    配置所述优先级规则;Configuring the priority rule;
    所述配置所述优先级规则包括以下一种或者多种的组合:The configuring the priority rule includes one or a combination of the following:
    根据所述刷新任务列表中每个刷新任务的生成时间,配置所述优先级规则;及/或Configuring the priority rule according to the generation time of each refresh task in the refresh task list; and/or
    根据所述刷新任务列表中每个刷新任务的重要等级,配置所述优先级规则;及/或Configuring the priority rule according to an important level of each refresh task in the refresh task list; and/or
    根据所述刷新任务列表中每个刷新任务的类型,配置所述优先级规则。The priority rule is configured according to the type of each refresh task in the refresh task list.
  11. 如权利要求10所述的电子设备,其特征在于,所述根据配置的优先级规则,从所述刷新任务列表中确定当前刷新任务包括以下一种或者多种的组合:The electronic device according to claim 10, wherein the determining, according to the configured priority rule, that the current refresh task comprises one or more of the following combinations from the refresh task list:
    获取所述刷新任务列表中每个刷新任务的生成时间,按照生成时间的先后顺序,筛选出排在最前的任务作为所述当前刷新任务;及/或Obtaining a generation time of each refresh task in the refresh task list, and filtering the top-ranked task as the current refresh task according to the sequence of generating time; and/or
    获取配置的所述刷新任务列表中每个刷新任务的重要等级,按照重要等级的顺序,筛选出排在最前的任务作为所述当前刷新任务;及/或Obtaining an important level of each refresh task in the configured refresh task list, and filtering the top-ranked task as the current refresh task according to an order of importance levels; and/or
    获取所述刷新任务列表中每个刷新任务的类型,按照配置的类型的优先级顺序,筛选出排在最前的任务作为所述当前刷新任务。Obtaining the type of each refresh task in the refresh task list, and filtering the top-ranked task as the current refresh task according to the priority order of the configured type.
  12. 如权利要求9所述的电子设备,其特征在于,所述根据所述至少一个刷新机器的性能参数及并发度,确定当前刷新机器包括:The electronic device according to claim 9, wherein the determining the current refreshing machine according to the performance parameter and the degree of concurrency of the at least one refreshing machine comprises:
    获取所述至少一个刷新机器的性能参数,根据所述性能参数确定所述至少一个刷新机器的空闲度,获取空闲度最高的刷新机器,并将所述空闲度最高的刷新机器确定为所述当前刷新机器;及Obtaining performance parameters of the at least one refreshing machine, determining, according to the performance parameter, the idleness of the at least one refreshing machine, acquiring a refreshing machine with the highest degree of idleness, and determining the refreshing machine with the highest degree of idleness as the current Refresh the machine; and
    获取配置的所述至少一个刷新机器的并发度,从所述至少一个刷新机器中确定并发度剩余量最多的刷新机器,并将所述并发度剩余量最多的刷新机器确定为所述当前刷新机器。Obtaining a concurrency of the configured at least one refreshing machine, determining, from the at least one refreshing machine, a refreshing machine having the most remaining amount of concurrency, and determining the refreshing machine having the most remaining amount of concurrency as the current refreshing machine .
  13. 如权利要求9所述的电子设备,其特征在于,在根据所述至少一个刷新机器的性能参数及并发度,确定当前刷新机器前,所述处理器还用于执行所述至少一个计算机可读指令,以实现以下步骤:The electronic device according to claim 9, wherein said processor is further configured to perform said at least one computer readable before determining that said current refreshing machine is based on said at least one refreshing machine performance parameter and concurrency Instructions to implement the following steps:
    配置所述至少一个刷新机器的并发度;Configuring a degree of concurrency of the at least one refreshing machine;
    所述配置所述至少一个刷新机器的并发度包括以下一种或者多种的组合:The concurrency of configuring the at least one refreshing machine includes one or a combination of the following:
    如果CPU核数大于或者等于第一核数,且内存大于或者等于第一内存,且磁盘容量大于或者等于第一磁盘容量,则配置所述并发度为第一并发度;及If the number of CPU cores is greater than or equal to the first core number, and the memory is greater than or equal to the first memory, and the disk capacity is greater than or equal to the first disk capacity, configuring the concurrency to be the first concurrency;
    如果CPU核数大于第三核数且小于或者等于第二核数,或者内存大于第三内存且小于或者等于第二内存,或者磁盘容量大于第三磁盘容量且小于或者等于第二磁盘容量,则配置所述并发度为第二并发度;及If the number of CPU cores is greater than the third core number and less than or equal to the second core number, or the memory is greater than the third memory and less than or equal to the second memory, or the disk capacity is greater than the third disk capacity and less than or equal to the second disk capacity, then Configuring the concurrency to be a second concurrency; and
    如果CPU核数小于或者等于第三核数,或者内存小于或者等于第三内存,或者磁盘容量小于或者等于第三容量,则配置所述并发度为第三并发度;及If the number of CPU cores is less than or equal to the third core number, or the memory is less than or equal to the third memory, or the disk capacity is less than or equal to the third capacity, configuring the concurrency to be a third concurrency;
    在除上述三种情况的其他情况下,则配置所述并发度为第四并发度。In other cases than the above three cases, the concurrency is configured as a fourth concurrency.
  14. 如权利要求9所述的电子设备,其特征在于,在利用所述当前刷新机器对所述当前刷新任务进行刷新时,所述处理器还用于执行所述至少一个计算机可读指令,以实现以下步骤:The electronic device of claim 9, wherein the processor is further configured to execute the at least one computer readable instruction when the current refreshing task is refreshed by the current refreshing machine The following steps:
    如果所述当前刷新机器中断执行,记录所述当前刷新任务的刷新进度;If the current refreshing machine interrupts execution, recording a refresh progress of the current refresh task;
    根据所述当前刷新任务的刷新进度确定所述当前刷新任务的中断处;Determining an interruption of the current refresh task according to a refresh progress of the current refresh task;
    当经过预设时长后,所述刷新机器重新启动时,从所述当前刷新任务的中断处利用所述当前刷新机器继续刷新所述当前刷新任务;或者When the refreshing machine restarts after the preset time period elapses, the current refreshing machine continues to refresh the current refreshing task from the interruption of the current refreshing task; or
    当经过预设时长后,所述刷新机器未重新启动时,将以所述当前刷新任务的中断处为起点的所述当前刷新任务中未刷新的部分确定为所述待刷新任务,并为所述待刷新任务重新分配刷新机器。When the refreshing machine is not restarted, the unrefreshed portion of the current refreshing task starting from the interruption of the current refreshing task is determined as the to-be-refreshed task, and is Recall that the refresh task reassigns the refresh machine.
  15. 如权利要求9所述的电子设备,其特征在于,在利用所述当前刷新机器对所述当前刷新任务进行刷新时,所述处理器还用于执行所述至少一个计算机可读指令,以实现以下步骤:The electronic device of claim 9, wherein the processor is further configured to execute the at least one computer readable instruction when the current refreshing task is refreshed by the current refreshing machine The following steps:
    获取所述当前刷新任务的关联刷新任务,并为所述关联刷新任务分配刷新机器。Acquiring an associated refresh task of the current refresh task, and allocating a refresh machine to the associated refresh task.
  16. 如权利要求9所述的电子设备,其特征在于,在利用所述当前刷新机器对所述当前刷新任务进行刷新后,所述处理器还用于执行所述至少一个计算机可读指令,以实现以下步骤:The electronic device of claim 9, wherein the processor is further configured to execute the at least one computer readable instruction after the current refreshing machine is refreshed by the current refreshing machine The following steps:
    更新所述刷新任务列表,及更新所述至少一个刷新机器的性能参数及并发度;Updating the refresh task list, and updating performance parameters and concurrency of the at least one refresh machine;
    根据配置的优先级规则,从更新的刷新任务列表中获取第二刷新任务;Obtaining a second refresh task from the updated refresh task list according to the configured priority rule;
    根据更新的至少一个刷新机器的性能参数及并发度,确定第二刷新机器;Determining a second refreshing machine according to the updated performance parameter and the degree of concurrency of the at least one refreshing machine;
    利用所述第二刷新机器对所述第二刷新任务进行刷新。The second refresh task is refreshed by the second refreshing machine.
  17. 一种非易失性可读存储介质,其特征在于,所述非易失性可读存储介质中存储有至少一个计算机可读指令,所述至少一个计算机可读指令被处理器执行以实现以下步骤:A non-volatile readable storage medium, wherein the non-volatile readable storage medium stores at least one computer readable instruction, the at least one computer readable instruction being executed by a processor to implement the following step:
    获取刷新任务列表,所述刷新任务列表中存储着刷新任务;Obtaining a refresh task list, where the refresh task is stored in the refresh task list;
    根据配置的优先级规则,从所述刷新任务列表中确定当前刷新任务;Determining a current refresh task from the refresh task list according to the configured priority rule;
    获取至少一个刷新机器;Get at least one refresh machine;
    根据所述至少一个刷新机器的性能参数及并发度,确定当前刷新机器;Determining a current refreshing machine according to the performance parameter and the degree of concurrency of the at least one refreshing machine;
    利用所述当前刷新机器对所述当前刷新任务进行刷新。The current refresh task is refreshed by the current refresh machine.
  18. 如权利要求17所述的存储介质,其特征在于,在所述根据配置的优先级规则,从所述刷新任务列表中确定当前刷新任务前,所述至少一个计算机可读指令被处理器执行时,还实现以下步骤:The storage medium according to claim 17, wherein said at least one computer readable instruction is executed by said processor before said current refresh task is determined from said refresh task list according to said configured priority rule , also implement the following steps:
    配置所述优先级规则;Configuring the priority rule;
    所述配置所述优先级规则包括以下一种或者多种的组合:The configuring the priority rule includes one or a combination of the following:
    根据所述刷新任务列表中每个刷新任务的生成时间,配置所述优先级规则;及/或Configuring the priority rule according to the generation time of each refresh task in the refresh task list; and/or
    根据所述刷新任务列表中每个刷新任务的重要等级,配置所述优先级规 则;及/或Configuring the priority rule according to an importance level of each refresh task in the refresh task list; and/or
    根据所述刷新任务列表中每个刷新任务的类型,配置所述优先级规则。The priority rule is configured according to the type of each refresh task in the refresh task list.
  19. 如权利要求17所述的存储介质,其特征在于,在根据所述至少一个刷新机器的性能参数及并发度,确定当前刷新机器前,所述至少一个计算机可读指令被处理器执行时,还实现以下步骤:The storage medium according to claim 17, wherein when said at least one computer readable instruction is executed by said processor before said current refreshing of said machine based on said at least one refreshing machine performance parameter and concurrency Implement the following steps:
    配置所述至少一个刷新机器的并发度;Configuring a degree of concurrency of the at least one refreshing machine;
    所述配置所述至少一个刷新机器的并发度包括以下一种或者多种的组合:The concurrency of configuring the at least one refreshing machine includes one or a combination of the following:
    如果CPU核数大于或者等于第一核数,且内存大于或者等于第一内存,且磁盘容量大于或者等于第一磁盘容量,则配置所述并发度为第一并发度;及If the number of CPU cores is greater than or equal to the first core number, and the memory is greater than or equal to the first memory, and the disk capacity is greater than or equal to the first disk capacity, configuring the concurrency to be the first concurrency;
    如果CPU核数大于第三核数且小于或者等于第二核数,或者内存大于第三内存且小于或者等于第二内存,或者磁盘容量大于第三磁盘容量且小于或者等于第二磁盘容量,则配置所述并发度为第二并发度;及If the number of CPU cores is greater than the third core number and less than or equal to the second core number, or the memory is greater than the third memory and less than or equal to the second memory, or the disk capacity is greater than the third disk capacity and less than or equal to the second disk capacity, then Configuring the concurrency to be a second concurrency; and
    如果CPU核数小于或者等于第三核数,或者内存小于或者等于第三内存,或者磁盘容量小于或者等于第三容量,则配置所述并发度为第三并发度;及If the number of CPU cores is less than or equal to the third core number, or the memory is less than or equal to the third memory, or the disk capacity is less than or equal to the third capacity, configuring the concurrency to be a third concurrency;
    在除上述三种情况的其他情况下,则配置所述并发度为第四并发度。In other cases than the above three cases, the concurrency is configured as a fourth concurrency.
  20. 如权利要求17所述的存储介质,其特征在于,在利用所述当前刷新机器对所述当前刷新任务进行刷新后,所述至少一个计算机可读指令被处理器执行时,还实现以下步骤:The storage medium of claim 17, wherein the at least one computer readable instruction is executed by the processor after the current refreshing machine is refreshed by the current refreshing machine, further implementing the following steps:
    更新所述刷新任务列表,及更新所述至少一个刷新机器的性能参数及并发度;Updating the refresh task list, and updating performance parameters and concurrency of the at least one refresh machine;
    根据配置的优先级规则,从更新的刷新任务列表中获取第二刷新任务;Obtaining a second refresh task from the updated refresh task list according to the configured priority rule;
    根据更新的至少一个刷新机器的性能参数及并发度,确定第二刷新机器;Determining a second refreshing machine according to the updated performance parameter and the degree of concurrency of the at least one refreshing machine;
    利用所述第二刷新机器对所述第二刷新任务进行刷新。The second refresh task is refreshed by the second refreshing machine.
PCT/CN2018/099412 2018-04-10 2018-08-08 Refresh task assignment method, electronic device and storage medium WO2019196277A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810316518.4A CN108595264A (en) 2018-04-10 2018-04-10 Refresh tasks distribution method, electronic equipment and computer readable storage medium
CN201810316518.4 2018-04-10

Publications (1)

Publication Number Publication Date
WO2019196277A1 true WO2019196277A1 (en) 2019-10-17

Family

ID=63621652

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/099412 WO2019196277A1 (en) 2018-04-10 2018-08-08 Refresh task assignment method, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN108595264A (en)
WO (1) WO2019196277A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109766186B (en) * 2019-01-03 2021-05-18 中国联合网络通信集团有限公司 Reserved resource allocation method, device, system and readable storage medium
CN114116034B (en) * 2021-12-01 2023-08-11 展讯通信(天津)有限公司 Distributed brushing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1467852A (en) * 2002-07-04 2004-01-14 ��ʿͨ��ʽ���� Semiconductor memory
CN101105793A (en) * 2006-07-11 2008-01-16 阿里巴巴公司 Data processing method and system of data library
WO2014035756A1 (en) * 2012-08-27 2014-03-06 Apple Inc. Fast execution of flush commands using adaptive compaction ratio
CN104461740A (en) * 2014-12-12 2015-03-25 国家电网公司 Cross-domain colony computing resource gathering and distributing method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9354936B2 (en) * 2014-03-05 2016-05-31 Driven, Inc. System, method, and apparatus for coordinating distributed electronic discovery processing
US9898341B2 (en) * 2016-02-25 2018-02-20 Western Digital Technologies, Inc. Adjustable priority ratios for multiple task queues
CN106201715A (en) * 2016-06-30 2016-12-07 北京奇艺世纪科技有限公司 A kind of method for scheduling task and device
CN107506381A (en) * 2017-07-21 2017-12-22 中国建设银行股份有限公司 A kind of big data distributed scheduling analysis method, system and device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1467852A (en) * 2002-07-04 2004-01-14 ��ʿͨ��ʽ���� Semiconductor memory
CN101105793A (en) * 2006-07-11 2008-01-16 阿里巴巴公司 Data processing method and system of data library
WO2014035756A1 (en) * 2012-08-27 2014-03-06 Apple Inc. Fast execution of flush commands using adaptive compaction ratio
CN104461740A (en) * 2014-12-12 2015-03-25 国家电网公司 Cross-domain colony computing resource gathering and distributing method

Also Published As

Publication number Publication date
CN108595264A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
US10055437B2 (en) Method and apparatus for querying data in database
KR102281739B1 (en) Resource scheduling method, scheduling server, cloud computing system, and storage medium
CN104978228B (en) A kind of dispatching method and device of distributed computing system
CN111190718A (en) Method, device and system for realizing task scheduling
CN111142788B (en) Data migration method and device and computer readable storage medium
US20160232206A1 (en) Database management system and computer system
WO2019196277A1 (en) Refresh task assignment method, electronic device and storage medium
TW202134870A (en) Task scheduling method and apparatus
CN110618860A (en) Spark-based Kafka consumption concurrent processing method and device
CN111143039A (en) Virtual machine scheduling method and device and computer storage medium
CN114090580A (en) Data processing method, device, equipment, storage medium and product
CN113010315A (en) Resource allocation method, resource allocation device and computer-readable storage medium
CN115586961A (en) AI platform computing resource task scheduling method, device and medium
CN115525631A (en) Database data migration method, device, equipment and storage medium
CN113535087B (en) Data processing method, server and storage system in data migration process
CN114968567A (en) Method, apparatus and medium for allocating computing resources of a compute node
US20150178115A1 (en) Optimal assignment of virtual machines and virtual disks using multiary tree
WO2021179170A1 (en) Data pushing method and device, server, and storage medium
JP6720357B2 (en) Change network accessible data volume
US11900284B2 (en) Dynamic scheduling system with performance- based access
CN109542521B (en) Method for optimizing television starting speed
CN112433838A (en) Batch scheduling method, device, equipment and computer storage medium
CN110955644A (en) IO control method, device, equipment and storage medium of storage system
WO2019196272A1 (en) Data cube release method and apparatus, electronic device, and storage medium
CN113271323A (en) Cluster capacity expansion method and device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18914416

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22.01.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18914416

Country of ref document: EP

Kind code of ref document: A1