WO2024001159A1 - Resource scheduling method and apparatus, and electronic device and storage medium - Google Patents

Resource scheduling method and apparatus, and electronic device and storage medium Download PDF

Info

Publication number
WO2024001159A1
WO2024001159A1 PCT/CN2023/071687 CN2023071687W WO2024001159A1 WO 2024001159 A1 WO2024001159 A1 WO 2024001159A1 CN 2023071687 W CN2023071687 W CN 2023071687W WO 2024001159 A1 WO2024001159 A1 WO 2024001159A1
Authority
WO
WIPO (PCT)
Prior art keywords
task
sequence number
target
pool
proportion
Prior art date
Application number
PCT/CN2023/071687
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 WO2024001159A1 publication Critical patent/WO2024001159A1/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/5055Allocation 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 software capabilities, i.e. software resources associated or available to the machine
    • 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/48Program initiating; Program switching, e.g. by interrupt
    • 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/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • 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]
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present disclosure relates to the technical field of electronic digital data processing, and in particular, to a resource scheduling method, device, electronic equipment and storage medium.
  • the present disclosure provides a resource scheduling method, device, electronic equipment and storage medium to solve the technical problem of low resource utilization in related technologies.
  • Embodiments of the present disclosure provide a resource scheduling method, including: determining the interaction type of a target task; calculating the task ratio between the target task amount of the interaction type and the total task amount of the task pool to be processed, where the target task amount is The total number of tasks belonging to the interaction type in the task pool to be processed; compare the task proportion and the size of the preset resource proportion of the interaction type; make discrete adjustments to the initial sequence number of the target task based on the comparison result, where the sequence number represents the target task in the pending task pool. Process the execution sequence in the task pool; schedule task resources according to the discretely adjusted sequence number.
  • Embodiments of the present disclosure also provide a resource scheduling device, including: a judgment module configured to judge the interaction type of a target task; a calculation module configured to calculate the target task amount of the interaction type and the total task amount of the task pool to be processed.
  • the target task amount is the total amount of tasks belonging to the interactive type in the to-be-processed task pool;
  • the comparison module is configured to compare the task ratio and the size of the preset resource ratio of the interaction type;
  • the discrete module is configured to compare according to As a result, the initial sequence number of the target task is discretely adjusted, where the sequence number represents the execution order of the target task in the task pool to be processed;
  • the scheduling module is configured to schedule task resources according to the discretely adjusted sequence number.
  • Embodiments of the present disclosure also provide a storage medium, which includes a stored program, and performs the above steps when the program is run.
  • Embodiments of the present disclosure also provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the computer program is executed by the processor, the resource scheduling method as described above is implemented. step.
  • the present disclosure also provides a computer program product containing instructions, which when run on a computer, causes the computer to perform the steps in the above method.
  • Figure 1 is a hardware structural block diagram of a computer according to an embodiment of the present disclosure
  • Figure 2 is a flow chart of a resource scheduling method according to an embodiment of the present disclosure
  • Figure 3 is a schematic diagram of a scenario implementation in an embodiment of the present disclosure.
  • Figure 4 is a structural block diagram of a resource scheduling device according to an embodiment of the present disclosure.
  • FIG. 1 is a hardware structure block diagram of a computer according to an embodiment of the present disclosure.
  • the computer may include one or more (only one is shown in Figure 1) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and A memory 104 for storing data.
  • the above-mentioned computer may also include a transmission device 106 and an input and output device 108 for communication functions.
  • Figure 1 is only illustrative and does not limit the structure of the above-mentioned computer.
  • the computer may also include more or fewer components than shown in FIG. 1 , or have a different configuration than that shown in FIG. 1 .
  • the memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a resource scheduling method in an embodiment of the present disclosure.
  • the processor 102 runs the computer program stored in the memory 104, thereby Execute various functional applications and data processing, that is, implement the above methods.
  • Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • memory 104 may further include memory located remotely from processor 102, and these remote memories may be connected to the computer through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.
  • Transmission device 106 is used to receive or send data via a network.
  • Specific examples of the above-mentioned network may include a wireless network provided by the computer's communication provider.
  • the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station to communicate with the Internet.
  • the transmission device 106 may be a radio frequency (Radio Frequency, RF for short) module, which is used to communicate with the Internet wirelessly.
  • NIC Network Interface Controller
  • FIG. 2 is a flow chart of a resource scheduling method according to an embodiment of the present disclosure. As shown in Figure 2, the process includes the following steps S10 to S50.
  • the target task refers to the task currently to be entered into the pending task pool.
  • the interaction type of a target task can refer to the source or manner of the target task.
  • the 5G network management system mainly provides two external interaction methods: GUI (Graphical User Interface, graphical user interface) and API (Application Programming Interface, application program interface).
  • GUI Graphic User Interface
  • API Application Programming Interface
  • the interaction types of target tasks can be divided into two types: GUI and API.
  • the interaction type of the target task can be computer access, mobile phone access, and other three-party access.
  • the method of determining the interaction type of the target task may be by identifying the type identifier carried by the target task, or based on the source or method of the target task, which is not specifically limited in this embodiment of the disclosure.
  • S20 Calculate the task ratio between the target task amount of the interactive type and the total task amount of the to-be-processed task pool, where the target task amount is the total amount of tasks of the interactive type in the to-be-processed task pool.
  • this embodiment calculates the proportion of tasks of this interaction type based on the total number of tasks belonging to this interaction type in the to-be-processed task pool and the total task amount of the task pool. For example, if the target task type is GUI, the number of GUI type tasks in the pending task pool is 10, and the number of other types, that is, API type tasks, is 90, or in other words, the ratio of GUI to API tasks in the pending task pool is 1 :9, then through calculation it can be concluded that the proportion of tasks with the interaction type GUI in the pending task pool is 1/10.
  • a preset resource ratio is set for each type of task before resource scheduling is performed.
  • the preset resource ratio can be a default initial ratio, or a custom-set ratio. When the ratio is a custom When set, this value can be adjusted at any time during the scheduling process according to the situation.
  • the preset resource ratio is to provide the scheduling target.
  • Task resource scheduling is performed based on the task ratio obtained in S20 and the preset resource ratio, so that the proportion of various types of tasks in the resource scheduling process is infinitely close to the set preset resource ratio. .
  • the proportion of each task type in the task pool to be processed can be compared with the preset resource proportion. If the task proportion of the interaction type to which the target task belongs is greater than or equal to the preset resource proportion of the interaction type, It means that this interaction type accounts for a large proportion in the to-be-processed task pool. Currently, there are many tasks of this interaction type and exceeds the preset resource ratio. Then the execution of the target task will be delayed and the proportion of tasks of this interaction type will be reduced.
  • the target task belongs to The proportion of tasks of the interaction type is smaller than the preset resource proportion of the interaction type, indicating that the interaction type of the target task accounts for a small proportion in the to-be-processed task pool.
  • the target task executes the target task in advance to increase the proportion of tasks of this interaction type.
  • the default ratio of resources allocated to GUI tasks and API tasks in a certain network management system is 6:4, which means that during a period of time, GUI and API interact in parallel, and GUI resources occupy more resources, which means tasks that require the same resources.
  • the GUI method is faster to complete, and the ratio of GUI to API tasks in the pending task pool is 1:9. If the target task type to be added to the task pool is GUI, the proportion of tasks of this type in the pending task pool is 1 /10, which is less than the default resource ratio of this type 6/10, indicating that there are currently few GUI interaction types, so you can execute it in advance or execute as many GUI types as possible to make the task resource scheduling close to the set default resource ratio.
  • S40 Discretely adjust the initial sequence number of the target task according to the comparison result, where the sequence number represents the execution order of the target task in the task pool to be processed.
  • S50 Schedule task resources according to the discretely adjusted sequence number.
  • a sequence number is added to each task.
  • the sequence number is bound to an original target task and is used to represent the order in which the target tasks are executed after entering the task pool to be processed.
  • Task resource scheduling is performed according to the sequence number corresponding to each task.
  • the initial sequence number is the original default execution order of the task without adjustment.
  • the adjustment method may be an arithmetic advance or an arithmetic delay.
  • the target tasks are The adjustment of the initial sequence number of the task is a discrete adjustment.
  • the discrete adjustment method can be by randomizing the number of steps forward or delayed for the target task, without fixing the number of steps forward or delayed for each target task, thereby performing discrete adjustment. Adjustment.
  • This disclosed embodiment performs resource scheduling based on the proportion of the interaction type of the target task in the task pool and the preset resource ratio of the interaction type, so that the task ratio in the task pool to be processed is as close as possible to the preset resource ratio, and resource scheduling is more efficient.
  • Reasonable improve resource utilization, by adding a sequence number to each task, preventing repeated adjustments to tasks, improving the efficiency of the resource scheduling method in this embodiment, and discretizing the adjustment of the sequence number of the target task, preventing Tasks of the same type are gathered during the process, retaining the original randomness of resource scheduling as much as possible.
  • S40 discretely adjusting the initial sequence number of the target task according to the comparison result includes steps S41 to S42.
  • Step S41 if the task proportion is greater than or equal to the preset resource proportion, a random backoff factor is generated, and the initial sequence number of the target task is delayed based on the random backoff factor.
  • Step S42 If the task proportion is less than the preset resource proportion, a random forward factor is generated, and the initial sequence number of the target task is moved forward according to the random forward factor.
  • embodiments of the present disclosure use random factors to discretize the forward movement and delay of the target task, and randomize the forward and backward movement of the target task, so that the proportion after adding the target task Jumps around the current proportion number, and the jump degree is evenly distributed within the interval.
  • the proportion of tasks corresponding to the target task type in the to-be-processed task pool is greater than or equal to the preset resource proportion, the execution sequence of the target task needs to be delayed.
  • the number of delayed steps is not fixed and directly accumulated arithmetic.
  • the backoff factor is randomly generated, the number of delayed backoff steps is randomized, and the initial sequence number of the target task is delayed according to the backoff factor, so that each target task that needs to be delayed is randomly and discretely inserted into a later position in the to-be-processed task pool;
  • the proportion of tasks corresponding to the target task type in the to-be-processed task pool is less than the preset resource proportion, the execution order of the target task needs to be advanced.
  • This embodiment randomly generates a forwarding factor to randomize the number of steps for moving the target task forward.
  • each target task that needs to be advanced is randomly and discretely inserted into the front position of the to-be-processed task pool.
  • the method of generating a random forward factor or a random backward factor can be to first determine the value range of the forward factor and the backward factor, and then use a random number generator to generate a random number within the specified value range, and use the resulting random number as the random forward factor.
  • the shift factor and the random backward factor ensure that the number of steps forward or backward is random according to the random backward factor and the random forward factor, so that the position of the target task inserted into the task pool is discretely balanced.
  • the random forwarding factor is generated by using a linear congruence method to generate a random forwarding factor in a preset interval.
  • the method of randomly generating forward factors is implemented by using the linear congruence method, in which the range of the forward factors can be [1, the number of task processing capabilities].
  • the linear congruence method is a pseudo-random sequence generation algorithm.
  • the pseudo-random numbers are realized by adding a software algorithm and a random number seed. The seed is similar to the encryption key in the cryptographic algorithm. Different seeds correspond to different random numbers.
  • the previous number is subjected to a linear operation and modulo to obtain the next number, producing a piecewise linear equation with a pseudo-random sequence of discontinuous calculations, and the resulting random numbers present a pseudo-uniform distribution.
  • the embodiment of the present disclosure randomizes the forward and backward movement of target tasks to avoid task aggregation and maintain the original random characteristics.
  • scheduling task resources according to the discretely adjusted sequence number includes: determining the first task in the current to-be-processed task pool according to the discretely-adjusted sequence number, where the first task is the first task in the current to-be-processed task pool. The task with the smallest sequence number; allocate currently available resources to the first task to execute the first task.
  • the first task in the current task pool is selected to allocate currently available resources for execution.
  • the first task is the current highest priority task, that is, the task with the smallest sequence number or the highest order.
  • the preset resource proportion is to provide a scheduling target so that the proportion of each type of task in the resource scheduling process is infinitely close to the set preset resources.
  • the ratio is not used to divide the allocation ratio of resources when executing tasks. Therefore, after determining the first task in the current to-be-processed task pool, this embodiment does not distinguish between task types and will allocate currently available resources to execute the first task. Understandably, when there is only one type of task during the runtime, that type of task will occupy all resources.
  • This embodiment implements the priority allocation of currently available resources to execute the task with the smallest sequence number in the task pool to be processed.
  • determining the first task in the current to-be-processed task pool based on the discretely adjusted sequence number includes: constructing a minimum heap based on the sequence numbers of all tasks in the current to-be-processed task pool; The corresponding task is regarded as the first task in the current task pool.
  • the tasks in the task pool to be processed have corresponding sequence numbers.
  • a minimum heap is constructed based on the sequence numbers of all tasks in the task pool to be processed.
  • the method of constructing the minimum heap can be implemented through the array storage structure of a complete binary tree. , so that when fetching the top element of the heap, the smallest one is always obtained first.
  • the sequence number on the top of the smallest heap is the current frontmost or highest priority sequence number, and the task corresponding to this sequence number is selected as the first in the current task pool.
  • One task is executed.
  • discretely adjusting the sequence number of the target task according to the comparison result also includes: determining whether the target task is an urgent task; if the target task is an urgent task, generating a maximum forwarding factor; and advancing the emergency according to the maximum forwarding factor.
  • the sequence number of the task in the pending task pool is determining whether the target task is an urgent task; if the target task is an urgent task, generating a maximum forwarding factor; and advancing the emergency according to the maximum forwarding factor.
  • Urgent tasks refer to important or urgent tasks that require high priority processing.
  • the maximum forwarding factor indicates that the sequence number of the emergency task is directly forwarded to the frontmost movement parameter in the task pool. This disclosed embodiment adds top-level scheduling for redline high-risk tasks. When it is determined that the interaction type of the target task is a redline high-risk emergency task, the emergency task is directly set to a maximum forwarding factor that is much higher than other ones. The maximum forwarding factor is used to directly The sequence number of the emergency task is moved to the front of the task pool, allowing the current resources to execute the top-level task with the highest priority.
  • the embodiments of the present disclosure realize the highest priority processing of emergency tasks.
  • the method before determining the interaction type of the target task, includes: receiving a user instruction; and setting a preset resource ratio for each interaction type task in response to the user instruction.
  • the preset resource ratio is set according to user instructions, making resource allocation and scheduling more reasonable and effective.
  • Figure 3 is a schematic diagram of a scenario implementation in an embodiment of the present disclosure.
  • resource scheduling method of the present disclosure it is divided into four processes: resource proportion setting, task pre-balancing judgment, task weight discretization, and task balancing scheduling.
  • Resource ratio setting used to set resource ratio. After the resource ratio is set, it can still be adjusted during the scheduling process. The subsequent resource scheduling process will make the ratio of each task in the to-be-processed task pool approach the set ratio during resource scheduling.
  • GUI WEB page mode
  • API command line mode
  • Task pre-balancing judgment means judging the interaction type of the target task to be added to the pending task pool, and judging whether the target task needs to be moved forward or delayed based on the proportion of the interaction type in the task pool and the set resource ratio. If the proportion of this interaction type in the task pool is greater than the set resource proportion, the judgment result is that there are many tasks of the current interaction type, and the execution should be delayed to approach the proportion. On the contrary, if it is less than the set resource ratio, the judgment result is that the current interaction type is small, and it should be executed in advance or as much as possible to approach the standard ratio. For example, the network management system issues a task carrying an identifier.
  • the system can identify whether the task type is GUI or API, and obtain the proportion of each interaction type in the current task pool. When it is greater than or equal to the preset resource proportion, the current task will be added directly. You can press etc. The difference is 1 and is accumulated. When it is less than the preset resource ratio, it can be moved forward according to the current interaction ratio of the resource to achieve a pre-balanced state. It is understandable that the above methods are used for explanation and do not constitute an advance or additional limitation of this embodiment. Other methods that are not limited to arithmetic can be used in specific implementations, and the embodiments of this disclosure are not specifically limited. This state is a relatively approximate state, which means that the current task is in a more balanced state after it is added than before it was added.
  • Task heavy discretization means that due to the random discreteness of the task, the task will be balanced after the pre-balanced determination of the previous task.
  • the balancing process causes similar interactive tasks to aggregate, breaking the randomness of user interaction, and avoiding disruption caused by balanced insertion. Due to the original discrete nature of user behavior, this process makes a heavy discrete secondary adjustment to the location selection, making the forward and backward movements random and discretizing, so that the task distribution in the task pool maintains the original discrete random characteristics. That is, after each task is pre-balanced and judged, for scenarios that do not meet the preset resource ratio, a random factor is added to the forward or delayed point, so that the ratio jumps around the current interaction ratio, and the jump degree is evenly distributed within the interval. .
  • the 5G network management system when the 5G network management system mainly moves tasks forward in this step, it uses the linear congruence method to generate random factors in the interval [1, number of task processing capabilities], so that the forward movement is consistent with the random factors, so that the tasks at multiple times are The proportion number jumps around the current interaction proportion number, and the degree of jump is evenly distributed within the interval.
  • the linear congruence method is a pseudo-random number that can present a pseudo-uniform distribution.
  • random factors can also be generated according to other methods.
  • Task balanced scheduling this process mainly selects the highest priority or several of them from the task pool for execution.
  • the task pre-balancing discrimination and task re-discretization process are all processed by the task pool to be executed, and what is maintained is a pre-state of the sequence. That is, after balancing and discretization, repeated adjustments to the original tasks will reduce the efficiency, so the task pre-balancing discrimination and task
  • the re-discretization process simply adds a random sequence number to each task, and the sequence number is bound to an original task.
  • the random sequence numbers of all tasks in the task pool in this state are used to construct a minimum heap.
  • the sequence at the top of the heap is the current top or highest priority sequence, and the task bound to this sequence number is selected. execution, the execution period is still in equilibrium.
  • the tasks that have been through task pre-balanced discrimination and task re-dispersion processes not only follow the proportion set by the user, but also maintain the random characteristics of the task.
  • This implementation scenario also adds top-level scheduling for redline high-risk tasks. For some specific tasks, if it is judged to be a redline high-risk emergency task, directly set a random value much higher than other sequences, and move the emergency task to the front. Without increasing resources, let current resources perform top-level tasks with the highest priority.
  • the embodiments of the present disclosure balance tasks at a preset ratio through task pre-balancing and re-dispersion, which can maximize the utilization of resources in proportion to users, and maintain the random discreteness of the original tasks, thereby improving the utilization of resources to the maximum capacity, and During pre-equilibration, the heavy discretization process can also retain top-level scheduling to provide the highest priority for high-risk redline tasks.
  • the method according to the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is Better implementation.
  • the technical solution of the present disclosure can be embodied in the form of a software product in essence or that contributes to the existing technology.
  • the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD), including several instructions to cause a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present disclosure.
  • module may be a combination of software and/or hardware that implements a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 4 is a structural block diagram of a resource scheduling device according to an embodiment of the present disclosure.
  • the resource scheduling device includes: a judgment module 100, a calculation module 200, a comparison module 300, a discrete module 400, and a scheduling module 500 ,in,
  • the judgment module 100 is configured to judge the interaction type of the target task
  • the calculation module 200 is configured to calculate the task ratio between the target task amount of the interaction type and the total task amount of the to-be-processed task pool, where the target task amount is the total amount of tasks belonging to the interaction type in the to-be-processed task pool;
  • the comparison module 300 is configured to compare the task proportion and the size of the preset resource proportion of the interaction type
  • the discrete module 400 is configured to discretely adjust the initial sequence number of the target task according to the comparison result, where the sequence number represents the execution order of the target task in the task pool to be processed;
  • the scheduling module 500 is configured to schedule task resources according to the discretely adjusted sequence numbers.
  • the discrete module includes: a first discrete subunit configured to generate a random backoff factor if the task ratio is greater than or equal to the preset resource ratio, and delay the initial sequence number of the target task according to the random backoff factor. ; The second discrete sub-unit, if the task proportion is less than the preset resource proportion, generates a random forwarding factor, and moves forward the initial sequence number of the target task according to the random forwarding factor.
  • the second discrete sub-unit includes: a forwarding factor generation unit configured to generate a random forwarding factor in a preset interval using a linear congruence method.
  • the scheduling module includes: a scheduling subunit configured to determine the first task in the current to-be-processed task pool according to the discretely adjusted sequence number, where the first task is the sequence in the current to-be-processed task pool. The task with the smallest number; allocate currently available resources to the first task to execute the first task.
  • the scheduling subunit also includes: a first task determination unit configured to construct a minimum heap based on the sequence numbers of all tasks in the current to-be-processed task pool; and use the task corresponding to the sequence number at the top of the minimum heap as The first task in the current task pool.
  • the comparison module further includes: an emergency task number unit configured to determine whether the target task is an emergency task; if the target task is an emergency task, generate a maximum forwarding factor; and advance the emergency task according to the maximum forwarding factor. Sequence number in the pending task pool.
  • the resource scheduling device further includes: a preset resource ratio setting unit configured to receive user instructions; and in response to user instructions, set a preset resource ratio for each interaction type task.
  • a preset resource ratio setting unit configured to receive user instructions; and in response to user instructions, set a preset resource ratio for each interaction type task.
  • Each of the above modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but is not limited to this: the above modules are all located in the same processor; or the above modules are located in different processors in any combination. in the processor.
  • the present disclosure also proposes an electronic device, including a memory and a processor.
  • a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
  • the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
  • the above-mentioned processor may be configured to perform the following steps S1 to S5 through a computer program.
  • Step S1 Determine the interaction type of the target task.
  • Step S2 Calculate the task ratio between the target task volume of the interactive type and the total task volume of the to-be-processed task pool, where the target task volume is the total number of interactive-type tasks in the to-be-processed task pool.
  • Step S3 Compare the task proportion and the preset resource proportion of the interaction type.
  • Step S4 Discretely adjust the initial sequence number of the target task according to the comparison result, where the sequence number represents the execution order of the target task in the task pool to be processed.
  • Step S5 Schedule task resources according to the discretely adjusted sequence numbers.
  • An embodiment of the present disclosure also provides a storage medium in which a computer program is stored, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
  • the above-mentioned storage medium may be configured to store a computer program for performing the following steps, including steps S1 to S5.
  • Step S1 Determine the interaction type of the target task.
  • Step S2 Calculate the task ratio between the target task volume of the interactive type and the total task volume in the task pool to be processed, where the target task volume is the total number of tasks belonging to the interactive type in the task pool to be processed.
  • Step S3 Compare the task proportion and the preset resource proportion of the interaction type.
  • Step S4 Discretely adjust the initial sequence number of the target task according to the comparison result, where the sequence number represents the execution order of the target task in the task pool to be processed.
  • Step S5 Schedule task resources according to the discretely adjusted sequence numbers.
  • the specific embodiments of the storage medium of the present disclosure are basically the same as the above method embodiments, and will not be described again here.
  • the above-mentioned storage medium may include but is not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as Various media that can store computer programs such as RAM), removable hard drives, magnetic disks or optical disks.
  • ROM read-only memory
  • RAM random access memory
  • removable hard drives magnetic disks or optical disks.
  • the disclosed technical content can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division.
  • multiple units or components may be combined or may be Integrated into another system, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the units or modules may be in electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above integrated units can be implemented in the form of hardware or software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
  • the technical solution of the present disclosure is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present disclosure.
  • the aforementioned storage media include: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program code. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present disclosure belongs to the technical field of electronic digital data processing. Provided are a resource scheduling method and apparatus, and an electronic device and a storage medium. The method comprises: determining the interaction type of a target task; calculating a task proportion between a target task load of the interaction type and the total task load of a task pool to be subjected to processing, wherein the target task load is the total number of tasks belonging to the interaction type in said task pool; comparing the task proportion with a preset resource proportion of the interaction type; performing discrete adjustment on an initial sequence serial number of the target task according to a comparison result, wherein the sequence serial number represents an execution sequence of the target task in said task pool; and performing task resource scheduling according to the sequence serial number, which has been subjected to discrete adjustment.

Description

资源调度方法、装置、电子设备及存储介质Resource scheduling method, device, electronic equipment and storage medium
相关申请的交叉引用Cross-references to related applications
本公开要求享有2022年06月27日提交的名称为“资源调度方法、装置、电子设备及存储介质”的中国专利申请CN202210744631.9的优先权,其全部内容通过引用并入本公开中。This disclosure claims the priority of Chinese patent application CN202210744631.9 titled "Resource Scheduling Method, Device, Electronic Equipment and Storage Medium" submitted on June 27, 2022, the entire content of which is incorporated into this disclosure by reference.
技术领域Technical field
本公开涉及电子数字数据处理技术领域,尤其涉及一种资源调度方法、装置、电子设备及存储介质。The present disclosure relates to the technical field of electronic digital data processing, and in particular, to a resource scheduling method, device, electronic equipment and storage medium.
背景技术Background technique
随着软件系统开放能力的提升,用户可以采用多种不同方式操作系统。面对这种随机多交互方式操作,系统经常出现调度阻塞等资源分配不均及资源浪费问题,因为无法预知某时间段用户交互方式,在某一种交互方式较多情况下,另一种交互方式经常出现系统缓慢,甚至不断提升资源效果都不大明显,导致资源利用率较低。As the openness of software systems improves, users can operate the system in many different ways. Faced with this kind of random multi-interaction operation, the system often suffers from uneven resource allocation and resource waste problems such as scheduling blocking, because it is impossible to predict the user interaction mode in a certain period of time. This method often causes the system to be slow, and even the effect of continuously improving resources is not obvious, resulting in low resource utilization.
目前在软件技术领域,大多数采用分通道资源调度,即每种交互都给予一定资源,确实起到了资源隔离的作用。但是由于交互具有随机性,可能某段时间其中一种交互占大比重,则另一种交互的资源则无法利用,更由于资源分配具有固定性,针对某些特定交互用户,资源利用率更低。Currently, in the field of software technology, most use channel-based resource scheduling, that is, each interaction is given certain resources, which indeed plays a role in resource isolation. However, due to the random nature of interactions, one type of interaction may account for a large proportion in a certain period of time, and the resources of the other interaction cannot be utilized. Moreover, due to the fixed nature of resource allocation, resource utilization is lower for certain interactive users. .
发明内容Contents of the invention
本公开提供了一种资源调度方法、装置、电子设备及存储介质,以解决相关技术中资源利用率不高的技术问题。The present disclosure provides a resource scheduling method, device, electronic equipment and storage medium to solve the technical problem of low resource utilization in related technologies.
本公开的实施例提供了一种资源调度方法,包括:判断目标任务的交互类型;计算交互类型的目标任务量与待处理任务池的总任务量之间的任务比例,其中,目标任务量是待处理任务池中属于交互类型的任务总量;比较任务比例以及交互类型的预设资源比例的大小;根据比较结果对目标任务的初始序列编号进行离散调整,其中,序列编号表征目标任务在待处理任务池中的执行顺序;根据离散调整后的序列编号进行任务资源调度。Embodiments of the present disclosure provide a resource scheduling method, including: determining the interaction type of a target task; calculating the task ratio between the target task amount of the interaction type and the total task amount of the task pool to be processed, where the target task amount is The total number of tasks belonging to the interaction type in the task pool to be processed; compare the task proportion and the size of the preset resource proportion of the interaction type; make discrete adjustments to the initial sequence number of the target task based on the comparison result, where the sequence number represents the target task in the pending task pool. Process the execution sequence in the task pool; schedule task resources according to the discretely adjusted sequence number.
本公开的实施例还提供了一种资源调度装置,包括:判断模块,配置为判断目标任务的交互类型;计算模块,配置为计算交互类型的目标任务量与待处理任务池的总任务量之间的 任务比例,其中,目标任务量是待处理任务池中属于交互类型的任务总量;比较模块,配置为比较任务比例以及交互类型的预设资源比例的大小;离散模块,配置为根据比较结果对目标任务的初始序列编号进行离散调整,其中,序列编号表征目标任务在待处理任务池中的执行顺序;调度模块,配置为根据离散调整后的序列编号进行任务资源调度。Embodiments of the present disclosure also provide a resource scheduling device, including: a judgment module configured to judge the interaction type of a target task; a calculation module configured to calculate the target task amount of the interaction type and the total task amount of the task pool to be processed. The target task amount is the total amount of tasks belonging to the interactive type in the to-be-processed task pool; the comparison module is configured to compare the task ratio and the size of the preset resource ratio of the interaction type; the discrete module is configured to compare according to As a result, the initial sequence number of the target task is discretely adjusted, where the sequence number represents the execution order of the target task in the task pool to be processed; the scheduling module is configured to schedule task resources according to the discretely adjusted sequence number.
本公开的实施例还提供了一种存储介质,该存储介质包括存储的程序,程序运行时执行上述的步骤。Embodiments of the present disclosure also provide a storage medium, which includes a stored program, and performs the above steps when the program is run.
本公开的实施例还提供了一种电子设备,包括存储器、处理器和存储在存储器上并可在处理器上运行的计算机程序,计算机程序被处理器执行时实现如上所述的资源调度方法的步骤。Embodiments of the present disclosure also provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the resource scheduling method as described above is implemented. step.
本公开还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述方法中的步骤。The present disclosure also provides a computer program product containing instructions, which when run on a computer, causes the computer to perform the steps in the above method.
附图说明Description of drawings
此处所说明的附图用来提供对本公开的进一步理解,构成本公开的一部分,本公开的示意性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。在附图中:The drawings described here are used to provide a further understanding of the present disclosure and constitute a part of the present disclosure. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation of the present disclosure. In the attached picture:
图1是本公开实施例的一种计算机的硬件结构框图;Figure 1 is a hardware structural block diagram of a computer according to an embodiment of the present disclosure;
图2是根据本公开实施例的一种资源调度方法的流程图;Figure 2 is a flow chart of a resource scheduling method according to an embodiment of the present disclosure;
图3是本公开实施例中的一个场景实施示意图;Figure 3 is a schematic diagram of a scenario implementation in an embodiment of the present disclosure;
图4是根据本公开实施例的一种资源调度装置的结构框图。Figure 4 is a structural block diagram of a resource scheduling device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本公开方案,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分的实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本公开保护的范围。在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互组合。In order to enable those skilled in the art to better understand the present disclosure, the following will clearly and completely describe the technical solutions in the present disclosure embodiments in conjunction with the accompanying drawings. Obviously, the described embodiments are only These are part of the embodiments of this disclosure, not all of them. Based on the embodiments in this disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts should fall within the scope of protection of this disclosure. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含 了一系列步骤或单元的过程、方法、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", etc. in the description and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the disclosure described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, e.g., a process, method, product or apparatus that encompasses a series of steps or units need not be limited to those steps explicitly listed or units, but may include other steps or units not expressly listed or inherent to such processes, methods, products or devices.
本公开实施例一所提供的方法实施例可以在手机、计算机、平板或者类似的运算装置中执行。以运行在计算机上为例,图1是本公开实施例的一种计算机的硬件结构框图。如图1所示,计算机可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器104,在一示例性实施例中,上述计算机还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述计算机的结构造成限定。例如,计算机还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiment provided in Embodiment 1 of the present disclosure can be executed on a mobile phone, computer, tablet, or similar computing device. Taking running on a computer as an example, FIG. 1 is a hardware structure block diagram of a computer according to an embodiment of the present disclosure. As shown in Figure 1, the computer may include one or more (only one is shown in Figure 1) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and A memory 104 for storing data. In an exemplary embodiment, the above-mentioned computer may also include a transmission device 106 and an input and output device 108 for communication functions. Persons of ordinary skill in the art can understand that the structure shown in Figure 1 is only illustrative and does not limit the structure of the above-mentioned computer. For example, the computer may also include more or fewer components than shown in FIG. 1 , or have a different configuration than that shown in FIG. 1 .
存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本公开实施例中的一种资源调度方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至计算机。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a resource scheduling method in an embodiment of the present disclosure. The processor 102 runs the computer program stored in the memory 104, thereby Execute various functional applications and data processing, that is, implement the above methods. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 104 may further include memory located remotely from processor 102, and these remote memories may be connected to the computer through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.
传输设备106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括计算机的通信供应商提供的无线网络。在一个实例中,传输设备106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输设备106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。 Transmission device 106 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wireless network provided by the computer's communication provider. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (Radio Frequency, RF for short) module, which is used to communicate with the Internet wirelessly.
在本实施例中提供了一种资源调度方法,图2是根据本公开实施例的一种资源调度方法的流程图,如图2所示,该流程包括如下步骤S10至步骤S50。This embodiment provides a resource scheduling method. Figure 2 is a flow chart of a resource scheduling method according to an embodiment of the present disclosure. As shown in Figure 2, the process includes the following steps S10 to S50.
S10,判断目标任务的交互类型。S10, determine the interaction type of the target task.
本公开实施例中目标任务指当前待进入待处理任务池的任务。目标任务的交互类型可以指目标任务的来源或方式。在一示例性实施例中,比如,5G网管系统主要对外提供GUI(Graphical User Interface,图形用户界面)、API(Application Programming Interface,应用程序接口)两种交互方式,那么,在5G网管系统场景中目标任务的交互类型可以分为GUI和API两种。再比如,对于某生活软件系统,根据任务的来源,目标任务的交互类型可以是 电脑访问、手机访问以及其它三方访问等。In the embodiment of the present disclosure, the target task refers to the task currently to be entered into the pending task pool. The interaction type of a target task can refer to the source or manner of the target task. In an exemplary embodiment, for example, the 5G network management system mainly provides two external interaction methods: GUI (Graphical User Interface, graphical user interface) and API (Application Programming Interface, application program interface). Then, in the 5G network management system scenario The interaction types of target tasks can be divided into two types: GUI and API. For another example, for a certain life software system, depending on the source of the task, the interaction type of the target task can be computer access, mobile phone access, and other three-party access.
其中,判断目标任务的交互类型的方式可以是通过识别目标任务携带的类型标识,或者根据目标任务的来源或方式实现,本公开实施例不做具体限制。The method of determining the interaction type of the target task may be by identifying the type identifier carried by the target task, or based on the source or method of the target task, which is not specifically limited in this embodiment of the disclosure.
S20,计算交互类型的目标任务量与待处理任务池的总任务量之间的任务比例,其中,目标任务量是待处理任务池中属于交互类型的任务总量。S20: Calculate the task ratio between the target task amount of the interactive type and the total task amount of the to-be-processed task pool, where the target task amount is the total amount of tasks of the interactive type in the to-be-processed task pool.
在确定目标任务的交互类型后,本实施例根据待处理任务池中属于该交互类型的任务总量和任务池的总任务量计算该交互类型的任务比例。比如,目标任务类型是GUI,待处理任务池中属于GUI类型的任务量是10,其它类型,即API类型的任务量是90,或者说,待处理任务池中GUI与API任务的比例是1:9,那么通过计算可以得出交互类型为GUI在待处理任务池的任务比例为1/10。After determining the interaction type of the target task, this embodiment calculates the proportion of tasks of this interaction type based on the total number of tasks belonging to this interaction type in the to-be-processed task pool and the total task amount of the task pool. For example, if the target task type is GUI, the number of GUI type tasks in the pending task pool is 10, and the number of other types, that is, API type tasks, is 90, or in other words, the ratio of GUI to API tasks in the pending task pool is 1 :9, then through calculation it can be concluded that the proportion of tasks with the interaction type GUI in the pending task pool is 1/10.
S30,比较任务比例以及交互类型的预设资源比例的大小。S30: Compare the task proportion and the preset resource proportion of the interaction type.
本公开实施例中在进行资源调度之前还对各类型的任务设置了预设资源比例,其中,预设资源比例可以是默认的初始比例,也可以自定义设置的比例,当该比例是自定义设置时,该值可在调度过程依情况随时干预调整。In the embodiment of the present disclosure, a preset resource ratio is set for each type of task before resource scheduling is performed. The preset resource ratio can be a default initial ratio, or a custom-set ratio. When the ratio is a custom When set, this value can be adjusted at any time during the scheduling process according to the situation.
预设资源比例在于提供调度目标,根据在S20中得到的任务比例以及预设资源比例进行任务资源调度,使资源调度过程中各类型任务的占比无限趋近于该设定的预设资源比例。在一示例性实施例中,可以比较待处理任务池中各任务类型的比例和预设资源比例的大小,若目标任务所属的交互类型的任务比例大于或等于该交互类型的预设资源比例,说明该交互类型在待处理任务池中占比较大,当前该交互类型任务较多,超过了预设资源比例,则延迟执行目标任务,减少该交互类型任务的占比;反之,若目标任务所属的交互类型的任务比例小于该交互类型的预设资源比例,说明目标任务的交互类型在待处理任务池中占比较小,当前该交互类型任务较少,对该类型的资源分配还有空余,则提前执行目标任务,提高该交互类型任务的占比。通过延迟执行其中大于预设资源比例的交互类型任务,以及提前执行其中小于预设资源比例的交互类型任务,使任务均衡去接近设定的预设资源比例。The preset resource ratio is to provide the scheduling target. Task resource scheduling is performed based on the task ratio obtained in S20 and the preset resource ratio, so that the proportion of various types of tasks in the resource scheduling process is infinitely close to the set preset resource ratio. . In an exemplary embodiment, the proportion of each task type in the task pool to be processed can be compared with the preset resource proportion. If the task proportion of the interaction type to which the target task belongs is greater than or equal to the preset resource proportion of the interaction type, It means that this interaction type accounts for a large proportion in the to-be-processed task pool. Currently, there are many tasks of this interaction type and exceeds the preset resource ratio. Then the execution of the target task will be delayed and the proportion of tasks of this interaction type will be reduced. On the contrary, if the target task belongs to The proportion of tasks of the interaction type is smaller than the preset resource proportion of the interaction type, indicating that the interaction type of the target task accounts for a small proportion in the to-be-processed task pool. Currently, there are few tasks of this interaction type, and there is still room for resource allocation of this type. Then execute the target task in advance to increase the proportion of tasks of this interaction type. By delaying the execution of interactive tasks that are larger than the preset resource ratio, and executing in advance the interactive tasks that are smaller than the preset resource ratio, the tasks are balanced to approach the set preset resource ratio.
比如,某网管系统默认分配给GUI任务和分配给API任务的预设资源比例为6:4,表示在一段时间GUI,API方式并行交互,GUI资源占用多一些,意味着需要同等资源的任务,GUI方式较快完成,而待处理任务池中GUI与API任务的比例是1:9,若待加入任务池的目标任务类型是GUI,该类型在待处理任务池中所占的任务比例是1/10,小于该类型的预设资源比例6/10,说明当前GUI交互类型较少,则可以提前执行或尽量多执行GUI类型使任务资源调度接近设定的预设资源比例。For example, the default ratio of resources allocated to GUI tasks and API tasks in a certain network management system is 6:4, which means that during a period of time, GUI and API interact in parallel, and GUI resources occupy more resources, which means tasks that require the same resources. The GUI method is faster to complete, and the ratio of GUI to API tasks in the pending task pool is 1:9. If the target task type to be added to the task pool is GUI, the proportion of tasks of this type in the pending task pool is 1 /10, which is less than the default resource ratio of this type 6/10, indicating that there are currently few GUI interaction types, so you can execute it in advance or execute as many GUI types as possible to make the task resource scheduling close to the set default resource ratio.
S40,根据比较结果对目标任务的初始序列编号进行离散调整,其中,序列编号表征目标任务在待处理任务池中的执行顺序。S40: Discretely adjust the initial sequence number of the target task according to the comparison result, where the sequence number represents the execution order of the target task in the task pool to be processed.
S50,根据离散调整后的序列编号进行任务资源调度。S50: Schedule task resources according to the discretely adjusted sequence number.
由于对任务反复调整会降低效率,因此,本公开实施例中为各任务增加序列编号,序列编号绑定一个原始目标任务,用于表征目标任务进入待处理任务池后被执行的顺序,之后可根据各任务对应的序列编号的顺序进行任务资源调度。Since repeated adjustments to tasks will reduce efficiency, in the embodiment of the present disclosure, a sequence number is added to each task. The sequence number is bound to an original target task and is used to represent the order in which the target tasks are executed after entering the task pool to be processed. Task resource scheduling is performed according to the sequence number corresponding to each task.
初始序列编号为任务未经调整的原始默认的执行顺序,根据任务比例和预设资源比例的比较结果对目标任务的原始执行顺序进行前移或延迟的调整,使目标任务加入待处理任务池后使任务池中的资源调度趋近于预设的预设资源比例,在一示例性实施例中,调整的方式可以是等差前移或等差延迟。考虑到单一地对目标任务的顺序进行前移或者延迟,会导致同类交互任务进行聚集,打破交互的随机性,因此,为了避免均衡插入打乱原有的离散性,本公开实施例中对目标任务的初始序列编号的调整为离散调整,其中,离散调整的方式可以是通过将目标任务的前移或者延迟的步数随机化,不固定各目标任务前移或延迟的步数,从而进行离散调整。The initial sequence number is the original default execution order of the task without adjustment. According to the comparison result of the task proportion and the preset resource proportion, the original execution order of the target task is adjusted forward or delayed, so that the target task is added to the pending task pool. To make the resource scheduling in the task pool approach a preset resource ratio, in an exemplary embodiment, the adjustment method may be an arithmetic advance or an arithmetic delay. Considering that simply moving forward or delaying the order of target tasks will lead to the aggregation of similar interactive tasks and break the randomness of interactions, therefore, in order to avoid balanced insertion disrupting the original discreteness, in the embodiment of the present disclosure, the target tasks are The adjustment of the initial sequence number of the task is a discrete adjustment. The discrete adjustment method can be by randomizing the number of steps forward or delayed for the target task, without fixing the number of steps forward or delayed for each target task, thereby performing discrete adjustment. Adjustment.
本公开实施例根据目标任务的交互类型在任务池中所占比例与交互类型的预设资源比例进行资源调度,使得待处理任务池中的任务比例尽可能趋近预设资源比例,资源调度更合理,提高了资源利用率,通过为每个任务增加序列编号,防止反复对任务进行调整,提高了本实施例中资源调度方法的效率,并且对目标任务的序列编号的调整进行离散化,防止过程中同类型任务聚集,尽可能地保留了资源调度的原始随机性。This disclosed embodiment performs resource scheduling based on the proportion of the interaction type of the target task in the task pool and the preset resource ratio of the interaction type, so that the task ratio in the task pool to be processed is as close as possible to the preset resource ratio, and resource scheduling is more efficient. Reasonable, improve resource utilization, by adding a sequence number to each task, preventing repeated adjustments to tasks, improving the efficiency of the resource scheduling method in this embodiment, and discretizing the adjustment of the sequence number of the target task, preventing Tasks of the same type are gathered during the process, retaining the original randomness of resource scheduling as much as possible.
在一实施方式中,S40,根据比较结果对目标任务的初始序列编号进行离散调整包括步骤S41至步骤S42。In one embodiment, S40, discretely adjusting the initial sequence number of the target task according to the comparison result includes steps S41 to S42.
步骤S41,若任务比例大于或等于预设资源比例,则生成随机后退因子,根据随机后退因子对目标任务的初始序列编号进行延迟。步骤S42,若任务比例小于预设资源比例,则生成随机前移因子,根据随机前移因子对目标任务的初始序列编号进行前移。Step S41, if the task proportion is greater than or equal to the preset resource proportion, a random backoff factor is generated, and the initial sequence number of the target task is delayed based on the random backoff factor. Step S42: If the task proportion is less than the preset resource proportion, a random forward factor is generated, and the initial sequence number of the target task is moved forward according to the random forward factor.
为了避免均衡插入而打乱用户行为的原有离散性,本公开实施例通过随机因子对目标任务的前移和延迟进行离散,将目标任务前移与后退随机化,使得加入目标任务后的比例在当前比例数附近跳跃,跳跃度在区间内呈现均匀分布。当待处理任务池中与目标任务类型对应的任务比例大于或等于预设资源比例时,需要将目标任务的执行顺序延迟,本实施例中延迟的步数不是固定的直接进行等差累加,而是随机生成后退因子,将延迟后退的步数随机化,对目标任务的初始序列编号根据后退因子进行延迟,从而将各需要延迟的目标任务随机离散 地插入待处理任务池中靠后的位置;当待处理任务池中与目标任务类型对应的任务比例小于预设资源比例时,需要将目标任务的执行顺序提前,本实施例随机生成前移因子,将目标任务前移的步数随机化,从而将各需要提前的目标任务随机离散地插入待处理任务池中靠前的位置。In order to avoid balanced insertion and disrupting the original discreteness of user behavior, embodiments of the present disclosure use random factors to discretize the forward movement and delay of the target task, and randomize the forward and backward movement of the target task, so that the proportion after adding the target task Jumps around the current proportion number, and the jump degree is evenly distributed within the interval. When the proportion of tasks corresponding to the target task type in the to-be-processed task pool is greater than or equal to the preset resource proportion, the execution sequence of the target task needs to be delayed. In this embodiment, the number of delayed steps is not fixed and directly accumulated arithmetic. The backoff factor is randomly generated, the number of delayed backoff steps is randomized, and the initial sequence number of the target task is delayed according to the backoff factor, so that each target task that needs to be delayed is randomly and discretely inserted into a later position in the to-be-processed task pool; When the proportion of tasks corresponding to the target task type in the to-be-processed task pool is less than the preset resource proportion, the execution order of the target task needs to be advanced. This embodiment randomly generates a forwarding factor to randomize the number of steps for moving the target task forward. Thus, each target task that needs to be advanced is randomly and discretely inserted into the front position of the to-be-processed task pool.
生成随机前移因子或者随机后退因子的方式可以是首先确定前移因子和后退因子的取值范围,之后利用随机数生成器生成规定取值范围的随机数,将该所得的随机数作为随机前移因子和随机后退因子,根据随机后退因子和随机前移因子保证前移或后退的步数随机,从而对目标任务插入任务池中的位置离散均衡。The method of generating a random forward factor or a random backward factor can be to first determine the value range of the forward factor and the backward factor, and then use a random number generator to generate a random number within the specified value range, and use the resulting random number as the random forward factor. The shift factor and the random backward factor ensure that the number of steps forward or backward is random according to the random backward factor and the random forward factor, so that the position of the target task inserted into the task pool is discretely balanced.
在一实施方式中,生成随机前移因子的方式为:利用线性同余法生成预设区间的随机前移因子。In one implementation, the random forwarding factor is generated by using a linear congruence method to generate a random forwarding factor in a preset interval.
本实施例中随机生成前移因子的方式是利用线性同余法实现,其中,前移因子的范围区间可以为[1,任务处理能力数]。线性同余法是一种伪随机序列生成算法,伪随机数采用软件算法加随机数种子的方式来实现,种子类似于密码算法中的加密密钥,不同的种子对应不同的随机数,通过对前一个数进行线性运算并取模从而得到下一个数,产生具有不连续计算的伪随机序列的分段线性方程,得到的随机数呈现伪均匀分布。In this embodiment, the method of randomly generating forward factors is implemented by using the linear congruence method, in which the range of the forward factors can be [1, the number of task processing capabilities]. The linear congruence method is a pseudo-random sequence generation algorithm. The pseudo-random numbers are realized by adding a software algorithm and a random number seed. The seed is similar to the encryption key in the cryptographic algorithm. Different seeds correspond to different random numbers. By pairing The previous number is subjected to a linear operation and modulo to obtain the next number, producing a piecewise linear equation with a pseudo-random sequence of discontinuous calculations, and the resulting random numbers present a pseudo-uniform distribution.
本公开实施例通过将目标任务前移与后退随机化,避免任务聚集,保持了原始随机的特征。The embodiment of the present disclosure randomizes the forward and backward movement of target tasks to avoid task aggregation and maintain the original random characteristics.
在一实施方式中,根据离散调整后的序列编号进行任务资源调度包括:根据离散调整后的序列编号确定当前待处理任务池中的第一任务,其中,第一任务为当前待处理任务池中序列编号最小的任务;向第一任务分配当前可用资源执行第一任务。In one embodiment, scheduling task resources according to the discretely adjusted sequence number includes: determining the first task in the current to-be-processed task pool according to the discretely-adjusted sequence number, where the first task is the first task in the current to-be-processed task pool. The task with the smallest sequence number; allocate currently available resources to the first task to execute the first task.
任务调度过程中,每次选择任务时选择当前任务池中的第一任务分配当前可用资源执行,其中第一任务为当前最高优先级的任务,即序列编号最小或者说顺序最前的任务。During the task scheduling process, each time a task is selected, the first task in the current task pool is selected to allocate currently available resources for execution. The first task is the current highest priority task, that is, the task with the smallest sequence number or the highest order.
本公开资源调度方法实施例中虽然对各类型任务预设资源比例,但预设资源比例在于提供调度目标,使资源调度过程中各类型任务的占比无限趋近于该设定的预设资源比例,并不用于划分资源在执行任务时的分配比例,因此,确定当前待处理任务池中的第一任务后,本实施例不区分任务类型,会分配当前可用的资源执行第一任务,可理解地,当运行期只有一种类型的任务时,该类型的任务会占有全有资源。Although resource proportions are preset for each type of task in the embodiments of the disclosed resource scheduling method, the preset resource proportion is to provide a scheduling target so that the proportion of each type of task in the resource scheduling process is infinitely close to the set preset resources. The ratio is not used to divide the allocation ratio of resources when executing tasks. Therefore, after determining the first task in the current to-be-processed task pool, this embodiment does not distinguish between task types and will allocate currently available resources to execute the first task. Understandably, when there is only one type of task during the runtime, that type of task will occupy all resources.
本实施例实现了优先分配当前可用资源对待处理任务池中序列编号最小的任务进行执行。This embodiment implements the priority allocation of currently available resources to execute the task with the smallest sequence number in the task pool to be processed.
在一实施方式中,根据离散调整后的序列编号确定当前待处理任务池中的第一任务包括:根据当前待处理任务池中所有任务的序列编号构建最小堆;将最小堆的堆顶序列编号对应的 任务作为当前任务池中的第一任务。In one embodiment, determining the first task in the current to-be-processed task pool based on the discretely adjusted sequence number includes: constructing a minimum heap based on the sequence numbers of all tasks in the current to-be-processed task pool; The corresponding task is regarded as the first task in the current task pool.
待处理任务池中的任务具有对应的序列编号,本公开实施例中根据待处理任务池中所有任务的序列编号构建最小堆,其中,构建最小堆的方式可以通过完全二叉树的数组存储结构来实现,使得在取堆顶元素的时候总是先拿到最小的,最小堆堆顶的序列编号即为当前最前或者最高优先级的序列编号,选择该序列编号对应的任务作为当前任务池中的第一任务执行。The tasks in the task pool to be processed have corresponding sequence numbers. In the embodiment of the present disclosure, a minimum heap is constructed based on the sequence numbers of all tasks in the task pool to be processed. The method of constructing the minimum heap can be implemented through the array storage structure of a complete binary tree. , so that when fetching the top element of the heap, the smallest one is always obtained first. The sequence number on the top of the smallest heap is the current frontmost or highest priority sequence number, and the task corresponding to this sequence number is selected as the first in the current task pool. One task is executed.
在一实施方式中,根据比较结果对目标任务的序列编号进行离散调整还包括:判断目标任务是否为紧急任务;若目标任务为紧急任务,则生成最大前移因子;根据最大前移因子提前紧急任务在待处理任务池中的序列编号。In one embodiment, discretely adjusting the sequence number of the target task according to the comparison result also includes: determining whether the target task is an urgent task; if the target task is an urgent task, generating a maximum forwarding factor; and advancing the emergency according to the maximum forwarding factor. The sequence number of the task in the pending task pool.
紧急任务指需要高优先级进行处理的重要或紧迫的任务。最大前移因子表示将该紧急任务的序列编号直接前移到任务池中最前面的移动参数。本公开实施例为红线高危任务增加顶级调度,在判断目标任务的交互类型是红线高危的紧急任务时,直接为该紧急任务设置远高于其它的最大前移因子,通过最大前移因子直接将该紧急任务的序列编号前移到任务池中最前面,让当前资源最高优先级执行顶级任务。Urgent tasks refer to important or urgent tasks that require high priority processing. The maximum forwarding factor indicates that the sequence number of the emergency task is directly forwarded to the frontmost movement parameter in the task pool. This disclosed embodiment adds top-level scheduling for redline high-risk tasks. When it is determined that the interaction type of the target task is a redline high-risk emergency task, the emergency task is directly set to a maximum forwarding factor that is much higher than other ones. The maximum forwarding factor is used to directly The sequence number of the emergency task is moved to the front of the task pool, allowing the current resources to execute the top-level task with the highest priority.
本公开实施例实现了对紧急任务的最高优先级处理。The embodiments of the present disclosure realize the highest priority processing of emergency tasks.
在一实施方式中,判断目标任务的交互类型之前,方法包括:接收用户指令;响应于用户指令,为每个交互类型的任务设定一个预设资源比例。In one embodiment, before determining the interaction type of the target task, the method includes: receiving a user instruction; and setting a preset resource ratio for each interaction type task in response to the user instruction.
本公开实施例中预设资源比例可根据用户指令设置,通过接收用户指令为每个交互类型的任务设定一个预设资源比例。比如,由于各网管系统使用场景不一,在极简调用下,API类型的任务极多,用户可在配置中心设置GUI:API=1:9,使分配给API任务的资源更多些。In the embodiment of the present disclosure, the preset resource ratio can be set according to user instructions, and a preset resource ratio is set for each interaction type task by receiving user instructions. For example, due to different usage scenarios of each network management system, there are many API-type tasks under minimalist calls. Users can set GUI:API=1:9 in the configuration center to allocate more resources to API tasks.
本公开实施例中预设资源比例根据用户指令设置,使资源分配调度更合理有效。In the embodiment of the present disclosure, the preset resource ratio is set according to user instructions, making resource allocation and scheduling more reasonable and effective.
参照图3,图3是本公开实施例中的一个场景实施示意图。Referring to Figure 3, Figure 3 is a schematic diagram of a scenario implementation in an embodiment of the present disclosure.
如图3所示,本公开资源调度方法实施例中,分为资源比例设定、任务预均衡判别、任务重离散、任务均衡调度四个过程。As shown in Figure 3, in the embodiment of the resource scheduling method of the present disclosure, it is divided into four processes: resource proportion setting, task pre-balancing judgment, task weight discretization, and task balancing scheduling.
资源比例设定,用于设定资源比例。该资源比例设定后仍可在调度过程中进行调整,接下来的资源调度过程会使待处理任务池中进行资源调度时各任务的比例趋近于该设定的比例。例如,网管系统默认GUI(WEB页面方式):API(命令行方式)=6:4,表示在一段时间GUI,API方式并行交互,GUI资源占用多一些,意味着需要同等资源的任务,GUI方式较快完成。这一方式是网管系统预置行为,因为各个地方的网管系统使用场景不一,如极简调用下,命令行方式极多,可以直接在配置中心设置GUI:API=1:9,在过程中也可根据需要切换设置。该比例为近似比例,随着任务累积,调度过程无限趋近于该比例。Resource ratio setting, used to set resource ratio. After the resource ratio is set, it can still be adjusted during the scheduling process. The subsequent resource scheduling process will make the ratio of each task in the to-be-processed task pool approach the set ratio during resource scheduling. For example, the default GUI (WEB page mode) of the network management system: API (command line mode) = 6:4, which means that the GUI and API modes interact in parallel for a period of time, and the GUI resources occupy more resources, which means that tasks that require the same resources, the GUI mode Complete faster. This method is the preset behavior of the network management system, because the usage scenarios of network management systems in various places are different. For example, under minimalist call, there are many command line methods. You can directly set the GUI: API = 1:9 in the configuration center. During the process You can also switch settings as needed. This ratio is an approximate ratio. As tasks accumulate, the scheduling process approaches this ratio infinitely.
任务预均衡判别,表示判断要加入待处理任务池的目标任务的交互类型,根据该交互类型在任务池中的比例和设定的资源比例判断是否需要对该目标任务进行前移或延迟。若该交互类型在任务池中的比例大于设定的资源比例,判别结果为当前交互类型任务较多,应该延迟执行来接近比例。反之,小于设定的资源比例,判别结果为当前交互类型较少,应该提前执行或尽量多执行来接近标准比例。例如,网管系统下发任务携带标识,系统可识别该任务类型是GUI还是API,并获取当前任务池各交互类型的比例,当大于或等于预设资源比例,将当前任务直接追加,可按等差值为1进行累加,当小于预设资源比例,可以按资源的当前交互比例数前移,以此方式达成一种预均衡状态。可理解地,上述方式做解释说明,并不构成本实施例前移或追加的限定,具体实施方式中可以使用不限于等差的其它的方式,本公开实施例不做具体限制。该状态为相对近似态,意味着当前任务加入后比加入前更均衡的一种状态。Task pre-balancing judgment means judging the interaction type of the target task to be added to the pending task pool, and judging whether the target task needs to be moved forward or delayed based on the proportion of the interaction type in the task pool and the set resource ratio. If the proportion of this interaction type in the task pool is greater than the set resource proportion, the judgment result is that there are many tasks of the current interaction type, and the execution should be delayed to approach the proportion. On the contrary, if it is less than the set resource ratio, the judgment result is that the current interaction type is small, and it should be executed in advance or as much as possible to approach the standard ratio. For example, the network management system issues a task carrying an identifier. The system can identify whether the task type is GUI or API, and obtain the proportion of each interaction type in the current task pool. When it is greater than or equal to the preset resource proportion, the current task will be added directly. You can press etc. The difference is 1 and is accumulated. When it is less than the preset resource ratio, it can be moved forward according to the current interaction ratio of the resource to achieve a pre-balanced state. It is understandable that the above methods are used for explanation and do not constitute an advance or additional limitation of this embodiment. Other methods that are not limited to arithmetic can be used in specific implementations, and the embodiments of this disclosure are not specifically limited. This state is a relatively approximate state, which means that the current task is in a more balanced state after it is added than before it was added.
任务重离散,表示由于任务具有随机离散性,在上一任务预均衡判别后,任务会均衡化,但是均衡过程使得同类交互任务进行聚集,打破用户交互的随机性,为了避免均衡插入而打乱用户行为的原有离散性,本过程对位置的选择进行重离散二次调整,使前移和后退随机离散化,使任务池中的任务分布保持原有离散随机特性。即每次任务预均衡判别后,对于不符合预设资源比例的场景,在前移或者延迟的点增加随机因子,使得该比例数在当前交互比例数附近跳跃,跳跃度在区间内呈现均匀分布。例如,5G网管系统在这一步骤主要对任务前移时,利用线性同余法,生成[1,任务处理能力数]区间的随机因子,使得前移与随机因子保持一致,使得多个时刻的比例数在当前交互比例数附近跳跃,跳跃度在区间内呈现均匀分布。其中,线性同余法,为伪随机数,可呈现伪均匀分布,具体实施例中还可以根据其它方式生成随机因子。Task heavy discretization means that due to the random discreteness of the task, the task will be balanced after the pre-balanced determination of the previous task. However, the balancing process causes similar interactive tasks to aggregate, breaking the randomness of user interaction, and avoiding disruption caused by balanced insertion. Due to the original discrete nature of user behavior, this process makes a heavy discrete secondary adjustment to the location selection, making the forward and backward movements random and discretizing, so that the task distribution in the task pool maintains the original discrete random characteristics. That is, after each task is pre-balanced and judged, for scenarios that do not meet the preset resource ratio, a random factor is added to the forward or delayed point, so that the ratio jumps around the current interaction ratio, and the jump degree is evenly distributed within the interval. . For example, when the 5G network management system mainly moves tasks forward in this step, it uses the linear congruence method to generate random factors in the interval [1, number of task processing capabilities], so that the forward movement is consistent with the random factors, so that the tasks at multiple times are The proportion number jumps around the current interaction proportion number, and the degree of jump is evenly distributed within the interval. Among them, the linear congruence method is a pseudo-random number that can present a pseudo-uniform distribution. In specific embodiments, random factors can also be generated according to other methods.
任务均衡调度,该过程主要从任务池选择最高的优先级或者其中几个执行。任务预均衡判别及任务重离散过程中均是对待执行任务池处理,维护的是一种序列的预状态,即均衡离散后,由于对原始任务反复调整会降低效率,因而任务预均衡判别及任务重离散过程仅是为每个任务增加随机序列编号,序列编号绑定一个原始任务。任务调度过程中,每次选择任务,将呈现该状态的任务池所有任务的随机序列编号构建最小堆,堆顶的序列即为当前最前或者最高优先级的序列,选择该序列编号绑定的任务执行,执行期仍然为均衡状态。经任务预均衡判别及任务重离散过程过程的任务,既按照用户设定比例走向,又保持了任务随机特征性。Task balanced scheduling, this process mainly selects the highest priority or several of them from the task pool for execution. The task pre-balancing discrimination and task re-discretization process are all processed by the task pool to be executed, and what is maintained is a pre-state of the sequence. That is, after balancing and discretization, repeated adjustments to the original tasks will reduce the efficiency, so the task pre-balancing discrimination and task The re-discretization process simply adds a random sequence number to each task, and the sequence number is bound to an original task. During the task scheduling process, each time a task is selected, the random sequence numbers of all tasks in the task pool in this state are used to construct a minimum heap. The sequence at the top of the heap is the current top or highest priority sequence, and the task bound to this sequence number is selected. execution, the execution period is still in equilibrium. The tasks that have been through task pre-balanced discrimination and task re-dispersion processes not only follow the proportion set by the user, but also maintain the random characteristics of the task.
本实施场景中还为红线高危任务增加顶级调度,对于某些特定任务,若判断其为红线高危的紧急任务,直接设置远高于其他序列的随机值,将该紧急任务前移到最前面,在不增加资源的前提下,让当前资源最高优先级执行顶级任务。This implementation scenario also adds top-level scheduling for redline high-risk tasks. For some specific tasks, if it is judged to be a redline high-risk emergency task, directly set a random value much higher than other sequences, and move the emergency task to the front. Without increasing resources, let current resources perform top-level tasks with the highest priority.
本公开实施例通过任务预均衡和重离散将任务均衡在预设的比例,可将资源按用户比例最大化利用,而且保持了原有任务的随机离散性,以最大能力提高资源的利用,并且在预均衡,重离散过程还可以保留顶级调度,为高危红线任务提供最高优先级。The embodiments of the present disclosure balance tasks at a preset ratio through task pre-balancing and re-dispersion, which can maximize the utilization of resources in proportion to users, and maintain the random discreteness of the original tasks, thereby improving the utilization of resources to the maximum capacity, and During pre-equilibration, the heavy discretization process can also retain top-level scheduling to provide the highest priority for high-risk redline tasks.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is Better implementation. Based on this understanding, the technical solution of the present disclosure can be embodied in the form of a software product in essence or that contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk, CD), including several instructions to cause a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present disclosure.
在本实施例中还提供了一种交互过程的可视化装置,用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。This embodiment also provides a visualization device for the interactive process, which is used to implement the above embodiments and preferred implementations. What has already been explained will not be described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
图4是根据本公开实施例的一种资源调度装置的结构框图,如图4所示,该资源调度装置,包括:判断模块100,计算模块200,比较模块300,离散模块400,调度模块500,其中,Figure 4 is a structural block diagram of a resource scheduling device according to an embodiment of the present disclosure. As shown in Figure 4, the resource scheduling device includes: a judgment module 100, a calculation module 200, a comparison module 300, a discrete module 400, and a scheduling module 500 ,in,
判断模块100,配置为判断目标任务的交互类型;The judgment module 100 is configured to judge the interaction type of the target task;
计算模块200,配置为计算交互类型的目标任务量与待处理任务池的总任务量之间的任务比例,其中,目标任务量是待处理任务池中属于交互类型的任务总量;The calculation module 200 is configured to calculate the task ratio between the target task amount of the interaction type and the total task amount of the to-be-processed task pool, where the target task amount is the total amount of tasks belonging to the interaction type in the to-be-processed task pool;
比较模块300,配置为比较任务比例以及交互类型的预设资源比例的大小;The comparison module 300 is configured to compare the task proportion and the size of the preset resource proportion of the interaction type;
离散模块400,配置为根据比较结果对目标任务的初始序列编号进行离散调整,其中,序列编号表征目标任务在待处理任务池中的执行顺序;The discrete module 400 is configured to discretely adjust the initial sequence number of the target task according to the comparison result, where the sequence number represents the execution order of the target task in the task pool to be processed;
调度模块500,配置为根据离散调整后的序列编号进行任务资源调度。The scheduling module 500 is configured to schedule task resources according to the discretely adjusted sequence numbers.
在一示例性实施例中,离散模块包括:第一离散子单元,配置为若任务比例大于或等于预设资源比例,则生成随机后退因子,根据随机后退因子对目标任务的初始序列编号进行延迟;第二离散子单元,若任务比例小于预设资源比例,则生成随机前移因子,根据随机前移因子对目标任务的初始序列编号进行前移。In an exemplary embodiment, the discrete module includes: a first discrete subunit configured to generate a random backoff factor if the task ratio is greater than or equal to the preset resource ratio, and delay the initial sequence number of the target task according to the random backoff factor. ; The second discrete sub-unit, if the task proportion is less than the preset resource proportion, generates a random forwarding factor, and moves forward the initial sequence number of the target task according to the random forwarding factor.
在一示例性实施例中,第二离散子单元包括:前移因子生成单元,配置为利用线性同余法生成预设区间的随机前移因子。In an exemplary embodiment, the second discrete sub-unit includes: a forwarding factor generation unit configured to generate a random forwarding factor in a preset interval using a linear congruence method.
在一示例性实施例中,调度模块包括:调度子单元,配置为根据离散调整后的序列编号 确定当前待处理任务池中的第一任务,其中,第一任务为当前待处理任务池中序列编号最小的任务;向第一任务分配当前可用资源执行第一任务。In an exemplary embodiment, the scheduling module includes: a scheduling subunit configured to determine the first task in the current to-be-processed task pool according to the discretely adjusted sequence number, where the first task is the sequence in the current to-be-processed task pool. The task with the smallest number; allocate currently available resources to the first task to execute the first task.
在一示例性实施例中,调度子单元还包括:第一任务确定单元,配置为根据当前待处理任务池中所有任务的序列编号构建最小堆;将最小堆的堆顶序列编号对应的任务作为当前任务池中的第一任务。In an exemplary embodiment, the scheduling subunit also includes: a first task determination unit configured to construct a minimum heap based on the sequence numbers of all tasks in the current to-be-processed task pool; and use the task corresponding to the sequence number at the top of the minimum heap as The first task in the current task pool.
在一示例性实施例中,比较模块还包括:紧急任务编号单元,配置为判断目标任务是否为紧急任务;若目标任务为紧急任务,则生成最大前移因子;根据最大前移因子提前紧急任务在待处理任务池中的序列编号。In an exemplary embodiment, the comparison module further includes: an emergency task number unit configured to determine whether the target task is an emergency task; if the target task is an emergency task, generate a maximum forwarding factor; and advance the emergency task according to the maximum forwarding factor. Sequence number in the pending task pool.
在一示例性实施例中,资源调度装置还包括:预设资源比例设定单元,配置为接收用户指令;响应于用户指令,为每个交互类型的任务设定一个预设资源比例。In an exemplary embodiment, the resource scheduling device further includes: a preset resource ratio setting unit configured to receive user instructions; and in response to user instructions, set a preset resource ratio for each interaction type task.
上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。Each of the above modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but is not limited to this: the above modules are all located in the same processor; or the above modules are located in different processors in any combination. in the processor.
本公开还提出一种电子设备,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。The present disclosure also proposes an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
在一示例性实施例中,上述电子设备还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an exemplary embodiment, the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
在一示例性实施例中,在本电子设备的实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤S1至步骤S5。In an exemplary embodiment, in the embodiment of the present electronic device, the above-mentioned processor may be configured to perform the following steps S1 to S5 through a computer program.
步骤S1,判断目标任务的交互类型。步骤S2,计算交互类型的目标任务量与待处理任务池的总任务量之间的任务比例,其中,目标任务量是待处理任务池中属于交互类型的任务总量。步骤S3,比较任务比例以及交互类型的预设资源比例的大小。步骤S4,根据比较结果对目标任务的初始序列编号进行离散调整,其中,序列编号表征目标任务在待处理任务池中的执行顺序。步骤S5,根据离散调整后的序列编号进行任务资源调度。Step S1: Determine the interaction type of the target task. Step S2: Calculate the task ratio between the target task volume of the interactive type and the total task volume of the to-be-processed task pool, where the target task volume is the total number of interactive-type tasks in the to-be-processed task pool. Step S3: Compare the task proportion and the preset resource proportion of the interaction type. Step S4: Discretely adjust the initial sequence number of the target task according to the comparison result, where the sequence number represents the execution order of the target task in the task pool to be processed. Step S5: Schedule task resources according to the discretely adjusted sequence numbers.
在一示例性实施例中,本公开电子设备实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。In an exemplary embodiment, for specific examples in the embodiments of the electronic device of the present disclosure, reference may be made to the examples described in the above-mentioned embodiments and optional implementations, which will not be described again in this embodiment.
本公开的实施例还提出一种存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。An embodiment of the present disclosure also provides a storage medium in which a computer program is stored, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
在一示例性实施例中,在本存储介质的实施例中,上述存储介质可以被设置为存储用于执行以下步骤的计算机程序,包括步骤S1至步骤S5。In an exemplary embodiment, in the embodiment of the present storage medium, the above-mentioned storage medium may be configured to store a computer program for performing the following steps, including steps S1 to S5.
步骤S1,判断目标任务的交互类型。步骤S2,计算交互类型的目标任务量与待处理任务池的总任务量之间的任务比例,其中,目标任务量是待处理任务池中属于交互类型的任务总量。步骤S3,比较任务比例以及交互类型的预设资源比例的大小。步骤S4,根据比较结果对目标任务的初始序列编号进行离散调整,其中,序列编号表征目标任务在待处理任务池中的执行顺序。步骤S5,根据离散调整后的序列编号进行任务资源调度。Step S1: Determine the interaction type of the target task. Step S2: Calculate the task ratio between the target task volume of the interactive type and the total task volume in the task pool to be processed, where the target task volume is the total number of tasks belonging to the interactive type in the task pool to be processed. Step S3: Compare the task proportion and the preset resource proportion of the interaction type. Step S4: Discretely adjust the initial sequence number of the target task according to the comparison result, where the sequence number represents the execution order of the target task in the task pool to be processed. Step S5: Schedule task resources according to the discretely adjusted sequence numbers.
在一示例性实施例中,本公开存储介质的具体实施例与上述方法各实施例基本相同,在此不作赘述。In an exemplary embodiment, the specific embodiments of the storage medium of the present disclosure are basically the same as the above method embodiments, and will not be described again here.
在一示例性实施例中,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In an exemplary embodiment, in this embodiment, the above-mentioned storage medium may include but is not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as Various media that can store computer programs such as RAM), removable hard drives, magnetic disks or optical disks.
上述本公开实施例序号仅仅为了描述,不代表实施例的优劣。The above serial numbers of the embodiments of the present disclosure are only for description and do not represent the advantages and disadvantages of the embodiments.
在本公开的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present disclosure, each embodiment is described with its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
在本公开所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this disclosure, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or may be Integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the units or modules may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前 述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present disclosure. The aforementioned storage media include: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program code. .
以上所述仅是本公开的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本公开原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本公开的保护范围。The above are only preferred embodiments of the present disclosure. It should be pointed out that for those of ordinary skill in the art, several improvements and modifications can be made without departing from the principles of the present disclosure. These improvements and modifications can also be made. should be regarded as the scope of protection of this disclosure.

Claims (10)

  1. 一种资源调度方法,包括:A resource scheduling method including:
    判断目标任务的交互类型;Determine the interaction type of the target task;
    计算所述交互类型的目标任务量与待处理任务池的总任务量之间的任务比例,其中,所述目标任务量是所述待处理任务池中属于所述交互类型的任务总量;Calculate the task ratio between the target task amount of the interaction type and the total task amount of the to-be-processed task pool, where the target task amount is the total amount of tasks belonging to the interaction type in the to-be-processed task pool;
    比较所述任务比例以及所述交互类型的预设资源比例的大小;Compare the task proportion and the preset resource proportion of the interaction type;
    根据比较结果对所述目标任务的初始序列编号进行离散调整,其中,所述序列编号表征所述目标任务在待处理任务池中的执行顺序;Discretely adjust the initial sequence number of the target task according to the comparison result, where the sequence number represents the execution order of the target task in the task pool to be processed;
    根据离散调整后的序列编号进行任务资源调度。Task resource scheduling is performed based on discretely adjusted sequence numbers.
  2. 如权利要求1所述的资源调度方法,其中根据比较结果对所述目标任务的初始序列编号进行离散调整包括:The resource scheduling method according to claim 1, wherein discretely adjusting the initial sequence number of the target task according to the comparison result includes:
    若所述任务比例大于或等于所述预设资源比例,则生成随机后退因子,根据所述随机后退因子对所述目标任务的初始序列编号进行延迟;If the task proportion is greater than or equal to the preset resource proportion, a random backoff factor is generated, and the initial sequence number of the target task is delayed according to the random backoff factor;
    若所述任务比例小于所述预设资源比例,则生成随机前移因子,根据所述随机前移因子对所述目标任务的初始序列编号进行前移。If the task proportion is less than the preset resource proportion, a random forward factor is generated, and the initial sequence number of the target task is moved forward according to the random forward factor.
  3. 如权利要求2所述的资源调度方法,其中生成随机前移因子包括:The resource scheduling method as claimed in claim 2, wherein generating a random forward factor includes:
    利用线性同余法生成预设区间的随机前移因子。Use the linear congruence method to generate random forward factors for the preset interval.
  4. 如权利要求1所述的资源调度方法,其中根据离散调整后的序列编号进行任务资源调度包括:The resource scheduling method according to claim 1, wherein scheduling task resources according to the discretely adjusted sequence number includes:
    根据离散调整后的序列编号确定当前待处理任务池中的第一任务,其中,所述第一任务为当前待处理任务池中序列编号最小的任务;Determine the first task in the current to-be-processed task pool based on the discretely adjusted sequence number, where the first task is the task with the smallest sequence number in the current to-be-processed task pool;
    向所述第一任务分配当前可用资源执行所述第一任务。Allocate currently available resources to the first task to execute the first task.
  5. 如权利要求4所述的资源调度方法,其中根据离散调整后的序列编号确定当前待处理任务池中的第一任务包括:The resource scheduling method according to claim 4, wherein determining the first task in the currently pending task pool according to the discretely adjusted sequence number includes:
    根据当前待处理任务池中所有任务的序列编号构建最小堆;Build a minimum heap based on the sequence numbers of all tasks in the current pending task pool;
    将所述最小堆的堆顶序列编号对应的任务作为当前任务池中的第一任务。The task corresponding to the top sequence number of the minimum heap is regarded as the first task in the current task pool.
  6. 如权利要求1所述的资源调度方法,其中根据比较结果对所述目标任务的序列编号进行离散调整还包括:The resource scheduling method according to claim 1, wherein discretely adjusting the sequence number of the target task according to the comparison result further includes:
    判断所述目标任务是否为紧急任务;Determine whether the target task is an urgent task;
    若所述目标任务为紧急任务,则生成最大前移因子;If the target task is an urgent task, the maximum forward factor is generated;
    根据所述最大前移因子提前所述紧急任务在待处理任务池中的序列编号。Advance the sequence number of the emergency task in the pending task pool according to the maximum forwarding factor.
  7. 如权利要求1所述的资源调度方法,其中判断目标任务的交互类型之前,所述方法包括:The resource scheduling method according to claim 1, wherein before determining the interaction type of the target task, the method includes:
    接收用户指令;receive user instructions;
    响应于所述用户指令,为每个交互类型的任务设定一个预设资源比例。In response to the user instruction, a preset resource ratio is set for each interaction type task.
  8. 一种资源调度装置,包括:A resource scheduling device, including:
    判断模块,配置为判断目标任务的交互类型;The judgment module is configured to judge the interaction type of the target task;
    计算模块,配置为计算所述交互类型的目标任务量与待处理任务池的总任务量之间的任务比例,其中,所述目标任务量是所述待处理任务池中属于所述交互类型的任务总量;A calculation module configured to calculate a task ratio between the target task amount of the interaction type and the total task amount of the to-be-processed task pool, wherein the target task amount is the interaction type in the to-be-processed task pool. Total amount of tasks;
    比较模块,配置为比较所述任务比例以及所述交互类型的预设资源比例的大小;A comparison module configured to compare the task proportion and the size of the preset resource proportion of the interaction type;
    离散模块,配置为根据比较结果对所述目标任务的初始序列编号进行离散调整,其中,所述序列编号表征所述目标任务在待处理任务池中的执行顺序;A discrete module configured to discretely adjust the initial sequence number of the target task according to the comparison result, wherein the sequence number represents the execution order of the target task in the task pool to be processed;
    调度模块,配置为根据离散调整后的序列编号进行任务资源调度。A scheduling module configured to schedule task resources based on discretely adjusted sequence numbers.
  9. 一种电子设备,包括存储器、处理器和存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至7中任一项所述的资源调度方法的步骤。An electronic device, including a memory, a processor and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, any one of claims 1 to 7 is implemented. The steps of the resource scheduling method described in one item.
  10. 一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7中任一项所述资源调度方法的步骤。A storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the resource scheduling method according to any one of claims 1 to 7 are implemented.
PCT/CN2023/071687 2022-06-27 2023-01-10 Resource scheduling method and apparatus, and electronic device and storage medium WO2024001159A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210744631.9A CN117349002A (en) 2022-06-27 2022-06-27 Resource scheduling method and device, electronic equipment and storage medium
CN202210744631.9 2022-06-27

Publications (1)

Publication Number Publication Date
WO2024001159A1 true WO2024001159A1 (en) 2024-01-04

Family

ID=89365489

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/071687 WO2024001159A1 (en) 2022-06-27 2023-01-10 Resource scheduling method and apparatus, and electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN117349002A (en)
WO (1) WO2024001159A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170249191A1 (en) * 2016-02-25 2017-08-31 HGST Netherlands B.V. Adjustable priority ratios for multiple task queues
CN110502321A (en) * 2019-07-11 2019-11-26 新华三大数据技术有限公司 A kind of resource regulating method and system
CN113886052A (en) * 2021-10-26 2022-01-04 上海商汤科技开发有限公司 Task scheduling method, device, equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170249191A1 (en) * 2016-02-25 2017-08-31 HGST Netherlands B.V. Adjustable priority ratios for multiple task queues
CN110502321A (en) * 2019-07-11 2019-11-26 新华三大数据技术有限公司 A kind of resource regulating method and system
CN113886052A (en) * 2021-10-26 2022-01-04 上海商汤科技开发有限公司 Task scheduling method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN117349002A (en) 2024-01-05

Similar Documents

Publication Publication Date Title
US11416307B2 (en) System and method for processing task resources
US20200137151A1 (en) Load balancing engine, client, distributed computing system, and load balancing method
US9100854B2 (en) Quality of service application controller and user equipment application profiler
CN109617986B (en) Load balancing method and network equipment
US10771533B2 (en) Adaptive communication control device
US10499214B2 (en) Data usage analytics application for dynamic control of data usage on a client device
JP2020501237A (en) Server load balancing method, device, and server device
US9876875B2 (en) System, method and device for providing crowd-sourced, cloud-based custom tuning for applications
EP3817255A1 (en) Data verification method and apparatus, and storage medium
US9882773B2 (en) Virtual resource provider with virtual control planes
US10979970B2 (en) Network channel allocation method and apparatus
WO2024001159A1 (en) Resource scheduling method and apparatus, and electronic device and storage medium
CN104615531A (en) Statistical method for accumulated terminal using duration time and network system
WO2008068505A1 (en) Resource usage profiles
CN105430028A (en) Service calling method, service providing method, and node
CN114118560A (en) Routing method, device, equipment and storage medium based on microservice
CN112104682A (en) Intelligent distribution method and system for cloud desktop server, storage medium and central control server
JP2024016782A (en) Resource allocation determination method, apparatus, computing apparatus, and computer program
CN104618138A (en) Server and terminals
US20190050306A1 (en) Data redundancy and allocation system
EP3430510A1 (en) Operating system support for game mode
CN104052673A (en) Method and device for broadcast suppression
JP6217033B2 (en) Method, apparatus and system for interaction between hard disks
JP2005115620A (en) Task management method and electronic apparatus having task management means
CN106886461B (en) Method and device for processing data request and computer equipment

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: 23829352

Country of ref document: EP

Kind code of ref document: A1