Application service deployment method and device based on infrastructure resources and storage medium
By acquiring the application functions and performance indicators of infrastructure resources, classifying and abstracting load information, the problem of low utilization of cloud computing resources was solved, the correlation between infrastructure resources and application services was optimized, and resource utilization was improved.
Patent Information
- Application Number
- CN202410433681.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-10
- Publication Date
- 2025-10-17
AI Technical Summary
In existing technologies, cloud computing resources are underutilized because existing technologies fail to effectively consider the functional compatibility between infrastructure resources and application services, resulting in uneven resource allocation and waste of some infrastructure resources.
By acquiring the application functions and performance indicators of infrastructure resources, classifying and abstracting load information, and determining the target infrastructure resources for deployment based on application service requirements, the correlation between infrastructure resources and application services is realized, thereby optimizing resource allocation.
It improves the utilization rate of cloud computing resources, reduces the waste of infrastructure resources, and ensures that application services run stably on appropriate infrastructure resources.
Smart Images

Figure CN120803685A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of cloud computing, and particularly relates to an application service deployment method based on infrastructure resources, a device and a storage medium. BACKGROUND
[0002] With the development of cloud computing technology and the expansion of the scale of cloud resource pools, application service deployment based on cloud resource pools has become an important direction of current development. In order to maximize the use of resources, in the prior art, a method of load balancing of resources in a cloud resource pool is used to realize the deployment of application services and the allocation of resources in the cloud resource pool in combination with the resource requirements of the application services.
[0003] In the prior art, when deploying an application service, the performance parameter information of the physical machines and virtual machines in the cluster is obtained, the load information in the cluster is determined, and a cluster that is resource-rich and suitable for allocation is selected through an allocation algorithm and the configuration requirements of the application service, so as to complete the deployment of the application service.
[0004] In the prior art, when deploying an application service, a cluster that is resource-rich is selected for resource allocation. The measurement of resource load is realized at the cluster level, without considering the relationship between the resource requirements of the application service and the infrastructure resources. In actual application, the allocation based on the load of the cluster may result in a low matching degree between the actual application functions of part of the infrastructure resources and the application functions required by the application service to be deployed, thereby causing waste of part of the infrastructure resources. Therefore, in the prior art, there is a technical problem of low utilization rate of cloud computing resources. SUMMARY
[0005] The present application provides an application service deployment method based on infrastructure resources, a device and a storage medium, to solve the technical problem of low utilization rate of cloud computing resources in the prior art.
[0006] In a first aspect, the present application provides an application service deployment method based on infrastructure resources, comprising:
[0007] For a plurality of cloud resource pools, obtaining the application functions of a plurality of infrastructure resources in each cloud resource pool;
[0008] Classifying the infrastructure resources based on the application functions of the infrastructure resources to obtain at least one resource category to which the infrastructure resources belong, wherein each resource category corresponds to an application function;
[0009] Based on the resource category of each infrastructure resource, determining the respective resource categories of the plurality of infrastructure resources in each cloud resource pool, and obtaining the performance indicators corresponding to each resource category, wherein the performance indicators corresponding to different resource categories are different.
[0010] According to the performance index corresponding to the infrastructure resource, obtain the resource load information corresponding to the infrastructure resource;
[0011] According to the resource load information corresponding to each infrastructure resource, determine the target infrastructure resource meeting the deployment requirement of the application service, and deploy the application service in the target infrastructure resource.
[0012] Optionally, the application function of each infrastructure resource in the cloud resource pool is obtained, including:
[0013] According to the device information of the infrastructure resource, obtain the application function of the infrastructure resource, the device information including at least one of device type, device model and device function; and / or
[0014] According to the component information of the infrastructure resource, obtain the application function to which the infrastructure resource belongs, the component information including the function of the cloud resource component to which the infrastructure resource belongs.
[0015] Optionally, according to the performance index corresponding to the infrastructure resource, obtain the resource load information corresponding to the infrastructure resource, including:
[0016] According to the preset period or real-time, obtain the current running information of the infrastructure resource;
[0017] According to the performance index corresponding to the infrastructure resource, obtain the corresponding performance data from the current running information of the infrastructure resource;
[0018] According to the performance data, obtain the resource load information corresponding to the infrastructure resource.
[0019] Optionally, according to the resource load information corresponding to each infrastructure resource, determine the target infrastructure resource meeting the deployment requirement of the application service, including:
[0020] In response to the deployment request of the application service, obtain the resource requirement information of the application service; the resource requirement information including the category of the resource required by each running service in the application service;
[0021] Based on the resource requirement information of the application service and the resource load information corresponding to each infrastructure resource, determine the target infrastructure resource meeting the deployment requirement of the application service.
[0022] Optionally, based on the resource requirement information of the application service and the resource load information corresponding to each infrastructure resource, determine the target infrastructure resource meeting the deployment requirement of the application service, including:
[0023] Determine the service priority of each running service according to service information corresponding to each of the multiple running services included in the application service, wherein the service information includes at least one of: service running time, service running frequency, service data security level, and service data volume;
[0024] Determine the dependency weight of the target category of infrastructure resources required for each running business based on the business priority of each running business. The higher the business priority, the greater the corresponding dependency weight. Each running business requires at least one category of infrastructure resources.
[0025] Obtain the total dependency weight of infrastructure resources of each target category based on the dependency weight of infrastructure resources of each target category required for running the business;
[0026] Based on the total dependency weight of infrastructure resources in each target category and the resource load information corresponding to each infrastructure resource, the target infrastructure resources that meet the application service deployment requirements are determined.
[0027] Optionally, determining target infrastructure resources that meet the application service deployment requirements based on the total dependency weight of infrastructure resources of each target category and resource load information corresponding to each infrastructure resource includes:
[0028] According to the target category, obtain a candidate cloud resource pool that meets the target category;
[0029] Determine the target cloud resource pool based on the total dependency weight of the infrastructure resources of each target category and the resource load information corresponding to each infrastructure resource in the candidate cloud resource pool;
[0030] In the target resource pool, identify the target infrastructure resources that meet the application service deployment requirements.
[0031] Optionally, determining the target cloud resource pool according to the total dependency weight of the infrastructure resources of each target category and the resource load information corresponding to each infrastructure resource in the candidate cloud resource pool includes:
[0032] According to the total dependency weight of the infrastructure resources of each target category, the target categories with the top N total dependency weights are obtained, where N is an integer.
[0033] For each candidate cloud resource pool, obtain the resource load information of the infrastructure resources corresponding to the top N target categories in the candidate cloud resource pool;
[0034] Obtain the scoring information of the candidate cloud resource pools based on the resource load information of the infrastructure resources corresponding to the top N target categories;
[0035] Obtain the target cloud resource pool based on the scoring information of the candidate cloud resource pools.
[0036] In a second aspect, the present application provides an infrastructure resource-based application service deployment device, comprising:
[0037] a first obtaining module, configured to obtain, for each cloud resource pool, application functions of a plurality of infrastructure resources in the cloud resource pool;
[0038] a first processing module, configured to classify the infrastructure resources based on the application functions of the infrastructure resources, to obtain at least one resource category to which the infrastructure resources belong, wherein each resource category corresponds to an application function;
[0039] a second obtaining module, configured to determine, based on the resource category of each infrastructure resource, a respective resource category of the plurality of infrastructure resources in each cloud resource pool, and obtain a performance index corresponding to each resource category, wherein the performance index corresponding to different resource categories is different;
[0040] a third obtaining module, configured to obtain resource load information corresponding to the infrastructure resources according to the performance index corresponding to the infrastructure resources;
[0041] a second processing module, configured to determine, according to the resource load information corresponding to each infrastructure resource, a target infrastructure resource meeting an application service deployment requirement, and deploy the application service in the target infrastructure resource.
[0042] Optionally, the first obtaining module is further configured to:
[0043] obtain the application functions of the infrastructure resources according to device information of the infrastructure resources, wherein the device information comprises at least one of a device type, a device model, and a device function; and / or
[0044] obtain the application functions to which the infrastructure resources belong according to component information of the infrastructure resources, wherein the component information comprises functions of cloud resource components to which the infrastructure resources belong.
[0045] Optionally, the third obtaining module is further configured to:
[0046] obtain current running information of the infrastructure resources according to a preset period or in real time;
[0047] obtain, according to the performance index corresponding to the infrastructure resources, performance data corresponding to the infrastructure resources from the current running information of the infrastructure resources;
[0048] obtain the resource load information corresponding to the infrastructure resources according to the performance data.
[0049] Optionally, the second processing module is further configured to:
[0050] In response to a deployment request for an application service, obtaining resource requirement information for the application service; the resource requirement information includes a category of resources required for each running business in the application service;
[0051] Based on the resource demand information of the application service and the resource load information corresponding to each infrastructure resource, the target infrastructure resources that meet the application service deployment requirements are determined.
[0052] Optionally, the second processing module is further configured to:
[0053] Determine the service priority of each running service according to service information corresponding to each of the multiple running services included in the application service, wherein the service information includes at least one of: service running time, service running frequency, service data security level, and service data volume;
[0054] Determine the dependency weight of the target category of infrastructure resources required for each running business based on the business priority of each running business. The higher the business priority, the greater the corresponding dependency weight. Each running business requires at least one category of infrastructure resources.
[0055] Obtain the total dependency weight of infrastructure resources of each target category based on the dependency weight of infrastructure resources of each target category required for running the business;
[0056] Based on the total dependency weight of infrastructure resources in each target category and the resource load information corresponding to each infrastructure resource, the target infrastructure resources that meet the application service deployment requirements are determined.
[0057] Optionally, the second processing module is further configured to:
[0058] According to the target category, obtain a candidate cloud resource pool that meets the target category;
[0059] Determine the target cloud resource pool based on the total dependency weight of the infrastructure resources of each target category and the resource load information corresponding to each infrastructure resource in the candidate cloud resource pool;
[0060] In the target resource pool, identify the target infrastructure resources that meet the application service deployment requirements.
[0061] Optionally, the second processing module is further configured to:
[0062] According to the total dependency weight of the infrastructure resources of each target category, the target categories with the top N total dependency weights are obtained, where N is an integer.
[0063] For each candidate cloud resource pool, obtain the resource load information of the infrastructure resources corresponding to the top N target categories in the candidate cloud resource pool;
[0064] According to the resource load information of the infrastructure resource corresponding to the target category of the first N bits, score information of the candidate cloud resource pool is obtained;
[0065] According to the score information of the candidate cloud resource pool, a target cloud resource pool is obtained.
[0066] In a third aspect, the application provides an application service deployment device based on infrastructure resources, comprising:
[0067] a processor and a memory;
[0068] The memory stores computer execution instructions;
[0069] The processor executes the computer execution instructions stored in the memory, so that the application service deployment device based on infrastructure resources executes the application service deployment method based on infrastructure resources in any one of the first aspect.
[0070] In a fourth aspect, the application provides a computer readable storage medium, which stores computer execution instructions. When the computer execution instructions are executed by a processor, the computer execution instructions are used to implement the application service deployment method based on infrastructure resources in any one of the first aspect.
[0071] The application provides an application service deployment method, device and storage medium based on infrastructure resources. According to the application function of the infrastructure resource in each cloud resource pool, the resource category of each infrastructure resource in each cloud resource pool is obtained. According to the resource category of each infrastructure resource, the performance index for measuring the resource load information of the infrastructure resource is obtained. Through the performance index, the resource load information of each infrastructure resource is obtained, and the resource load abstraction processing of the infrastructure resource is realized. According to the resource load information of each infrastructure resource, the target infrastructure resource meeting the application service deployment requirement is determined, so as to deploy the application service in the target infrastructure resource. The application associates the application function of the infrastructure resource with the function actually required by the application service, strengthens the correlation between the infrastructure resource and the application service, deploys and allocates the application service at the infrastructure level, effectively reduces the waste of the infrastructure resource, and thus realizes the technical effect of improving the utilization rate of cloud computing resources. BRIEF DESCRIPTION OF DRAWINGS
[0072] The accompanying drawings incorporated in and forming a part of the specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the application.
[0073] Figure 1 The flow of the application service deployment method based on infrastructure resources provided by the embodiments of the application Figure 1 ;
[0074] Figure 2 The flow of the application service deployment method based on infrastructure resources provided by the embodiment Figure 2 ;
[0075] Figure 3 The flow of the application service deployment method based on infrastructure resources provided by the embodiment Figure 3 ;
[0076] Figure 4 The flow of the application service deployment method based on infrastructure resources provided by the embodiment Figure 4 ;
[0077] Figure 5 The structural schematic diagram of the application service deployment device based on infrastructure resources provided by the embodiment
[0078] Figure 6 The hardware structural diagram of the application service deployment device based on infrastructure resources provided by the embodiment
[0079] The specific embodiments of the present application have been shown in the above-described drawings, and will be described in more detail hereinafter. These drawings and the written description are not intended to restrict the scope of the present application concept in any way, but to illustrate the present application concept to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0080] The exemplary embodiments will be described in detail herein below with reference to the accompanying drawings. In the following description, the same drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of apparatuses and methods consistent with some aspects of the present application as detailed in the appended claims.
[0081] In the prior art, when deploying an application service, the performance parameter information of the physical machines and virtual machines in the cluster is obtained, the load information in the cluster is determined, and the cluster that is resource-rich and suitable for allocation is screened out through an allocation algorithm and the configuration requirements of the application service, so as to complete the deployment of the application service. Since the selection of the resource-rich cluster for resource allocation is to implement the deployment of the application service at the cluster level, the emphasis is on the richness of the cluster resources, and the relevance between the application function of the infrastructure resources and the required application function of the application service is ignored; resulting in a low matching degree between the actual application function of part of the infrastructure resources and the required application function of the application service to be deployed, which causes the unbalanced allocation of the infrastructure resources and the waste of the infrastructure resources; therefore, in the prior art, there is a technical problem of low utilization rate of cloud computing resources.
[0082] The technical solutions of the present application and how the technical solutions of the present application solve the above technical problems will be described in detail below with specific examples. The following specific examples can be combined with each other, and the same or similar concepts or processes can not be described again in some examples. The embodiments of the present application will be described below with reference to the accompanying drawings.
[0083] Figure 1 The flow of the application service deployment method based on infrastructure resources provided by the embodiments of the present application Figure 1 As shown in Figure 1 The application service deployment method based on infrastructure resources provided by the embodiments of the present application comprises:
[0084] S101, for a plurality of cloud resource pools, obtaining the application function of a plurality of infrastructure resources in each cloud resource pool;
[0085] Optionally, one specific implementation of obtaining the application function of a plurality of infrastructure resources in each cloud resource pool is:
[0086] According to the device information of the infrastructure resource, the application function of the infrastructure resource is obtained, and the device information includes at least one of device type, device model and device function; and / or
[0087] According to the component information of the infrastructure resource, the application function to which the infrastructure resource belongs is obtained, and the component information includes the function of the cloud resource component to which the infrastructure resource belongs.
[0088] In this embodiment, the infrastructure resources in the cloud resource pool include but are not limited to: computing resources, storage resources and network resources; wherein the computing resources are used to carry the computing power of the application service; the storage resources are used to carry the storage requirements of the programs and data of the application service; the network resources are used to carry the data transmission and communication requirements of the application service.
[0089] In this embodiment, the cloud resource component includes but is not limited to: a cloud server, which is used to host a virtual computing instance of an application program and data corresponding to the application service; an object storage, which is used to store large-scale unstructured data services; a database service, which is used to provide various types of database management systems; a load balancer, which is used to balance the workload on different servers and ensure uniform distribution of traffic; an automatic scaling service, which is used to increase or decrease computing resources according to different requirements, and ensure the performance and availability of the application program corresponding to the application service; a virtual network, which is used to create a secure and isolated network environment and allow users to manage the corresponding network configuration.
[0090] S102, classifying the infrastructure resources based on the application function of the infrastructure resources, to obtain at least one resource category to which the infrastructure resources belong;
[0091] Optionally, each resource category corresponds to one application function.
[0092] In this embodiment, the infrastructure resources are classified based on the application function of the infrastructure resources, and the application function of the infrastructure resources causes the infrastructure resources to be divided into multiple different resource categories; for example, when the database resources are used for persistent storage, the resource category of the database resources can be determined as a storage category; when the database resources are used for temporary storage, the resource category of the database resources can be determined as a cache category.
[0093] S103, determining the respective resource categories of the multiple infrastructure resources in each cloud resource pool based on the resource category of each infrastructure resource, and obtaining the performance index corresponding to each resource category;
[0094] Optionally, the performance index corresponding to different resource categories is different.
[0095] In this embodiment, in the first example, when the resource category of the infrastructure resources is a network resource category, the performance index can be determined as bandwidth and delay; when the resource category of the infrastructure resources is a computing resource category, the performance index can be determined as memory utilization and CPU utilization; when the resource category of the infrastructure resources is a storage resource category, the performance index can be determined as storage space utilization and disk read-write throughput; when the resource category of the infrastructure resources is a security resource category, the performance index can be determined as the number of security events and security vulnerability repair time.
[0096] S104, obtaining resource load information corresponding to the infrastructure resources according to the performance index corresponding to the infrastructure resources;
[0097] Optionally, one specific implementation manner of obtaining the resource load information corresponding to the infrastructure resources according to the performance index corresponding to the infrastructure resources is as follows:
[0098] acquiring the current running information of the infrastructure resources according to a preset period or in real time;
[0099] acquiring corresponding performance data from the current running information of the infrastructure resources according to the performance index corresponding to the infrastructure resources;
[0100] obtaining the resource load information corresponding to the infrastructure resources according to the performance data.
[0101] S105, determine a target infrastructure resource meeting the deployment requirement of the application service according to the resource load information corresponding to each infrastructure resource, and deploy the application service in the target infrastructure resource.
[0102] Optionally, one specific implementation of determining the target infrastructure resource meeting the deployment requirement of the application service according to the resource load information corresponding to each infrastructure resource comprises:
[0103] In response to the deployment request of the application service, obtain resource requirement information of the application service; the resource requirement information comprises a category of resource required by each running service in the application service;
[0104] Determine a target infrastructure resource meeting the deployment requirement of the application service based on the resource requirement information of the application service and the resource load information corresponding to each infrastructure resource.
[0105] In the embodiment, deploying the application service in the target infrastructure resource comprises, but is not limited to, common virtual machine, container creation and database instance creation; meanwhile, connection and network need to be configured, and the connection and network settings between the target infrastructures are ensured to be configured, so as to facilitate the normal communication and interaction of the application service; after the deployment is completed, the application service can be monitored and tested to ensure that the application service can normally run on the target infrastructure resource and meet the performance and stability requirements; meanwhile, backup and recovery settings of the application service need to be performed, and appropriate backup and recovery strategies are set on the target infrastructure resource to maximize the protection of data and the availability of the application service.
[0106] The application provides an application service deployment method based on infrastructure resources. The infrastructure resources are classified by obtaining the application functions of the infrastructure resources, and the performance indicators of each infrastructure resource are determined according to the resource categories of the infrastructure resources, so as to realize the abstract processing of the load conditions of the infrastructure resources; the resource load information of the infrastructure resources is determined according to the performance indicators of the infrastructure resources, and the resource allocation and distribution at the infrastructure level are realized according to the deployment requirement of the application service and the load information of the infrastructure resources; thereby, the application functions of the infrastructure resources and the functions actually required by the application service are associated, the correlation between the application service and the infrastructure resources is improved, and the load conditions of the infrastructure itself are considered, the resource allocation and deployment of the application service at the infrastructure resource level are realized based on the resource allocation method depending on the weight, so as to solve the problem of low cloud computing resource utilization in the prior art, and realize the technical effect of improving the cloud computing resource utilization.
[0107] Figure 2 Flow of the application service deployment method based on infrastructure resources provided by the embodiment Figure 2In the above Figure 1 As shown in the embodiment of Fig. 1, a specific implementation of the step 105 includes: Figure 2
[0108] S201, determining a service priority of each operation service according to service information corresponding to each operation service included in the application service;
[0109] In the embodiment, the service information includes at least one of service running time, service running frequency, service data security level, and service data volume. The service running time can reflect the continuity and importance of the service, and the service with a long running time can have a higher priority. The service running frequency can identify the repetitiveness and frequency of the service, and the service running frequently needs faster response and processing, and can have a higher priority. The service data security level can reflect the importance and sensitivity of the service data, and the service with a high security level should be preferentially protected and processed, and can have a higher priority. The size of the service data volume can affect the complexity of data processing and transmission, and has a high demand for resources and time, and thus can have a higher priority. In the embodiment, the determination of the service priority of the operation service can be made according to the specific circumstances of the application service to formulate corresponding priority division rules and strategies to determine the priority of the operation service.
[0110] S202, determining a dependency weight of the target category of infrastructure resources required by each operation service according to the service priority of each operation service;
[0111] In the embodiment, the higher the service priority, the greater the corresponding dependency weight, and each operation service requires at least one category of infrastructure resources.
[0112] In the third example, an optional implementation of determining the dependency weight of the infrastructure resources is as follows: first, determining the target category of infrastructure resources required by each operation service; according to the service priority of each operation service, each operation service is assigned to a corresponding priority category, for example, high priority, medium priority, and low priority; according to the high and low of the service priority, each priority category is assigned a corresponding dependency weight; according to the target category of infrastructure resources required by each operation service, the previously determined dependency weight is assigned to the corresponding resource category; meanwhile, the dependency weight of the infrastructure resources required by each operation service can be adjusted and optimized according to the actual situation of the application service.
[0113] S203, obtaining a total dependency weight of each target category of infrastructure resources according to the dependency weight of the target category of infrastructure resources required by each operation service.
[0114] In this embodiment, the dependency weight obtained by the infrastructure resources of each target category includes at least one dependency weight assigned by an operating service, and weighted calculation or average calculation is performed on the at least one dependency weight to obtain the total dependency weight of the infrastructure resources of each target category.
[0115] S204: Determine target infrastructure resources that meet application service deployment requirements based on the total dependency weight of infrastructure resources in each target category and resource load information corresponding to each infrastructure resource.
[0116] In this embodiment, the total dependency weight of each infrastructure resource is matched and analyzed with its resource load information to find the target infrastructure resources that meet the application service deployment requirements. Based on the total dependency weight and resource load information, it is determined which infrastructure resources can meet the application service requirements and maintain stable performance.
[0117] In this embodiment, the business priority of each running business is determined based on the business information of each running business of the application service; and based on the business priority and the target category of the infrastructure resources corresponding to the running business, the total dependency weight of the infrastructure resources of each target category is determined; the total dependency weight of the infrastructure resources required for the high-priority running business is increased; and the infrastructure resources are allocated and distributed based on the total dependency weight combined with the resource load information of the infrastructure resources, to ensure that the resource requirements of the high-priority operating business are met first, to ensure that the important businesses of the application service can run stably, and to be able to effectively utilize the infrastructure resources, thereby ensuring the stability of the application service and improving the utilization rate of the infrastructure resources.
[0118] Figure 3 The process of the application service deployment method based on infrastructure resources provided in the embodiment of this application Figure 3 , Figure 4 The process of the application service deployment method based on infrastructure resources provided in the embodiment of this application Figure 4 In the above Figure 2 Based on the embodiment shown, Figure 3 As shown, a specific implementation method of determining the target infrastructure resources that meet the application service deployment requirements based on the total dependency weight of the infrastructure resources of each target category and the resource load information corresponding to each infrastructure resource in the above step 204 includes:
[0119] S301. According to the target category, obtain a candidate cloud resource pool that meets the target category;
[0120] In this embodiment, the target categories are all resource categories of infrastructure resources required by the operation business of the application service; selecting the candidate cloud resource pool meeting the target categories can reduce the cost of deployment of the application service when the deployment of the application service is performed.
[0121] S302, determining a target cloud resource pool according to the total dependency weight of the infrastructure resource of each target category and the resource load information corresponding to each infrastructure resource in the candidate cloud resource pool.
[0122] Optionally, as shown in the figure, a specific implementation manner of determining the target cloud resource pool according to the total dependency weight of the infrastructure resource of each target category and the resource load information corresponding to each infrastructure resource in the candidate cloud resource pool is as follows: Figure 4
[0123] obtaining target categories with top N positions in the total dependency weight according to the order from high to low of the total dependency weight of the infrastructure resource of each target category, where N is an integer;
[0124] for each candidate cloud resource pool, obtaining resource load information of the infrastructure resource corresponding to the target category with the top N positions in the candidate cloud resource pool;
[0125] obtaining score information of the candidate cloud resource pool according to the resource load information of the infrastructure resource corresponding to the target category with the top N positions;
[0126] obtaining the target cloud resource pool according to the score information of the candidate cloud resource pool.
[0127] In the fourth example, the application service is used to implement real-time image recognition, N is 3, the target categories with top 3 positions in the total dependency weight are obtained, and the target categories are respectively: cache resource, edge computing resource and image processing resource; then the score information of each candidate cloud resource pool can be obtained by performing weighted calculation on the resource load information of the infrastructure resource of each target category in each candidate cloud resource pool according to the total dependency weight of each target category and the corresponding resource load information; the candidate cloud resource pools are sorted based on the score information, and the candidate cloud resource pool with a high ranking in the score is selected as the target cloud resource pool.
[0128] S303, determining target infrastructure resources meeting the deployment requirements of the application service in the target resource pool.
[0129] In this embodiment, the target cloud resource pool contains the infrastructure resource of each target category corresponding to each operation business of the application service; the infrastructure resource of each target category in the target resource pool is taken as the target infrastructure resource, and the application service is deployed in the target infrastructure resource.
[0130] In the embodiment, the target categories of infrastructure resources required by the application service are applied to determine candidate cloud resource pools meeting the target categories, and the top-ranked target categories are obtained according to the total dependency weights of the infrastructure resources of each target category, and each cloud resource pool in the candidate cloud resource pools is scored according to the total dependency weights of the infrastructure resources of the top-ranked target categories and score information is obtained; each cloud resource pool is selected according to the score information, and the target cloud resource pool suitable for the deployment of the application service and the target infrastructure resources in the target cloud resource pool are determined; in the case of ensuring that the application service can be normally deployed, the load condition of the infrastructure resources and the specific needs of the application service are combined to select appropriate infrastructure resources as the deployment resources of the application service; thereby the relevance between the application service and the infrastructure resources is strengthened, and the utilization rate of the cloud computing resources is improved.
[0131] Figure 5 The structure schematic diagram of the application service deployment device based on infrastructure resources provided by the embodiment is provided. The device of the embodiment can be in the form of software and / or hardware. As shown in the figure, the application provides an application service deployment device 500 based on infrastructure resources, the device includes a first acquisition module 501, a first processing module 502, a second acquisition module 503, a third acquisition module 505, and a second processing module 505, Figure 5
[0132] The first acquisition module 501 is configured to acquire the application functions of the plurality of infrastructure resources in each cloud resource pool for the plurality of cloud resource pools;
[0133] The first processing module 502 is configured to classify the infrastructure resources based on the application functions of the infrastructure resources to obtain at least one resource category to which the infrastructure resources belong, wherein each resource category corresponds to an application function;
[0134] The second acquisition module 503 is configured to determine the respective resource categories of the plurality of infrastructure resources in each cloud resource pool based on the resource categories of each infrastructure resource, and acquire the performance indicators corresponding to each resource category, wherein the performance indicators corresponding to different resource categories are different;
[0135] The third acquisition module 504 is configured to obtain the resource load information of the infrastructure resources according to the performance indicators corresponding to the infrastructure resources;
[0136] The second processing module 505 is configured to determine the target infrastructure resources meeting the deployment requirements of the application service according to the resource load information corresponding to each infrastructure resource, and deploy the application service in the target infrastructure resources.
[0137] In a possible implementation, the first obtaining module 501 is further configured to:
[0138] According to the device information of the infrastructure resource, obtain an application function of the infrastructure resource, the device information including at least one of a device type, a device model, and a device function; and / or
[0139] According to the component information of the infrastructure resource, obtain an application function to which the infrastructure resource belongs, the component information including a function of a cloud resource component to which the infrastructure resource belongs.
[0140] In a possible implementation, the third obtaining module 504 is further configured to:
[0141] Obtain current running information of the infrastructure resource according to a preset period or in real time;
[0142] According to the performance index corresponding to the infrastructure resource, obtain corresponding performance data from the current running information of the infrastructure resource;
[0143] According to the performance data, obtain resource load information corresponding to the infrastructure resource.
[0144] In a possible implementation, the second processing module 505 is further configured to:
[0145] In response to a deployment request of an application service, obtain resource requirement information of the application service; the resource requirement information including a category of resource required by each running service in the application service;
[0146] Based on the resource requirement information of the application service and the resource load information corresponding to each infrastructure resource, determine a target infrastructure resource meeting the deployment requirement of the application service.
[0147] In a possible implementation, the second processing module 505 is further configured to:
[0148] According to service information corresponding to each running service included in the application service, determine a service priority of each running service, wherein the service information includes at least one of a service running duration, a service running frequency, a service data security level, and a service data volume;
[0149] According to the service priority of each running service, determine a dependency weight of a target category of infrastructure resource required by each running service, wherein the higher the service priority is, the greater the corresponding dependency weight is, and each running service requires at least one category of infrastructure resource;
[0150] According to the dependency weight of the target category of infrastructure resource required by each running service, obtain a total dependency weight of the infrastructure resource of each target category;
[0151] According to the total dependency weight of the infrastructure resource of each target category and the resource load information corresponding to each infrastructure resource, a target infrastructure resource meeting the application service deployment requirement is determined.
[0152] In a possible implementation, the second processing module 505 is further configured to:
[0153] According to the target category, a candidate cloud resource pool meeting the target category is obtained.
[0154] According to the total dependency weight of the infrastructure resource of each target category and the resource load information corresponding to each infrastructure resource in the candidate cloud resource pool, a target cloud resource pool is determined.
[0155] In the target resource pool, a target infrastructure resource meeting the application service deployment requirement is determined.
[0156] In a possible implementation, the second processing module 505 is further configured to:
[0157] According to the total dependency weight of the infrastructure resource of each target category from high to low, target categories with total dependency weights in the top N positions are obtained, N being an integer.
[0158] For each candidate cloud resource pool, in the candidate cloud resource pool, resource load information of infrastructure resources corresponding to the target categories in the top N positions is obtained.
[0159] According to the resource load information of the infrastructure resources corresponding to the target categories in the top N positions, score information of the candidate cloud resource pool is obtained.
[0160] According to the score information of the candidate cloud resource pool, a target cloud resource pool is obtained.
[0161] The application provides an application service deployment device based on infrastructure resources. The device comprises: a first acquisition module configured to acquire, for a plurality of cloud resource pools, application functions of a plurality of infrastructure resources in each cloud resource pool; a first processing module configured to classify the infrastructure resources based on the application functions of the infrastructure resources to obtain at least one resource category to which the infrastructure resources belong, wherein each resource category corresponds to an application function; a second acquisition module configured to determine, based on the resource category of each infrastructure resource, the respective resource categories of the plurality of infrastructure resources in each cloud resource pool, and acquire performance indexes corresponding to each resource category, wherein the performance indexes corresponding to different resource categories are different; a third acquisition module configured to obtain resource load information corresponding to the infrastructure resources according to the performance indexes corresponding to the infrastructure resources; and a second processing module configured to determine target infrastructure resources meeting application service deployment requirements according to the resource load information corresponding to each infrastructure resource, and deploy the application service in the target infrastructure resources. Compared with the prior art, the application abstracts the load of the infrastructure resources in each cloud resource pool, presents the load conditions of each infrastructure resource in the form of data, classifies the infrastructure resources based on the application functions of the infrastructure resources, associates the application service and the infrastructure resources by using the requirements of the application service for infrastructure resources of different categories, and allocates the resources according to the load of the infrastructure resources, so that the infrastructure resources suitable for the deployment of the application service are selected and the infrastructure resources are efficiently utilized, the technical effect of improving the utilization rate of cloud computing resources is achieved, and the technical problem of low utilization rate of cloud computing resources in the prior art is solved.
[0162] Figure 6 A hardware structure diagram of the application service deployment device based on infrastructure resources is provided. As shown in the figure, the application service deployment device 600 based on infrastructure resources comprises: Figure 6
[0163] a processor 601 and a memory 602;
[0164] The memory stores computer execution instructions;
[0165] The processor executes the computer execution instructions stored in the memory 602, so that the application service deployment device based on infrastructure resources performs the application service deployment method based on infrastructure resources as described above.
[0166] It should be understood that the above-mentioned processor 601 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention can be directly implemented as being executed by a hardware processor, or can be implemented by a combination of hardware and software modules in the processor. The memory 602 may include high-speed random access memory (RAM), and may also include non-volatile memory (NVM), such as at least one disk storage, and can also be a USB flash drive, a mobile hard disk, a read-only memory, a disk or an optical disk, etc.
[0167] The embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, they are used to implement an application service deployment method based on infrastructure resources.
[0168] It should be noted that for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all optional embodiments, and the actions and modules involved are not necessarily required by this application.
[0169] It should be further noted that, although the various steps in the flowchart are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps may be performed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily performed at the same time, but may be performed at different times. The execution order of these sub-steps or stages is not necessarily to be performed in sequence, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0170] It should be understood that the above-described apparatus embodiments are merely illustrative, and the apparatus of the present application can also be implemented in other manners. For example, the division of units / modules in the above-described embodiments is merely a logical function division, and the actual implementation can be in another manner. For example, a plurality of units / modules or components can be combined, or can be integrated into another system, or some features can be omitted or not implemented.
[0171] In addition, unless specifically stated otherwise, each functional unit / module in each embodiment of the present application can be integrated in one unit / module, or can be physically present separately, or two or more units / modules can be integrated together. The integrated unit / module can be implemented in the form of hardware or in the form of a software program module.
[0172] If the integrated unit / module is implemented in the form of hardware, the hardware can be a digital circuit, an analog circuit, etc. The physical implementation of the hardware structure includes but is not limited to transistors, memristors, etc. Unless specifically stated otherwise, the processor can be any suitable hardware processor, such as a CPU, a GPU, an FPGA, a DSP, an ASIC, etc. Unless specifically stated otherwise, the storage unit can be any suitable magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory (RRAM), a dynamic random access memory (DRAM), a static random access memory (SRAM), an enhanced dynamic random access memory (EDRAM), a high-bandwidth memory (HBM), a hybrid memory cube (HMC), etc.
[0173] If the integrated units / modules are implemented in the form of software program modules and sold or used as independent products, they can be stored in a computer readable memory. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a memory and includes a number of instructions for causing a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the embodiments of the method of the present application. The aforementioned memory includes: a U disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store program codes.
[0174] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described, however, as long as the combinations of the technical features do not exist contradictory, they should be considered as the scope of the present application.
[0175] Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. The application is intended to cover any variations, uses or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice in the art to which the application pertains or can relate. The specification and examples are to be regarded as exemplary only, and the true scope and spirit of the application are indicated by the following claims.
[0176] It should be understood that the application is not limited to the precise construction that has been described above and illustrated in the accompanying drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the application is limited only by the claims that follow.
Claims
1. A method for deploying application services based on infrastructure resources, characterized in that: include: For multiple cloud resource pools, obtain the application function of multiple infrastructure resources in each cloud resource pool; Classifying the infrastructure resources based on the application functions of the infrastructure resources to obtain at least one resource category to which the infrastructure resources belong, wherein each resource category corresponds to an application function; Based on the resource category of each of the infrastructure resources, determining the resource category corresponding to each of the multiple infrastructure resources in each of the cloud resource pools, and obtaining a performance indicator corresponding to each resource category, wherein different resource categories correspond to different performance indicators; Obtaining resource load information corresponding to the infrastructure resource according to the performance indicator corresponding to the infrastructure resource; According to the resource load information corresponding to each of the infrastructure resources, a target infrastructure resource that meets the application service deployment requirements is determined, and the application service is deployed in the target infrastructure resource.
2. The method according to claim 1, characterized in that The application function of obtaining multiple infrastructure resources in each cloud resource pool includes: Obtaining application functions of the infrastructure resources according to device information of the infrastructure resources, wherein the device information includes at least one of device type, device model, and device function; and / or According to the component information of the infrastructure resource, the application function to which the infrastructure resource belongs is obtained, wherein the component information includes the function of the cloud resource component to which the infrastructure resource belongs.
3. The method according to claim 2, characterized in that Obtaining resource load information corresponding to the infrastructure resource according to the performance indicator corresponding to the infrastructure resource includes: Obtaining current operating information of the infrastructure resources according to a preset period or in real time; According to the performance indicator corresponding to the infrastructure resource, obtaining corresponding performance data from the current operation information of the infrastructure resource; Resource load information corresponding to the infrastructure resources is obtained based on the performance data.
4. The method according to claim 1, wherein Determining target infrastructure resources that meet application service deployment requirements based on resource load information corresponding to each of the infrastructure resources includes: In response to the deployment request of the application service, obtaining resource requirement information of the application service; the resource requirement information includes a category of resources required for each running business in the application service; Based on the resource demand information of the application service and the resource load information corresponding to each of the infrastructure resources, a target infrastructure resource that meets the application service deployment requirements is determined.
5. The method according to claim 4, characterized in that The determining, based on the resource demand information of the application service and the resource load information corresponding to each of the infrastructure resources, a target infrastructure resource that meets the application service deployment requirements includes: Determining a service priority of each running service according to service information corresponding to each of the multiple running services included in the application service, wherein the service information includes at least one of: service running time, service running frequency, service data security level, and service data volume; Determine, based on the service priority of each running service, the dependency weight of the target category of infrastructure resources required for each running service, wherein the higher the service priority, the greater the corresponding dependency weight, and each of the running services requires at least one category of infrastructure resources; Obtain the total dependency weight of infrastructure resources of each target category based on the dependency weight of infrastructure resources of each target category required for running the business; According to the total dependency weight of the infrastructure resources of each target category and the resource load information corresponding to each infrastructure resource, the target infrastructure resources that meet the application service deployment requirements are determined.
6. The method according to claim 5, characterized in that Determining target infrastructure resources that meet application service deployment requirements based on the total dependency weight of infrastructure resources of each target category and resource load information corresponding to each infrastructure resource includes: According to the target category, obtaining a candidate cloud resource pool that meets the target category; Determine a target cloud resource pool according to the total dependency weight of the infrastructure resources of each target category and the resource load information corresponding to each infrastructure resource in the candidate cloud resource pool; In the target resource pool, target infrastructure resources that meet the application service deployment requirements are determined.
7. The method according to claim 6, characterized in that The determining of the target cloud resource pool according to the total dependency weight of the infrastructure resources of each target category and the resource load information corresponding to each infrastructure resource in the candidate cloud resource pool includes: According to the order of the total dependency weight of the infrastructure resources of each target category from high to low, obtain the target categories with the top N total dependency weights, where N is an integer; For each candidate cloud resource pool, obtaining resource load information of infrastructure resources corresponding to the top N target categories in the candidate cloud resource pool; Obtaining scoring information of the candidate cloud resource pools based on resource load information of the infrastructure resources corresponding to the top N target categories; A target cloud resource pool is obtained based on the scoring information of the candidate cloud resource pools.
8. An application service deployment device based on infrastructure resources, characterized in that: include: A first acquisition module is configured to acquire, for each of the plurality of cloud resource pools, application functions of a plurality of infrastructure resources in the cloud resource pool; a first processing module, configured to classify the infrastructure resources based on the application functions of the infrastructure resources to obtain at least one resource category to which the infrastructure resources belong, wherein each resource category corresponds to an application function; a second acquisition module, configured to determine, based on the resource category of each of the infrastructure resources, the resource category corresponding to each of the plurality of infrastructure resources in the cloud resource pool, and obtain a performance indicator corresponding to each resource category, wherein different resource categories correspond to different performance indicators; A third acquisition module is configured to obtain resource load information corresponding to the infrastructure resource based on the performance indicator corresponding to the infrastructure resource; The second processing module is configured to determine a target infrastructure resource that meets the application service deployment requirements based on the resource load information corresponding to each of the infrastructure resources, and deploy the application service in the target infrastructure resource.
9. An application service deployment device based on infrastructure resources, characterized in that: include: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the application service deployment method based on infrastructure resources according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the application service deployment method based on infrastructure resources according to any one of claims 1 to 7.