A resource scheduling method and system, a computing device and a storage medium

By using a first server to dynamically allocate computing resources and utilize reserved network channels in a parallel query system of a distributed relational database, the problems of idle computing resources and network overhead caused by data skew are solved, achieving efficient resource utilization and reducing business processing time.

CN114579316BActive Publication Date: 2025-11-25BEIJING OCEANBASE TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210258860.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-11-28
Publication Date
2025-11-25
Estimated Expiration
2038-11-28

AI Technical Summary

Technical Problem

In parallel query systems of distributed relational databases, data skew leads to idle computing resources and increased network overhead, affecting query execution time. In addition, insufficient bandwidth when remotely reading data may cause task lag.

Method used

By dynamically allocating computing resources through the first server and utilizing reserved network channels for resource scheduling between servers, the addition of new network channels and changes to the network topology are avoided, thus achieving dynamic allocation of computing resources.

Benefits of technology

Effectively utilize idle computing resources, reduce network overhead and business processing time, and improve the security and maintenance convenience of the resource scheduling system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114579316B_ABST
    Figure CN114579316B_ABST
Patent Text Reader

Abstract

The application provides a resource scheduling method and system, a computing device and a storage medium, wherein the method comprises the following steps: a first server determines a first network channel connected with a second server based on service allocation information and resource allocation information, wherein the first network channel comprises a reserved network channel; the first server controls the second server and a third server to receive and process the first service and the second service according to the service allocation information and the resource allocation information; in the case that the third server completes the second service and the second server does not complete the first service, the first server allocates the remaining computing resources of the third server to the second server through the reserved network channel; the dynamic allocation of the computing resources is realized, the network overhead and the processing time of the target service are saved, and the system maintenance difficulty is reduced without changing the network topology structure.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of application No. 201811435942.7, with the application date of November 28, 2018, and the title of “a resource scheduling method and system, a computing device and a storage medium”. TECHNICAL FIELD

[0002] The present application relates to the technical field of computer data processing, in particular to a resource scheduling method and system, a computing device and a storage medium. BACKGROUND

[0003] The parallel query system of a distributed relational database (OceanBase) performs TableScan. In the scenario where the query encounters data skew, for example, the data on machine A is less and the scanning is faster, and the data on machine B is more and the scanning is slower, when the task on machine A is completed, it will be idle, and the task on machine B needs to continue to execute slowly. Even if machine A has enough idle computing resources, it cannot be fully utilized, resulting in the extension of the Query execution time. However, when the task on machine A is completed, the network overhead will be introduced by reading the data on machine B to share the workload of machine B. When the bandwidth is insufficient, the time-consuming of reading the data on machine B is uncontrollable, and even the situation that the work on machine B has been completed, but machine A is still stuck in reading the data on machine B may occur. SUMMARY

[0004] Therefore, the embodiments of the present application provide a resource scheduling method and system, a computing device and a storage medium to solve the technical defects in the prior art.

[0005] In a first aspect, the embodiments of the present application disclose a resource scheduling method, comprising:

[0006] A first server acquires a target service and a computing resource, and determines a second server and a third server for processing the target service, wherein the target service includes a first service and a second service;

[0007] The first server determines service allocation information of the second server processing the first service and the third server processing the second service, and determines resource allocation information of the computing resources of the second server and the third server;

[0008] The first server controls the second server and the third server to receive and process the first service and the second service according to the service allocation information and the resource allocation information;

[0009] In a case that the second server completes the first service and the third server does not complete the second service, the first server allocates the remaining computing resource of the second server to the third server.

[0010] In a second aspect, the embodiments of the present specification disclose a resource scheduling system, the system is arranged in a first server, comprising:

[0011] The acquisition module is configured to acquire a target service and a computing resource, and determine a second server and a third server for processing the target service, wherein the target service comprises a first service and a second service;

[0012] The first determination module is configured to determine service allocation information of the second server processing the first service and the third server processing the second service, and determine resource allocation information of the computing resource of the second server and the third server;

[0013] The control module is configured to control the second server and the third server to receive and process the first service and the second service according to the service allocation information and the resource allocation information;

[0014] The first allocation module is configured to, in a case that the second server completes the first service and the third server does not complete the second service, allocate the remaining computing resource of the second server to the third server.

[0015] In a third aspect, the embodiments of the present specification disclose a computing device, comprising a memory, a processor and computer instructions stored in the memory and executable on the processor, when the processor executes the instructions, the steps of the resource scheduling method as described above are implemented.

[0016] In a fourth aspect, the embodiments of the present specification disclose a computer readable storage medium, which stores computer instructions, when the processor executes the instructions, the steps of the resource scheduling method are implemented.

[0017] The resource scheduling method and system, the computing device and the storage medium provided by the present specification, wherein the method comprises: a first server acquiring target services and computing resources, and determining a second server and a third server for processing the target services; processing service allocation information of the first services and the second services processed by the third server, and determining resource allocation information of the computing resources of the second server and the third server; controlling the second server and the third server to receive and process the first services and the second services according to the service allocation information and the resource allocation information; in the case that the second server completes the first services and the third server does not complete the second services, allocating the remaining computing resources of the second server to the third server; realizing dynamic allocation of computing resources, saving network overhead and processing time of target services.

[0018] The resource scheduling method provided by the present specification, the first server determines a first network channel connected with the second server based on the service allocation information and the resource allocation information, wherein the first network channel comprises a reserved network channel; the first server controls the second server and the third server to receive and process the first services and the second services according to the service allocation information and the resource allocation information; in the case that the third server completes the second services and the second server does not complete the first services, the first server allocates the remaining computing resources of the third server to the second server through the reserved network channel. In this way, since the first server is connected with the second server through the first network channel, and the first network channel comprises a reserved network channel, when the third server completes the services and the second server does not complete, the remaining computing resources of the third server can be allocated to the third server through the reserved network channel, realizing dynamic allocation of computing resources without affecting service processing, avoiding the increase of new computing resources, reducing operation cost and service processing time, and without increasing new network channels or reconstructing the network channel between the first server and the second server, the remaining computing resources are allocated through the reserved network channel, avoiding changing the overall network topology, which is conducive to the maintenance of the entire resource scheduling system and improves the security of target service processing. BRIEF DESCRIPTION OF DRAWINGS

[0019] Figure 1 is a schematic diagram of a computing device provided by one or more embodiments of the present specification;

[0020] Figure 2 is a method flowchart of a resource scheduling method provided by one or more embodiments of the present specification;

[0021] Figure 3is a method flowchart of a resource scheduling method provided by one or more embodiments of the present specification;

[0022] Figure 4 is a method flowchart of a resource scheduling method provided by one or more embodiments of the present specification;

[0023] Figure 5 is a method flowchart of a resource scheduling method provided by one or more embodiments of the present specification;

[0024] Figure 6 is a structure schematic diagram of a resource scheduling system provided by one or more embodiments of the present specification. DETAILED DESCRIPTION

[0025] In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. However, it will be apparent to one skilled in the art that the present application can be practiced without the specific details set forth in this description. In other instances, well-known methods have not been described in detail in order to avoid obscuring the present application.

[0026] The terminology used in one or more embodiments of the present specification is for the purpose of describing particular embodiments only and is not intended to be limiting of one or more embodiments of the present specification. As used in one or more embodiments of the present specification and the accompanying claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and / or "comprising," when used in one or more embodiments of the present specification, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0027] It will be understood that, although the terms first, second, etc. can be used herein to describe various information, these terms are not intended to denote a temporal or chronological order. Rather, these terms are used solely to distinguish one from another only. For example, without departing from the scope of one or more embodiments of the present specification, first can be termed second, and similarly, second can be termed first. Depending on the context, the word "if' as used herein can be interpreted to mean "when" or "in response to determining" or "in response to a determination".

[0028] First, the noun terms related to one or more embodiments of the present application are explained.

[0029] MPP: English full name Massively Parallel Processing, that is, large-scale parallel processing. In a database non-shared cluster, each node has an independent disk storage system and memory system. Business data is divided into various nodes according to the database model and application characteristics. Each data node is connected to each other through a dedicated network or a commercial general-purpose network, and cooperates with each other to provide database services as a whole.

[0030] OceanBase: A financial-grade distributed relational database independently developed by Ant Financial and Alibaba, with characteristics such as strong consistency of data, high availability, high performance, online expansion, high compatibility with SQL standards and mainstream relational databases, and low cost. OceanBase has online horizontal expansion capability and has created a world record of 42 million times / second processing peak.

[0031] Query: A data table query statement.

[0032] In the present specification, a resource scheduling method and system, a computing device and a storage medium are provided. In practical applications, the resource scheduling method and system can be applied to parallel query of MPP to OceanBase, which will be described in detail in the following embodiments.

[0033] Figure 1 is a structural block diagram showing a computing device 100 according to an embodiment of the present specification. The components of the computing device 100 include but are not limited to a memory 110 and a processor 120. The processor 120 is connected to the memory 110 through a bus 130, and a database 150 is used to save data.

[0034] The computing device 100 also includes an access device 140, which enables the computing device 100 to communicate via one or more networks 160. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 140 can include one or more of any type of network interface (e.g., network interface card (NIC)), such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a worldwide microwave interconnection access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0035] In an embodiment of the present specification, the above-described and Figure 1 other components of the computing device 100 not shown in the Figure 1The block diagram of the computing device shown is for illustrative purposes only and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0036] The computing device 100 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. The computing device 100 can also be a mobile or stationary server.

[0037] Among them, processor 120 can execute Figure 2 The steps in the method shown. Figure 2 A schematic flowchart of a resource scheduling method according to one or more embodiments of this specification is shown, including steps 202 to 208.

[0038] Step 202: The first server obtains the target service and computing resources, and determines the second server and the third server to process the target service, wherein the target service includes the first service and the second service.

[0039] In one or more embodiments of this specification, the target service includes, but is not limited to, a query service, and the computing resources include computing resources for processing the target service. For example, if the target service is a query service, the computing resources may be the total computing resources used to execute the query service.

[0040] The first server may also determine a second server and a third server to process the target service based on the acquired target service and computing resources; the first server, the second server and the third server are not ranked in any order and work together according to the actual application.

[0041] Step 204: The first server determines the service allocation information for the second server to process the first service and the third server to process the second service, and determines the resource allocation information for the computing resources of the second server and the third server.

[0042] In one or more embodiments of this specification, the first server determines the service allocation information for the second server to process the first service and the third server to process the second service, that is, the first server determines the service volume of the second server processing the first service and the service volume of the third server processing the second service.

[0043] The first server determines resource allocation information of the computing resources of the second server and the third server, i.e., the first server determines an amount of the computing resources required by the second server to process the first service and determines an amount of the computing resources required by the third server to process the second service.

[0044] In one or more embodiments of the present specification, the computing resources can include first computing resources and second computing resources.

[0045] In a case where the computing resources include first computing resources and second computing resources, the first server determining the resource allocation information of the computing resources of the second server and the third server includes:

[0046] The first server determines the resource allocation information of the first computing resources of the second server and the second computing resources of the third server.

[0047] i.e., the first server determines the amount of the computing resources required by the second server to process the first service as the first computing resources and determines the amount of the computing resources required by the third server to process the second service as the second computing resources.

[0048] Step 206: The first server controls the second server and the third server to receive and process the first service and the second service according to the service allocation information and the resource allocation information.

[0049] In one or more embodiments of the present specification, the first server controls the second server and the third server to receive and process the first service and the second service according to the service allocation information and the resource allocation information, i.e., the first server controls the second server to receive and process the first service using the first computing resources according to the service allocation information and the resource allocation information, and controls the third server to receive and process the second service using the second computing resources according to the service allocation information and the resource allocation information.

[0050] Step 208: In a case where the second server completes the first service and the third server does not complete the second service, the first server allocates the remaining computing resources of the second server to the third server.

[0051] In one or more embodiments of the present specification, in a case where the second server completes the first service and the third server does not complete the second service, the first server allocates the remaining computing resources of the second server to the third server includes:

[0052] If the second server completes the first service and the third server has not completed the second service, the first server will allocate the remaining first computing resources of the second server to the third server.

[0053] Taking the computing resources as an example, which consist of 5 computing resource shares, the first computing resource may include 2 computing resource shares, and the second computing resource may include 3 computing resource shares. In actual use, when the second server completes the first service and the third server has not completed the second service, the first server allocates the remaining first computing resources of the second server to the third server. That is, the first server allocates the available computing resource shares from the two computing resource shares of the second server to the third server to assist the third server in processing.

[0054] In one or more embodiments of this specification, the method further includes:

[0055] If the third server completes the second service and the second server has not completed the first service, the first server will allocate the remaining computing resources of the third server to the second server.

[0056] That is, if the third server completes the second service and the second server has not completed the first service, the first server will allocate the remaining second computing resources of the third server to the second server.

[0057] In actual use, the first and second services of the target business are not distinguished by size or level. The first server divides them according to the actual application and then randomly assigns them to the second and third servers for processing. Similarly, the first and second computing resources are not distinguished by size or level. The first server can reasonably divide the first and second computing resources according to the first and second services assigned to the second and third servers for processing.

[0058] Taking the computing resources as an example, which consist of 5 computing resource shares, the first computing resource may include 2 computing resource shares, and the second computing resource may include 3 computing resource shares. In actual use, when the third server completes the second service and the second server has not completed the first service, the first server allocates the remaining second computing resources of the third server to the second server. That is, the first server allocates the available computing resource shares of the third server's 3 computing resource shares to the second server to assist the second server's processing.

[0059] In one or more embodiments of the present specification, the resource scheduling method can be implemented by a first server to dynamically allocate first computing resources of a second server and second computing resources of a third server. In one case, when the second server completes processing of a first service using the first computing resources and the third server does not complete processing of a second service using the second computing resources, the first server can allocate the first computing resources of the second server to the third server to assist the second computing resources of the third server in processing the second service. In another case, when the third server completes processing of the second service using the second computing resources and the second server does not complete processing of the first service using the first computing resources, the first server can allocate the second computing resources of the third server to the second server to assist the first computing resources of the second server in processing the first service, thereby avoiding the addition of new computing resources, reducing operating costs, and greatly reducing the processing time of the target service.

[0060] The processor 120 can execute the steps of the method shown in the present specification. Figure 3 The processor 120 can execute the steps of the method shown in the present specification. Figure 3 A schematic flowchart of a resource scheduling method according to one or more embodiments of the present specification is shown, including steps 302 to 310.

[0061] Step 302: The first server obtains a target service and computing resources, and determines a second server and a third server for processing the target service, wherein the target service includes a first service and a second service.

[0062] Step 304: The first server determines service allocation information of the second server processing the first service and the third server processing the second service, and determines resource allocation information of first computing resources of the second server and second computing resources of the third server.

[0063] Step 306: The first server determines a first network channel connected to the second server based on the service allocation information and the resource allocation information, and determines a second network channel connected to the third server, wherein the first network channel or the second network channel includes an execution network channel and a reserved network channel.

[0064] In one or more embodiments of the present specification, the first network channel and the second network channel each include one or more network channels. The execution network channel and the reserved network channel each include one or more network channels.

[0065] In actual use, when the first network channel comprises an execution network and a reserved network channel, the second network channel is a normal network channel, and in processing the target service, the network channel of the second network channel is simultaneously opened; when the second network channel comprises an execution network and a reserved network channel, the first network channel is a normal network channel, and in processing the target service, the network channel of the first network channel is simultaneously opened.

[0066] Step 308: The first server controls the second server to receive and process the first service through the first network channel according to the service allocation information and the resource allocation information, and controls the third server to receive and process the second service through the execution network channel according to the service allocation information and the resource allocation information.

[0067] Step 310: When the second server completes the first service through the first network channel, and the third server does not complete the second service through the execution network channel, the first server allocates the first computing resource remaining in the second server to the third server through the reserved network channel.

[0068] In one or more embodiments of the present specification, the second network channel comprises an execution network and a reserved network channel, and the first server controls the second server and the third server to process the target service in detail.

[0069] That is, the first server controls the second server to receive and process the first service through the first network channel according to the service allocation information and the resource allocation information, and controls the third server to receive and process the second service through the execution network channel according to the service allocation information and the resource allocation information. In actual use, the second server and the third server process the first service and the second service in parallel, so that there is no idle computing resource.

[0070] When the second server completes the first service through the first network channel, and the third server does not complete the second service through the execution network channel, the first server allocates the first computing resource remaining in the second server to the third server through the reserved network channel; the allocation of the first computing resource is performed by using the reserved network channel, which does not increase a new network channel, does not need to re-construct the network channel between the first server and the third server, avoids changing the overall network topology, and is beneficial to the maintenance of the entire resource scheduling system.

[0071] In one or more embodiments of the present specification, the first network channel includes an execution network channel and a reserved network channel, and the first server controls the second server and the third server to process target services.

[0072] That is, the first server controls the second server to receive and process the first service through the execution network channel according to the service distribution information and the resource distribution information, and controls the third server to receive and process the second service through the second network channel according to the service distribution information and the resource distribution information.

[0073] In a case where the third server completes the second service through the second network channel and the second server does not complete the first service through the execution network channel, the first server allocates the second computing resource remaining in the third server to the second server through the reserved network channel.

[0074] In one or more embodiments of the present specification, the resource scheduling method sets network channels between the first server, the second server, and the third server to process target services, and performs dynamic allocation of first computing resources or second computing resources in advance by using the second server or the third server to reserve network channels, without adding new network channels, without the need to reconstruct network channels between the first server, the second server, and the third server, and without the need to change the overall network topology, thereby facilitating maintenance of the entire resource scheduling system.

[0075] Referring to Figure 4 and Figure 5 The resource scheduling method provided by one or more embodiments of the present specification is applied to OceanBase to implement MPP query services, and includes steps 402 to 410.

[0076] Step 402: A first server server X acquires total query services and total CPU4 computing resources, and determines a second server server A and a third server server B to process the query services.

[0077] In one or more embodiments of the present specification, the total query services include first services and second services, and the total CPU4 computing resources include CPU1 computing resources and CPU2 computing resources.

[0078] Step 404: The server X determines service distribution information that the server A processes the first services and the server B processes the second services, and determines resource distribution information that the server A has CPU1 computing resources and the server B has CPU2 computing resources.

[0079] In one or more embodiments of the present specification, the first service includes two, and the second service information includes six.

[0080] Step 406: server X determines the first network channel AA connected with server A based on the service allocation information and the resource allocation information, and determines the execution network channel BB and the reserved network channel CC connected with server B.

[0081] Step 408: server X controls CPU1 of server A to receive and process the first service through the first network channel AA according to the service allocation information and the resource allocation information, and controls CPU2 of server B to receive and process the second service through the execution network channel BB according to the service allocation information and the resource allocation information.

[0082] Step 410: in the case that CPU1 computing resource of server A completes the first service through the first network channel AA, and CPU2 computing resource of server B does not complete the second service through the execution network channel BB, server X activates the reserved network channel CC, and then allocates CPU3 computing resource remaining in CPU1 of server A to server B through the reserved network channel CC.

[0083] In one or more embodiments of the present specification, the resource scheduling method includes setting network channels between server X, server A and server B to realize processing of the query service, and reserving the network channel CC in advance between server B, so that after server A completes the first service processing, the remaining CPU3 computing resource of server A is allocated to server B through the reserved network channel CC to assist CPU2 computing resource of server B in processing the second service. In this way, the reserved network channel does not need to re-construct the network channel when the computing resource is deployed, avoids changing the overall network topology structure, and is beneficial to the maintenance of the entire resource scheduling system.

[0084] Referring to Figure 6 In one or more embodiments of the present specification, a resource scheduling system is provided, which is arranged in a first server 602 and includes:

[0085] The acquisition module 6022 is configured to acquire target services and computing resources, and determine a second server 604 and a third server 606 for processing the target services, wherein the target services include first services and second services.

[0086] The first determining module 6024 is configured to determine service allocation information that the second server 604 processes the first service and the third server 606 processes the second service, and determine resource allocation information of computing resources of the second server 604 and the third server 606.

[0087] The control module 6026 is configured to control the second server 604 and the third server 606 to receive and process the first service and the second service according to the service allocation information and the resource allocation information.

[0088] The first allocation module 6028 is configured to allocate the remaining computing resources of the second server 604 to the third server 606 when the second server 604 completes the first service and the third server 606 does not complete the second service.

[0089] Optionally, the computing resources include first computing resources and second computing resources,

[0090] The first determining module 6024 is further configured to:

[0091] determine the resource allocation information of the first computing resources of the second server 604 and the second computing resources of the third server 606.

[0092] Optionally, the first allocation module 6028 is further configured to:

[0093] allocate the remaining first computing resources of the second server 604 to the third server 606 when the second server 604 completes the first service and the third server 606 does not complete the second service.

[0094] Optionally, the apparatus further includes:

[0095] The second allocation module is configured to allocate the remaining computing resources of the third server 606 to the second server 604 when the third server 606 completes the second service and the second server 604 does not complete the first service.

[0096] Optionally, the second allocation module is further configured to:

[0097] allocate the remaining second computing resources of the third server 606 to the second server 604 when the third server 606 completes the second service and the second server 604 does not complete the first service.

[0098] Optionally, the apparatus further includes:

[0099] a second determining module configured to determine a first network channel connected with the second server 604 and a second network channel connected with the third server 606 based on the service allocation information and the resource allocation information, wherein the first network channel or the second network channel comprises an execution network channel and a reserved network channel.

[0100] Optionally, the control module 6026 is further configured to:

[0101] control the second server 604 to receive and process the first service through the first network channel according to the service allocation information and the resource allocation information, and

[0102] control the third server 606 to receive and process the second service through the execution network channel according to the service allocation information and the resource allocation information.

[0103] Optionally, the first allocation module 6028 is further configured to:

[0104] in a case that the second server 604 completes the first service through the first network channel and the third server 606 does not complete the second service through the execution network channel, allocate the remaining first computing resource of the second server 604 to the third server 606 through the reserved network channel.

[0105] Optionally, the control module 6026 is further configured to:

[0106] control the second server 604 to receive and process the first service through the execution network channel according to the service allocation information and the resource allocation information, and

[0107] control the third server 606 to receive and process the second service through the second network channel according to the service allocation information and the resource allocation information.

[0108] Optionally, the second allocation module is further configured to:

[0109] in a case that the third server 606 completes the second service through the second network channel and the second server 604 does not complete the first service through the execution network channel, allocate the remaining second computing resource of the third server 606 to the second server 604 through the reserved network channel.

[0110] In one or more embodiments of the present specification, the resource scheduling system can implement dynamic allocation of the first computing resource of the second server and the second computing resource of the third server through the first server; in one case, when the second server completes processing of the first service using the first computing resource and the third server does not complete processing of the second service using the second computing resource, the first server can allocate the first computing resource of the second server to the third server to assist the second computing resource on the third server in processing the second service; in another case, when the third server completes processing of the second service using the second computing resource and the second server does not complete processing of the first service using the first computing resource, the first server can allocate the second computing resource of the third server to the second server to assist the first computing resource on the second server in processing the first service, so as to avoid increasing new computing resources, improve operation cost and greatly reduce processing time of the target service.

[0111] In an embodiment of the present specification, a computing device is also provided, which includes a memory, a processor, and computer instructions stored in the memory and executable on the processor, and the processor implements the steps of the resource scheduling method as described above when executing the instructions.

[0112] In an embodiment of the present specification, a computer readable storage medium is also provided, which stores computer instructions, and the instructions implement the steps of the resource scheduling method when executed by a processor.

[0113] The above is a schematic scheme of a computer readable storage medium according to an embodiment of the present specification. It should be noted that the technical scheme of the storage medium and the technical scheme of the resource scheduling method described above belong to the same concept, and the details of the technical scheme of the storage medium which are not described in detail can be referred to the description of the technical scheme of the resource scheduling method.

[0114] The computer instructions include computer program codes, which can be in the form of source code, object code, executable files, or some intermediate forms, etc. The computer readable medium can include any entity or device capable of carrying the computer program codes, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the contents included in the computer readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.

[0115] It should be noted that, for the aforementioned method embodiments, the sequences of the described actions are not the only ones that can be performed to implement the present application. In practice, depending on the implementation required, the sequences of actions described can be performed in a different order, or even in parallel. Furthermore, it should be noted that the embodiments described in the present specification are preferred embodiments, and the actions and modules involved are not necessarily all the actions and modules of the present application.

[0116] In the above embodiments, the description of each embodiment is focused on the description of the embodiment, and the parts not described in detail in a certain embodiment can be referred to the relevant description of other embodiments.

[0117] The preferred embodiments of the present application disclosed above are only used to illustrate the present application. The alternative embodiments do not describe all the details and limit the present application to the specific embodiments described. Obviously, according to the content of the present specification, many modifications and changes can be made. The present specification selects and describes these embodiments in order to better explain the principles and practical applications of the present application, so that those skilled in the art can well understand and use the present application. The present application is limited by the claims and their full scope and equivalents.

Claims

1. A resource scheduling method, characterized in that, The system comprises: The first server determines a first network channel connected with the second server based on the service allocation information and the resource allocation information, wherein the first network channel comprises a reserved network channel; The first server controls the second server and the third server to receive and process the first service and the second service according to the service allocation information and the resource allocation information; In the case that the third server completes the second service and the second server does not complete the first service, the first server allocates the remaining computing resources of the third server to the second server through the reserved network channel.

2. The method of claim 1, wherein, Before the first server controls the second server and the third server to receive and process the first service and the second service according to the service allocation information and the resource allocation information, the system further comprises: The first server determines a second network channel connected with the third server based on the service allocation information and the resource allocation information.

3. The method of claim 2, wherein, The first network channel further comprises an execution network channel; The first server controls the second server and the third server to receive and process the first service and the second service according to the service allocation information and the resource allocation information, which comprises: The first server controls the second server to receive and process the first service through the execution network channel according to the service allocation information and the resource allocation information, and The third server receives and processes the second service through the second network channel according to the service allocation information and the resource allocation information.

4. The method of claim 3, wherein, In the case that the third server completes the second service and the second server does not complete the first service, the first server allocates the remaining computing resources of the third server to the second server through the reserved network channel, which comprises: In the case that the third server completes the second service through the second network channel and the second server does not complete the first service through the execution network channel, the first server allocates the remaining second computing resources of the third server to the second server through the reserved network channel.

5. A resource scheduling system, characterized by, The system is arranged in the first server and comprises: The second determination module is configured to determine a first network channel connected with the second server based on the service allocation information and the resource allocation information, wherein the first network channel comprises a reserved network channel; The control module is configured to control the second server and the third server to receive and process the first service and the second service according to the service allocation information and the resource allocation information; The second allocation module is configured to allocate the remaining computing resources of the third server to the second server through the reserved network channel in the case that the third server completes the second service and the second server does not complete the first service.

6. The system of claim 5, wherein, The second determination module is further configured to: Determine a second network channel connected with the third server based on the service allocation information and the resource allocation information.

7. The system of claim 6, wherein, The first network channel further comprises an execution network channel; The control module is further configured to: controlling the second server to receive and process the first service through the execution network channel according to the service allocation information and the resource allocation information, and controlling the third server to receive and process the second service through the second network channel according to the service allocation information and the resource allocation information.

8. The system of claim 7, wherein, The second allocation module is further configured to: in the case that the third server completes the second service through the second network channel and the second server does not complete the first service through the execution network channel, allocating the second computing resource remaining in the third server to the second server through the reservation network channel.

9. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein, The processor executes the instructions to implement the steps of the method of any one of claims 1-4.

10. A computer-readable storage medium storing computer instructions, wherein, The instructions are executed by the processor to implement the steps of the method of any one of claims 1-4.

Citation Information

Patent Citations

  • Service transfer control method based on sdn in optical network

    CN103795606A

  • Network optimization method and device, computer readable storage medium and mobile terminal

    CN108200588A