CN111694649A - Resource scheduling method and device, computer equipment and storage medium - Google Patents

Resource scheduling method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111694649A
CN111694649A CN202010538340.5A CN202010538340A CN111694649A CN 111694649 A CN111694649 A CN 111694649A CN 202010538340 A CN202010538340 A CN 202010538340A CN 111694649 A CN111694649 A CN 111694649A
Authority
CN
China
Prior art keywords
resource
type
node
range
amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010538340.5A
Other languages
Chinese (zh)
Other versions
CN111694649B (en
Inventor
钱瀚
辛朝晖
姜亦朋
郑建磊
李亚坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Volcano Engine Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010538340.5A priority Critical patent/CN111694649B/en
Publication of CN111694649A publication Critical patent/CN111694649A/en
Application granted granted Critical
Publication of CN111694649B publication Critical patent/CN111694649B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • 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/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources
    • 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/5061Partitioning or combining of resources
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present disclosure provides a resource scheduling method, apparatus, computer device and storage medium, the method comprising: receiving a resource scheduling request sent by a client; the resource scheduling request comprises at least one resource type and corresponding resource amount required by executing the target task; receiving allocable resource information reported by each resource node in a plurality of resource nodes in a resource management system; determining at least one target resource node from the plurality of resource nodes based on the resource type and the resource amount in the resource scheduling request and the allocable resource information of the plurality of resource nodes; and sending the node identification of the searched target resource node, the matched resource type and the resource amount to an application manager corresponding to the client.

Description

Resource scheduling method and device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of communication processing technologies, and in particular, to a resource scheduling method, apparatus, computer device, and storage medium.
Background
In a distributed system infrastructure (Hadoop), a Resource management and task scheduling framework is often required to be introduced to schedule resources and tasks, wherein Another Resource coordinator (YARN) is a common Resource management system in the Hadoop system, and is used to implement unified management and scheduling of cluster resources. In an application scenario, in addition to resource types described in quantity, there are also resource types described in scope. In the prior art, a resource scheduling scheme based on YARN does not have a scheduling scheme for a resource type described in a range, that is, when a user needs a resource of a range type, a resource manager cannot allocate the resource of a certain range to the user, and only can allocate a certain amount of the resource to the user.
Disclosure of Invention
The embodiment of the disclosure provides at least a resource scheduling method, a resource scheduling device, a computer device and a storage medium, so as to solve the problem that a resource of a scope type cannot be allocated for an application.
In a first aspect, an embodiment of the present application provides a resource scheduling method, where the method includes:
receiving a resource scheduling request sent by a client; the resource scheduling request comprises at least one resource type and corresponding resource amount required by executing the target task; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource;
receiving allocable resource information reported by each resource node in a plurality of resource nodes in a resource management system;
determining at least one target resource node from a plurality of the resource nodes based on the resource type and the resource amount in the resource scheduling request and the allocable resource information of the plurality of the resource nodes; each target resource node has allocable resources which are matched with the resource types and the resource amounts in the resource scheduling requests;
and sending the node identification of the searched target resource node, the matched resource type and the resource amount to an application manager corresponding to the client.
In one embodiment, determining at least one target resource node from among a plurality of the resource nodes based on the resource type and the resource amount in the resource scheduling request and the allocable resource information of the plurality of the resource nodes comprises:
determining a current resource node;
judging whether the allocable resources of the current resource node comprise allocable range type resources matched with the range type resources in the resource scheduling request;
if yes, judging whether the identification number range indicated by the allocable range type resource quantity corresponding to the allocable range type resource in the allocable resource is larger than or equal to the identification number range indicated by the range type resource quantity of the range type resource in the resource scheduling request;
and if the current resource node is larger than or equal to the target resource node, taking the current resource node as a target resource node for providing the resources of the resource type.
In one embodiment, the method further comprises:
if the identification number range of the allocable range type resource quantity indication corresponding to the allocable range type resource in the allocable resources is smaller than the identification number range of the range type resource quantity indication of the range type resource in the resource scheduling request, determining a next resource node as a current resource node;
and returning to the step of judging whether the allocable resources of the current resource node comprise allocable range type resources matched with the range type resources in the resource scheduling request or not until a target resource node meeting the condition is determined or until all the resource nodes are determined not to meet the condition, and determining that the resources of the resource type cannot be allocated.
In an embodiment, after sending the node identifier of the searched target resource node, the matched resource type, and the resource amount to the application manager corresponding to the client, the method further includes:
and after determining that the range type resource matched with the resource type and the resource amount in the resource scheduling request is released, changing the use state of the range type resource matched with the resource type and the resource amount in the resource scheduling request into an idle state.
In a second aspect, an embodiment of the present application provides a resource scheduling method, including:
generating a task execution request aiming at a target task, wherein the task execution request comprises at least one resource type and corresponding resource amount required by executing the target task; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource;
and sending the task execution request to a resource management system, so that the resource management system determines at least one target resource node from a plurality of resource nodes managed by the resource management system based on the task execution request, and executes the target task based on allocable resources which are managed by each target resource node and are matched with the resource types and the corresponding resource amounts.
In a third aspect, an embodiment of the present application provides a resource scheduling method, including:
the application manager sends a resource scheduling request aiming at the target task to the resource manager; the resource scheduling request carries at least one resource type and corresponding resource amount required by executing the target task; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource;
receiving a node identifier of at least one target resource node sent by the resource manager, and a matched resource type and resource amount; wherein, the resource managed by each target resource node has allocable resource matched with the resource type and resource amount in the resource scheduling request;
sending a resource use request to the target resource node; the resource use request carries a task processing instruction associated with a target task, and a resource type and a corresponding resource amount required by responding to the task processing instruction.
In a fourth aspect, an embodiment of the present application provides a resource scheduling method, where the method includes:
the resource node receives a resource use request aiming at a target task, which is sent by an application manager; the resource use request carries a task processing instruction associated with a target task, and a resource type and a corresponding resource amount required by responding to the task processing instruction; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource;
based on the resource type and the resource amount in the resource scheduling request, searching for unoccupied allocable resources which are matched with the resource type and the resource amount in the resource scheduling request from the resources managed by the resource scheduling request;
and responding to the task processing instruction based on the searched allocable resource.
In one embodiment, after responding to the task processing instruction based on the found allocable resource, the method further includes:
receiving a resource release request sent by the application manager; the resource release request carries the resource type and the corresponding resource amount of the resource to be released; the resource amount of the resource to be released comprises the resource amount of the type of the range to be released;
and changing the use state of the corresponding resource to be released from the occupied state to the idle state based on the resource type and the corresponding resource amount carried in the resource release request.
In a fifth aspect, an embodiment of the present application provides an apparatus for scheduling resources, where the apparatus includes:
the first receiving module is used for receiving a resource scheduling request sent by a client; the resource scheduling request comprises at least one resource type and corresponding resource amount required by executing the target task; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource;
a second receiving module, configured to receive allocable resource information reported by each resource node in a plurality of resource nodes in a resource management system;
a processing module, configured to determine at least one target resource node from a plurality of resource nodes based on the resource type and the resource amount in the resource scheduling request and the allocable resource information of the plurality of resource nodes; each target resource node has allocable resources which are matched with the resource types and the resource amounts in the resource scheduling requests;
and the sending module is used for sending the node identifier of the searched target resource node, the matched resource type and the resource amount to the application manager corresponding to the client.
In a sixth aspect, an embodiment of the present application provides an apparatus for scheduling resources, where the apparatus includes:
the system comprises a generating module, a processing module and a processing module, wherein the generating module is used for generating a task execution request aiming at a target task, and the task execution request comprises at least one resource type and corresponding resource amount required by executing the target task; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource;
a sending module, configured to send the task execution request to a resource management system, so that the resource management system determines at least one target resource node from multiple resource nodes managed by the resource management system based on the task execution request, and executes the target task based on allocable resources managed by each target resource node and matching the resource type and the corresponding resource amount.
In a seventh aspect, an embodiment of the present application provides a resource scheduling apparatus, where the apparatus includes:
the sending module is used for sending a resource scheduling request aiming at the target task to the resource manager; the resource scheduling request carries at least one resource type and corresponding resource amount required by executing the target task; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource; and sending a resource use request to the target resource node; the resource use request carries a task processing instruction associated with a target task, and a resource type and a corresponding resource amount required by responding to the task processing instruction;
a receiving module, configured to receive a node identifier of at least one target resource node sent by the resource manager, and a matched resource type and resource amount; and the resource scheduling request comprises a resource type and a resource amount, wherein the resource type and the resource amount in the resource scheduling request are matched with the allocable resources in the resources managed by each target resource node.
In an eighth aspect, an embodiment of the present application provides a resource scheduling apparatus, where the apparatus is applied in a resource node, and the apparatus includes:
the receiving module is used for receiving a resource use request aiming at a target task and sent by an application manager; the resource use request carries a task processing instruction associated with a target task, and a resource type and a corresponding resource amount required by responding to the task processing instruction; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource;
the searching module is used for searching the unoccupied allocable resources which are matched with the resource type and the resource amount in the resource scheduling request from the resources managed by the searching module based on the resource type and the resource amount in the resource scheduling request;
and the processing module is used for responding to the task processing instruction based on the searched distributable resource.
In a ninth aspect, an embodiment of the present disclosure provides a computer device, including: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the computer apparatus is running, the processor executing the machine-readable instructions to perform the steps of the method of the first aspect, or to perform the steps of the method of the second aspect, or to perform the steps of the method of the third aspect, or to perform the steps of the method of the fourth aspect.
In a tenth aspect, the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores thereon a computer program, and the computer program is executed by a processor to perform the steps of the method according to the first aspect, or to perform the steps of the method according to the second aspect, or to perform the steps of the method according to the third aspect, or to perform the steps of the method according to the fourth aspect.
The disclosed embodiment provides a resource scheduling method, wherein related resource types comprise at least one range type resource, the resource amount corresponding to the range type resource is range type resource amount, the range type resource amount comprises an identification number range corresponding to the range type resource, a resource scheduling request sent by a client is received, the resource scheduling request comprises at least one resource type and corresponding resource amount required by executing a target task, allocable resource information reported by each resource node in a plurality of resource nodes in a resource management system is received, based on the resource type and resource amount in the resource scheduling request and allocable resource information of the resource nodes, at least one target resource node is determined from the resource nodes, the node identification of the searched target resource node, the matched resource type and resource amount are sent to an application manager corresponding to the client, therefore, the range type resource with the identification number range meeting the scheduling requirement is distributed to the target task, and the complex scheduling requirement for the range type resource in the task execution process can be met.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly described below, and the drawings herein incorporated in and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It is appreciated that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
Fig. 1 illustrates a first flowchart of a resource scheduling method provided by an embodiment of the present disclosure;
fig. 2 is a second flowchart illustrating a resource scheduling method according to an embodiment of the present disclosure;
fig. 3 illustrates a third flowchart of a resource scheduling method provided by the embodiment of the present disclosure;
fig. 4 is a fourth flowchart illustrating a resource scheduling method according to an embodiment of the present disclosure;
fig. 5 is a fifth flowchart illustrating a resource scheduling method according to an embodiment of the present disclosure;
fig. 6 is a first schematic structural diagram of a resource scheduling apparatus provided in an embodiment of the present disclosure;
fig. 7 is a second schematic structural diagram of a resource scheduling apparatus according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram illustrating a third resource scheduling apparatus according to an embodiment of the present disclosure;
fig. 9 is a fourth schematic structural diagram of a resource scheduling apparatus according to an embodiment of the present disclosure;
FIG. 10 is a first schematic diagram of a computer device provided by an embodiment of the disclosure;
FIG. 11 is a second schematic diagram of a computer device provided in an embodiment of the disclosure;
FIG. 12 illustrates a third schematic diagram of a computer device provided by an embodiment of the disclosure;
fig. 13 shows a fourth schematic diagram of a computer device provided by the embodiment of the disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
A user side submits a job task of an Application program, such as a Map reduce program, to a resource manager, which creates an Application Manager (AM) for the Application, and the Application manager is used for managing the Application program, including applying for resources, releasing resources, scheduling resources, and the like for the Application in a cluster.
The application manager sends a resource scheduling request for an application to the resource manager, the resource scheduling request generally includes a resource amount (such as a 100G memory) for a job task, and after the resource manager allocates a resource applied in the resource scheduling request to the application manager, the application manager communicates with a corresponding resource node to start the corresponding task. In the above process, when a range type resource is needed in the execution process of a job task, for example, a port, a graphics card, or a network card, etc., the resource manager may only allocate a certain number of ports, graphics cards, or network cards to the application manager, the port, graphics card, or network card allocated to the application manager by the resource manager may not be used by the job task, and after the port, graphics card, or network card is allocated to the job task, other job tasks or applications cannot use the graphics card, port, or network card, which also reduces the utilization rate of the resource.
Based on the above research, the present disclosure provides a resource scheduling method, where a resource type involved includes at least one range type resource, a resource amount corresponding to the range type resource is a range type resource amount, the range type resource amount includes an identification number range corresponding to the range type resource, a resource scheduling request sent by a client is received, the resource scheduling request includes at least one resource type and a corresponding resource amount required for executing a target task, allocable resource information reported by each of a plurality of resource nodes in a resource management system is received, and based on the resource type and the resource amount in the resource scheduling request and allocable resource information of the plurality of resource nodes, at least one target resource node is determined from the plurality of resource nodes; and sending the node identification of the searched target resource node, the matched resource type and the resource amount to an application manager corresponding to the client. Therefore, the range type resource with the identification number range meeting the scheduling requirement is distributed to the target task, and the complex scheduling requirement for the range type resource in the task execution process can be met.
It should be noted that the discovery process of the above-mentioned problems and the solution proposed by the present disclosure in the following to the above-mentioned problems should be the contribution of the inventor to the present disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
To facilitate understanding of the present embodiment, first, a resource scheduling method disclosed in the embodiments of the present disclosure is described in detail, where an execution subject of the resource scheduling method provided in the embodiments of the present disclosure is generally a computer device with certain computing capability, and the computer device includes, for example: a terminal device, which may be a User Equipment (UE), a mobile device, a cellular phone, a cordless phone, a Personal Digital Assistant (PDA), a handheld device, a computing device, a vehicle mounted device, a wearable device, or a server or other processing device. In some possible implementations, the resource scheduling method may be implemented by a processor calling computer readable instructions stored in a memory.
The following describes a method for monitoring a resource scheduling method provided by the embodiment of the present disclosure by taking an execution subject as a resource manager as an example.
Referring to fig. 1, which is a flowchart of a resource scheduling method provided in the embodiment of the present disclosure, in a resource manager, the resource scheduling method of the present disclosure is applied, where the resource manager manages a plurality of resource nodes, and each resource node manages at least one range type resource and a corresponding resource amount; may include the steps of:
s101, a resource manager receives a resource scheduling request sent by a client; the resource scheduling request comprises at least one resource type and corresponding resource amount required by executing the target task; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the scope type resource amount comprises an identification number scope corresponding to the scope type resource.
Here, the target task may be a computing task, a processing task, or the like in a distributed computing application; the format of the resource scheduling request can be determined according to the actual application scene; the range type resource may include resources such as a port, a video card, and a network card, and the resource amount corresponding to the range type resource may be represented by the identification number range represented by the closed interval, for example, when the range type resource is a port, the corresponding resource amount may be represented as [1,50 ].
In a specific implementation process, after an application manager in the YARN cluster is started, the application manager sends a resource scheduling request for a target task in an application to the resource manager, where the resource scheduling request may request resources of at least one resource type, and when the application manager requests to schedule resources, the application manager may send multiple containers for the target task to the resource manager, where each container specifies a different resource type, and a resource scheduling request may apply for a target task to satisfy multiple range types of resources.
S102, receiving allocable resource information reported by each resource node in a plurality of resource nodes in the resource management system, wherein the allocable resource information comprises resource types and allocable resource amounts of allocable resources, and the allocable resource amounts comprise allocable range type resource amounts.
Resource nodes in the resource management system may periodically communicate with the resource manager, that is, the resource nodes report resource types of allocable resources (that is, resource types of unoccupied resources) managed by the resource nodes and allocable range type resource amounts (that is, available range type resource amounts) corresponding to the allocable resources to the resource manager, where the allocable range type resource amounts may also pass through an identification number range represented by a closed interval, and examples may refer to the foregoing, which is not illustrated here.
After receiving the heartbeat of each resource node, the resource manager correspondingly stores the resource types and the resource amounts of the allocable resources of the resource nodes so as to perform subsequent query. It should be noted here that the resource manager also stores all resource types and corresponding total resource amounts of the resource nodes, and occupied resource types and corresponding resource amounts, which are not described in detail herein.
S103, determining at least one target resource node from the plurality of resource nodes based on the resource type and the resource amount in the resource scheduling request and the allocable resource information of the plurality of resource nodes; wherein, each target resource node has allocable resources which are matched with the resource type and the resource amount in the resource scheduling request.
Here, the allocable resource represents a resource that does not perform a task, that is, a resource that is not occupied by an application program, and the allocable resource may be a memory, a processor, a graphics card, a port, a network card, or the like, and the allocable range type resource includes a port, a network card, a graphics card, or the like.
In S103, first, a current resource node is determined from a plurality of resource nodes, and it is determined whether allocable resources of the current resource node include allocable range type resources that match the range type resources in the resource scheduling request.
If yes, judging whether the identification number range indicated by the allocable range type resource quantity corresponding to the allocable range type resource in the allocable resource is larger than or equal to the identification number range indicated by the range type resource quantity of the range type resource in the resource scheduling request.
If so, that is, if the identification number range indicated by the allocable range type resource amount corresponding to the allocable range type resource in the allocable resource is greater than or equal to the identification number range indicated by the range type resource amount of the range type resource in the resource scheduling request, taking the current resource node as a target resource node for providing the resource of the resource type.
If the identification number range of the allocable range type resource quantity indication corresponding to the allocable range type resource in the allocable resource is smaller than the identification number range of the range type resource quantity indication of the range type resource in the resource scheduling request, determining a next resource node from the plurality of resource nodes, taking the next resource node as a current resource node, returning to execute the step of judging whether the allocable resource of the current resource node comprises the allocable range type resource matched with the range type resource in the resource scheduling request until a target resource node meeting the condition is determined, or determining that the resource of the resource type cannot be allocated until all the resource nodes do not meet the condition.
Here, the resource type of the allocable resource includes a resource type of a range type resource in the resource scheduling request, and the identifier range indicated by the allocable range type resource amount corresponding to the allocable range type resource in the allocable resource is greater than or equal to the identifier range indicated by the range type resource amount of the range type resource in the resource scheduling request.
In a specific implementation process, after the resource manager receives a resource scheduling request of the application manager for a target application, one resource node identifier may be selected arbitrarily from a plurality of resource node identifiers stored by the resource manager, or one resource node identifier may be selected according to a storage sequence of the plurality of resource node identifiers in the resource manager, and a resource node corresponding to the selected resource node identifier is used as a current resource node.
The resource manager compares, for each container in the resource scheduling request, the range type resource of the resource type specified by the container with the allocable range type resource of the current resource node, that is, compares the resource type of the resource type specified by the container with the allocable range type resource of the current resource node.
The allocable range type resource of the current resource node includes a range type resource in the container, that is, the resource type in the resource type of the allocable resource of the current resource node is the same as the resource type in the container, and further, the identifier range indicated by the allocable range type resource amount corresponding to the allocable range type resource of the allocable resource is compared with the identifier range indicated by the range type resource amount in the resource scheduling request.
When the identification number range indicated by the allocable range type resource amount corresponding to the allocable range type resource of the allocable resource is greater than or equal to the identification number range indicated by the range type resource amount in the resource scheduling request, that is, the identification number range indicated by the allocable range type resource amount corresponding to the allocable range type resource of the allocable resource includes the identification number range indicated by the range type resource amount in the resource scheduling request, the current resource node may be used as the target resource node.
If the resource type of the allocable range type resource of the current resource node does not include the resource type in the container, that is, if the resource type of the allocable range type resource of the current resource node is not the same as the resource type in the container, determining a resource node from the multiple resource nodes as the current resource node, and returning to perform the step of judging whether the allocable resource of the current resource node includes the allocable range type resource matched with the range type resource in the resource scheduling request until a target resource node meeting the condition is determined, and if all the resource nodes do not meet the condition, determining that the resource of the resource type cannot be allocated, and ending the target task.
When the identification number range of the allocable range type resource quantity indication corresponding to the allocable range type resource of the allocable resource is smaller than the identification number range of the range type resource quantity indication in the resource scheduling request, that is, the identification number range of the allocable range type resource quantity indication corresponding to the allocable range type resource of the allocable resource does not include the identification number range of the range type resource quantity indication in the resource scheduling request, that is, a part of identification number or no identification number exists in the identification number range of the allocable range type resource quantity indication corresponding to the allocable range type resource of the allocable resource, and the identification number in the identification number range of the range type resource quantity indication in the resource scheduling request is the same, determining the next resource node from the resource nodes, using the next resource node as the current resource node, and returning to execute the judgment of whether the allocable resource of the current resource node includes the range type resource in the resource scheduling request or not And the step of allocating the scope type resource matched with the type resource until a target resource node capable of meeting the condition is determined.
For example, taking an example that a resource manager searches for a matched resource in a resource node as an example to explain, allocable resources managed in a resource node 1 are port number 1-2000 and graphics card number 1-10, a resource scheduling request received by the resource manager includes 2 containers, resource types specified in the container 1 are port and graphics card, a range type resource amount of the port is [1000,2000], a range type resource amount of the graphics card is [1,2], resource types specified in the container 2 are port and graphics card, a range type resource amount of the port is [8000,9000], the port number 1-2000 and the graphics card number 1-10 in the resource node 1 can meet requirements of the container 1 (port number 1000-2000 and graphics card number 1-2), that is, the idle port number 1000-2000 in the resource node 1 is the same as the port number applied in the container 1, the numbers 1 and 2 of the idle graphics cards in the resource node 1 are the same as the numbers of the graphics cards applied in the container 1, and then the resource node 1 is determined as the target resource node, but the resource node 1 does not have the resource matching with the resource type and range type resource amount in the container 2, and the allocable resource meeting the container 2 needs to be inquired in other resource nodes, which is not described in detail herein.
When the target task is finished, all the determined resource nodes do not meet the condition, that is, no resource node can meet the resource scheduling request, so that the resource of the resource type cannot be allocated to the target task, and the target task is finished.
And S104, the resource manager sends the node identification of the searched target resource node, the matched resource type and the resource amount to the application manager corresponding to the client.
Here, the node identifier may be a node code, a node name, or the like, and may be determined according to actual situations.
In a specific implementation process, because one resource scheduling request received by the resource manager includes a plurality of containers, the resource manager sequentially allocates resources for each container, and after the resource manager queries allocable resources matched with the container from any resource node, the resource manager sends the node identifier of the target resource node where the searched allocable resources are located, and the resource type and the resource amount matched with the container to the application manager.
For example, continuing with the example in step S103, if the allocable resource of the resource in the resource node 1 matches the resource type (port number 1000-2000) and the scope type resource amount (graphics card number 1-2) of the container 1, the node identifier is the resource node 1, the identification number scope [1000,2000] of the port, and the identification number scope [1,2] of the graphics card, and is sent to the application manager.
The resource manager also maintains the use state of the range type resource in each resource node while carrying out resource scheduling on the target task, wherein the use state comprises an idle state and an occupied state, the idle state represents that the resource does not execute the task, and the occupied state represents that the resource is executing the task.
After the resource manager allocates the matched allocable resource to the target task, the use state of the matched allocable resource stored by the resource manager is changed from an idle state to an occupied state, so that the resource manager can conveniently allocate the range type resource to other containers in the resource scheduling request or allocate the range type resource to other applications, and resource conflict is avoided.
For example, continuing the previous example, taking the node identification as NM1, the range type resource amount of the port as [1000,2000], and the range type resource amount of the graphics card as [1,2] as an example, the resource manager maintains the resource state table before allocating resources as shown in table 1:
watch 1
Figure BDA0002537859540000151
Figure BDA0002537859540000161
After the resource manager sends the node identifier NM1, the range type resource amount of the port [1000,2000], and the range type resource amount of the graphics card [1,2] to the application manager, the resource manager updates the use state of the corresponding resource in the maintained resource state table, as shown in table two:
watch two
Figure BDA0002537859540000162
When the resource manager determines that the resource allocated to the application manager and matching with the resource type and the resource amount in the resource scheduling request is released (the release process is described in detail below), the resource manager further changes the usage state of the released resource from the occupied state to the idle state.
For example, continuing the previous example, after the port with port number [1000,2000] and the graphics card with graphics card number [1,2] in NM1 are released, the resource manager updates the state table, and the updated table refers to table 1.
After the resource manager allocates resources (e.g., a port with a range type resource amount of [8000,9000 ]) in the resource node to the application manager, the resource manager increases the number of occupied resources of the queue where the target task is located and the number of occupied resources corresponding to the target task. For example, a queue where the target task is currently occupies 1000 ports and 500 ports, and then after the target task is allocated to 1000 ports, the number of resources of the ports occupied by the queue is: the 1000+1000 equals 2000, and the number of resources of the port occupied by the target task equals 1000+500 equals 1500.
After receiving the node identifier of the resource node and the matched resource type and resource amount sent by the resource manager, the application manager further communicates with the resource node, and a method for the application manager to communicate with the resource node is described in detail below.
In a method for scheduling resources provided in an embodiment of the present disclosure, referring to fig. 2, the method is applied in an application manager, and may include the following steps:
s201, an application manager sends a resource scheduling request aiming at a target task to a resource manager; the resource scheduling request carries at least one resource type and corresponding resource amount required by executing the target task; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the scope type resource amount comprises an identification number scope corresponding to the scope type resource.
Reference may be made to the description of step S101 for the resource scheduling request, which is not described here.
S202, an application manager receives a node identifier of at least one target resource node sent by the resource manager, and a matched resource type and resource amount; and the resource scheduling request comprises a resource type and a resource amount, wherein the resource type and the resource amount in the resource scheduling request are matched with the allocable resources in the resources managed by each target resource node.
Reference may be made to the description of step S104 for the resource scheduling request, which is not described here.
S203, the application manager sends a resource use request to the target resource node; the resource use request carries a task processing instruction associated with a target task, and a resource type and a corresponding resource amount required by responding to the task processing instruction.
Here, the format of the resource use request may be determined according to actual conditions, and the task processing instruction is used to process data in the target task operation process; the resource type and the corresponding resource amount can be referred to above.
In a specific implementation process, after receiving the node identifier of the target resource node and the matched resource type and resource amount, the application manager sends the task processing instruction associated with the target task, the resource type required by the response task processing instruction and the corresponding resource to the target resource node.
For example, after receiving the node identifier NM1, the scope type resource amount of the port being [1000,2000], and the scope type resource amount of the graphics card being [1,2], the application manager sends a task processing instruction associated with the target task to NM1, and the scope type resource amounts of the port being the resource type, the port being [1000,2000], and the graphics card being the resource types being [1,2 ].
After receiving the resource usage request sent by the application manager, the resource node responds to the task processing instruction carried in the resource usage request, which may be referred to as the following.
The present disclosure provides a resource scheduling method, as shown in fig. 3, the method is applied in a resource node, and may include the following steps:
s301, a resource node receives a resource use request aiming at a target task, which is sent by an application manager; the resource use request carries a task processing instruction associated with a target task, and a resource type and a corresponding resource amount required by responding to the task processing instruction; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the scope type resource amount comprises an identification number scope corresponding to the scope type resource.
Here, the task processing instruction, and the resource type and the resource amount of the resource required by responding to the task processing instruction may refer to the above, which is not described herein again.
S302, the resource node searches for the unoccupied allocable resources which are matched with the resource type and the resource amount in the resource scheduling request from the resources managed by the resource node based on the resource type and the resource amount in the resource scheduling request;
in a specific implementation process, after receiving a resource usage request of an application manager for a target application, a resource node compares a resource type carried in the resource usage request with an allocable resource managed by the resource node, and if the allocable resource managed by the resource node is matched with the resource type carried in the resource usage request, that is, if the resource type in the resource type of the allocable resource managed by the resource node is the same as the resource type carried in the resource usage request, compares an identification number range indicated by a resource type resource amount of the resource type carried in the resource usage request with an identification number range indicated by an allocable range type resource amount of the allocable resource managed by the resource node.
If the identification number range indicated by the resource type range type resource amount carried in the resource use request is matched with the identification number range indicated by the allocable range type resource amount of the allocable resource managed by the resource use request, that is, if the identification number range indicated by the allocable range type resource amount of the allocable resource managed by the resource use request includes the identification number range indicated by the resource type range type resource amount carried in the resource use request, whether the use state of the corresponding resource is an idle state is judged.
And S303, the resource node responds to the task processing instruction based on the searched distributable resource.
In a specific implementation process, after the resource node queries the allocable resources which are matched with the resource types and the resource amounts in the resource scheduling request and have the use states of the allocable resources in the idle state, the task processing instruction is responded based on the queried allocable resources.
After the resource node finds the allocable resource which is matched with the resource type and the resource amount in the resource scheduling request and has the use state of the idle state, the resource node can also update the state of the resource in the resource state table maintained by the resource node, namely, the found use state of the allocable resource is changed from the idle state to the occupied state.
For example, the application manager sends a resource usage request to the resource node 1, where the carried resource type is a port, the range type resource amount of the port is [1000,2000], the resource type is a graphics card, and the range type resource amount of the graphics card is [1,2], and a change example of states of the port number 1000-2000 and the graphics card numbers 1 and 2 maintained in the resource node 1 is described, where information included in the resource state table is not illustrated here, and before searching for a resource, the maintained resource state table is shown in table three:
watch III
Resource type Amount of scope type resource State of use
Port(s) [1000,2000] Idle state
Display card [1,2] Idle state
After the resource node 1 finds the allocable resource, the resource node 1 updates the use state of the corresponding resource in the maintained resource state table, as shown in table four:
watch four
Resource type Amount of scope type resource State of use
Port(s) [1000,2000] Occupancy state
Display card [1,2] Occupancy state
The resource node maintains the resource type and the range type resource amount, records the resource types of all the resources managed by the resource node and the corresponding total resource amount, the resource types of the used resources and the corresponding resource amount, and the resource types of the allocable resources (namely, idle resources) and the corresponding resource amount, and correspondingly changes the use states of the used resources and the use states of the unused resources after the resources in the resource node are allocated to the target task. For example, taking a port and a graphics card as an example for explanation, a resource node maintains 1000 ports and 2 graphics cards, the range type resource amount of a port is [1000,2000], the range type resource amount of a graphics card is [1,2], the range type resource amount of a used port is [1500,1700], the usage state is an occupied state, the range type resource amount of a used graphics card is 1, and the usage state is an occupied state, the range type resource amounts of idle ports are [1000,1499] and [1701,2000], the usage states corresponding to the idle ports [1000,1499] and [1701,2000] are respectively an idle state, the range type resource amount of an idle graphics card is 2, and the usage state is an idle state.
In the process that the resource node executes the target task based on the allocable resource, the application manager can actively request to release the resource for operating the target task, the resource node correspondingly changes the use state of the released resource, and if the application manager does not actively request to release the resource, the resource node can change the use state of the corresponding resource and update the range type resource amount of the idle range type resource after the resource use is finished, so that when the resource node sends a node jump to the resource manager, the resource node informs the resource manager of the resource type and the range type resource amount of the allocable resource, and the resource manager can conveniently allocate the resource to other applications or containers.
The following describes the process of the application manager actively releasing resources:
after the resource node responds to the task processing instruction based on the found allocable resource, the method may further include the following steps:
the resource node receives a resource release request sent by the application manager; the resource release request carries the resource type and the corresponding resource amount of the resource to be released; the resource amount of the resource to be released comprises the resource amount of the type of the range to be released; and changing the use state of the corresponding resource to be released from the occupied state to the idle state based on the resource type and the corresponding resource amount carried in the resource release request.
Here, the format of the resource release request may be determined according to an actual scenario; the amount of the resource of the to-be-released range type may be an identification number range represented by a closed interval, which may be referred to above.
In the specific implementation process, after receiving a resource release request which is sent by an application manager and carries a resource type of a resource to be released and a resource amount corresponding to the resource type, the resource node compares the resource type carried in the resource release request with the resource type managed by the resource node, if the resource type matched with the resource type carried in the resource release request is found in the resource type managed by the resource node, further compares the range type resource amount of the found resource type with the resource amount carried in the resource release request, and if the range type resource amount of the found resource type is greater than or equal to the resource amount carried in the resource release request, changes the use state of the found resource from an occupied state to an idle state.
For example, the application manager sends a resource release request to the resource node 1, where the resource type carried in the resource release request is a port, the range type resource amount of the port is [1000,2000], changes the usage states of the ports No. 1000 to No. 2000 maintained by the resource node from an occupied state to an idle state, and refers to table three in the updated resource state table.
After releasing the data processing resources, the resource node updates the use state of the released resources in the resource manager through the node heartbeat sent to the resource manager by the resource node.
In order to more clearly understand the disclosure, further details are provided below by way of another example.
As shown in fig. 4, a flowchart of a resource scheduling method provided in the embodiment of the present disclosure includes the following steps:
s401, an application manager sends a resource scheduling request aiming at a target task to a resource manager; the resource scheduling request carries at least one resource type and corresponding resource amount required by running the target application; the resource type comprises at least one range type resource, the resource amount corresponding to the range type resource is the range type resource amount, and the range type resource amount comprises the identification number range corresponding to the range type resource.
S402, the resource manager periodically receives the heartbeat reported by the resource node, that is, receives allocable resource information of the resource node, where the allocable resource information includes a resource type of the allocable resource and a corresponding allocable resource amount.
And S403, the resource manager determines a current resource node from the plurality of resource nodes, and queries allocable resources matched with the resource type and the corresponding resource amount from the resources managed by the current resource node based on the resource type and the corresponding resource amount in S401 and the allocable resource information of the current resource node.
If the matched allocable resource is found, the resource node to which the matched allocable resource belongs is taken as the target resource node, and S404 is executed.
If the matched allocable resource is not found, determining a next resource node from the plurality of resource nodes, taking the next node as the current resource node, and returning to the step S403.
S404, the resource manager sends the node identification of the at least one target resource node determined in S403, and the matched resource type and resource amount in each target resource node to the application manager.
S405, after receiving the node identifier of at least one target resource node and the matched resource type and resource amount sent by the resource manager, the application manager sends a resource use request for the target task to the target resource node, wherein the resource use request carries a task processing instruction associated with the target task, and the resource type and resource amount required by responding to the task processing instruction.
S406, the target resource node searches the unoccupied allocable resources matched with the resource type and the resource amount from the resources managed by the target resource node based on the resource type and the resource amount in the step S405, and responds to the task processing instruction based on the searched allocable resources.
S407, after the resource node finds the allocable resource which is matched with the resource type and the resource amount and is not occupied, the resource node changes the use state of the found allocable resource from the idle state to the occupied state.
S408, the application manager sends a resource release request to the target resource node; the resource release request carries the resource type and the corresponding resource amount of the resource to be released.
S409, the target resource node changes the corresponding resource to be released from the occupied state to the idle state based on the resource type and the corresponding resource amount in the S408.
It should be noted here that S402 may be executed after S401, or may be executed after any one of the above steps, the above example is only illustrative, and the present application does not limit the execution order of S402.
An embodiment of the present application provides a resource scheduling method, as shown in fig. 5, where the method is applied in a terminal device, and the method may include the following steps:
s501, generating a task execution request aiming at a target task, wherein the task execution request comprises at least one resource type and corresponding resource amount required by executing the target task; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource;
s502, sending the task execution request to a resource management system, so that the resource management system determines at least one target resource node from a plurality of resource nodes managed by the resource management system based on the task execution request, and executes the target task based on allocable resources managed by each target resource node and matched with the resource type and the corresponding resource amount.
Here, the format of the task execution request may be determined according to an actual scenario, and reference may be made to the above for relevant details in S501-S502, which will not be described herein too much.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
Based on the same inventive concept, the embodiment of the present disclosure further provides a resource scheduling apparatus corresponding to the resource scheduling method, and since the principle of the apparatus in the embodiment of the present disclosure for solving the problem is similar to the resource scheduling method described above in the embodiment of the present disclosure, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not repeated.
Referring to fig. 6, an exemplary diagram of a resource scheduling apparatus, which is applied in a resource manager, is provided in an embodiment of the present disclosure and includes:
a first receiving module 61, configured to receive a resource scheduling request sent by a client; the resource scheduling request comprises at least one resource type and corresponding resource amount required by executing the target task; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource;
a second receiving module 62, configured to receive allocable resource information reported by each resource node in a plurality of resource nodes in the resource management system;
a processing module 63, configured to determine at least one target resource node from the plurality of resource nodes based on the resource type and the resource amount in the resource scheduling request and the allocable resource information of the plurality of resource nodes; each target resource node has allocable resources which are matched with the resource types and the resource amounts in the resource scheduling requests;
a sending module 64, configured to send the node identifier of the searched target resource node, the matched resource type, and the resource amount to the application manager corresponding to the client;
in one embodiment, the processing module 63 is specifically configured to:
determining a current resource node;
judging whether the allocable resources of the current resource node comprise allocable range type resources matched with the range type resources in the resource scheduling request;
if yes, judging whether the identification number range indicated by the allocable range type resource quantity corresponding to the allocable range type resource in the allocable resource is larger than or equal to the identification number range indicated by the range type resource quantity of the range type resource in the resource scheduling request;
and if the current resource node is larger than or equal to the target resource node, taking the current resource node as a target resource node for providing the resources of the resource type.
In one embodiment, the processing module 63 is further configured to:
if the identification number range of the allocable range type resource quantity indication corresponding to the allocable range type resource in the allocable resources is smaller than the identification number range of the range type resource quantity indication of the range type resource in the resource scheduling request, determining a next resource node as a current resource node;
and returning to the step of judging whether the allocable resources of the current resource node comprise allocable range type resources matched with the range type resources in the resource scheduling request or not until a target resource node meeting the condition is determined or until all the resource nodes are determined not to meet the condition, and determining that the resources of the resource type cannot be allocated.
In one embodiment, the apparatus further comprises: a release module to:
and after determining that the range type resource matched with the resource type and the resource amount in the resource scheduling request is released, changing the use state of the range type resource matched with the resource type and the resource amount in the resource scheduling request into an idle state.
Referring to fig. 7, an embodiment of the present disclosure provides a schematic diagram of a resource scheduling apparatus, where the apparatus is applied in an application manager, and the apparatus includes:
a sending module 71, configured to send a resource scheduling request for a target task to a resource manager; the resource scheduling request carries at least one resource type and corresponding resource amount required by executing the target task; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource; and the number of the first and second groups,
sending a resource use request to the target resource node; the resource use request carries a task processing instruction associated with a target task, and a resource type and a corresponding resource amount required by responding to the task processing instruction;
a receiving module 72, configured to receive a node identifier of at least one target resource node sent by the resource manager, and a matched resource type and resource amount; and the resource scheduling request comprises a resource type and a resource amount, wherein the resource type and the resource amount in the resource scheduling request are matched with the allocable resources in the resources managed by each target resource node.
Referring to fig. 8, an embodiment of the present disclosure provides a schematic diagram of a resource scheduling apparatus, which is applied in a resource node, where the apparatus includes:
a receiving module 81, configured to receive a resource usage request for a target task sent by an application manager; the resource use request carries a task processing instruction associated with a target task, and a resource type and a corresponding resource amount required by responding to the task processing instruction; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource;
a searching module 82, configured to search, from resources managed by the searching module, an unoccupied allocable resource that is matched with the resource type and the resource amount in the resource scheduling request based on the resource type and the resource amount in the resource scheduling request;
and the processing module 83 is configured to respond to the task processing instruction based on the found allocable resource.
In one embodiment, the apparatus further comprises: a changing module, wherein the receiving module 81 is further configured to:
receiving a resource release request sent by the application manager; the resource release request carries the resource type and the corresponding resource amount of the resource to be released; the resource amount of the resource to be released comprises the resource amount of the type of the range to be released;
the change module is further to:
and changing the use state of the corresponding resource to be released from the occupied state to the idle state based on the resource type and the corresponding resource amount carried in the resource release request.
Referring to fig. 9, an embodiment of the present disclosure provides a schematic diagram of a resource scheduling apparatus, where the apparatus is applied in a terminal device, and the apparatus includes:
a generating module 91, configured to generate a task execution request for a target task, where the task execution request includes at least one resource type and a corresponding resource amount required for executing the target task; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource;
a sending module 92, configured to send the task execution request to a resource management system, so that the resource management system determines at least one target resource node from multiple resource nodes managed by the resource management system based on the task execution request, and executes the target task based on allocable resources managed by each target resource node and matching the resource type and the corresponding resource amount.
Corresponding to the resource scheduling method in fig. 1, an embodiment of the present disclosure further provides a computer device 100, and as shown in fig. 10, a schematic structural diagram of the computer device 100 provided in the embodiment of the present disclosure includes:
a processor 101, a memory 102, and a bus 103; the storage 102 is used for storing execution instructions and includes a memory 1021 and an external storage 1022; the memory 1021 is also called an internal memory, and is used for temporarily storing the operation data in the processor 101 and the data exchanged with the external memory 1022 such as a hard disk, the processor 101 exchanges data with the external memory 1022 through the memory 1021, and when the computer apparatus 100 is running, the processor 101 communicates with the memory 102 through the bus 103, so that the processor 101 executes the following instructions in a user mode:
receiving a resource scheduling request sent by a client; the resource scheduling request comprises at least one resource type and corresponding resource amount required by executing the target task; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource;
receiving allocable resource information reported by each resource node in a plurality of resource nodes in a resource management system;
determining at least one target resource node from the plurality of resource nodes based on the resource type and the resource amount in the resource scheduling request and the allocable resource information of the plurality of resource nodes; each target resource node has allocable resources which are matched with the resource types and the resource amounts in the resource scheduling requests;
and sending the node identification of the searched target resource node, the matched resource type and the resource amount to an application manager corresponding to the client.
In a possible embodiment, the processor 101 executes instructions to determine at least one target resource node from among a plurality of resource nodes based on the resource type and the resource amount in the resource scheduling request, and the resource type and the corresponding allocable resource amount of the allocable resources of the plurality of resource nodes, including:
determining a current resource node;
judging whether the allocable resources of the current resource node comprise allocable range type resources matched with the range type resources in the resource scheduling request;
if yes, judging whether the identification number range indicated by the allocable range type resource quantity corresponding to the allocable range type resource in the allocable resource is larger than or equal to the identification number range indicated by the range type resource quantity of the range type resource in the resource scheduling request;
and if the current resource node is larger than or equal to the target resource node, taking the current resource node as a target resource node for providing the resources of the resource type.
In a possible implementation manner, the instructions executed by the processor 101 further include:
if the identification number range of the allocable range type resource quantity indication corresponding to the allocable range type resource in the allocable resources is smaller than the identification number range of the range type resource quantity indication of the range type resource in the resource scheduling request, determining a next resource node as a current resource node;
and returning to the step of judging whether the allocable resources of the current resource node comprise allocable range type resources matched with the range type resources in the resource scheduling request or not until a target resource node meeting the condition is determined or until all the resource nodes are determined not to meet the condition, and determining that the resources of the resource type cannot be allocated.
In a possible implementation manner, after the instruction executed by the processor 101 sends the node identifier of the searched target resource node, the matched resource type, and the resource amount to the application manager corresponding to the client, the method further includes:
and after determining that the range type resource matched with the resource type and the resource amount in the resource scheduling request is released, changing the use state of the range type resource matched with the resource type and the resource amount in the resource scheduling request into an idle state.
Corresponding to the resource scheduling method in fig. 2, an embodiment of the present disclosure further provides a computer device 110, as shown in fig. 11, a schematic structural diagram of the computer device 110 provided in the embodiment of the present disclosure includes:
a processor 111, a memory 112, and a bus 113; the storage 112 is used for storing execution instructions and includes a memory 1121 and an external storage 1122; the memory 1121 is also referred to as an internal memory, and is used for temporarily storing the operation data in the processor 111 and the data exchanged with the external storage 1122 such as a hard disk, the processor 111 exchanges data with the external storage 1122 through the memory 1121, and when the computer device 110 operates, the processor 111 communicates with the storage 112 through the bus 113, so that the processor 111 executes the following instructions in a user mode:
sending a resource scheduling request aiming at the target task to a resource manager; the resource scheduling request carries at least one resource type and corresponding resource amount required by executing the target task; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource;
receiving a node identifier of at least one target resource node sent by the resource manager, and a matched resource type and resource amount; wherein, the resource managed by each target resource node has allocable resource matched with the resource type and resource amount in the resource scheduling request;
sending a resource use request to the target resource node; the resource use request carries a task processing instruction associated with a target task, and a resource type and a corresponding resource amount required by responding to the task processing instruction.
Corresponding to the resource scheduling method in fig. 3, an embodiment of the present disclosure further provides a computer device 120, and as shown in fig. 12, a schematic structural diagram of the computer device 120 provided in the embodiment of the present disclosure includes:
a processor 121, a memory 122, and a bus 123; the memory 122 is used for storing execution instructions and includes a memory 1221 and an external memory 1222; the memory 1221 is also referred to as an internal memory, and is used for temporarily storing operation data in the processor 121 and data exchanged with the external memory 1222 such as a hard disk, the processor 121 exchanges data with the external memory 1222 through the memory 1221, and when the computer device 120 is operated, the processor 121 and the memory 122 communicate through the bus 123, so that the processor 121 executes the following instructions in a user mode:
receiving a resource use request aiming at a target task, which is sent by an application manager; the resource use request carries a task processing instruction associated with a target task, and a resource type and a corresponding resource amount required by responding to the task processing instruction; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource;
based on the resource type and the resource amount in the resource scheduling request, searching for unoccupied allocable resources which are matched with the resource type and the resource amount in the resource scheduling request from the resources managed by the resource scheduling request;
and responding to the task processing instruction based on the searched allocable resource.
In a possible embodiment, the instructions executed by the processor 121, after responding to the task processing instruction based on the located allocable resource, further include:
receiving a resource release request sent by the application manager; the resource release request carries the resource type and the corresponding resource amount of the resource to be released; the resource amount of the resource to be released comprises the resource amount of the type of the range to be released;
corresponding to the resource scheduling method in fig. 5, an embodiment of the present disclosure further provides a computer device 130, as shown in fig. 13, a schematic structural diagram of the computer device 130 provided in the embodiment of the present disclosure includes:
a processor 131, a memory 132, and a bus 133; memory 132 is used to store instructions for execution and includes memory 1321 and external memory 1322; the memory 1321 is also referred to as an internal memory, and is configured to temporarily store operation data in the processor 131 and data exchanged with the external memory 1322 such as a hard disk, the processor 131 exchanges data with the external memory 1322 through the internal memory 1321, and when the computer device 130 operates, the processor 131 communicates with the memory 132 through the bus 133, so that the processor 131 executes the following instructions in a user mode:
generating a task execution request aiming at a target task, wherein the task execution request comprises at least one resource type and corresponding resource amount required by executing the target task; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource;
and sending the task execution request to a resource management system, so that the resource management system determines at least one target resource node from a plurality of resource nodes managed by the resource management system based on the task execution request, and executes the target task based on allocable resources which are managed by each target resource node and are matched with the resource types and the corresponding resource amounts.
The embodiments of the present disclosure also provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of resource scheduling described in the above method embodiments. The storage medium may be a volatile or non-volatile computer-readable storage medium.
The computer program product of the comment information obtaining method provided in the embodiment of the present disclosure includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the steps of the resource scheduling method described in the above method embodiment, which may be specifically referred to in the above method embodiment, and are not described herein again.
The embodiments of the present disclosure also provide a computer program, which when executed by a processor implements any one of the methods of the foregoing embodiments. The computer program product may be embodied in hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (14)

1. A method for scheduling resources, the method comprising:
receiving a resource scheduling request sent by a client; the resource scheduling request comprises at least one resource type and corresponding resource amount required by executing the target task; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource;
receiving allocable resource information reported by each resource node in a plurality of resource nodes in a resource management system;
determining at least one target resource node from a plurality of the resource nodes based on the resource type and the resource amount in the resource scheduling request and the allocable resource information of the plurality of the resource nodes; each target resource node has allocable resources which are matched with the resource types and the resource amounts in the resource scheduling requests;
and sending the node identification of the searched target resource node, the matched resource type and the resource amount to an application manager corresponding to the client.
2. The method of claim 1, wherein determining at least one target resource node from among a plurality of the resource nodes based on the resource type and the amount of resources in the resource scheduling request, and the allocable resource information of the plurality of the resource nodes, comprises:
determining a current resource node;
judging whether the allocable resources of the current resource node comprise allocable range type resources matched with the range type resources in the resource scheduling request;
if yes, judging whether the identification number range indicated by the allocable range type resource quantity corresponding to the allocable range type resource in the allocable resource is larger than or equal to the identification number range indicated by the range type resource quantity of the range type resource in the resource scheduling request;
and if the current resource node is larger than or equal to the target resource node, taking the current resource node as a target resource node for providing the resources of the resource type.
3. The method of claim 2, further comprising:
if the identification number range of the allocable range type resource quantity indication corresponding to the allocable range type resource in the allocable resources is smaller than the identification number range of the range type resource quantity indication of the range type resource in the resource scheduling request, determining a next resource node as a current resource node;
and returning to the step of judging whether the allocable resources of the current resource node comprise allocable range type resources matched with the range type resources in the resource scheduling request or not until a target resource node meeting the condition is determined or until all the resource nodes are determined not to meet the condition, and determining that the resources of the resource type cannot be allocated.
4. The method as claimed in claim 1, wherein after sending the node identifier of the target resource node found, the matched resource type and resource amount to the application manager corresponding to the client, further comprising:
and after determining that the range type resource matched with the resource type and the resource amount in the resource scheduling request is released, changing the use state of the range type resource matched with the resource type and the resource amount in the resource scheduling request into an idle state.
5. A method for scheduling resources, comprising:
generating a task execution request aiming at a target task, wherein the task execution request comprises at least one resource type and corresponding resource amount required by executing the target task; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource;
and sending the task execution request to a resource management system, so that the resource management system determines at least one target resource node from a plurality of resource nodes managed by the resource management system based on the task execution request, and executes the target task based on allocable resources which are managed by each target resource node and are matched with the resource types and the corresponding resource amounts.
6. A method for scheduling resources, the method comprising:
the application manager sends a resource scheduling request aiming at the target task to the resource manager; the resource scheduling request carries at least one resource type and corresponding resource amount required by executing the target task; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource;
receiving a node identifier of at least one target resource node sent by the resource manager, and a matched resource type and resource amount; wherein, the resource managed by each target resource node has allocable resource matched with the resource type and resource amount in the resource scheduling request;
sending a resource use request to the target resource node; the resource use request carries a task processing instruction associated with a target task, and a resource type and a corresponding resource amount required by responding to the task processing instruction.
7. A method for scheduling resources, the method comprising:
the resource node receives a resource use request aiming at a target task, which is sent by an application manager; the resource use request carries a task processing instruction associated with a target task, and a resource type and a corresponding resource amount required by responding to the task processing instruction; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource;
based on the resource type and the resource amount in the resource scheduling request, searching for unoccupied allocable resources which are matched with the resource type and the resource amount in the resource scheduling request from the resources managed by the resource scheduling request;
and responding to the task processing instruction based on the searched allocable resource.
8. The method of claim 7, wherein after responding to the task processing instruction based on the located allocable resource, further comprising:
receiving a resource release request sent by the application manager; the resource release request carries the resource type and the corresponding resource amount of the resource to be released; the resource amount of the resource to be released comprises the resource amount of the type of the range to be released;
and changing the use state of the corresponding resource to be released from the occupied state to the idle state based on the resource type and the corresponding resource amount carried in the resource release request.
9. An apparatus for scheduling resources, the apparatus comprising:
the first receiving module is used for receiving a resource scheduling request sent by a client; the resource scheduling request comprises at least one resource type and corresponding resource amount required by executing the target task; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource;
a second receiving module, configured to receive allocable resource information reported by each resource node in a plurality of resource nodes in a resource management system;
a processing module, configured to determine at least one target resource node from a plurality of resource nodes based on the resource type and the resource amount in the resource scheduling request and the allocable resource information of the plurality of resource nodes; each target resource node has allocable resources which are matched with the resource types and the resource amounts in the resource scheduling requests;
and the sending module is used for sending the node identifier of the searched target resource node, the matched resource type and the resource amount to the application manager corresponding to the client.
10. An apparatus for scheduling resources, the apparatus comprising:
the system comprises a generating module, a processing module and a processing module, wherein the generating module is used for generating a task execution request aiming at a target task, and the task execution request comprises at least one resource type and corresponding resource amount required by executing the target task; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource;
a sending module, configured to send the task execution request to a resource management system, so that the resource management system determines at least one target resource node from multiple resource nodes managed by the resource management system based on the task execution request, and executes the target task based on allocable resources managed by each target resource node and matching the resource type and the corresponding resource amount.
11. A resource scheduling apparatus, applied in an application manager, includes:
the sending module is used for sending a resource scheduling request aiming at the target task to the resource manager; the resource scheduling request carries at least one resource type and corresponding resource amount required by executing the target task; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource; and sending a resource use request to the target resource node; the resource use request carries a task processing instruction associated with a target task, and a resource type and a corresponding resource amount required by responding to the task processing instruction;
a receiving module, configured to receive a node identifier of at least one target resource node sent by the resource manager, and a matched resource type and resource amount; and the resource scheduling request comprises a resource type and a resource amount, wherein the resource type and the resource amount in the resource scheduling request are matched with the allocable resources in the resources managed by each target resource node.
12. A resource scheduling apparatus, applied in a resource node, includes:
the receiving module is used for receiving a resource use request aiming at a target task and sent by an application manager; the resource use request carries a task processing instruction associated with a target task, and a resource type and a corresponding resource amount required by responding to the task processing instruction; the resource type comprises at least one range type resource, and the resource amount corresponding to the range type resource is the range type resource amount; the range type resource amount comprises an identification number range of the corresponding range type resource;
the searching module is used for searching the unoccupied allocable resources which are matched with the resource type and the resource amount in the resource scheduling request from the resources managed by the searching module based on the resource type and the resource amount in the resource scheduling request;
and the processing module is used for responding to the task processing instruction based on the searched distributable resource.
13. A computer device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when a computer device is running, the processor executing the machine-readable instructions to perform the steps of the method according to any one of claims 1 to 4, or to perform the steps of the method according to claim 5, or to perform the steps of the method according to claim 6, or to perform the steps of the method according to claim 7 or 8.
14. A computer-readable storage medium, having stored thereon a computer program for performing, when being executed by a processor, the steps of the method according to any one of claims 1 to 4, or for performing the steps of the method according to claim 5, or for performing the steps of the method according to claim 6, or for performing the steps of the method according to claim 7 or 8.
CN202010538340.5A 2020-06-12 2020-06-12 Resource scheduling method, device, computer equipment and storage medium Active CN111694649B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010538340.5A CN111694649B (en) 2020-06-12 2020-06-12 Resource scheduling method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010538340.5A CN111694649B (en) 2020-06-12 2020-06-12 Resource scheduling method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111694649A true CN111694649A (en) 2020-09-22
CN111694649B CN111694649B (en) 2023-07-18

Family

ID=72480814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010538340.5A Active CN111694649B (en) 2020-06-12 2020-06-12 Resource scheduling method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111694649B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112269659A (en) * 2020-10-23 2021-01-26 苏州浪潮智能科技有限公司 Resource management method, system, electronic equipment and storage medium
CN112463376A (en) * 2020-11-26 2021-03-09 北京字节跳动网络技术有限公司 Resource allocation method and device
CN112596904A (en) * 2020-12-25 2021-04-02 济南浪潮高新科技投资发展有限公司 Quantum service resource calling optimization method based on quantum cloud platform
CN113238848A (en) * 2021-05-27 2021-08-10 上海商汤科技开发有限公司 Task scheduling method and device, computer equipment and storage medium
CN113282419A (en) * 2021-06-07 2021-08-20 国家超级计算天津中心 Resource scheduling method, electronic device, and computer-readable storage medium
CN113312161A (en) * 2021-05-06 2021-08-27 联想(北京)有限公司 Application scheduling method, platform and storage medium
CN113419839A (en) * 2021-07-20 2021-09-21 北京字节跳动网络技术有限公司 Resource scheduling method and device for multi-type jobs, electronic equipment and storage medium
CN113535339A (en) * 2021-07-19 2021-10-22 赞同科技股份有限公司 Service calling method and device
CN114035942A (en) * 2021-10-22 2022-02-11 北京字节跳动网络技术有限公司 Resource scheduling method and device, electronic equipment and storage medium
CN114138500A (en) * 2022-01-29 2022-03-04 阿里云计算有限公司 Resource scheduling system and method
CN114785794A (en) * 2022-03-29 2022-07-22 北京字节跳动网络技术有限公司 Resource allocation method, device, equipment, medium, program product and system
CN114860453A (en) * 2022-05-27 2022-08-05 中国第一汽车股份有限公司 Method and device for executing tasks of scene engine, electronic equipment and storage medium
CN115037752A (en) * 2022-04-22 2022-09-09 网易(杭州)网络有限公司 Resource reallocation method and device and electronic equipment
CN115686820A (en) * 2021-07-27 2023-02-03 北京特纳飞电子技术有限公司 Scalable resource management system
CN115827206A (en) * 2023-01-18 2023-03-21 太极计算机股份有限公司 Method and system for scheduling display card task resources based on machine learning

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572003A (en) * 2010-12-08 2012-07-11 中国电信股份有限公司 Method and system for acquiring and processing multiplexing address and port range
CN104780146A (en) * 2014-01-13 2015-07-15 华为技术有限公司 Resource manage method and device
CN105099951A (en) * 2015-07-27 2015-11-25 中国联合网络通信集团有限公司 Resource scheduling method and management equipment
CN105589750A (en) * 2015-07-07 2016-05-18 杭州华三通信技术有限公司 CPU (Central Processing Unit) resource scheduling method and server
CN106603435A (en) * 2016-12-28 2017-04-26 北京华为数字技术有限公司 Method and device for distributing port block resource
CN108293041A (en) * 2015-12-28 2018-07-17 华为技术有限公司 A kind of distribution method of resource, device and system
CN108400898A (en) * 2018-05-30 2018-08-14 郑州云海信息技术有限公司 The management method and device of resource in cloud data management platform
CN108845877A (en) * 2013-05-17 2018-11-20 华为技术有限公司 The methods, devices and systems of managing internal memory
CN111045795A (en) * 2018-10-11 2020-04-21 浙江宇视科技有限公司 Resource scheduling method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4834708B2 (en) * 2008-09-30 2011-12-14 株式会社日立製作所 Resource allocation method, resource allocation program, and flow processing system
JP5969340B2 (en) * 2012-09-24 2016-08-17 株式会社日立システムズ Resource management system, resource management method, and resource management program

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572003A (en) * 2010-12-08 2012-07-11 中国电信股份有限公司 Method and system for acquiring and processing multiplexing address and port range
CN108845877A (en) * 2013-05-17 2018-11-20 华为技术有限公司 The methods, devices and systems of managing internal memory
CN104780146A (en) * 2014-01-13 2015-07-15 华为技术有限公司 Resource manage method and device
CN105589750A (en) * 2015-07-07 2016-05-18 杭州华三通信技术有限公司 CPU (Central Processing Unit) resource scheduling method and server
CN105099951A (en) * 2015-07-27 2015-11-25 中国联合网络通信集团有限公司 Resource scheduling method and management equipment
CN108293041A (en) * 2015-12-28 2018-07-17 华为技术有限公司 A kind of distribution method of resource, device and system
CN106603435A (en) * 2016-12-28 2017-04-26 北京华为数字技术有限公司 Method and device for distributing port block resource
CN108400898A (en) * 2018-05-30 2018-08-14 郑州云海信息技术有限公司 The management method and device of resource in cloud data management platform
CN111045795A (en) * 2018-10-11 2020-04-21 浙江宇视科技有限公司 Resource scheduling method and device

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112269659A (en) * 2020-10-23 2021-01-26 苏州浪潮智能科技有限公司 Resource management method, system, electronic equipment and storage medium
CN112463376A (en) * 2020-11-26 2021-03-09 北京字节跳动网络技术有限公司 Resource allocation method and device
CN112596904A (en) * 2020-12-25 2021-04-02 济南浪潮高新科技投资发展有限公司 Quantum service resource calling optimization method based on quantum cloud platform
CN113312161A (en) * 2021-05-06 2021-08-27 联想(北京)有限公司 Application scheduling method, platform and storage medium
CN113238848A (en) * 2021-05-27 2021-08-10 上海商汤科技开发有限公司 Task scheduling method and device, computer equipment and storage medium
WO2022247105A1 (en) * 2021-05-27 2022-12-01 上海商汤科技开发有限公司 Task scheduling method and apparatus, computer device and storage medium
CN113282419A (en) * 2021-06-07 2021-08-20 国家超级计算天津中心 Resource scheduling method, electronic device, and computer-readable storage medium
CN113282419B (en) * 2021-06-07 2022-07-08 国家超级计算天津中心 Resource scheduling method, electronic device, and computer-readable storage medium
CN113535339B (en) * 2021-07-19 2022-06-17 赞同科技股份有限公司 Service calling method and device
CN113535339A (en) * 2021-07-19 2021-10-22 赞同科技股份有限公司 Service calling method and device
CN113419839A (en) * 2021-07-20 2021-09-21 北京字节跳动网络技术有限公司 Resource scheduling method and device for multi-type jobs, electronic equipment and storage medium
CN115686820A (en) * 2021-07-27 2023-02-03 北京特纳飞电子技术有限公司 Scalable resource management system
CN114035942A (en) * 2021-10-22 2022-02-11 北京字节跳动网络技术有限公司 Resource scheduling method and device, electronic equipment and storage medium
CN114138500A (en) * 2022-01-29 2022-03-04 阿里云计算有限公司 Resource scheduling system and method
CN114138500B (en) * 2022-01-29 2022-07-08 阿里云计算有限公司 Resource scheduling system and method
CN114785794A (en) * 2022-03-29 2022-07-22 北京字节跳动网络技术有限公司 Resource allocation method, device, equipment, medium, program product and system
CN115037752A (en) * 2022-04-22 2022-09-09 网易(杭州)网络有限公司 Resource reallocation method and device and electronic equipment
CN115037752B (en) * 2022-04-22 2024-03-22 网易(杭州)网络有限公司 Resource allocation method and device and electronic equipment
CN114860453A (en) * 2022-05-27 2022-08-05 中国第一汽车股份有限公司 Method and device for executing tasks of scene engine, electronic equipment and storage medium
CN115827206A (en) * 2023-01-18 2023-03-21 太极计算机股份有限公司 Method and system for scheduling display card task resources based on machine learning

Also Published As

Publication number Publication date
CN111694649B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
CN111694649B (en) Resource scheduling method, device, computer equipment and storage medium
CN111522641B (en) Task scheduling method, device, computer equipment and storage medium
CN110168529B (en) Data storage method, device and storage medium
CN111091429A (en) Electronic bill identification distribution method and device and electronic bill generation system
US10686728B2 (en) Systems and methods for allocating computing resources in distributed computing
CN113204428B (en) Resource scheduling method, device, electronic equipment and computer readable storage medium
CN112261115B (en) Resource allocation method, device and computer storage medium
CN109213493B (en) Container deployment method, special resource management terminal and readable storage medium
CN112231049A (en) Computing equipment sharing method, device, equipment and storage medium based on kubernets
CN106557366B (en) Task distribution method, device and system
CN110413845B (en) Resource storage method and device based on Internet of things operating system
WO2020215752A1 (en) Graph computing method and device
CN103716383A (en) Method and device for accessing shared resources
CN106302640A (en) Data request processing method and device
CN107562803B (en) Data supply system and method and terminal
CN103581273A (en) Service executing method, device and system for distributed system
CN111179008A (en) Information state updating method, device, system and storage medium
CN112463376A (en) Resource allocation method and device
CN107729421B (en) The execution method, apparatus and storage medium of storing process
CN103905512A (en) Data processing method and equipment
CN116010093A (en) Data processing method, apparatus, computer device and readable storage medium
CN115237597A (en) Data processing method, device, system, equipment and storage medium
CN110324845B (en) Resource allocation method and device
CN113254437B (en) Batch processing job processing method and device
CN110362575B (en) Method and device for generating global index of data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220704

Address after: 100190 1309, 13th floor, building 4, Zijin Digital Park, Haidian District, Beijing

Applicant after: Beijing volcano Engine Technology Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant