Cloud computing resource based on type of tasks and resource load rate
Abstract
This application provides a resource scheduling method, including: when a first scheduling request message is obtained, determining a first resource server from a resource pool based on a first quantity of resources requested by the first scheduling request message, and scheduling the first quantity of resources in the first resource server, where the resource pool includes at least one resource server, and the first scheduling request message requests a resource for a first-type task; and when a second scheduling request message is obtained, schedule a resource for a task corresponding to the second scheduling request message, determining a second resource server from the resource pool based on a second quantity of resources requested by the second scheduling request message, and scheduling a third quantity of resources in the second resource server, wherein the second scheduling request message requests a resource for a second-type task.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 38 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A cloud computing resource scheduling method, performed by a resource scheduling apparatus comprising a processor and a memory, the method comprising: obtaining a first scheduling request message; determining a first resource server from a resource pool based on a first quantity of resources requested by the first scheduling request message; scheduling the first quantity of resources in the first resource server, wherein the resource pool comprises at least one resource server, and the first scheduling request message is used to request a resource for a first-type task, wherein the first-type task is a service level agreement (SLA) sensitive task; obtaining a second scheduling request message; placing the second scheduling request message in a waiting queue, wherein the waiting queue comprises a scheduling request message of at least one second-type task, wherein the second-type task is a service level agreement (SLA) insensitive task; determining, based on a resource load rate of the
- Claim 2Depends on #1
The method according to claim 1, further comprising: determining that the resource load rate of the resource pool is greater than or equal to the first threshold; selecting M second-type tasks from a plurality of tasks executed by the at least one resource server, and releasing resources occupied by the M second-type tasks, wherein M is an integer greater than 0.
- Claim 3Depends on #1
The method according to claim 1, further comprising: determining that a quantity of idle resources in the second resource server is less than a second threshold; selecting N second-type tasks from the plurality of tasks executed by the second resource server; and releasing resources occupied by the N second-type tasks, wherein N is an integer greater than 0.
- Claim 4Depends on #3
The method according to claim 3, further comprising: placing the N second-type tasks in the waiting queue, wherein the waiting queue comprises the scheduling request message of the at least one second-type task.
- Claim 5Depends on #1
The method according to claim 1, wherein the determining the first resource server from the resource pool based on the first quantity of resources requested by the first scheduling request message comprises: selecting, from the at least one resource server comprised in the resource pool, a resource server whose quantity of idle resources is greater than the first quantity of resources as the first resource server.
- Claim 6Depends on #1
The method according to claim 1, wherein the determining the second resource server from the resource pool based on the second quantity of resources requested by the second scheduling request message comprises: selecting, from the at least one resource server comprised in the resource pool, a resource server whose quantity of idle resources is greater than the third quantity of resources as the second resource server.
- Claim 7Depends on #1
The method according to claim 1, wherein the first-type task is a scheduled with resources based on a quantity of requested resources.
- Claim 8Depends on #1
The method according to claim 1, wherein the second-type task is scheduled with resources based on resource usage.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a continuation of International Application No. PCT/CN2019/090886, filed on Jun. 12, 2019, which claims priority to Chinese Patent Application No. 201811055961.7, filed on Sep. 11, 2018, the disclosure of which is hereby incorporated by reference in its entirety. TECHNICAL FIELD Embodiments of this application relate to the field of computer technologies, and in particular, to a resource scheduling method and apparatus. BACKGROUND During construction of a cloud data center, a carrier of the cloud data center invests a large amount of money in purchasing computing facilities such as a server and a switch, to provide a computing resource for a cloud computing service. To increase utilization of a computing resource of the cloud data center, the carrier uses resource overcommitment technologies such as virtualization to schedule computing tasks of different tenants to a same computing facility. A cloud host service is used as an example. A tenant selects, based on a task execution requirement of the tenant, a cloud host with a proper resource configuration from a cloud host type list provided by the carrier and leases the cloud host. When the tenant sends a request for starting a cloud host, the carrier selects, by using a public cloud scheduling system, one physical server from all physical servers in the cloud data center based on the resource configuration of the cloud host selected by the tenant, and starts a virtual machine on the physical server as the cloud host leased by the tenant. In this process, a proper virtual machine scheduling method can effectively reduce resource fragments in each physical server in the cloud data center, to ensure relatively high resource utilization. Therefore, how to better schedule a resource is an urgent problem to be resolved. SUMMARY Embodiments of this application provide a resource scheduling method and apparatus, to improve service quality while increasing resource
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (38)
Non-Patent Literature (1)
- CN/202110542672, Office Action, Dec. 12, 2024.