Resource scheduling method and device, equipment and storage medium
By configuring relative single-core performance values for different models of CPU servers, virtual machines are allowed to be deployed in the same host group, which solves the problem of low CPU resource utilization in the existing technology and achieves maximum utilization and flexible deployment of resources.
Patent Information
- Application Number
- CN202310343449.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
AI Technical Summary
The existing technology only focuses on the number of vCPU cores in the virtual machine specifications when scheduling CPU resources, resulting in low CPU resource utilization and easy waste of resources, because all virtual machines of a network element instance can only be deployed on a CPU with the same single-core performance. On the server, it limits the maximum utilization of resources.
By configuring relative single-core performance values for different types of CPU servers in the resource pool, servers with different types of CPUs are allowed to deploy virtual machines in the same host group, and resources are scheduled based on the single-core performance ratio to achieve proportional matching between virtual machines and CPU logical cores. , filter out candidate servers that do not meet the requirements.
It improves the utilization of CPU resources, reduces resource fragmentation, realizes flexible deployment of network element virtual machines and maximizes the utilization of resources, and reduces the complexity of orchestration and the possibility of manual misoperation.
Smart Images

Figure CN118733242A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a resource scheduling method, apparatus, device and storage medium. Background Art
[0002] The current virtual layer only focuses on the number of vCPU cores defined in the virtual machine specifications when scheduling central processing unit (CPU) resources. In order to ensure the certainty and consistency of the network element's service processing capabilities, servers with different single-core performance (physical) CPUs in the resource pool can only be divided into different host groups (Host Aggregate, HA). Since all virtual machines of a network element instance can only be deployed in one HA at the same time, that is, all virtual machines of a network element instance can only be deployed on servers with the same CPU single-core performance at the same time, it will eventually lead to low CPU resource utilization and easily cause CPU resource waste. Summary of the invention
[0003] In view of this, embodiments of the present application hope to provide a resource scheduling method, apparatus, device and storage medium.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] The present application provides a resource scheduling method, which is applied to a virtualization platform. The method includes:
[0006] Based on the deployment requirements of the network element instance, the specifications and quantity of the virtual machines are configured for the server of the first type of CPU in the resource pool, and the relative value of the single-core performance of the first type of CPU is configured;
[0007] Determine the single-core performance relative values of other CPU models in the resource pool except the first CPU model based on the single-core performance relative value of the first CPU model; the single-core performance relative value is used to characterize the single-core performance of the corresponding CPU model;
[0008] Scheduling resources for network element instances based on the relative performance of different CPU models.
[0009] Among them, the architecture and instruction set of different types of CPUs in the resource pool are the same, but the single-core performance is different.
[0010] The network element instance scheduling resource based on the relative value of single-core performance of different CPU models includes:
[0011] For servers with the first type of CPU, CPU resources are applied for virtual machines based on a 1:1 ratio between virtual machines and CPU logical cores;
[0012] For a server with another type of CPU other than the first type of CPU, applying for CPU resources for the virtual machine based on the ratio of the second single-core performance relative value to the first single-core performance relative value of the ratio of the virtual machine to the CPU logical core; wherein,
[0013] The first single-core performance relative value is the single-core performance relative value of the first model CPU; the second single-core performance relative value includes: the single-core performance relative value of the other model CPU except the first model CPU.
[0014] The network element instance scheduling resource based on the relative value of single-core performance of different CPU models includes:
[0015] In the resource scheduling process, all servers with candidate first-model CPUs whose number of available logical cores is less than a first value are filtered out;
[0016] In the resource scheduling process, all servers with candidate second-model CPUs whose available logical cores are less than (first value × first single-core performance relative value) / second single-core performance relative value are filtered out;
[0017] Among them, the first numerical value is the number of virtual machines required for the deployment of the network element instance based on the server performance configuration of the first model CPU; the first single-core performance relative value is the single-core performance relative value of the first model CPU; the second single-core performance relative value includes: the single-core performance relative value of the other model CPU except the first model CPU.
[0018] The configuring of the specifications and quantity of virtual machines for the server of the first model CPU in the resource pool, and configuring the relative value of the single-core performance of the first model CPU, includes:
[0019] Evaluate the server performance of the first model CPU based on the deployment requirements of the network element instance to obtain evaluation results;
[0020] Based on the evaluation results, the specifications and number of virtual machines corresponding to the server with the first type of CPU configured for the network element instance;
[0021] The single-core performance relative value of the first model CPU is configured to be a first single-core performance relative value.
[0022] The determining, based on the single-core performance relative value of the first-model CPU, of the single-core performance relative values of other CPU models in the resource pool except the first-model CPU includes:
[0023] Based on the deployment requirements of the network element instance, the server performance of each other type of CPU is evaluated to obtain the evaluation results;
[0024] The single-core performance relative value of each other type of CPU is determined based on the evaluation result and the single-core performance relative value of the first type of CPU.
[0025] The embodiment of the present application also provides a resource scheduling device, which is applied to a virtualization platform, and the device includes:
[0026] The first processing unit is used to configure the specifications and quantity of virtual machines for the server of the first model CPU in the resource pool based on the deployment requirements of the network element instance, and configure the relative value of the single-core performance of the first model CPU; determine the relative values of the single-core performance of other models of CPU in the resource pool except the first model CPU based on the relative value of the single-core performance of the first model CPU; the relative value of the single-core performance is used to characterize the single-core performance of the corresponding model of CPU; and schedule resources for the network element instance based on the relative values of the single-core performance of different models of CPU.
[0027] The embodiment of the present application also provides a resource scheduling device, including:
[0028] The first processor is used to configure the specifications and quantity of virtual machines for the server of the first model CPU in the resource pool based on the deployment requirements of the network element instance, and configure the relative value of the single-core performance of the first model CPU; determine the relative values of the single-core performance of other models of CPU in the resource pool except the first model CPU based on the relative value of the single-core performance of the first model CPU; the relative value of the single-core performance is used to characterize the single-core performance of the corresponding model of CPU; and schedule resources for the network element instance based on the relative values of the single-core performance of different models of CPU.
[0029] The embodiment of the present application further provides a resource scheduling device, comprising: a first processor and a first memory for storing a computer program that can be run on the processor,
[0030] Wherein, the first processor is used to execute the steps of the above method when running the computer program.
[0031] An embodiment of the present application further provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0032] The resource scheduling method, apparatus, device and storage medium provided in the embodiments of the present application configure the specifications and quantity of virtual machines for the server of the first model CPU in the resource pool based on the deployment requirements of the network element instance, and configure the relative value of the single-core performance of the first model CPU; determine the relative values of the single-core performance of other models of CPU in the resource pool except the first model CPU based on the relative value of the single-core performance of the first model CPU; the relative value of the single-core performance is used to characterize the single-core performance of the corresponding model CPU; and schedule resources for the network element instance based on the relative values of the single-core performance of different models of CPU. For CPUs with different single-core performances (models), the embodiments of the present application do not need to divide their corresponding servers into different host groups (HA). When scheduling resources for the network element instance, only the specifications and quantity of virtual machines configured for the server of the first model CPU and the single-core performances (relative values of single-core performances) of different CPUs are considered, which provides the possibility for different virtual machines of the network element to run simultaneously on servers with different single-core performance CPUs, so that resources are utilized to the greatest extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 HA deployment diagram for different CPU server models;
[0034] Figure 2 This is a schematic diagram of the resource scheduling method described in an embodiment of the present application;
[0035] Figure 3 This is a schematic diagram of deploying different types of CPU servers on the same HA according to an embodiment of the present application;
[0036] Figure 4 This is a schematic diagram of the structure of the resource scheduling device described in an embodiment of the present application;
[0037] Figure 5 This is a schematic diagram of the structure of the resource scheduling device described in an embodiment of the present application. DETAILED DESCRIPTION
[0038] The present application is described below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant inventions, rather than to limit the inventions. It should also be noted that, for ease of description, only the parts related to the relevant inventions are shown in the accompanying drawings. It should be noted that, in the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
[0039] When the current virtual layer performs CPU resource scheduling, it only focuses on the number of vCPU cores defined in the virtual machine specifications, and does not distinguish between the single-core performance differences of the physical CPU. In commercial deployment, in order to ensure the certainty and consistency of the network element's business processing capabilities, servers with different single-core performance CPUs in the resource pool can only be divided into different HAs, resulting in all virtual machines of a network element instance can only be deployed in one HA at the same time (most network elements do not support cross-HA deployment), that is, they can only be deployed on servers with the same CPU single-core performance at the same time, resulting in low resource utilization and easy waste of resources. Figure 1 For example, a network element consisting of two virtual machines (VM1 and VM2) needs to be deployed on a resource pool, which consists of HA1 based on CPU type A and HA2 based on CPU type B, where the single-core performance of CPU type B is twice that of CPU type A. During the instantiation process, VM1 is first scheduled and deployed on server 1 of HA1. At this time, only server 1 and server 2 of HA2 have 2 available vCPUs in the resource pool. Assuming that VM2 requires 4 vCPUs for HA1's specifications and 2 vCPUs for HA2's specifications, VM2 can only be deployed in HA1 due to the limitation that the network element does not support cross-HA deployment. However, there is no server in HA1 that can provide 4 vCPUs at this time, and the network element deployment ultimately fails. Although server 2 has 2 vCPUs that meet the resource quantity requirements, they cannot be used by VM2, resulting in idle resources. Moreover, with the increasing number of network element types and CPU models, this solution is not sustainable.
[0040] Based on this, the embodiment of the present application provides a resource scheduling method, which is applied to a virtualization platform, such as Figure 2 As shown, the method includes:
[0041] Step 201: Based on the deployment requirements of the network element instance, the specifications and quantity of the virtual machines are configured for the server of the first type of CPU in the resource pool, and the relative value of the single-core performance of the first type of CPU is configured;
[0042] Step 202: determining the single-core performance relative values of other CPU models in the resource pool except the first CPU model based on the single-core performance relative value of the first CPU model; the single-core performance relative value is used to characterize the single-core performance of the corresponding CPU model;
[0043] Step 203: Scheduling resources for network element instances based on the relative values of single-core performance of CPUs of different models.
[0044] In the embodiment of the present application, the architecture and instruction set of different CPU models in the resource pool are the same, but the single-core performance is different.
[0045] In one embodiment of the present application, taking the example of a CPU including two types of CPUs, a first type CPU and a second type CPU, in the initial stage, there may only be servers based on the first type CPU in the resource pool, and all servers of the first type CPU are formed into a host group HA1, and the CPU model of each server (this information must uniquely identify a specific CPU model and distinguish it from all other models) is written into the database of the Hypervisor node of the virtualization platform through a configuration file or other means. When the resource pool is subsequently expanded, the servers are all second type CPUs, whose architecture and instruction set are the same as those of the first type CPU, but the single-core performance is different. All newly expanded second type CPU servers are incorporated into the existing HA1, that is, the first type CPU and the second type CPU servers are deployed together with HA, and the CPU model of each newly expanded server is written into the database of the Hypervisor node of the virtualization platform through a configuration file or other means.
[0046] In another embodiment of the present application, the CPU still includes two types of CPUs, the first type CPU and the second type CPU, as an example. In the initial stage, the first type CPU and the second type CPU can be deployed in the resource pool, and both types of CPUs are deployed in a host group HA1, that is, the first type CPU and the second type CPU server are deployed in HA. The architecture and instruction set of the second type CPU are the same as those of the first type CPU, and the single-core performance is different from that of the first type CPU; at the same time, the CPU model of each server is written into the database of the Hypervisor node of the virtualization platform through a configuration file or other means.
[0047] In the embodiment of the present application, the relative value of single-core performance based on different types of CPUs is used as a network element instance scheduling resource, including:
[0048] For servers with the first type of CPU, CPU resources are applied for virtual machines based on a 1:1 ratio between virtual machines and CPU logical cores;
[0049] For a server with another type of CPU other than the first type of CPU, applying for CPU resources for the virtual machine based on the ratio of the second single-core performance relative value to the first single-core performance relative value of the ratio of the virtual machine to the CPU logical core; wherein,
[0050] The first single-core performance relative value is the single-core performance relative value of the first model CPU; the second single-core performance relative value includes: the single-core performance relative value of the other model CPU except the first model CPU.
[0051] In one embodiment of the present application, for a server with a first type of CPU, the virtualization platform may apply for CPU resources for the virtual machine at a ratio of 1 vCPU to 1 logical core, that is, apply for N CPU logical cores;
[0052] For servers with the second model CPU (i.e., other models of CPU), CPU resources are applied for the virtual machine according to the ratio of "first single-core performance relative value / second single-core performance relative value" logical cores corresponding to 1vCPU. The first single-core performance relative value can be set to 100, and the second single-core performance relative value is set to x, that is, applying for "(N×100) / X" CPU logical cores (if it cannot be divided evenly, round up), where X is the relative value of the CPU single-core performance calculated based on the benchmark CPU (first model CPU).
[0053] In the embodiment of the present application, when instantiating and expanding the network element, it is only necessary to configure the virtual machine specifications for the benchmark CPU (first model CPU), without having to configure the virtual machine specifications for other models of CPUs separately (the virtualization platform automatically converts according to the single-core performance difference), thereby reducing the complexity of orchestration and the possibility of manual error operations, and improving operation and maintenance efficiency.
[0054] In the embodiment of the present application, the relative value of single-core performance based on different types of CPUs is used as a network element instance scheduling resource, including:
[0055] In the resource scheduling process, all servers with candidate first-model CPUs whose number of available logical cores is less than a first value are filtered out;
[0056] In the resource scheduling process, all servers with candidate second-model CPUs whose available logical cores are less than (first value × first single-core performance relative value) / second single-core performance relative value are filtered out;
[0057] Among them, the first numerical value is the number of virtual machines required for the deployment of the network element instance based on the server performance configuration of the first model CPU; the first single-core performance relative value is the single-core performance relative value of the first model CPU; the second single-core performance relative value includes: the single-core performance relative value of the other model CPU except the first model CPU.
[0058] In one embodiment of the present application, when the virtualization platform schedules resources for a virtual machine, the single-core performance of the CPU can be determined by associating the CPU model in the Hypervisor node database. For servers of the benchmark CPU model (first model CPU), the virtualization platform needs to filter out all candidate Hypervisor nodes with less than N available logical cores; for servers of other CPU models (second model CPU), it needs to filter out all candidate Hypervisor nodes with less than (N×first single-core performance relative value) / second single-core performance relative value, that is, "(N×100) / X".
[0059] In the embodiment of the present application, the configuration of the specifications and quantity of the virtual machines for the server of the first model CPU in the resource pool, and the configuration of the relative value of the single-core performance of the first model CPU, include:
[0060] Evaluate the server performance of the first model CPU based on the deployment requirements of the network element instance to obtain evaluation results;
[0061] Based on the evaluation results, the specifications and number of virtual machines corresponding to the server with the first type of CPU configured for the network element instance;
[0062] The single-core performance relative value of the first model CPU is configured to be a first single-core performance relative value.
[0063] Here, the server performance of the first model CPU in the resource pool can be evaluated, and the specifications (specification 1, where vCPU=N) and quantity of virtual machines (vCPUs) can be configured for the network element based on the evaluation results. The first model CPU can also be set as the benchmark CPU on the virtualization platform through a configuration file or other means, and its relative value of single-core performance (first single-core performance relative value) can be set to 100.
[0064] In the embodiment of the present application, determining the single-core performance relative values of other CPU models in the resource pool except the first CPU model based on the single-core performance relative value of the first CPU model includes:
[0065] Based on the deployment requirements of the network element instance, the server performance of each other type of CPU is evaluated to obtain the evaluation results;
[0066] The single-core performance relative value of each other type of CPU is determined based on the evaluation result and the single-core performance relative value of the first type of CPU.
[0067] Here, the performance of the server with the second CPU model in the resource pool can be evaluated, and the relative value X of the single-core performance of the second CPU model can be calculated in proportion to the evaluation result and the single-core performance of the first CPU model. The relative value of the single-core performance of the second CPU model (the second relative value of the single-core performance) is set to X on the virtualization platform through a configuration file or other means.
[0068] The method for determining the relative value of the single-core performance of a CPU proposed in the embodiment of the present application is applicable to various types of CPUs, and is conducive to promoting the decoupling between upper-layer business software and underlying hardware.
[0069] In one embodiment, the network element can be deployed on the resource pool according to the number of virtual machines required for network element deployment and the virtual machine specifications (specification 1, where vCPU = N) determined based on the server performance of the first model CPU as described above. The virtualization platform will allocate and schedule CPU resources for the virtual machines of the network element according to the virtual machine resource scheduling logic above, and at the same time combine other existing resource scheduling rules to ultimately select Hypervisor nodes that meet the specification requirements, and start the virtual machines on these nodes to complete the instantiation of the network element.
[0070] The present application is described below with reference to an application example. Figure 3 As shown, the CPU includes two types of CPUs, a benchmark CPU and a type B CPU. The benchmark CPU and type B CPU in the resource pool are both deployed to a host group HA1, that is, the benchmark CPU and type B CPU servers are deployed in HA. A network element consisting of two virtual machines (VM1 and VM2) needs to be deployed on the resource pool, where the single-core performance (200) of the type B CPU is twice the single-core performance (100) of the benchmark CPU. VM1 requires 2 vCPUs, and VM2 requires 4 vCPUs. For servers with two CPUs, based on the different ratios of virtual machines to CPU logical cores, it is ultimately determined that 4 logical cores are required. At this time, there are just 2 available logical cores on the benchmark CPU server and 2 available logical cores on the type B CPU server left in the resource pool, and the network element can be deployed.
[0071] It can be seen that the network element instantiation process of the embodiment of the present application is simpler, and servers with different single-core performance CPUs are deployed in HA. Different virtual machines of the network element can run simultaneously on servers with different single-core performance CPUs, which can effectively improve resource utilization, reduce the generation of resource fragmentation, and maximize resource utilization.
[0072] In order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a resource scheduling device, such as Figure 4 As shown, including:
[0073] The first processing unit 401 is used to configure the specifications and quantity of virtual machines for the server of the first model CPU in the resource pool based on the deployment requirements of the network element instance, and configure the relative value of the single-core performance of the first model CPU; determine the relative values of the single-core performance of other models of CPU in the resource pool except the first model CPU based on the relative value of the single-core performance of the first model CPU; the relative value of the single-core performance is used to characterize the single-core performance of the corresponding model of CPU; and schedule resources for the network element instance based on the relative values of the single-core performance of different models of CPU.
[0074] In the embodiment of the present application, the architecture and instruction set of different CPU models in the resource pool are the same, but the single-core performance is different.
[0075] In the embodiment of the present application, the first processing unit 401 schedules resources for the network element instance based on the relative values of the single-core performance of CPUs of different models, including:
[0076] For servers with the first type of CPU, CPU resources are applied for virtual machines based on a 1:1 ratio between virtual machines and CPU logical cores;
[0077] For a server with another type of CPU other than the first type of CPU, applying for CPU resources for the virtual machine based on the ratio of the second single-core performance relative value to the first single-core performance relative value of the ratio of the virtual machine to the CPU logical core; wherein,
[0078] The first single-core performance relative value is the single-core performance relative value of the first model CPU; the second single-core performance relative value includes: the single-core performance relative value of the other model CPU except the first model CPU.
[0079] In the embodiment of the present application, the first processing unit 401 schedules resources for the network element instance based on the relative values of the single-core performance of CPUs of different models, including:
[0080] In the resource scheduling process, all servers with candidate first-model CPUs whose number of available logical cores is less than a first value are filtered out;
[0081] In the resource scheduling process, all servers with candidate second-model CPUs whose available logical cores are less than (first value × first single-core performance relative value) / second single-core performance relative value are filtered out;
[0082] Among them, the first numerical value is the number of virtual machines required for the deployment of the network element instance based on the server performance configuration of the first model CPU; the first single-core performance relative value is the single-core performance relative value of the first model CPU; the second single-core performance relative value includes: the single-core performance relative value of the other model CPU except the first model CPU.
[0083] In the embodiment of the present application, the first processing unit 401 configures the specifications and quantity of virtual machines for the server of the first model CPU in the resource pool, and configures the relative value of the single-core performance of the first model CPU, including:
[0084] Evaluate the server performance of the first model CPU based on the deployment requirements of the network element instance to obtain evaluation results;
[0085] Based on the evaluation results, the specifications and number of virtual machines corresponding to the server with the first type of CPU configured for the network element instance;
[0086] The single-core performance relative value of the first model CPU is configured to be a first single-core performance relative value.
[0087] In the embodiment of the present application, the first processing unit 401 determines the single-core performance relative values of other CPU models in the resource pool except the first CPU model based on the single-core performance relative value of the first CPU model, including:
[0088] Based on the deployment requirements of the network element instance, the server performance of each other type of CPU is evaluated to obtain the evaluation results;
[0089] The single-core performance relative value of each other type of CPU is determined based on the evaluation result and the single-core performance relative value of the first type of CPU.
[0090] In actual application, the first processing unit 401 can be implemented by a processor in a resource scheduling device.
[0091] It should be noted that: when the resource scheduling device provided in the above embodiment is applied, only the division of the above program modules is used as an example. In actual application, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0092] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a resource scheduling device, such as Figure 5 As shown, the resource scheduling device 500 includes:
[0093] The first communication interface 501 is capable of exchanging information with other nodes on the network side;
[0094] A first processor 502, connected to the first communication interface 501, to implement information interaction with other nodes on the network side, and used to execute the method provided by one or more technical solutions on the resource scheduling device side when running a computer program;
[0095] A first memory 503 , in which the computer program is stored.
[0096] Specifically, the first processor 502 is used to configure the specifications and quantity of virtual machines for the server of the first model CPU in the resource pool based on the deployment requirements of the network element instance, and configure the relative value of the single-core performance of the first model CPU; determine the relative values of the single-core performance of other models of CPU in the resource pool except the first model CPU based on the relative value of the single-core performance of the first model CPU; the relative value of the single-core performance is used to characterize the single-core performance of the corresponding model of CPU; and schedule resources for the network element instance based on the relative values of the single-core performance of different models of CPU.
[0097] In the embodiment of the present application, the architecture and instruction set of different CPU models in the resource pool are the same, but the single-core performance is different.
[0098] In the embodiment of the present application, the first processor 502 schedules resources for the network element instance based on the relative values of the single-core performance of CPUs of different models, including:
[0099] For servers with the first type of CPU, CPU resources are applied for virtual machines based on a 1:1 ratio between virtual machines and CPU logical cores;
[0100] For a server with another type of CPU other than the first type of CPU, applying for CPU resources for the virtual machine based on the ratio of the second single-core performance relative value to the first single-core performance relative value of the ratio of the virtual machine to the CPU logical core; wherein,
[0101] The first single-core performance relative value is the single-core performance relative value of the first model CPU; the second single-core performance relative value includes: the single-core performance relative value of the other model CPU except the first model CPU.
[0102] In the embodiment of the present application, the first processor 502 schedules resources for the network element instance based on the relative values of the single-core performance of CPUs of different models, including:
[0103] In the resource scheduling process, all servers with candidate first-model CPUs whose number of available logical cores is less than a first value are filtered out;
[0104] In the resource scheduling process, all servers with candidate second-model CPUs whose available logical cores are less than (first value × first single-core performance relative value) / second single-core performance relative value are filtered out;
[0105] Among them, the first numerical value is the number of virtual machines required for the deployment of the network element instance based on the server performance configuration of the first model CPU; the first single-core performance relative value is the single-core performance relative value of the first model CPU; the second single-core performance relative value includes: the single-core performance relative value of the other model CPU except the first model CPU.
[0106] In the embodiment of the present application, the first processor 502 configures the specifications and quantity of virtual machines for the server of the first model CPU in the resource pool, and configures the relative value of the single-core performance of the first model CPU, including:
[0107] Evaluate the server performance of the first model CPU based on the deployment requirements of the network element instance to obtain evaluation results;
[0108] Based on the evaluation results, the specifications and number of virtual machines corresponding to the server with the first type of CPU configured for the network element instance;
[0109] The single-core performance relative value of the first model CPU is configured to be a first single-core performance relative value.
[0110] In the embodiment of the present application, the first processor 502 determines the single-core performance relative values of other CPU models in the resource pool except the first CPU model based on the single-core performance relative value of the first CPU model, including:
[0111] Based on the deployment requirements of the network element instance, the server performance of each other type of CPU is evaluated to obtain the evaluation results;
[0112] The single-core performance relative value of each other type of CPU is determined based on the evaluation result and the single-core performance relative value of the first type of CPU.
[0113] It should be noted that the specific processing process of the first communication interface 501 and the first processor 502 can be understood by referring to the above method, which will not be repeated here.
[0114] Of course, in actual application, the various components in the resource scheduling device 500 are coupled together through the bus system 504. It can be understood that the bus system 504 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 504 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 5 Various buses are labeled as bus system 504 .
[0115] The first memory 503 in the embodiment of the present application is used to store various types of data to support the operation of the resource scheduling device 500. Examples of such data include: any computer program used to operate on the resource scheduling device 500.
[0116] The method disclosed in the above embodiment of the present application can be applied to the first processor 502, or implemented by the first processor 502. The first processor 502 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the first processor 502. The above-mentioned first processor 502 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The first processor 502 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the first memory 503, and the first processor 502 reads the information in the first memory 503, and completes the steps of the above method in combination with its hardware.
[0117] In an exemplary embodiment, the resource scheduling device 500 can be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.
[0118] In an exemplary embodiment, the embodiment of the present application further provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, for example, including a first memory 503 storing a computer program, and the above-mentioned computer program can be executed by the first processor 502 of the resource scheduling device 500 to complete the steps described in the above-mentioned resource scheduling device side method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.
[0119] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0120] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
[0121] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A resource scheduling method, characterized in that: Applied to a virtualization platform, the method comprises: Based on the deployment requirements of the network element instance, the specifications and quantity of the virtual machines are configured for the server of the first type of CPU in the resource pool, and the relative value of the single-core performance of the first type of CPU is configured; Determine the single-core performance relative values of other CPU models in the resource pool except the first CPU model based on the single-core performance relative value of the first CPU model; the single-core performance relative value is used to characterize the single-core performance of the corresponding CPU model; Scheduling resources for network element instances based on the relative performance of different CPU models.
2. The method according to claim 1, characterized in that The CPUs of different models in the resource pool have the same architecture and instruction set, but different single-core performances.
3. The method according to claim 1, characterized in that The network element instance scheduling resources based on the relative value of the single-core performance of different CPU models include: For servers with the first type of CPU, CPU resources are applied for virtual machines based on a 1:1 ratio between virtual machines and CPU logical cores; For a server with another type of CPU other than the first type of CPU, applying for CPU resources for the virtual machine based on the ratio of the second single-core performance relative value to the first single-core performance relative value of the ratio of the virtual machine to the CPU logical core; wherein, The first single-core performance relative value is the single-core performance relative value of the first model CPU; the second single-core performance relative value includes: the single-core performance relative value of the other model CPU except the first model CPU.
4. The method according to claim 1, characterized in that: The network element instance scheduling resources based on the relative value of the single-core performance of different CPU models include: In the resource scheduling process, all servers with candidate first-model CPUs whose number of available logical cores is less than a first value are filtered out; In the resource scheduling process, all servers with candidate second-model CPUs whose available logical cores are less than (first value × first single-core performance relative value) / second single-core performance relative value are filtered out; Among them, the first numerical value is the number of virtual machines required for the deployment of the network element instance based on the server performance configuration of the first model CPU; the first single-core performance relative value is the single-core performance relative value of the first model CPU; the second single-core performance relative value includes: the single-core performance relative value of the other model CPU except the first model CPU.
5. The method according to claim 1, characterized in that The configuring the specifications and quantity of the virtual machines for the server of the first model CPU in the resource pool, and configuring the relative value of the single-core performance of the first model CPU, includes: Evaluate the server performance of the first model CPU based on the deployment requirements of the network element instance to obtain evaluation results; Based on the evaluation results, the specifications and number of virtual machines corresponding to the server with the first type of CPU configured for the network element instance; The single-core performance relative value of the first model CPU is configured to be a first single-core performance relative value.
6. The method according to claim 1, characterized in that The determining, based on the single-core performance relative value of the first-model CPU, the single-core performance relative values of other CPU models in the resource pool except the first-model CPU, includes: Based on the deployment requirements of the network element instance, the server performance of each other type of CPU is evaluated to obtain the evaluation results; The single-core performance relative value of each other type of CPU is determined based on the evaluation result and the single-core performance relative value of the first type of CPU.
7. A resource scheduling device, characterized in that: Applied to a virtualization platform, the device comprises: The first processing unit is used to configure the specifications and quantity of virtual machines for the server of the first model CPU in the resource pool based on the deployment requirements of the network element instance, and configure the relative value of the single-core performance of the first model CPU; determine the relative values of the single-core performance of other models of CPU in the resource pool except the first model CPU based on the relative value of the single-core performance of the first model CPU; the relative value of the single-core performance is used to characterize the single-core performance of the corresponding model of CPU; and schedule resources for the network element instance based on the relative values of the single-core performance of different models of CPU.
8. A resource scheduling device, characterized in that: include: The first processor is used to configure the specifications and quantity of virtual machines for the server of the first model CPU in the resource pool based on the deployment requirements of the network element instance, and configure the relative value of the single-core performance of the first model CPU; determine the relative values of the single-core performance of other models of CPU in the resource pool except the first model CPU based on the relative value of the single-core performance of the first model CPU; the relative value of the single-core performance is used to characterize the single-core performance of the corresponding model of CPU; and schedule resources for the network element instance based on the relative values of the single-core performance of different models of CPU.
9. A resource scheduling device, characterized in that: include: a first processor and a first memory for storing a computer program executable on the processor, Wherein, when the first processor is used to run the computer program, the steps of the method described in any one of claims 1 to 6 are executed.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
