Edge cloud resource allocation method and system
By receiving edge cloud resource allocation requests, determining the allocation value based on demand information, and matching the target cloud resource pool from multiple cloud resource pools, the problem of low accuracy in multimodal edge cloud resource allocation is solved and cloud resource utilization is improved.
Patent Information
- Application Number
- CN202211288991.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-20
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2042-10-20
AI Technical Summary
In the prior art, the allocation accuracy of multimodal edge cloud resources is low, and it is not possible to effectively solve the problem of reasonable scheduling of edge cloud resources mixed with multiple modalities, resulting in low cloud resource utilization.
By receiving the edge cloud resource allocation request sent by the target object, the allocation value is determined based on the demand information, and the target cloud resource pool matching the target object is determined from the multi-class cloud resource pool according to the comparison result of the allocation value and the preset threshold.
It achieves matching the optimal cloud resource pool for target objects, improves allocation accuracy, and thus improves the utilization rate of cloud resources.
Smart Images

Figure CN115665251B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of edge cloud technology, and more specifically, to an edge cloud resource allocation method and system. Background Art
[0002] Edge cloud computing is a technical solution that moves cloud computing services from traditional cloud data centers to edge nodes closer to the user side, thereby achieving lower transmission latency and saving network traffic. However, edge clouds are provided in multiple modes, and related technologies only focus on cloud resource allocation in a single mode. The reasonable scheduling of edge cloud resources with a mixture of multiple modes has not been paid attention to. How to reasonably schedule edge cloud resources and thereby improve the utilization of cloud resources is a problem that needs to be solved.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide an edge cloud resource allocation method and system to at least solve the technical problem of low allocation accuracy of multimodal edge cloud resources.
[0005] According to one aspect of an embodiment of the present application, a method for allocating edge cloud resources is provided, including: receiving an edge cloud resource allocation request sent by a target object; determining an allocation value based on demand information contained in the allocation request, wherein the demand information includes the quantity of cloud resources required by the target object; and determining a target cloud resource pool that matches the target object from a plurality of cloud resource pools at least according to a comparison result between the allocation value and a preset threshold.
[0006] Optionally, the allocation value is determined based on demand information contained in the allocation request, where the demand information includes the quantity of cloud resources required by the target object, including: obtaining the quantity of cloud resources required by the target object in the demand information, where the cloud resources include at least: computing power, storage capacity and network bandwidth; determining multiple label values based on the computing power, storage capacity and network bandwidth respectively; and determining the allocation value based on the multiple label values.
[0007] Optionally, multiple label values are determined based on the computing power value, storage capacity and network bandwidth, respectively, including: when the computing power value is greater than a first threshold, determining that the first label value is a valid value, otherwise the first label value is an invalid value; when the storage capacity is greater than a second threshold, determining that the second label value is a valid value, otherwise the second label value is an invalid value; when the network bandwidth is greater than a third threshold, determining that the third label value is a valid value, otherwise the third label value is an invalid value; and determining the sum of the second label value and the third label value as a fourth label value.
[0008] Optionally, a target cloud resource pool matching the target object is determined from multiple types of cloud resource pools at least according to a comparison result between the allocated value and a preset threshold, including: when the allocated value is greater than a first preset threshold, a virtual machine resource pool is determined as the target resource pool from the multiple types of cloud resource pools, wherein the multiple types of cloud resource pools include: a virtual machine resource pool, a content distribution resource pool, a storage resource pool, and a container resource pool; when the allocated value is less than the first preset threshold, the target resource pool is determined according to a comparison result between multiple tag values and the first preset threshold and the second preset threshold, wherein the preset thresholds include the first preset threshold and the second preset threshold.
[0009] Optionally, the target resource pool is determined according to the comparison results of multiple label values with a first preset threshold and a second preset threshold, including: obtaining a second label value and a fourth label value from the multiple label values; determining a comparison result of the second label value with the first preset threshold as a first comparison result; determining a comparison result of the fourth label value with the second preset threshold as a second comparison result; and determining the target resource pool based on the first comparison result and the second comparison result.
[0010] Optionally, determining the target resource pool based on the first comparison result and the second comparison result includes: when the second tag value is greater than the first preset threshold, determining the storage resource pool as the target resource pool; when the fourth tag value is greater than the second preset threshold, determining the content distribution resource pool as the target resource pool; when the second tag value is less than the first preset threshold and the fourth tag value is less than the second preset threshold, determining the container resource pool as the target resource pool.
[0011] Optionally, before obtaining the quantity of cloud resources required by the target object in the demand information, the method also includes: determining whether the demand information contains multiple tag values; if the demand information contains multiple tag values, determining the allocation value according to the multiple tag values contained in the demand information, and determining the target cloud resource pool that matches the target object from multiple types of cloud resource pools at least according to the comparison result of the allocation value and a preset threshold.
[0012] According to another aspect of an embodiment of the present application, an edge cloud resource allocation system is also provided, including: an allocation platform, a terminal device and an edge cloud server; the terminal device is used to send an edge cloud resource allocation request; the allocation platform is used to receive an edge cloud resource allocation request sent by a target object, and determine an allocation value based on the demand information contained in the allocation request, the demand information including the number of cloud resources required by the target object, and determining a target cloud resource pool that matches the target object from multiple types of cloud resource pools at least according to a comparison result between the allocation value and a preset threshold; the edge cloud server is used to run multiple types of cloud resource pools, wherein the multiple types of cloud resource pools include: a virtual machine resource pool, a content distribution resource pool, a storage resource pool and a container resource pool.
[0013] According to another aspect of an embodiment of the present application, a non-volatile storage medium is further provided, the non-volatile storage medium including a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the above-mentioned edge cloud resource allocation method.
[0014] According to another aspect of the embodiments of the present application, an edge cloud server is also provided, including a memory and a processor, the processor being used to run a program, wherein the above-mentioned edge cloud resource allocation method is executed when the program is running.
[0015] In an embodiment of the present application, an edge cloud resource allocation request sent by a target object is received; an allocation value is determined based on demand information contained in the allocation request, wherein the demand information includes the number of cloud resources required by the target object; a target cloud resource pool matching the target object is determined from multiple types of cloud resource pools at least according to a comparison result of the allocation value with a preset threshold. The allocation value is determined by the demand information in the edge cloud resource request sent by the target object, and the target cloud resource pool matching the target object is determined based on the comparison result of the allocation value with the preset threshold, thereby achieving the purpose of matching the target object with the best cloud resource pool, thereby realizing the technical effect of improving the allocation accuracy, and further solving the technical problem of low allocation accuracy of multimodal edge cloud resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0017] Figure 1 It is a hardware structure block diagram of a computer terminal (or mobile device) for an edge cloud resource allocation method according to an embodiment of the present application;
[0018] Figure 2 It is a flowchart of an edge cloud resource allocation method according to the present application;
[0019] Figure 3 It is a schematic diagram of an optional edge cloud resource allocation system structure according to an embodiment of the present application;
[0020] Figure 4 This is a schematic diagram of another optional edge cloud resource allocation system according to an embodiment of the present application. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0023] According to an embodiment of the present application, an embodiment of an edge cloud resource allocation method is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0024] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal, a cloud server or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal (or mobile device) for implementing the edge cloud resource allocation method is shown. Figure 1 As shown, the computer terminal 10 (or mobile device 10) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission module 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0025] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0026] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the edge cloud resource allocation method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the above-mentioned edge cloud resource allocation method is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0027] The transmission module 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission module 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission module 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0028] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).
[0029] According to an embodiment of the present application, an embodiment of an edge cloud resource allocation method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0030] Figure 2 is a flow chart of the edge cloud resource allocation method according to an embodiment of the present application, such as Figure 2 As shown, the method comprises the following steps:
[0031] Step S202, receiving an edge cloud resource allocation request sent by a target object;
[0032] Step S204, determining an allocation value based on demand information included in the allocation request, where the demand information includes the amount of cloud resources required by the target object;
[0033] Step S206: determining a target cloud resource pool matching the target object from the multiple types of cloud resource pools at least according to a comparison result between the assigned value and a preset threshold.
[0034] Through the above steps, it is possible to determine the allocation value through the demand information in the edge cloud resource request sent from the target object, and determine the target cloud resource pool that matches the target object based on the comparison result between the allocation value and the preset threshold, thereby achieving the purpose of matching the best cloud resource pool for the target object, thereby achieving the technical effect of improving the allocation accuracy, and further solving the technical problem of low allocation accuracy of multimodal edge cloud resources.
[0035] It should be noted that the target objects in the above steps are terminal devices that require edge cloud resources, such as computer terminals and server terminals. The various modes of edge cloud include virtual machines, containers, content distribution and storage.
[0036] It is understandable that a virtual machine refers to a complete computer system with complete hardware system functions and running in a completely isolated environment, which is simulated by software. All the work that can be done in a physical computer can be done in a virtual machine; content delivery is to push the specified content in the streaming media resource library of this node to the lower-level nodes according to the content distribution strategy defined by the service operator by realizing the user's nearby access to the website and intelligent analysis of network traffic; cloud storage is an online storage mode, that is, storing data on multiple virtual servers usually hosted by a third party, rather than dedicated servers; cloud container is a container cloud technology in the software industry, which encapsulates the software runtime environment and integrates, delivers and schedules it with containers as the basic unit, and is mainly used for distributed application platforms.
[0037] In step S202, the object receiving the request may be a distribution platform;
[0038] In step S204, the amount of cloud resources can be requested according to needs, such as computing power, storage capacity, etc.
[0039] In step S206, the multiple cloud resource pools include virtual machines, containers, content distribution and storage resource pools, etc., which are used to provide various cloud resources.
[0040] The above steps S202 to S206 are described in detail below through a specific embodiment.
[0041] The method for determining the allocation value is mainly determined through the demand information sent by the target object. Specifically, first obtain the quantity of cloud resources required by the target object in the demand information. The cloud resources include at least: computing power value, storage capacity and network bandwidth; determine multiple label values based on the computing power value, storage capacity and network bandwidth respectively; and then determine the average value of the multiple label values as the allocation value.
[0042] It is understandable that the size of computing power can be measured using a variety of indicators, such as: FLOPS (floating point operations per second), Hash / s (hash operations per second); storage capacity refers to the size of the space required to store data, for example: 1Tb (one terabyte); network bandwidth refers to the amount of data that can be transmitted in a unit of time.
[0043] In an optional manner, the label value can be determined in the following manner, including: when the computing power value is greater than a first threshold, determining that the first label value is a valid value, otherwise the first label value is an invalid value; when the storage capacity is greater than a second threshold, determining that the second label value is a valid value, otherwise the second label value is an invalid value; when the network bandwidth is greater than a third threshold, determining that the third label value is a valid value, otherwise the third label value is an invalid value; and determining the sum of the second label value and the third label value as the fourth label value.
[0044] It should be noted that the first threshold, the second threshold and the third threshold are all preset, for example: 10 FLOPS, 1 Tb and 500 Mbytes.
[0045] In an optional manner, a valid value may be set to 1, and an invalid value may be set to 0. For example, when the first label value is 1, the second label value is 1, and the third label value is 1, the fourth label value is 2.
[0046] It should be further explained that the allocated value can be the average of the sum of the first label value, the second label value and the third label value. Taking the first label value as 1, the second label value as 1 and the third label value as 1 as an example, the allocated value is (1+1+1) / 3, which is equal to 1.
[0047] At least a method of determining a target cloud resource pool matching a target object from multiple types of cloud resource pools according to a comparison result between an allocated value and a preset threshold can be determined by comparing numerical values. In an optional method, when the allocated value is greater than a first preset threshold, a virtual machine resource pool is determined as a target resource pool from multiple types of cloud resource pools, wherein the multiple types of cloud resource pools include: a virtual machine resource pool, a content distribution resource pool, a storage resource pool, and a container resource pool; when the allocated value is less than the first preset threshold, the target resource pool is determined according to a comparison result between multiple tag values and the first preset threshold and the second preset threshold, wherein the preset thresholds include the first preset threshold and the second preset threshold. Taking the first preset threshold as 1 as an example, when the allocated value is greater than 1, the virtual machine resource pool is determined as the target resource pool; when the allocated value is less than 1, the target resource pool is determined according to a comparison result between multiple tag values and the first preset threshold and the second preset threshold.
[0048] It can be understood that the virtual machine resource pool is used to provide virtual machine resources, the content distribution resource pool is used to provide content distribution resources, the storage resource pool is used to provide secondary storage resources, and the container resource pool is used to provide container resources.
[0049] In an optional manner, determining the target resource pool according to the comparison results of multiple label values with a first preset threshold and a second preset threshold can be achieved by the following method: obtaining a second label value and a fourth label value from multiple label values; determining a comparison result of the second label value with the first preset threshold as a first comparison result; determining a comparison result of the fourth label value with the second preset threshold as a second comparison result; and determining the target resource pool based on the first comparison result and the second comparison result.
[0050] Specifically, when the second tag value is greater than the first preset threshold, the storage resource pool is determined as the target resource pool; when the fourth tag value is greater than the second preset threshold, the content distribution resource pool is determined as the target resource pool; when the second tag value is less than the first preset threshold and the fourth tag value is less than the second preset threshold, the container resource pool is determined as the target resource pool.
[0051] Taking the first preset threshold as 1 and the second preset threshold as 2 as an example, when the allocation value is less than 1 and the second tag value is greater than 1, the storage resource pool is determined as the target resource pool; when the allocation value is less than 1 and the fourth tag value is greater than 2, the content distribution resource pool is determined as the target resource pool; when the allocation value is less than 1 and the second tag value is less than 1 and the fourth tag value is less than 2, the container resource pool is determined as the target resource pool.
[0052] In some embodiments of the present application, in order to improve allocation efficiency, before obtaining the number of cloud resources in the demand information, it can be determined whether the demand information contains multiple tag values; when the demand information contains multiple tag values, the allocation value is determined according to the multiple tag values contained in the demand information, and the target cloud resource pool that matches the target object is determined from multiple types of cloud resource pools at least according to the comparison result of the allocation value and the preset threshold.
[0053] The present application also provides an edge cloud resource allocation system. Figure 3 As shown, it includes: an allocation platform 30, a terminal device 32 and an edge cloud server 34; the terminal device 32 is used to send an edge cloud resource allocation request; the allocation platform 30 is used to receive an edge cloud resource allocation request sent by a target object, and determine an allocation value based on the demand information contained in the allocation request, the demand information includes the number of cloud resources required by the target object, and at least determines a target cloud resource pool that matches the target object from multiple types of cloud resource pools according to a comparison result between the allocation value and a preset threshold; the edge cloud server 34 is used to run multiple types of cloud resource pools, wherein the multiple types of cloud resource pools include: a virtual machine resource pool, a content distribution resource pool, a storage resource pool and a container resource pool.
[0054] In actual application scenarios, another edge cloud resource allocation system is also provided, such as Figure 4As shown, it includes a central cloud computing power pool 40, a client application terminal 42, an edge cloud computing power scheduling platform 44, a virtual machine resource pool 45, a content distribution resource pool 46, a storage resource pool 47 and a container resource pool 48.
[0055] like Figure 4 As shown, the specific workflow is as follows: the edge cloud computing power scheduling platform 44 receives the edge cloud deployment demand, determines whether the demand is issued by the central cloud computing power pool 40 or by the client application terminal 42, and directly obtains multiple label values (first label value, second label value, third label value and fourth label value) determined by the central cloud computing power pool 40 when the demand is issued by the central cloud computing power pool 40, and directly obtains multiple label values (first label value, second label value, third label value and fourth label value) determined by the central cloud computing power pool 40 when the demand is issued by the client application terminal 42, and finally determines the allocation value by the edge cloud computing power scheduling platform 44. The target resource pool, when the target resource pool is the virtual machine resource pool 45, the edge cloud computing power scheduling platform 44 controls the virtual machine resource pool 45 to allocate virtual machine resources; when the target resource pool is the content distribution resource pool 46, the edge cloud computing power scheduling platform 44 controls the content distribution resource pool 46 to allocate content distribution resources; when the target resource pool is the storage resource pool 47, the edge cloud computing power scheduling platform 44 controls the storage resource pool 47 to allocate storage resources; when the target resource pool is the container resource pool 48, the edge cloud computing power scheduling platform 44 controls the container resource pool 48 to allocate container resources.
[0056] Taking the first preset threshold as 1 and the second preset threshold as 2 as an example, when the allocation value is less than 1 and the second tag value is greater than 1, the storage resource pool is determined as the target resource pool; when the allocation value is less than 1 and the fourth tag value is greater than 2, the content distribution resource pool is determined as the target resource pool; when the allocation value is less than 1 and the second tag value is less than 1 and the fourth tag value is less than 2, the container resource pool is determined as the target resource pool.
[0057] An embodiment of the present application further provides a non-volatile storage medium, including a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the above-mentioned edge cloud resource allocation method.
[0058] The above-mentioned edge cloud resource allocation method stored in the above-mentioned non-volatile storage medium determines the allocation value by the demand information in the edge cloud resource request sent by the target object, and determines the target cloud resource pool matching the target object based on the comparison result between the allocation value and the preset threshold, thereby achieving the purpose of matching the best cloud resource pool for the target object, thereby achieving the technical effect of improving the allocation accuracy, and further solving the technical problem of low allocation accuracy of multimodal edge cloud resources.
[0059] The embodiment of the present application also provides an edge cloud server, including a memory and a processor, the processor is used to run a program, wherein the edge cloud resource allocation method is executed when the program is running. The specific structure of the edge cloud server can be found in Figure 1 The hardware structure of the computer is shown, but not limited to this.
[0060] The above-mentioned edge cloud server executes the above-mentioned edge cloud resource allocation method, determines the allocation value through the demand information in the edge cloud resource request sent from the target object, and determines the target cloud resource pool that matches the target object based on the comparison result between the allocation value and the preset threshold, thereby achieving the purpose of matching the best cloud resource pool for the target object, thereby achieving the technical effect of improving the allocation accuracy, and further solving the technical problem of low allocation accuracy of multimodal edge cloud resources.
[0061] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0062] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0063] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0064] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0065] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0066] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.
[0067] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for allocating edge cloud resources, characterized in that: include: Receive an edge cloud resource allocation request sent by a target object; determining an allocation value based on demand information included in the allocation request, wherein the demand information includes a quantity of cloud resources required by the target object; At least according to the comparison result of the allocation value and the preset threshold, a target cloud resource pool matching the target object is determined from multiple cloud resource pools; the allocation value is determined based on the demand information contained in the allocation request, the demand information includes the number of cloud resources required by the target object, including: obtaining the number of cloud resources required by the target object in the demand information, the cloud resources at least including: computing power value, storage capacity and network bandwidth; determining multiple label values based on the computing power value, storage capacity and network bandwidth respectively; determining the allocation value based on the multiple label values; at least according to the comparison result of the allocation value and the preset threshold, a target cloud resource pool matching the target object is determined from multiple cloud resource pools, including: when the allocation value is greater than a first preset threshold, determining a virtual machine resource pool from the multiple cloud resource pools as the target resource pool, wherein the Multiple types of cloud resource pools include: virtual machine resource pool, content distribution resource pool, storage resource pool and container resource pool; when the allocation value is less than the first preset threshold, the target resource pool is determined according to the comparison results of the multiple label values with the first preset threshold and the second preset threshold, wherein the preset threshold includes the first preset threshold and the second preset threshold; the target resource pool is determined according to the comparison results of the multiple label values with the first preset threshold and the second preset threshold, including: obtaining the second label value and the fourth label value among the multiple label values; determining the comparison result of the second label value with the first preset threshold as the first comparison result; determining the comparison result of the fourth label value with the second preset threshold as the second comparison result; and determining the target resource pool based on the first comparison result and the second comparison result.
2. The method according to claim 1, characterized in that The determining of multiple label values based on the computing power value, storage capacity and network bandwidth respectively includes: When the computing power value is greater than the first threshold, determining that the first label value is a valid value; otherwise, determining that the first label value is an invalid value; If the storage amount is greater than a second threshold, determining that the second label value is a valid value, otherwise the second label value is an invalid value; When the network bandwidth is greater than a third threshold, determining that the third label value is a valid value, otherwise the third label value is an invalid value; A sum of the second label value and the third label value is determined as a fourth label value.
3. The method according to claim 1, characterized in that The determining the target resource pool based on the first comparison result and the second comparison result includes: When the second tag value is greater than the first preset threshold, determining the storage resource pool as the target resource pool; When the fourth tag value is greater than the second preset threshold, determining the content distribution resource pool as the target resource pool; When the second tag value is smaller than the first preset threshold and the fourth tag value is smaller than the second preset threshold, the container resource pool is determined to be the target resource pool.
4. The method according to claim 1, characterized in that: Before obtaining the amount of cloud resources required by the target object in the demand information, the method further includes: Determining whether the requirement information contains the multiple tag values; In the case where the demand information contains the multiple tag values, the allocation value is determined according to the multiple tag values contained in the demand information, and a target cloud resource pool matching the target object is determined from multiple types of cloud resource pools at least according to a comparison result between the allocation value and a preset threshold.
5. An edge cloud resource allocation system, characterized in that: include: Distribution platform, terminal devices and edge cloud servers; The terminal device is used to send an edge cloud resource allocation request; The allocation platform is used to receive an edge cloud resource allocation request sent by a target object, and determine an allocation value based on demand information contained in the allocation request, wherein the demand information includes the number of cloud resources required by the target object, and determine a target cloud resource pool matching the target object from multiple types of cloud resource pools at least according to a comparison result between the allocation value and a preset threshold; The edge cloud server is used to run multiple types of cloud resource pools, wherein the multiple types of cloud resource pools include: a virtual machine resource pool, a content distribution resource pool, a storage resource pool and a container resource pool; the allocation value is determined based on the demand information contained in the allocation request, and the demand information includes the number of cloud resources required by the target object, including: obtaining the number of cloud resources required by the target object in the demand information, and the cloud resources include at least: computing power value, storage capacity and network bandwidth; determining multiple label values based on the computing power value, storage capacity and network bandwidth respectively; determining the allocation value based on the multiple label values; determining a target cloud resource pool matching the target object from the multiple types of cloud resource pools at least according to the comparison result of the allocation value and a preset threshold, including: when the allocation value is greater than a first preset threshold, determining a virtual machine resource pool as the target resource from the multiple types of cloud resource pools. Pool, wherein the multiple types of cloud resource pools include: virtual machine resource pool, content distribution resource pool, storage resource pool and container resource pool; when the allocation value is less than the first preset threshold, the target resource pool is determined according to the comparison results of the multiple label values with the first preset threshold and the second preset threshold, wherein the preset threshold includes the first preset threshold and the second preset threshold; the target resource pool is determined according to the comparison results of the multiple label values with the first preset threshold and the second preset threshold, including: obtaining the second label value and the fourth label value among the multiple label values; determining the comparison result of the second label value with the first preset threshold as the first comparison result; determining the comparison result of the fourth label value with the second preset threshold as the second comparison result; determining the target resource pool based on the first comparison result and the second comparison result.
6. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, wherein the device where the non-volatile storage medium is located executes the edge cloud resource allocation method described in any one of claims 1 to 4 by running the computer program.
7. An edge cloud server, characterized in that: It includes a memory and a processor, wherein the processor is used to run a program, wherein the program executes the edge cloud resource allocation method described in any one of claims 1 to 4 when running.
Citation Information
Patent Citations
Cloud equipment scheduling method, device and system, electronic equipment and storage medium
CN115086331A