Computing power distribution method, device and equipment
By calculating and allocating the scores of computing power network paths, optimizing the configuration of computing power resources solves the problem of resource waste in the existing technology, and achieves efficient utilization of resources and satisfaction of user needs.
Patent Information
- Application Number
- CN202311873547.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2024-10-22
AI Technical Summary
Existing computing power network technology cannot effectively consider multi-dimensional factors such as computing power, cost, and security, resulting in a waste of resources and a lack of measurement basis and decomposition process for the underlying computing power resources.
By responding to the user's computing power request, the computing power configuration is determined, the path score of the target computing network path is calculated, the path with a score lower than the threshold is selected, and the corresponding computing power resources are allocated to the user, and the resource configuration is dynamically adjusted to optimize resource utilization.
The path configuration of computing power requests is optimized, reducing resource waste, improving resource utilization, and realizing the provision of computing power services closer to user needs.
Smart Images

Figure CN118819804A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computing power network technology, and in particular to a computing power allocation method, device and equipment. Background Art
[0002] The computing network is a new type of information infrastructure that allocates and flexibly schedules computing resources, storage resources, and network resources between the cloud, network, and edge according to business needs. It uses cloud-network fusion technology to deeply integrate edge computing nodes, cloud computing nodes, and various network resources including wide area networks, reducing the complexity of edge computing node management and control, and collaborates with the computing and storage resources of cloud computing nodes and the network resources of wide area networks through centralized control or distributed scheduling methods, providing customers with overall computing services including computing, storage, applications, and connections, and providing flexible and schedulable on-demand services based on business characteristics.
[0003] However, in the related technology, if there are multiple nodes that can provide computing power, it is impossible to consider multi-dimensional factors such as computing power, cost, and security. At the same time, the computing power services provided lack the measurement basis and decomposition process of the underlying computing power resources, resulting in waste of resources. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides a computing power allocation method, device and equipment, which effectively solves the technical problem that it is impossible to consider multi-dimensional factors such as computing power, cost, and security, and at the same time lacks the measurement basis and decomposition process of the underlying computing power resources for the computing power services provided, resulting in waste of resources.
[0005] In a first aspect, an embodiment of the present disclosure provides a computing power allocation method, the method comprising:
[0006] In response to a computing power request initiated by a user, determine a computing power configuration corresponding to the computing power request;
[0007] Determine at least one target computing network path based on the computing power request and computing power configuration;
[0008] Allocate computing resources corresponding to the target computing network path to the user.
[0009] In a possible implementation, in the method provided by an embodiment of the present invention, in response to a computing power request initiated by a user, determining a computing power configuration corresponding to the computing power request includes:
[0010] After the user initiates a computing power request, receive the computing power request;
[0011] Performing a first calculation on the application service corresponding to the computing power request using the pre-set computing resources, and determining the computing power configuration of the application service;
[0012] After adjusting the occupation ratio of the computing resources, a second measurement is performed on the application service, and the computing power configuration of the application service is corrected according to the measurement result of the second measurement;
[0013] A third calculation is performed on the corrected computing power configuration of the application service, and the computing power configuration of the application service is determined based on the result of the third calculation.
[0014] In a possible implementation manner, in the method provided in the embodiment of the present invention, determining at least one target computing network path based on the computing power request and the computing power configuration includes:
[0015] Determine, based on the computing power request, at least one cloud resource pool to which the user has authority, and at least one computing network path for the user to use the at least one cloud resource pool;
[0016] The computing power configuration is used to calculate the path score of each computing network path, and at least one computing network path with a path score lower than the score threshold is determined as the target computing network path.
[0017] In a possible implementation, in the method provided by an embodiment of the present invention, determining at least one cloud resource pool to which a user has authority and at least one computing network path for the user to use the at least one cloud resource pool based on a computing power request includes:
[0018] Determine at least one cloud resource pool to which the user has authority based on the computing power request;
[0019] Perceiving indicator information of each cloud resource pool, and dividing at least one cloud resource pool into a first cloud resource pool and a second cloud resource pool based on the indicator information, wherein the resource type in the first cloud resource pool matches the application service, and the resource type in the second cloud resource pool does not match the application service;
[0020] Based on the first cloud resource pool and the second cloud resource pool, at least one computing network path for the user to use the first cloud resource pool is determined.
[0021] In a possible implementation, in the method provided by the embodiment of the present invention, the path score of each computing network path is calculated by using the computing power configuration, and at least one computing network path with a path score lower than a score threshold is determined as a target computing network path, including:
[0022] Use computing power configuration to decompose application services into multiple sub-services;
[0023] Calculate the path score of each computing network path using the first cloud resource pool according to the indicator information of each cloud resource pool;
[0024] A plurality of computing network paths with path scores lower than a score threshold are selected as target computing network paths, wherein the number of target computing network paths is not less than the number of sub-services.
[0025] In a possible implementation, in the method provided in the embodiment of the present invention, allocating computing resources corresponding to the target computing network path to the user includes:
[0026] Open the target computing network path;
[0027] Allocate corresponding computing resources to the target computing network path.
[0028] In a possible implementation manner, in the method provided in the embodiment of the present invention, after allocating computing resources corresponding to the target computing network path to the user, the method further includes:
[0029] Adjust the computing resources corresponding to the target computing network path according to the resource usage of the application service.
[0030] In a possible implementation, in the method provided by the embodiment of the present invention, the method further includes:
[0031] Generate a pre-resource package based on the application service, and store the pre-resource package in the cloud server;
[0032] When adjusting the computing resources corresponding to the target computing network path, deploy pre-resource packages for the newly added resource nodes.
[0033] In a second aspect, an embodiment of the present disclosure provides a computing power allocation device, the device comprising:
[0034] A determination unit, configured to determine a computing power configuration corresponding to the computing power request in response to the computing power request initiated by the user;
[0035] A processing unit, configured to determine at least one target computing network path based on the computing power request and the computing power configuration;
[0036] The allocation unit is used to allocate computing resources corresponding to the target computing network path to the user.
[0037] In a possible implementation manner, in the device provided by the embodiment of the present invention, the determining unit is specifically configured to:
[0038] After the user initiates a computing power request, receive the computing power request;
[0039] Performing a first calculation on the application service corresponding to the computing power request using the pre-set computing resources, and determining the computing power configuration of the application service;
[0040] After adjusting the occupation ratio of the computing resources, a second measurement is performed on the application service, and the computing power configuration of the application service is corrected according to the measurement result of the second measurement;
[0041] A third calculation is performed on the corrected computing power configuration of the application service, and the computing power configuration of the application service is determined based on the result of the third calculation.
[0042] In a possible implementation manner, in the device provided by the embodiment of the present invention, the processing unit is specifically used for:
[0043] Determine, based on the computing power request, at least one cloud resource pool to which the user has authority, and at least one computing network path for the user to use the at least one cloud resource pool;
[0044] The computing power configuration is used to calculate the path score of each computing network path, and at least one computing network path with a path score lower than the score threshold is determined as the target computing network path.
[0045] In a possible implementation manner, in the device provided by the embodiment of the present invention, the processing unit is specifically used for:
[0046] Determine at least one cloud resource pool to which the user has authority based on the computing power request;
[0047] Perceiving indicator information of each cloud resource pool, and dividing at least one cloud resource pool into a first cloud resource pool and a second cloud resource pool based on the indicator information, wherein the resource type in the first cloud resource pool matches the application service, and the resource type in the second cloud resource pool does not match the application service;
[0048] Based on the first cloud resource pool and the second cloud resource pool, at least one computing network path for the user to use the first cloud resource pool is determined.
[0049] In a possible implementation manner, in the device provided by the embodiment of the present invention, the processing unit is specifically used for:
[0050] Use computing power configuration to decompose application services into multiple sub-services;
[0051] Calculate the path score of each computing network path using the first cloud resource pool according to the indicator information of each cloud resource pool;
[0052] A plurality of computing network paths with path scores lower than a score threshold are selected as target computing network paths, wherein the number of target computing network paths is not less than the number of sub-services.
[0053] In a possible implementation manner, in the device provided by the embodiment of the present invention, the allocation unit is specifically used for:
[0054] Open the target computing network path;
[0055] Allocate corresponding computing resources to the target computing network path.
[0056] In a possible implementation manner, in the device provided by the embodiment of the present invention, the allocation unit is further configured to:
[0057] Adjust the computing resources corresponding to the target computing network path according to the resource usage of the application service.
[0058] In a possible implementation manner, in the device provided by the embodiment of the present invention, the allocation unit is further configured to:
[0059] Generate a pre-resource package based on the application service, and store the pre-resource package in the cloud server;
[0060] When adjusting the computing resources corresponding to the target computing network path, deploy pre-resource packages for the newly added resource nodes.
[0061] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
[0062] Memory;
[0063] Processor; and
[0064] Computer programs;
[0065] The computer program is stored in the memory and is configured to be executed by the processor to implement the computing power allocation method as described above.
[0066] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the computing power allocation method as described above when the computer program is executed by a processor.
[0067] The present disclosure provides a computing power allocation method, including:
[0068] First, in response to the computing power request initiated by the user, the computing power configuration corresponding to the computing power request is determined, then at least one target computing network path is determined based on the computing power request and the computing power configuration, and finally the computing power resources corresponding to the target computing network path are allocated to the user. The method provided by the present disclosure optimizes the computing network path configuration of the computing power request by calculating the computing power configuration corresponding to the computing power request and determining the target computing network path based on the computing power configuration, so that the computing network path is closer to the user's needs and saves computing power resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0070] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0071] Figure 1 A flowchart of a computing power allocation method provided in an embodiment of the present disclosure;
[0072] Figure 2 A schematic diagram of a specific process of a computing power allocation method provided in an embodiment of the present disclosure;
[0073] Figure 3 A schematic diagram of the structure of a computing power allocation device provided in an embodiment of the present disclosure;
[0074] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0075] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0076] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0077] The computing network is a new type of information infrastructure that allocates and flexibly schedules computing resources, storage resources, and network resources between the cloud, network, and edge according to business needs. It uses cloud-network fusion technology to deeply integrate edge computing nodes, cloud computing nodes, and various network resources including wide area networks, reducing the complexity of edge computing node management and control, and collaborates with the computing and storage resources of cloud computing nodes and the network resources of wide area networks through centralized control or distributed scheduling methods, providing customers with overall computing services including computing, storage, applications, and connections, and providing flexible and schedulable on-demand services based on business characteristics.
[0078] However, in the related technology, if there are multiple nodes that can provide computing power, it is impossible to consider multi-dimensional factors such as computing power, cost, and security. At the same time, the computing power services provided lack the measurement basis and decomposition process of the underlying computing power resources, resulting in waste of resources.
[0079] Figure 1 A flowchart of a computing power allocation method provided in an embodiment of the present disclosure specifically includes the following steps: Figure 1 The following steps S101 to S103 are shown:
[0080] S101. In response to a computing power request initiated by a user, determine a computing power configuration corresponding to the computing power request.
[0081] In the specific implementation, first, after the user initiates the computing power request, the computing power request is received, and then the application service corresponding to the computing power request is first calculated using the pre-set computing resources, and the computing power configuration of the application service is determined.
[0082] In this step, after using the pre-set computing resources to calculate the application service corresponding to the computing power request and determining the computing power configuration of the application service, you can also adjust the occupancy ratio of the computing resources and perform a second calculation on the application service, and correct the computing power configuration of the application service based on the calculation results of the second calculation.
[0083] S102. Determine at least one target computing network path based on the computing power request and computing power configuration.
[0084] In specific implementation, at least one cloud resource pool to which the user has authority is first determined based on the computing power request, and at least one computing network path for the user to use the at least one cloud resource pool. Specifically, when determining the computing network path, at least one cloud resource pool to which the user has authority can also be determined based on the computing power request, and then the indicator information of each cloud resource pool is sensed, and at least one cloud resource pool is divided into a first cloud resource pool and a second cloud resource pool based on the indicator information, and finally, based on the first cloud resource pool and the second cloud resource pool, at least one computing network path for the user to use the first cloud resource pool is determined. The resource type in the first cloud resource pool matches the application service, that is, the first cloud resource pool is provided with settings corresponding to the application service, and the resource type in the second cloud resource pool does not match the application service, that is, the second cloud resource pool is not provided with settings corresponding to the application service.
[0085] Then, the computing power configuration is used to calculate the path score of each computing network path, and at least one computing network path with a path score lower than the scoring threshold is determined as the target computing network path. Specifically, the computing power configuration is first used to decompose the application service into multiple sub-services, and then the path score of each computing network path using the first cloud resource pool is calculated based on the indicator information of each cloud resource pool, and finally multiple computing network paths with path scores lower than the scoring threshold are selected as target computing network paths, where the number of target computing network paths is not less than the number of sub-services.
[0086] S103. Allocate computing resources corresponding to the target computing network path to the user.
[0087] In the specific implementation, the target computing network path is first opened, and then the corresponding computing power resources are allocated to the target computing network path.
[0088] In this step, a pre-resource package can also be generated based on the application service and stored in the cloud server. In this way, when the computing power resources corresponding to the target computing network path are adjusted, the pre-resource package can be deployed for the newly added resource nodes.
[0089] Figure 2 A specific flow chart of a computing power allocation method provided in an embodiment of the present disclosure specifically includes the following steps: Figure 2 The following steps S201 to S205 are shown:
[0090] S201. After the user initiates a computing power request, receive the computing power request.
[0091] In specific implementation, after the user applies for computing power service, a computing power request is automatically generated and the server receives the computing power request.
[0092] In one example, a public unit needs to apply for a computing service for QR code recognition. The key indicators are that the overall latency of the computing service is less than 100ms and the peak concurrency is 10,000 QPS. After receiving the computing request, the demand is automatically analyzed and transferred.
[0093] S202: Perform a first calculation on the application service corresponding to the computing power request using pre-set computing resources, and determine the computing power configuration of the application service.
[0094] In the specific implementation, the computing power request is calculated using the pre-set computing resources to obtain the computing power configuration of the application service. Specifically, it is the process of converting a standard computing power service into the required hardware resources. The optimal resource configuration required for a single computing power service instance is found through measurement, and the current service and resource mismatch situation is optimized. For example, high configuration causes low idle resource utilization, and low configuration causes computing power service performance degradation, etc., providing a basis for subsequent computing power deconstruction.
[0095] Continuing with the above example, in the existing computing service capability catalog, the computing service for QR code recognition is searched. According to the computing category to which the QR code recognition service belongs, it is identified that the computing service belongs to the near-view computing category. According to the configuration definition, the impact delay of the computing service of this category itself is less than 50ms. In addition, according to the parameters filled in when the computing service is launched, an instance can support a maximum of 1000QPS requests, and request parameters for stress testing are prepared. This parameter is a mandatory parameter for the launch of computing applications, but there is no configuration requirement for related computing resources. After obtaining the relevant basic configuration, the computing service measurement module starts the automated measurement task. The measurement task is divided into three stages, including initial measurement, measurement correction, and measurement confirmation.
[0096] The initial measurement is the first calculation. By default, a computing resource with 8c and 16g of memory is pulled up, and the computing power is applied to the default resources for deployment. After monitoring the successful deployment, 20% of the design capacity of a single instance is used as the initial value for stress testing. Each stress test lasts for 2 minutes, and the average response delay, maximum response delay, average CPU utilization, and average memory utilization are recorded. The design capacity is increased by 20% each time until the maximum design capacity is reached. After completing the initial measurement, the measurement correction is performed according to the recorded key indicators. Taking CPU utilization as an example, in the initial measurement results, the average CPU utilization for each 20% increase in QPS is 5%, 10%, 15%, 20%, and 25%, respectively, and other key indicators all meet the application requirements. If some key indicators do not meet the application requirements, the maximum stress test QPS record that meets the requirements is taken, and the reasonable health is calculated based on the CPU utilization between 50% and 70%. 1000QPS is converted to the minimum number of cores required (min) = ROUNDUP (design capacity / (design capacity / number of cores / utilization*reasonable utilization (max))) = ROUNDUP (1000(1000 / 8 / 0.25) / 0.7) = 2, that is, the final result of the number of CPU cores is If the result is 2, the memory calculation method is similar. After the initial measurement, a new computing power configuration is obtained. The measurement is corrected according to the new computing power configuration, that is, the second measurement. This measurement repeats the steps of the initial measurement. In terms of the increase in design capacity, the step size is increased from 5 to 10, that is, the design capacity is increased by 10% each time. After correction, if the final key indicators meet the design indicators of the computing power application, the corrected computing power configuration is directly adopted. If the key indicators do not meet the computing power application design, the third measurement is performed according to the corrected configuration. If the final measurement results in the measurement confirmation stage meet the key indicators of the computing power application, the computing power configuration is confirmed as the final configuration. If some of the final indicators cannot meet the key indicators of the computing power application, the maximum stress test capacity that meets all indicators is taken, and the maximum capacity of a single instance of the computing power service is finally modified. In this application, the scanning QR code service undergoes the above measurement process and finally obtains a basic computing power resource unit (4c, 8g memory) that supports 1000QPS and 50ms application latency.
[0097] S203. Determine, based on the computing power request, at least one cloud resource pool to which the user has authority, and at least one computing network path for the user to use the at least one cloud resource pool.
[0098] In the specific implementation, first, based on the computing power request, at least one cloud resource pool to which the user has authority is determined, then the indicator information of each cloud resource pool is perceived, and based on the indicator information, at least one cloud resource pool is divided into a first cloud resource pool and a second cloud resource pool, wherein the resource type in the first cloud resource pool matches the application service, and the resource type in the second cloud resource pool does not match the application service.
[0099] In this step, in addition to computing power service perception of the cloud resource pool, computing power perception and network perception can also be performed. Specifically, computing power perception mainly perceives the type of computing power, the overall resource scale and related utilization rate; network perception mainly perceives key network indicators such as network traffic, flow rate, bandwidth, packet loss, latency, jitter, etc.; computing power service perception mainly perceives service indicators such as QPS and response latency of each computing power service.
[0100] Computing power perception and network perception collect and analyze data based on the northbound interface of the network controller and the cloud management platform. Computing power service perception obtains the perception data of computing power services by dynamically deploying dial-up services on computing power resources and provides a northbound interface. The computing network management system obtains data through the northbound interface.
[0101] Continuing with the above example, we can find through application awareness that in different cloud resource pools of the existing computing network, different developers have provided QR code scanning computing services of different specifications but the same capabilities. A total of 8 services are deployed in the cloud resource pool AH.
[0102] Afterwards, based on the first cloud resource pool and the second cloud resource pool, at least one computing network path for the user to use the first cloud resource pool is determined. The computing network path is to construct a full path from all access points to reachable computing power nodes. The complete end-to-end path includes a network path and two application service side paths. The two ends of the network path are the computing power access point and the resource pool gateway respectively. The two ends of the application service path are the resource pool gateway and the computing power node, such as a virtual machine or mirror. On the basis of building the path, a basic scoring work is performed on each path. The path scoring is performed according to the derivative measurement method. The traditional measurement method mainly uses the empirical weight method or the model method. The former is greatly affected by subjective feelings, and the latter requires a large amount of historical data for model training, and the cycle is relatively long. The derivative measurement method of this application is a derivative method based on existing network paths and schedulable computing power services, that is, there are 20 resource pools, of which 8 resource pools are deployed with computing power services with the same capabilities but different specifications. There are an average of 2 reachable paths from the access point to the 8 computing power providing nodes. , that is, there are 16 existing paths. The derivative measurement method is based on the schedulability of computing power services, that is, the remaining 12 resource pools can also deploy these 8 computing power services of different specifications. On this basis, the average number of reachable paths per resource pool is 2, and 192 paths can be derived. On this basis, a path threshold is set. When the threshold is reached, the derivative calculation is stopped. In the path pool of all existing paths and derived paths, the fluctuation range of the indicator is obtained by calculating the standard deviation of each indicator. The greater the fluctuation, the higher the weight of the indicator (that is, the greater the fluctuation, the greater the impact on the application). The importance of the indicator is sorted according to the standard deviation of the indicator, and then the indicator coefficient X can be obtained according to the indicator weight. The specific value Y of all indicators is multiplied by the indicator coefficient X to obtain a plan score Z. Finally, it is sorted according to the score of Z, and the plan with the lowest score is taken and recommended. Generally speaking, the lower the score, the better the path.
[0103] Still using the above example, there are 8 services deployed in the cloud resource pool AH. Assume that a total of 100 computing network paths are derived. The indicators involved in the calculation include latency, packet loss, jitter, CPU utilization, storage utilization, http request latency, and http request success rate. A total of 7 indicators are involved in the weight calculation. The indicators from large to small are latency, CPU utilization, storage utilization, http request latency, http request success rate, packet loss, and jitter. The importance of the indicators is sorted in this order. On this basis, the basic scores of the 100 computing network paths are calculated.
[0104] S204: Calculate the path score of each computing network path using the computing power configuration, and determine at least one computing network path whose path score is lower than the score threshold as the target computing network path.
[0105] During the specific implementation, we first use computing power configuration to decompose the application service into multiple sub-services, that is, to perform computing power deconstruction. Specifically, computing power deconstruction is to divide the diversified, large-grained, and complex computing power requirements into small particles based on business logic, resource requirements, performance requirements, service continuity, business flow stickiness, resource node uniformity and other factors. The simplified computing power requirements enable the business to be distributed and deployed on multi-level computing power nodes on the cloud edge to overcome the bottleneck of limited resource capacity of a single device, realize flexible deployment of business, and efficient use of resources.
[0106] Still using the above example, in the QR code scanning service, the application delay is required to be less than 100ms, and the peak concurrency is 10,000 QPS. Based on the computing power measurement, the maximum support of a single computing power service is 1000QPS. During the computing power deconstruction process, the demand is broken down into the need to deploy 10 sets of QR code scanning services to meet the computing power requirements.
[0107] Then, the path score of each computing network path using the first cloud resource pool is calculated based on the indicator information of each cloud resource pool, and multiple computing network paths with path scores lower than the score threshold are selected as target computing network paths, where the number of target computing network paths is not less than the number of sub-services.
[0108] Specifically, after computing power decomposition, business needs have been transformed into resource needs. The next step is path recommendation, which seeks appropriate resources to allocate to users. When calculating the network path, the paths from all access points to the surrounding computing power resources have been scored. When recommending paths, appropriate resources can be recommended to users based on the basic scores. In the embodiment of the present disclosure, there are two other ways to recommend paths:
[0109] Label-based path recommendation, that is, adding labels to some characteristic paths. The added labels are automatically associated with the characteristics of the computing power network and other application technology characteristics deployed on the same path. For example, the overall end-to-end delay of path A is less than 50ms, which meets the near-term computing characteristics of the computing power network, and is automatically marked with the label "applicable to near-term computing". In addition to the QR code scanning service mentioned in this application, other QR code recognition services with different capabilities are deployed on this path. If they run well, auxiliary labels such as "service runs well" are automatically marked. For each additional label, the path will be deducted from the original basic score, and the revised score will directly affect the recommendation order of the path. Path recommendation based on algorithm model, that is, scoring and recommending paths through AI algorithm. The main AI algorithm used in this application is xgboost. The difference between this application and the traditional AI model application scenario lies in the selection of positive and negative samples in the training set. The traditional recommendation model selects positive examples based on clicks or transactions. The optimization of this application lies in the selection of positive and negative samples according to the final recommended path and the SLA indicators after a period of time (generally one week) after resource allocation. That is, in the process of model recommendation, the scheme that has been exposed but not selected by the user is recorded as a negative example. The recommended scheme that has been exposed and selected by the user but does not meet the SLA requirements after being put into use is also recorded as a negative example. Only the recommendation that is selected by the user and meets the SLA is recorded as a positive example. After scoring by the model, the higher the score, the higher the recommendation degree.
[0110] Still using the above example, in the QR code scanning service, the paths are recommended according to the basic scores, and the top 10 computing network paths are automatically selected as computing power provision points.
[0111] S205. Allocate computing resources corresponding to the target computing network path to the user.
[0112] In the specific implementation, after confirming the resource path, the integrated orchestration operation begins. The integrated orchestration mainly performs service activation operations by configuring and issuing or calling northbound interfaces such as network controllers and cloud management platforms. Integrated orchestration can be divided into three categories: orchestration design, orchestration execution, and orchestration capabilities. The orchestration design mainly sets different service activation flowcharts for different product types, service types, and connection types. When the user selects a certain type of service, the subsequent service activation process is fixed. Therefore, the orchestration design includes the blueprint design and blueprint package management functions for the design process. The orchestration execution is to parse and execute operations according to the process of the blueprint design. During the execution process, the underlying orchestration capabilities will be called. Each orchestration capability is one or a group of instructions. The combination of capabilities is the basic capability of computing network orchestration.
[0113] Still using the above example, in the QR code scanning service, the 10 computing network paths selected in the above links are automatically opened and orchestrated according to the established process to implement relevant resource allocation and policy opening.
[0114] After that, the target computing network path will be opened and the corresponding computing power resources will be allocated to the target computing network path. Specifically, the existing cloud network scheduling uses resource scheduling as the main mode. A few applications can be deployed on a single virtual machine by packaging them into images. There is a lack of collaborative scheduling capabilities for multiple resource pools to jointly provide services. The computing power service scheduling in this application mainly realizes the dynamic deployment of application services when resources and networks have been allocated, and provides traffic scheduling capabilities across multiple resource pools, forming a collaborative capability for multiple resource pools to provide unified services. The main implementation process includes front-end service proxy and service dynamic deployment. The front-end service proxy is a reverse proxy that provides multiple services. In the computing power service release configuration, the service access path configures the front-end proxy path, and then configures the front-end proxy to point to one or more computing power service addresses. The reverse proxy distributes the traffic to the specified computing power service resources. The dynamic deployment of services is after the underlying resource allocation is completed, by packaging the computing power service application and the operating system in a mirror package and registering it in automatic start mode. After the operating system is installed and initialized, the computing power service application automatically starts and provides services.
[0115] When resources are expanded or single-point resources are abnormal, the number of nodes that need to be expanded and the number of abnormal resources are first perceived. Expansion perception is mainly based on measurement rules, that is, the current (actual QPS-ordered QPS) / design capacity QPS, rounded up to get the number of nodes that need to be expanded. In resource abnormality scenarios, the number of supplementary nodes is generally supplemented with the number of abnormal nodes in a 1:1 ratio. The secondary scheduling rule is triggered multiple times in a row when expansion perception or abnormal perception threshold is exceeded. The number of consecutive times is configured according to different businesses, generally set to three consecutive indicator cycles. After the secondary scheduling rule is triggered, if the existing resource pool resources are full or about to be full, virtual machine resources can be allocated in other resource pools. After the resource allocation is completed, the computing service is dynamically deployed. After the service deployment is completed, the reverse proxy configuration is modified through the script, the computing service address of the new resource pool is added, the abnormal node address is removed, and other operations are performed to achieve the goals of multi-resource pool joint service, dynamic expansion, seamless switching and business self-healing.
[0116] Still using the above example, in the QR code scanning service, on the basis of completing resource allocation, the application is finally scheduled to the allocated resources through application scheduling, and the load balancing capability of the QR code scanning service is realized through the front-end service code.
[0117] By applying the method provided in the embodiment of the present disclosure, a series of measurement, decomposition, measurement, and scheduling methods for computing power services are implemented, and computing power services can be dynamically deployed. Under the condition of providing the same hardware resources, by distributing computing power services on different cloud resource pool nodes, the average access delay of computing power services can be shortened by 34%. At the same time, the mapping of computing power service model to resource service model is realized, and any computing power service based on http can be successfully converted into a model of underlying hardware resources, providing a basis and basic model for the dynamic deployment of computing power services. Under the condition of business requests of the same scale, compared with offline work order application resources, the average resource usage is reduced by 30%, and the utilization rate of existing resources can be increased by 25%.
[0118] Figure 3 The schematic diagram of the structure of the computing power allocation device provided in the embodiment of the present disclosure is as follows. The computing power allocation device 300 provided in the embodiment of the present disclosure can execute the processing flow provided in the above computing power allocation method embodiment, such as Figure 3 As shown, the computing power allocation device 300 includes a determination unit 301, a processing unit 302 and an allocation unit 303, wherein:
[0119] The determining unit 301 is used to determine the computing power configuration corresponding to the computing power request in response to the computing power request initiated by the user;
[0120] The processing unit 302 is used to determine at least one target computing network path based on the computing power request and the computing power configuration;
[0121] The allocation unit 303 is used to allocate computing resources corresponding to the target computing network path to the user.
[0122] In a possible implementation manner, in the device provided by the embodiment of the present invention, the determining unit 301 is specifically configured to:
[0123] After the user initiates a computing power request, receive the computing power request;
[0124] Performing a first calculation on the application service corresponding to the computing power request using the pre-set computing resources, and determining the computing power configuration of the application service;
[0125] After adjusting the occupation ratio of the computing resources, a second measurement is performed on the application service, and the computing power configuration of the application service is corrected according to the measurement result of the second measurement;
[0126] A third calculation is performed on the corrected computing power configuration of the application service, and the computing power configuration of the application service is determined based on the result of the third calculation.
[0127] In a possible implementation manner, in the device provided by the embodiment of the present invention, the processing unit 302 is specifically configured to:
[0128] Determine, based on the computing power request, at least one cloud resource pool to which the user has authority, and at least one computing network path for the user to use the at least one cloud resource pool;
[0129] The computing power configuration is used to calculate the path score of each computing network path, and at least one computing network path with a path score lower than the score threshold is determined as the target computing network path.
[0130] In a possible implementation manner, in the device provided by the embodiment of the present invention, the processing unit 302 is specifically configured to:
[0131] Determine at least one cloud resource pool to which the user has authority based on the computing power request;
[0132] Perceiving indicator information of each cloud resource pool, and dividing at least one cloud resource pool into a first cloud resource pool and a second cloud resource pool based on the indicator information, wherein the resource type in the first cloud resource pool matches the application service, and the resource type in the second cloud resource pool does not match the application service;
[0133] Based on the first cloud resource pool and the second cloud resource pool, at least one computing network path for the user to use the first cloud resource pool is determined.
[0134] In a possible implementation manner, in the device provided by the embodiment of the present invention, the processing unit 302 is specifically configured to:
[0135] Use computing power configuration to decompose application services into multiple sub-services;
[0136] Calculate the path score of each computing network path using the first cloud resource pool according to the indicator information of each cloud resource pool;
[0137] A plurality of computing network paths with path scores lower than a score threshold are selected as target computing network paths, wherein the number of target computing network paths is not less than the number of sub-services.
[0138] In a possible implementation manner, in the device provided by the embodiment of the present invention, the allocating unit 303 is specifically used for:
[0139] Open the target computing network path;
[0140] Allocate corresponding computing resources to the target computing network path.
[0141] In a possible implementation manner, in the device provided by the embodiment of the present invention, the allocating unit 303 is further configured to:
[0142] Adjust the computing resources corresponding to the target computing network path according to the resource usage of the application service.
[0143] In a possible implementation manner, in the device provided by the embodiment of the present invention, the allocating unit 303 is further configured to:
[0144] Generate a pre-resource package based on the application service, and store the pre-resource package in the cloud server;
[0145] When adjusting the computing resources corresponding to the target computing network path, deploy pre-resource packages for the newly added resource nodes.
[0146] Figure 3 The computing power allocation device of the illustrated embodiment can be used to execute the technical solution of the above-mentioned method embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0147] In addition, combined Figure 1-Figure 3 The computing power allocation method and device described in the embodiments of the present application can be implemented by an electronic device. Figure 4 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0148] The electronic device may include a processor 401 and a memory 402 storing computer program instructions.
[0149] Specifically, the processor 401 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.
[0150] Memory 402 may include a large capacity memory for data or instructions. For example, but not limitation, memory 402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, memory 402 may include a removable or non-removable (or fixed) medium. In appropriate cases, memory 402 may be inside or outside a data processing device. In a specific embodiment, memory 402 is a non-volatile solid-state memory. In a specific embodiment, memory 402 includes a read-only memory (ROM). In appropriate cases, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.
[0151] The processor 401 implements a computing power allocation method in the above embodiment by reading and executing computer program instructions stored in the memory 402.
[0152] In one example, the electronic device may further include a communication interface 403 and a bus 410. Figure 4 As shown, the processor 401, the memory 402, and the communication interface 403 are connected via the bus 310 and communicate with each other.
[0153] The communication interface 403 is mainly used to implement the communication between the modules, devices, units and / or equipment in the embodiment of the present invention.
[0154] Bus 410 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 310 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.
[0155] The electronic device can execute the computing power allocation method in the embodiment of the present invention, thereby realizing the combination Figure 1 Describes the computing power allocation method.
[0156] In addition, in combination with the computing power allocation method in the above embodiment, the embodiment of the present invention can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, a computing power allocation method in the above embodiment is implemented.
[0157] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0158] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0159] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0160] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0161] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0162] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A computing power allocation method, characterized in that: The method comprises: In response to a computing power request initiated by a user, determining a computing power configuration corresponding to the computing power request; Determine at least one target computing network path based on the computing power request and the computing power configuration; Allocate computing resources corresponding to the target computing network path to the user.
2. The method according to claim 1, characterized in that The step of determining, in response to a computing power request initiated by a user, a computing power configuration corresponding to the computing power request includes: After the user initiates the computing power request, receiving the computing power request; Performing a first calculation on the application service corresponding to the computing power request using the pre-set computing resources, and determining the computing power configuration of the application service; After adjusting the occupancy ratio of the computing resources, performing a second measurement on the application service, and modifying the computing power configuration of the application service according to the measurement result of the second measurement; A third calculation is performed on the corrected computing power configuration of the application service, and the computing power configuration of the application service is determined based on a result of the third calculation.
3. The method according to any one of claims 1 or 2, characterized in that The determining at least one target computing network path based on the computing power request and the computing power configuration includes: Determine, based on the computing power request, at least one cloud resource pool to which the user has authority, and at least one computing network path for the user to use at least one of the cloud resource pools; The computing power configuration is used to calculate the path score of each computing network path, and at least one computing network path whose path score is lower than a score threshold is determined as a target computing network path.
4. The method according to claim 3, characterized in that The determining, based on the computing power request, at least one cloud resource pool to which the user has authority, and at least one computing network path for the user to use at least one of the cloud resource pools, comprises: Determine at least one cloud resource pool to which the user has authority based on the computing power request; Perceiving indicator information of each of the cloud resource pools, and dividing at least one of the cloud resource pools into a first cloud resource pool and a second cloud resource pool based on the indicator information, wherein a resource type in the first cloud resource pool matches the application service, and a resource type in the second cloud resource pool does not match the application service; At least one computing network path for the user to use the first cloud resource pool is determined based on the first cloud resource pool and the second cloud resource pool.
5. The method according to claim 4, characterized in that The calculating the path score of each of the computing network paths by using the computing power configuration, and determining at least one computing network path with a path score lower than a score threshold as a target computing network path, includes: Decomposing the application service into a plurality of sub-services by using the computing power configuration; Calculating a path score of each computing network path using the first cloud resource pool according to the indicator information of each cloud resource pool; A plurality of computing network paths with path scores lower than a score threshold are selected as target computing network paths, wherein the number of the target computing network paths is not less than the number of the sub-services.
6. The method according to claim 5, characterized in that The allocating computing resources corresponding to the target computing network path to the user includes: Opening the target computing network path; Allocate corresponding computing resources to the target computing network path.
7. The method according to claim 6, characterized in that After allocating computing resources corresponding to the target computing network path to the user, the method further includes: The computing resources corresponding to the target computing network path are adjusted according to the resource usage status of the application service.
8. The method according to claim 7, characterized in that The method further comprises: Generate a pre-resource package based on the application service, and store the pre-resource package in a cloud server; When adjusting the computing resources corresponding to the target computing network path, the pre-resource package is deployed for the newly added resource nodes.
9. A computing power allocation device, characterized in that: The device comprises: A determination unit, configured to determine, in response to a computing power request initiated by a user, a computing power configuration corresponding to the computing power request; A processing unit, configured to determine at least one target computing network path based on the computing power request and the computing power configuration; An allocation unit is used to allocate computing resources corresponding to the target computing network path to the user.
10. An electronic device, characterized in that: include: Memory; processor; as well as Computer programs; The computer program is stored in the memory and is configured to be executed by the processor to implement the computing power allocation method as described in any one of claims 1 to 8.
Citation Information
Cited By
Target path determination method and device, storage medium, electronic equipment and product
CN122019441A
