Resource supply method, device, equipment, medium and program product
By using resource demand prediction models and adjusting evaluation models in cloud computing projects, resource demand prediction and review are solved, and the resource supply process is cumbersome and time-consuming, achieving efficient and accurate resource supply and improving user satisfaction.
Patent Information
- Application Number
- CN202411284678.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-12-06
AI Technical Summary
In the scenario of large-scale cloud computing projects put into production, the process of collecting, reviewing and supplying resource requirements is cumbersome, time-consuming, and error-prone, resulting in the overall time-consuming resource supply process.
Provide a resource supply method, using the trained resource demand prediction model and resource adjustment evaluation model, automate the resource demand prediction and evaluation process, including automatic generation and rapid adjustment of resource demand prediction information, and automatically evaluate the rationality of resource adjustment information. Reduce manual reviews to achieve automation and synchronization of resource supply.
The resource supply process is simplified, the time-consuming collection and modification of resource demands is reduced, the resource supply efficiency is improved, the manual workload and subsequent communication costs are reduced, and user satisfaction is improved.
Smart Images

Figure CN119090234A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the fields of cloud computing technology and financial technology, and more specifically, to a resource supply method, device, equipment, medium and program product. Background Art
[0002] With the rapid development of science and technology, cloud computing technology is becoming an important choice for data processing, storage and application operation. Before a cloud computing project is put into production, it is necessary to collect the resource requirements of the project, review the resource requirements, and supply resources according to reasonable requirements.
[0003] In the process of realizing the concept of the present disclosure, the inventors found that there are at least the following problems in the related technology: in the scenario of large-scale cloud computing projects being put into production, it is necessary to collect the resource requirements of all cloud computing projects, and review whether the resource requirements meet the filling specifications and whether the resource quota application is reasonable, and then merge multiple resource requirements to supply resources. In the above resource requirement collection, review and supply process, there are problems such as long resource requirement collection, long resource requirement review, frequent resource requirement modification, long resource requirement merging and sorting, and easy to make mistakes, which makes the overall resource supply process cumbersome and time-consuming. Summary of the invention
[0004] In view of this, the present disclosure provides a resource provisioning method, apparatus, device, medium, and program product.
[0005] One aspect of the present disclosure provides a resource supply method, which is applied to a server, including: in response to receiving a resource application request from a first client, inputting resource application information in the resource application request into a trained resource demand prediction model to obtain resource demand prediction information, and sending the resource demand prediction information to the first client; in response to receiving a resource demand adjustment request from the first client, inputting the resource adjustment information in the resource demand adjustment request into a trained resource adjustment evaluation model to obtain a demand adjustment evaluation result; determining resource supply information according to the demand adjustment evaluation result, wherein the resource supply information includes: deployment unit information, resource type, target resource specification and target resource quantity; and supplying resources according to the resource supply information to obtain a resource supply result, and sending the resource supply result to the first client; wherein the resource demand prediction model is trained based on sample data and adjustment factors, the resource adjustment evaluation model is trained based on review data and learning factors, the sample data and review data are both related to historical projects, the adjustment factor is dynamically updated according to the resource adjustment information, the demand adjustment evaluation result and the resource supply result, and the learning factor is dynamically updated according to the demand adjustment evaluation result and the resource supply result.
[0006] According to an embodiment of the present disclosure, sample data includes: historical project name, historical resource supply information and resource adjustment records corresponding to the historical project name; review data includes: historical resource application information, historical review results and historical resource supply information corresponding to the historical resource application information.
[0007] According to an embodiment of the present disclosure, resource application information includes a resource name and a production project name, and the resource application information is input into a trained resource demand prediction model to obtain resource demand prediction information, including: inputting the resource name and the production project name into a trained resource demand prediction model to obtain resource reference information, the resource reference information includes: deployment unit information, resource type, reference project scale, reference resource specification and reference resource quantity; determining a project scale coefficient according to a preset project scale corresponding to the production project name and a reference project scale; determining predicted resource specifications and predicted resource quantities according to reference resource specifications, reference resource quantity, project scale coefficient and adjustment factors; and generating resource demand prediction information according to the deployment unit information, resource type, predicted resource specifications and predicted resource quantity.
[0008] According to an embodiment of the present disclosure, resource adjustment information includes an adjustment item name, adjustment item information and adjustment instructions, and the resource adjustment information is input into a trained resource adjustment assessment model to obtain a demand adjustment assessment result, including: inputting the adjustment item name, adjustment item information and adjustment instructions into a trained resource adjustment assessment model to obtain a rationality assessment value; when the rationality assessment value exceeds a preset rationality threshold, determining that the demand adjustment assessment result is reviewed and passed; and when the rationality assessment value does not exceed the preset rationality threshold, determining that the demand adjustment assessment result is awaiting expert review; wherein the preset rationality threshold is dynamically updated according to the adjustment assessment result and the resource supply result.
[0009] According to an embodiment of the present disclosure, determining resource supply information according to a demand adjustment evaluation result includes: when the demand adjustment evaluation result is approved, determining the target resource specification and target resource quantity according to the adjustment item name, adjustment item information, predicted resource specification and predicted resource quantity; when the demand adjustment evaluation result is pending expert review, sending the resource demand forecast information and resource adjustment information to the second client; in response to receiving the adjustment item specified quota and expert review information from the second client, determining the adjustment item specified quota as the target resource quota corresponding to the adjustment item name, wherein the adjustment item name includes resource specification and / or resource quantity, and the target resource quota includes target resource specification and / or target resource quantity; and generating resource supply information according to the deployment unit information, resource type, target resource specification and target resource quantity.
[0010] According to an embodiment of the present disclosure, a resource supply result includes resource configuration information, and performing resource supply according to the resource supply information to obtain a resource supply result, and sending the resource supply result to a first client includes: calling a target supply interface according to a resource type; based on the target supply interface, performing resource supply according to deployment unit information, target resource specifications, and target resource quantities to obtain a resource supply intermediate result; in the case where the resource supply intermediate result represents a failure, determining the cause of the failure to eliminate the problem according to the cause of the failure until the resource supply intermediate result represents a success; and in the case where the resource supply intermediate result represents a success, determining the resource configuration information, and sending the resource configuration information to the first client.
[0011] According to an embodiment of the present disclosure, the resource supply result also includes resource verification information. After the resource supply intermediate result indicates that the supply is successful, resource supply is performed according to the resource supply information to obtain the resource supply result, and the resource supply result is sent to the first client. It also includes: performing a consistency verification operation according to the resource configuration information and the resource supply information to obtain first verification information; when the first verification information indicates that the verification has passed, performing a deployment operation to obtain second verification information; when the second verification information indicates that the verification has passed, performing a test operation to obtain third verification information; and when the third verification information indicates that the verification has passed, determining the resource verification information, and sending the resource verification information to the first client.
[0012] Another aspect of the present disclosure provides a resource supply device, which is applied to a server, and includes: a prediction module, which is used to respond to receiving a resource application request from a first client, input the resource application information in the resource application request into a trained resource demand prediction model, obtain resource demand prediction information, and send the resource demand prediction information to the first client; an evaluation module, which is used to respond to receiving a resource demand adjustment request from the first client, input the resource adjustment information in the resource demand adjustment request into a trained resource adjustment evaluation model, and obtain a demand adjustment evaluation result; a determination module, which is used to determine resource supply information according to the demand adjustment evaluation result, wherein the resource supply information includes: deployment unit information, resource type, target resource specification and target resource quantity; and a supply module, which is used to supply resources according to the resource supply information, obtain resource supply results, and send the resource supply results to the first client; wherein the resource demand prediction model is trained based on sample data and adjustment factors, the resource adjustment evaluation model is trained based on review data and learning factors, the sample data and review data are both related to historical projects, the adjustment factor is dynamically updated according to the resource adjustment information, the demand adjustment evaluation result and the resource supply result, and the learning factor is dynamically updated according to the demand adjustment evaluation result and the resource supply result.
[0013] Another aspect of the present disclosure provides an electronic device, including: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method as described above.
[0014] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the above method when executed.
[0015] Another aspect of the present disclosure provides a computer program product, which includes computer executable instructions, and when the instructions are executed, are used to implement the method as described above.
[0016] According to the embodiment of the present disclosure, since the resource demand forecast information is automatically output based on the resource demand forecast model, and the user can adjust the resource demand forecast information according to actual needs, compared with the method in which the user fills in and submits the resource demand information, the error rate and modification times of the resource demand information can be reduced, and the automatic generation and rapid adjustment of the resource demand forecast information can be realized, so that the time consumption of resource demand collection and resource demand modification can be effectively reduced, and the resource supply process can be simplified to improve the resource supply efficiency. Further, in the case where the user chooses to adjust the resource forecast demand information, the resource adjustment evaluation model can automatically evaluate the rationality of the resource adjustment information, and only the resource adjustment information with low rationality needs to be manually targeted for review, so that the manual workload can be effectively reduced, and the time consumption of resource demand review can be reduced, and the overall efficiency can be improved. Therefore, the resource supply method provided by the embodiment of the present disclosure can at least partially overcome the technical problems of the related resource supply method existing in the related technology, such as the cumbersome process and long time consumption. In addition, sending the resource supply result to the first client can synchronize the actual supply resource situation to the resource demand end (user), so as to reduce the subsequent communication cost with the resource demand end, which helps to improve user satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0018] Figure 1 The application scenario diagram of the resource provision method, apparatus, device, medium and program product according to the embodiment of the present disclosure is schematically shown;
[0019] Figure 2 A flowchart of a resource supply method according to an embodiment of the present disclosure is schematically shown;
[0020] Figure 3The resource provision process according to an embodiment of the present disclosure is schematically shown;
[0021] Figure 4 The process of determining the resource provision result according to the embodiment of the present disclosure is schematically shown;
[0022] Figure 5 A block diagram schematically shows a resource supply device according to an embodiment of the present disclosure; and
[0023] Figure 6 A block diagram of an electronic device suitable for implementing a resource supply method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0024] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0025] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0026] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0027] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0028] In the embodiments of the present disclosure, the collection, updating, analysis, processing, use, transmission, provision, disclosure, storage, etc. of the data involved (for example, including but not limited to user personal information) are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. In particular, necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information and network security.
[0029] In the embodiments of the present disclosure, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.
[0030] It should be noted that in the embodiments of the present disclosure, certain software, components, models and other existing solutions in the industry may be mentioned, which should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present disclosure, but it does not mean that the applicant has or will necessarily use the solution.
[0031] With the rapid development of science and technology, cloud computing technology is becoming an important choice for data processing, storage and application operation. Before a cloud computing project is put into production, it is necessary to collect the resource requirements of the project, review the resource requirements, and supply resources according to reasonable requirements.
[0032] In the process of realizing the concept of the present disclosure, the inventors found that there are at least the following problems in the related technology: in the scenario of large-scale cloud computing projects being put into production, it is necessary to collect the resource requirements of all cloud computing projects, and review whether the resource requirements meet the filling specifications and whether the resource quota application is reasonable, and then merge multiple resource requirements to supply resources. In the above resource requirement collection, review and supply process, there are problems such as long resource requirement collection, long resource requirement review, frequent resource requirement modification, long resource requirement merging and sorting, and easy to make mistakes, which makes the overall resource supply process cumbersome and time-consuming.
[0033] According to an embodiment of the present disclosure, before a large-scale project is put into production, it is necessary to collect resource application requests of each physical subsystem (for example, fill in and submit resource requirements in the form of a table or form, etc.), and review whether each resource application request meets the specifications and whether the resource application amount is reasonable. If the review is passed, it means that the resource requirements are filled in in accordance with the specifications and the resource application amount is reasonable, then resources can be supplied according to the application amount; if the review is not passed, it is necessary to modify the filling format or resource application amount according to the review opinions and submit it again. After the review is passed, resources can be supplied according to the reasonable application amount. After that, multiple resource application forms will be merged to batch supply resources. If there are requirements that do not meet the filling specifications during the merging process, they need to be reviewed and revised again. After the resource delivery is completed, the resource requirements may be changed according to the actual use of the physical subsystem. Among them, the resource requirements may include cloud server (Cloud Virtual Machine, CVM) or container resource application, database, middleware, load balancing, network access relationship, network domain name requirements, etc. The physical subsystem can be understood as the hardware components that constitute the cloud computing infrastructure, such as servers, storage devices, network devices, etc.
[0034] It is understandable that the above resource supply method has problems such as cumbersome process, long time consumption, and difficulty in tracing changes in resource requirements. In order to at least partially solve the technical problems existing in the related art, the present disclosure provides a resource supply method, device, equipment, medium and program product. The resource supply method includes: in response to receiving a resource application request from a first client, inputting resource application information in the resource application request into a trained resource demand prediction model to obtain resource demand prediction information, and sending a resource demand prediction form to the first client; in response to receiving a resource demand adjustment request from the first client, inputting the resource adjustment information in the resource demand adjustment request into a trained resource adjustment evaluation model to obtain a demand adjustment evaluation result; determining resource supply information according to the demand adjustment evaluation result, wherein the resource supply information includes: deployment unit information, resource type, target resource specification and target resource quantity; and supplying resources according to the resource supply information to obtain a resource supply result, and sending the resource supply result to the first client; wherein the resource demand prediction model is obtained by training based on sample data and adjustment factors, the resource adjustment evaluation model is obtained by training based on review data and learning factors, the sample data and review data are both related to historical projects, the adjustment factor is dynamically updated according to the resource adjustment information, the demand adjustment evaluation result and the resource supply result, and the learning factor is dynamically updated according to the demand adjustment evaluation result and the resource supply result.
[0035] Figure 1 The application scenario diagram of the resource provisioning method, apparatus, device, medium and program product according to the embodiments of the present disclosure is schematically shown.
[0036] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0037] The user can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).
[0038] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0039] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0040] It should be noted that the resource supply method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the resource supply device provided in the embodiment of the present disclosure can generally be set in the server 105. The resource supply method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Correspondingly, the resource supply device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Alternatively, the resource supply method provided in the embodiment of the present disclosure can also be executed by the first terminal device 101, the second terminal device 102 or the third terminal device 103, or by other terminal devices that are different from the first terminal device 101, the second terminal device 102 or the third terminal device 103. Correspondingly, the resource supply device provided in the embodiment of the present disclosure may also be arranged in the first terminal device 101, the second terminal device 102 or the third terminal device 103, or in other terminal devices different from the first terminal device 101, the second terminal device 102 or the third terminal device 103.
[0041] For example, the resource application request or resource application information may be originally stored in any one of the first terminal device 101, the second terminal device 102 or the third terminal device 103 (for example, the first terminal device 101, but not limited thereto), or stored on an external storage device and imported into the first terminal device 101. Then, the first terminal device 101 may locally execute the resource provision method provided by the embodiment of the present disclosure, or send the resource application request or resource application information to other terminal devices, servers, or server clusters, and the resource provision method provided by the embodiment of the present disclosure may be executed by the other terminal devices, servers, or server clusters that receive the resource application request or resource application information.
[0042] As just one example, the first client can be set on any one of the first terminal device 101, the second terminal device 102 or the third terminal device 103 (for example, the first terminal device 101, but not limited to this), the second client can be set on any one of the first terminal device 101, the second terminal device 102 or the third terminal device 103 (for example, the second terminal device 102, but not limited to this), and the resource demand prediction model and the resource evaluation adjustment model can be set on the server 105.
[0043] It should be understood that Figure 1The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0044] Figure 2 The flowchart of the resource supply method according to the embodiment of the present disclosure is schematically shown.
[0045] like Figure 2 As shown, the resource supply method 200 includes operations S210-S240.
[0046] In operation S210, in response to receiving a resource application request from a first client, resource application information in the resource application request is input into a trained resource demand prediction model to obtain resource demand prediction information, and the resource demand prediction information is sent to the first client.
[0047] In operation S220, in response to receiving a resource demand adjustment request from the first client, resource adjustment information in the resource demand adjustment request is input into a trained resource adjustment evaluation model to obtain a demand adjustment evaluation result.
[0048] In operation S230, resource supply information is determined according to the demand adjustment evaluation result, wherein the resource supply information includes: deployment unit information, resource type, target resource specification and target resource quantity.
[0049] In operation S240, resources are provided according to the resource provision information, a resource provision result is obtained, and the resource provision result is sent to the first client.
[0050] Among them, the resource demand prediction model is trained based on sample data and adjustment factors, and the resource adjustment evaluation model is trained based on review data and learning factors. Both sample data and review data are related to historical projects. The adjustment factors are dynamically updated according to resource adjustment information, demand adjustment evaluation results and resource supply results, and the learning factors are dynamically updated according to demand adjustment evaluation results and resource supply results.
[0051] According to an embodiment of the present disclosure, the first client may send a resource application request to the server, and the resource application request has resource application information. The server may input the resource application information in the resource application request into a resource demand prediction model, obtain resource demand prediction information corresponding to the resource application information, and send the resource demand prediction information to the first client. Further, the first client may send a resource demand adjustment request to the server, and the resource demand adjustment request has resource adjustment information. The server may input the resource demand adjustment information into a resource adjustment assessment model, and obtain a demand adjustment assessment result corresponding to the resource adjustment information. On this basis, the resource supply information may be determined according to the demand assessment result, and resources may be supplied according to the resource supply information, and the resource supply result may be obtained and sent to the first client.
[0052] According to the embodiments of the present disclosure, resource application information can be understood as a resource demand application proposed by a user based on a production project or business demand, and can include, for example, a production project name and physical subsystem information. The production project name can include, for example, information characterizing the function / purpose / application scenario / technical features of the production project, and the physical subsystem information can include, for example, hardware specifications such as server model, processor type, memory capacity, storage device type and capacity.
[0053] According to the embodiments of the present disclosure, resource demand forecast information can be understood as the resource demand output by the resource demand forecast model that matches the resource application information. Users can choose not to adjust the resource demand forecast information according to business needs, or choose to make targeted adjustments to one or more items in the resource demand forecast information, and send the adjustment content to the server through a resource demand adjustment request. Among them, the resource demand forecast information can be selected as a format of a preset table or a preset form, so as to ensure that the resource demand forecast information complies with the filling specifications and is convenient for user confirmation, which is conducive to simplifying the overall process and improving overall efficiency. Resource adjustment information can be used to characterize user adjustment content, and the adjustment content may include adjustments to resource quantity or specifications, adjustments to resource types, adjustments to physical subsystem information, etc., which are not limited here.
[0054] According to an embodiment of the present disclosure, when a user chooses to adjust resource forecast demand information, the resource adjustment information in the resource demand adjustment request can be input into the resource adjustment evaluation model to obtain a demand adjustment evaluation result. The resource supply information can be determined based on the demand adjustment evaluation result, and resources can be supplied based on the resource supply information. When the user does not adjust the resource forecast demand information, the resource forecast demand information can be determined as the resource supply information, and resources can be supplied based on the resource supply information.
[0055] According to an embodiment of the present disclosure, the demand adjustment evaluation result can be used to characterize the rationality of the resource adjustment information, that is, the rationality of the user's adjustment content. Exemplarily, the demand adjustment evaluation result may include review passed or pending expert review. For example, the review passed indicates that the rationality of the adjustment content is relatively high, and the resource supply information can be determined based on the resource adjustment information and the resource demand forecast information, and resources are supplied according to the resource supply information. For example, pending expert review indicates that the rationality of the adjustment content is relatively low, and further manual evaluation and review by experts is required. The resource supply information can be determined based on the expert review opinions and the resource demand forecast information, and resources are supplied according to the resource supply information. Compared with the manual review of the resource demand information submitted by each user, the resource adjustment evaluation model can automatically evaluate the rationality of the resource adjustment information, and only requires manual targeted review of the resource adjustment information with low rationality, thereby effectively reducing the manual workload, thereby reducing the time consumption of resource demand review and improving overall efficiency.
[0056] According to the embodiments of the present disclosure, resource supply information can be understood as the finalized resource application information, and resource supply can be performed according to the resource supply information. Resource supply results can be used to characterize the actual resource supply situation, for example, whether the resource supply is successful, whether the resource supply is correct, resource configuration information and user feedback, etc., which are not limited here.
[0057] According to an embodiment of the present disclosure, the resource demand prediction model may include at least one of the following: a resource demand prediction model based on ensemble learning, a resource demand prediction model based on reinforcement learning, a resource demand prediction model based on a neural network, and a resource demand prediction model based on a converter. The training method of the resource demand prediction model can be configured according to actual business needs and is not limited here. For example, the training method may include at least one of the following: unsupervised training, supervised training, and semi-supervised training.
[0058] According to an embodiment of the present disclosure, the resource adjustment evaluation model may include at least one of the following: a resource adjustment evaluation model based on ensemble learning, a resource adjustment evaluation model based on reinforcement learning, a resource adjustment evaluation model based on a neural network, and a resource adjustment evaluation model based on a converter. The training method of the resource adjustment evaluation model can be configured according to actual business needs and is not limited here. For example, the training method may include at least one of the following: unsupervised training, supervised training, and semi-supervised training.
[0059] According to the embodiments of the present disclosure, the resource demand prediction model is obtained by training based on sample data and adjustment factors, and the resource adjustment evaluation model is obtained by training based on review data and learning factors. The sample data and review data are both related to historical projects, wherein the historical projects may be one or more. Compared with production projects, historical projects usually have the characteristics of full business, wide range, stable operation, and sustainable development. Historical projects can be used as baseline projects. Optionally, for production projects with different functions / purposes / application scenarios / technical characteristics, different historical projects can be used as baseline projects.
[0060] According to an embodiment of the present disclosure, an adjustment factor can be used to dynamically adjust resource demand forecast information, and a learning factor can be used to dynamically adjust the review rules of demand adjustment evaluation results. The adjustment factor can be dynamically updated based on resource adjustment information, demand adjustment evaluation results, and resource supply results, and the learning factor can be dynamically updated based on demand adjustment evaluation results and resource supply results. Based on the adjustment factor and the learning factor, the corresponding resource demand forecast model and resource adjustment evaluation model can be adjusted and updated based on subsequent relevant feedback information to make the model closer to actual business needs, thereby improving the accuracy and adaptability of the model, which is conducive to improving the accuracy of resource demand forecast information and demand adjustment evaluation results.
[0061] It is understandable that, since the resource demand forecast information is automatically output based on the resource demand forecast model, and the user can adjust the resource demand forecast information according to actual needs, compared with the method in which the user fills in and submits the resource demand information, the error rate and modification times of the resource demand information can be reduced, and the automatic generation and rapid adjustment of the resource demand forecast information can be realized, thereby effectively reducing the time-consuming resource demand collection and resource demand modification, thereby simplifying the resource supply process and improving the resource supply efficiency. Further, for the case where the user chooses to adjust the resource forecast demand information, the resource adjustment evaluation model can automatically evaluate the rationality of the resource adjustment information, and only requires manual targeted review of the resource adjustment information with low rationality, thereby effectively reducing the manual workload, thereby reducing the time-consuming resource demand review and improving the overall efficiency. Therefore, the resource supply method provided by the embodiment of the present disclosure can at least partially overcome the technical problems of the related resource supply method existing in the related art, such as the cumbersome process and long time consumption. In addition, sending the resource supply result to the first client can synchronize the actual supply resource situation to the resource demand end (user), thereby reducing the subsequent communication cost with the resource demand end, and helping to improve user satisfaction.
[0062] According to an embodiment of the present disclosure, sample data includes: historical project name, historical resource supply information and resource adjustment records corresponding to the historical project name; review data includes: historical resource application information, historical review results and historical resource supply information corresponding to the historical resource application information.
[0063] According to an embodiment of the present disclosure, the name of a historical project may include, for example, information that characterizes the function / purpose / application scenario / technical features of the historical project, and the historical resource supply information may include, for example, the deployment unit information corresponding to the historical project, the resource type (such as CVM, container) required by the deployment unit information, the number and specification of resources required by the deployment unit information (such as CPU, memory, system disk size, data disk size, CFS requirements), etc. Among them, the deployment unit can be understood as the smallest resource unit or component that can be independently deployed and managed, and the deployment unit information may include deployed applications or services, as well as related configuration information. The deployment unit information may also include the software required by the deployment unit (such as database, middleware), the network requirements of the deployment unit (such as network domain name requirements, network access relationship application, load balancing maintenance application), etc. The resource adjustment record may include the resource expansion record and / or resource reduction record after the historical project is put into production.
[0064] According to the embodiments of the present disclosure, historical resource application information can be understood as resource demand information initially applied for by historical projects, historical review results can be understood as review opinions of historical projects, and historical resource supply information can be understood as resource demand information finally determined by historical projects.
[0065] According to an embodiment of the present disclosure, resource application information includes a resource name and a production project name, and the resource application information is input into a trained resource demand prediction model to obtain resource demand prediction information, including: inputting the resource name and the production project name into a trained resource demand prediction model to obtain resource reference information, the resource reference information includes: deployment unit information, resource type, reference project scale, reference resource specification and reference resource quantity; determining a project scale coefficient according to a preset project scale corresponding to the production project name and a reference project scale; determining predicted resource specifications and predicted resource quantities according to reference resource specifications, reference resource quantity, project scale coefficient and adjustment factors; and generating resource demand prediction information according to the deployment unit information, resource type, predicted resource specifications and predicted resource quantity.
[0066] According to an embodiment of the present disclosure, by inputting the resource name (physical subsystem name) and the production project name into the resource demand prediction model, a baseline project matching the production project can be determined, thereby obtaining resource reference information corresponding to the baseline project, and the resource reference information can be dynamically adjusted based on the historical resource adjustment records and current status of the baseline project. Among them, the deployment unit information and resource type both correspond to the baseline project, the resource type includes CVM or container, and the deployment unit information includes deployed applications or services, related configuration information, etc. For virtual machine resource requirements, the deployment unit information also includes operating system images, middleware requirements, database requirements, operating system user creation requirements, etc. The reference project scale can be understood as the business scale of the baseline project, the reference resource specifications can be understood as the resource specifications of the baseline project, and the reference resource quantity can be understood as the resource quantity of the baseline project. The preset project scale can be understood as the business scale of the production project. Among them, the business scale can be measured by the average number of transactions per day.
[0067] It can be understood that the resource demand prediction model is trained based on sample data and adjustment factors. The sample data includes historical project names, historical resource supply information and resource adjustment records. Therefore, based on the resource name and the name of the production project, the historical project that matches the name of the production project can be determined as the baseline project, and the resource reference information corresponding to the baseline project can be obtained. Then, the resource demand prediction information can be determined based on the resource reference information and the adjustment factor.
[0068] According to an embodiment of the present disclosure, the ratio of the preset project scale to the reference project scale can be determined as the project scale coefficient. The predicted resource specifications can be determined based on the reference resource specifications, the project scale coefficient and the adjustment factor. The predicted resource quantity can be determined based on the reference resource quantity, the project scale coefficient and the adjustment factor.
[0069] For example:
[0070]
[0071]
[0072]
[0073] According to an embodiment of the present disclosure, an adjustment factor may be set to an initial value (for example, the initial value may be set to 1), and the adjustment factor may be dynamically updated later based on resource adjustment information, demand adjustment evaluation results, and resource supply results. In addition, the adjustment factor may be different for different resource demand forecast information, for example, the adjustment factor for calculating the forecast resource specification may be different from the adjustment factor for calculating the forecast resource quantity, which is not specifically limited here.
[0074] According to the embodiments of the present disclosure, resource demand forecast information can be generated and output by the model based on the deployment unit information, resource type, predicted resource specification and predicted resource quantity, thereby automatically generating resource demand forecast information based on resource name and production project name, reducing the time consumption of resource demand collection. Among them, the resource demand forecast information is preferably selected as a preset table or a preset form format.
[0075] According to an embodiment of the present disclosure, resource adjustment information includes an adjustment item name, adjustment item information and adjustment instructions, and the resource adjustment information is input into a trained resource adjustment assessment model to obtain a demand adjustment assessment result, including: inputting the adjustment item name, adjustment item information and adjustment instructions into a trained resource adjustment assessment model to obtain a rationality assessment value; when the rationality assessment value exceeds a preset rationality threshold, determining that the demand adjustment assessment result is reviewed and passed; and when the rationality assessment value does not exceed the preset rationality threshold, determining that the demand adjustment assessment result is awaiting expert review; wherein the preset rationality threshold is dynamically updated according to the adjustment assessment result and the resource supply result.
[0076] According to an embodiment of the present disclosure, a user may adjust resource demand forecast information according to business needs, and the adjustment items may include resource specifications and / or resource quantities, and the adjustment item information may include resource application specifications and / or resource application quantities corresponding to the adjustment items. For example, a user may adjust the predicted resource specifications and predicted resource quantities in the resource demand forecast information, fill in the corresponding adjustment item information, fill in the adjustment description (such as the reason for the adjustment) for the adjustment item, and send the resource adjustment information to the server through a resource adjustment request.
[0077] According to an embodiment of the present disclosure, the adjustment item name, adjustment item information (for example, the resource application specification and / or resource application quantity filled in by the user) and the adjustment description are input into the resource adjustment evaluation model, and the difference between the resource application value and the resource prediction value can be calculated as the resource demand difference. Further, the rationality evaluation value can be determined based on the correlation between the resource demand difference and the adjustment description. The rationality evaluation value can be used to characterize the rationality of the resource adjustment information, that is, the rationality of the user adjustment content.
[0078] As an example, for resource specifications or resource quantities, resource demand difference = resource demand application value - resource demand forecast value. For example: If the resource demand difference is a positive value, that is, the resource demand application value is greater than the resource demand forecast value, and the adjustment description is described as "application architecture adjustment, higher memory requirements", then the adjustment content is highly correlated with the adjustment reason, and the rationality assessment value is high.
[0079] According to an embodiment of the present disclosure, the demand adjustment evaluation result can be determined based on a preset rationality threshold and a rationality evaluation value, and the preset rationality threshold can be dynamically adjusted based on business needs and learning factors. For example, an initial value of the preset rationality threshold can be set based on business needs, and the preset rationality threshold can be dynamically adjusted based on the learning factor later.
[0080] For example, when the rationality evaluation value exceeds the preset rationality threshold, the demand adjustment evaluation result can be determined as passed, so that resource supply information can be determined based on the resource adjustment information and resource demand forecast information, and then resource supply can be performed according to the resource supply information.
[0081] For example, when the rationality assessment value does not exceed the preset rationality threshold, the demand adjustment assessment result can be determined to be pending expert review, so that resource supply information can be determined based on the expert review opinions and resource demand forecast information, and then resources can be supplied according to the resource supply information.
[0082] Optionally, when the rationality assessment value exceeds the preset rationality threshold, that is, when the automatic review opinion is passed, the demand adjustment assessment result can also be manually verified by experts to ensure the correctness of the demand adjustment assessment result, which is not restricted here.
[0083] According to an embodiment of the present disclosure, the learning factor may include a learning rate, and the learning rate may be dynamically updated according to expert review opinions and resource provision results.
[0084] According to an embodiment of the present disclosure, the learning factor may also include a reinforcement factor, which may be understood as a reward and punishment mechanism, and the reinforcement factor may be dynamically updated according to expert review opinions and resource supply results.
[0085] As just one example, if the expert review opinion is consistent with the automatic review opinion and the resource provision is successful, the judgment rule is strengthened; if the expert review opinion is inconsistent with the automatic review opinion and the resource provision is successful, the judgment rule is weakened; if the expert review opinion is consistent with the automatic review opinion and the resource provision is unsuccessful, the judgment rule is weakened; if the expert review opinion is inconsistent with the automatic review opinion and the resource provision is unsuccessful, the judgment rule is strengthened.
[0086] It can be understood that the resource adjustment assessment model is trained based on review data and learning factors. The review data includes historical resource application information, historical review results and historical resource supply information. Therefore, the rationality assessment value for the resource adjustment information can be obtained based on the adjustment item name, adjustment item information and adjustment instructions. The demand adjustment assessment result can be determined based on the preset rationality assessment threshold and rationality assessment value, and the resource supply information can be determined based on the demand adjustment assessment result.
[0087] According to the embodiments of the present disclosure, the resource adjustment evaluation model can automatically evaluate the rationality of resource adjustment information, and only requires manual targeted review of resource adjustment information with lower rationality, thereby effectively reducing manual workload, and further reducing the time spent on resource demand review and improving overall efficiency.
[0088] According to an embodiment of the present disclosure, determining resource supply information according to a demand adjustment evaluation result includes: when the demand adjustment evaluation result is passed, determining the target resource specification and target resource quantity according to the adjustment item name, adjustment item information, predicted resource specification and predicted resource quantity; when the demand adjustment evaluation result is pending expert review, sending the resource demand prediction information and resource adjustment information to the second client; in response to receiving the adjustment item specified quota and expert review information from the second client, determining the adjustment item specified quota as the target resource quota corresponding to the adjustment item name, wherein the adjustment item name includes resource specification and / or resource quantity, and the target resource quota includes target resource specification and / or target resource quantity; and generating resource supply information according to the deployment unit information, resource type, target resource specification and target resource quantity.
[0089] According to an embodiment of the present disclosure, when the demand adjustment evaluation result is approved, the resource application specification and / or resource application quantity filled in by the user can be determined as the corresponding target resource specification and / or target resource quantity.
[0090] As just one example, resource demand forecast information may include forecast resource specifications and forecast resource quantities, and resource adjustment information may include resource specifications, resource application specifications, and adjustment instructions, which means that the user has only adjusted the forecast resource specifications but not the forecast resource quantities, and the forecast resource quantities that the user has not adjusted may be determined as the target resource quantities. If the demand adjustment evaluation result is approved, the resource application specifications adjusted by the user may be determined as the target resource specifications.
[0091] According to an embodiment of the present disclosure, when the demand adjustment assessment result is not yet subject to expert review, the server may send resource demand forecast information and resource adjustment information to the second client. Experts may manually review the resource adjustment information, fill in the instruction quota of resource specifications and / or resource quantities (i.e., the adjustment item specified quota) and review opinions (i.e., expert review information), and send the adjustment item specified coordination and expert review information to the server. In response to receiving the adjustment item specified quota and expert review information from the second client, the server may determine the adjustment item specified quota as the corresponding target resource quota.
[0092] As just one example, resource demand forecast information may include forecast resource specifications and forecast resource quantities, and resource adjustment information may include resource quantities, resource application quantities, and adjustment instructions. This means that the user has only adjusted the forecast resource quantities but not the forecast resource specifications. In this case, the forecast resource specifications that the user has not adjusted may be determined as the target resource specifications. In the case where the demand adjustment assessment result is pending expert review, the expert may manually review the resource adjustment information and fill in the target resource quota (i.e., target resource quantity) and expert review information for the resource quantity. Furthermore, the adjustment factor and learning factor may be dynamically updated based on the target resource quota and expert review information.
[0093] According to an embodiment of the present disclosure, resource supply information can be generated according to the production project name, physical subsystem information, deployment unit information, resource type, target resource specification and target resource quantity. The resource supply information can be selected in the form of a preset table or a preset form to facilitate subsequent resource supply.
[0094] According to an embodiment of the present disclosure, a resource supply result includes resource configuration information, and performing resource supply according to the resource supply information to obtain a resource supply result, and sending the resource supply result to a first client includes: calling a target supply interface according to a resource type; based on the target supply interface, performing resource supply according to deployment unit information, target resource specifications, and target resource quantities to obtain a resource supply intermediate result; in a case where the resource supply intermediate result indicates a supply failure, determining the cause of the failure to eliminate the problem according to the cause of the failure until the resource supply intermediate result indicates a supply success; and in a case where the resource supply intermediate result indicates a supply success, determining the resource configuration information, and sending the resource configuration information to the first client.
[0095] According to an embodiment of the present disclosure, the resource type may include CVM or container, and the corresponding target supply interface may be called according to the resource type. For example, if the resource type is CVM, the CVM resource supply interface is called; if the resource type is container, the container resource supply interface is called.
[0096] According to the embodiments of the present disclosure, resource supply can be performed based on the target supply interface according to the physical subsystem information, deployment unit information, resource type, target resource specification and target resource quantity, and the target supply interface return value (that is, the resource supply intermediate result) can be obtained. The interface return value includes supply success or supply failure. Furthermore, the adjustment factor and the strengthening factor can also be dynamically updated based on the resource supply intermediate result.
[0097] As an example, if the intermediate result of resource provisioning is characterized as successful provisioning, resource configuration information (such as resource type, resource specification, image name, middleware, database, operating system user, etc.) is further obtained and the resource configuration information is sent to the first client. As another example, if the intermediate result of resource provisioning is characterized as a provisioning failure, the failure reason (such as insufficient remaining resources in the cloud resource pool, physical machine failure, etc.) is temporarily suspended and returned, and the resource provisioning operation can be performed again after the failure reason is investigated and resolved until the intermediate result of resource provisioning is characterized as successful provisioning.
[0098] According to an embodiment of the present disclosure, the resource supply result also includes resource verification information. After the resource supply intermediate result indicates that the supply is successful, resource supply is performed according to the resource supply information to obtain the resource supply result, and the resource supply result is sent to the first client, which also includes: performing a consistency verification operation according to the resource configuration information and the resource supply information to obtain first verification information; when the first verification information indicates that the verification has passed, performing a deployment operation to obtain second verification information; when the second verification information indicates that the verification has passed, performing a test operation to obtain third verification information; and when the third verification information indicates that the verification has passed, determining the resource verification information, and sending the resource verification information to the first client.
[0099] According to an embodiment of the present disclosure, after the intermediate result of resource supply indicates that the supply is successful, the resource supply situation can also be verified, and the verification content can include whether the resource configuration information and the resource supply information are consistent, whether the supplied resources meet the requirements of application deployment, and whether the supplied resources meet the requirements of the green light test. Exemplarily, the automated deployment installation package and deployment script can be used to verify whether the supplied resources meet the requirements of application automated deployment, and the green light test script can be used to verify whether the supplied resources meet the test requirements. Among them, the green light test script can be used to verify whether the physical subsystem is installed successfully, which can be completed through curl or process inspection.
[0100] According to an embodiment of the present disclosure, a consistency check operation can be performed based on resource configuration information and resource supply information to check whether the supplied resource type, specification, etc. are consistent with the final determined resource demand, and obtain first verification information (such as consistency or inconsistency). If the first verification information is inconsistent, the resource can be re-provided; if the first verification information is consistent, that is, the first verification information indicates that the verification is passed, then the automated deployment script can be called in the delivered container or virtual machine for deployment to obtain second verification information (such as deployment success or deployment failure). If the second verification information is deployment failure, the automated deployment version package and the automated deployment script are further checked. If the deployment failure is caused by the automated deployment version package or the automated deployment script, the correct automated deployment version package or automated deployment script is re-uploaded and verified again; if the second verification information is deployment success, that is, the second verification information indicates that the verification is passed, the green light test script can be called for testing to obtain third verification information (such as test pass or test failure). If the third verification information shows that the test failed, the green light test script is further checked. If the test failed due to the green light test script, the correct green light test script is re-uploaded and verified again; if the third verification information shows that the test passed, that is, the third verification information indicates that the test passed, then the resource verification information is determined.
[0101] According to an embodiment of the present disclosure, the resource verification information may include first verification information, second verification information and third verification information, and the resource verification information may be sent to the first client. Furthermore, the adjustment factor and the learning factor may be dynamically updated based on the resource verification information.
[0102] Figure 3 The resource provision process according to an embodiment of the present disclosure is schematically illustrated.
[0103] like Figure 3 As shown, in response to receiving a resource application request from the first client, resource application information 301 may be input into a resource demand prediction model 302, resource demand prediction information may be output, and the resource demand prediction information may be sent to the first client.
[0104] According to an embodiment of the present disclosure, in the case where the user does not adjust the resource demand prediction information, the resource demand prediction information may be determined as resource supply information 306. In the case where the user adjusts the resource demand prediction information, in response to receiving a resource demand adjustment request from the first client, the resource adjustment information 303 may be input into a resource adjustment assessment model 304, and a demand adjustment assessment result 305 may be output.
[0105] According to an embodiment of the present disclosure, when the demand adjustment evaluation result 305 is reviewed and passed, the resource supply information 306 can be determined according to the resource demand forecast information and the resource adjustment information 303. When the demand adjustment evaluation result 305 is pending expert review, the resource demand forecast information and the resource adjustment information 303 can be sent to the second client for expert manual review. In response to receiving the adjustment item specified quota and expert review information from the second client, the resource supply information 306 can be determined according to the resource demand forecast information and the adjustment item specified quota.
[0106] According to an embodiment of the present disclosure, resource provision may be performed according to the resource provision information 306, a resource provision result may be obtained, and the resource provision result may be sent to the first client.
[0107] Figure 4 The process of determining the resource provision result according to the embodiment of the present disclosure is schematically shown.
[0108] like Figure 4 As shown, the corresponding target supply interface 402 (CVM resource supply interface or container resource supply interface) can be called according to the resource type 401. Resource supply can be performed based on the called target supply interface 402 to obtain a resource supply intermediate result 403. If the resource supply intermediate result 403 is characterized as a successful supply, resource configuration information is further obtained and sent to the first client; if the resource supply intermediate result 403 is characterized as a supply failure, it is temporarily suspended and the failure reason is returned so as to eliminate the problem according to the failure reason until the resource supply intermediate result 403 is characterized as a success.
[0109] According to an embodiment of the present disclosure, after the resource supply intermediate result 403 indicates that the supply is successful, a consistency check operation 404 may be performed according to the resource supply information and the resource configuration information to obtain first check information 405. If the first check information 405 indicates that the check fails, the resource supply is performed again; if the first check information 405 indicates that the check passes, a deployment operation 406 is performed to obtain second check information 407. If the second check information 407 indicates that the deployment fails, the automated deployment version package or the automated deployment script is checked / re-uploaded; if the second check information 407 indicates that the deployment is successful, a test operation 408 is performed to obtain third check information 409. If the third check information 409 indicates that the test passes, the green light test script is checked / re-uploaded; if the third check information 409 indicates that the test fails, the resource check information 410 (including the first check information 405, the second check information 407 and the third check information 409) is determined, and the resource check information 410 is sent to the first client.
[0110] Figure 5The block diagram schematically shows a resource supply device according to an embodiment of the present disclosure.
[0111] like Figure 5 As shown, the resource supply device 500 may include a prediction module 510 , an evaluation module 520 , a determination module 530 , and a supply module 540 .
[0112] The prediction module 510 is used to respond to receiving a resource application request from the first client, input the resource application information in the resource application request into the trained resource demand prediction model, obtain resource demand prediction information, and send the resource demand prediction form to the first client.
[0113] The evaluation module 520 is used to input the resource adjustment information in the resource demand adjustment request into the trained resource adjustment evaluation model in response to receiving the resource demand adjustment request from the first client, so as to obtain a demand adjustment evaluation result.
[0114] The determination module 530 is used to adjust the evaluation result according to the demand and determine the resource supply information, wherein the resource supply information includes: deployment unit information, resource type, target resource specification and target resource quantity.
[0115] The supply module 540 is used to perform resource supply according to the resource supply information, obtain the resource supply result, and send the resource supply result to the first client.
[0116] Among them, the resource demand prediction model is trained based on sample data and adjustment factors, and the resource adjustment evaluation model is trained based on review data and learning factors. Both the sample data and review data are related to historical production projects. The adjustment factors are dynamically updated according to resource adjustment information, demand adjustment evaluation results and resource supply results, and the learning factors are dynamically updated according to demand adjustment evaluation results and resource supply results.
[0117] According to an embodiment of the present disclosure, the prediction module 510 may include a first determination submodule, a second determination submodule, a third determination submodule, and a first generation submodule.
[0118] The first determination submodule is used to input the resource name and the production project name into the trained resource demand prediction model to obtain resource reference information, which includes: deployment unit information, resource type, reference project scale, reference resource specifications and reference resource quantity.
[0119] The second determination submodule is used to determine the project scale coefficient according to the preset project scale corresponding to the name of the production project and the reference project scale.
[0120] The third determination submodule is used to determine the predicted resource specifications and predicted resource quantities based on the reference resource specifications, reference resource quantities, project scale coefficients and adjustment factors.
[0121] The first generating submodule is used to generate resource demand prediction information according to the deployment unit information, resource type, predicted resource specification and predicted resource quantity.
[0122] According to an embodiment of the present disclosure, the evaluation module 520 may include a fourth determination submodule, a fifth determination submodule, and a sixth determination submodule.
[0123] The fourth determination submodule is used to input the adjustment item name, adjustment item information and adjustment description into the trained resource adjustment evaluation model to obtain a rationality evaluation value.
[0124] The fifth determination submodule is used to determine that the demand adjustment evaluation result is approved when the rationality evaluation value exceeds a preset rationality threshold.
[0125] The sixth determination submodule is used to determine that the demand adjustment assessment result is pending expert review when the rationality assessment value does not exceed the preset rationality threshold; wherein the preset rationality threshold is dynamically updated according to the adjustment assessment result and the resource supply result.
[0126] According to an embodiment of the present disclosure, the determination module 530 may include a seventh determination submodule, a first sending submodule, an eighth determination submodule, and a second generation submodule.
[0127] The seventh determination submodule is used to determine the target resource specifications and target resource quantities based on the adjustment item name, adjustment item information, predicted resource specifications and predicted resource quantities when the demand adjustment evaluation result is approved.
[0128] The first sending submodule is used to send the resource demand forecast information and the resource adjustment information to the second client when the demand adjustment evaluation result is to be reviewed by experts.
[0129] An eighth determination submodule is used to determine the adjustment item specified quota as a target resource quota corresponding to the adjustment item name in response to receiving the adjustment item specified quota and expert review information from the second client, wherein the adjustment item name includes resource specifications and / or resource quantities, and the target resource quota includes target resource specifications and / or target resource quantities.
[0130] The second generation submodule is used to generate resource supply information according to the deployment unit information, resource type, target resource specification and target resource quantity.
[0131] According to an embodiment of the present disclosure, the supply module 540 may include a calling submodule, a supply submodule, a ninth determining submodule, and a second sending submodule.
[0132] The calling submodule is used to call the target supply interface according to the resource type.
[0133] The supply submodule is used to supply resources based on the target supply interface, according to the deployment unit information, target resource specifications and target resource quantity, and obtain the intermediate result of resource supply.
[0134] The ninth determination submodule is used to determine the cause of failure when the resource supply intermediate result characterization fails, so as to eliminate the problem according to the cause of failure until the resource supply intermediate result characterization succeeds.
[0135] The second sending submodule is used to determine resource configuration information and send the resource configuration information to the first client when the resource supply intermediate result indicates that the supply is successful.
[0136] According to an embodiment of the present disclosure, the supply module 540 may further include a first syndrome submodule, a second syndrome submodule, a third syndrome submodule and a third sending submodule.
[0137] The first check submodule is used to perform a consistency check operation according to the resource configuration information and the resource supply information to obtain first check information.
[0138] The second verification submodule is used to perform a deployment operation to obtain second verification information when the first verification information indicates that the verification has passed.
[0139] The third check submodule is used to perform a test operation to obtain third check information when the second check information indicates that the check has passed.
[0140] The third sending submodule is used to determine resource verification information and send the resource verification information to the first client when the third verification information representation verification passes.
[0141] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging circuits, or can be implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.
[0142] For example, any of the prediction module 510, the evaluation module 520, the determination module 530, and the supply module 540 can be combined in one module / unit / sub-unit for implementation, or any of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more of these modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the prediction module 510, the evaluation module 520, the determination module 530, and the supply module 540 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, at least one of the prediction module 510 , the evaluation module 520 , the determination module 530 , and the supply module 540 may be at least partially implemented as a computer program module, and when the computer program module is executed, a corresponding function may be performed.
[0143] It should be noted that the resource supply device part in the embodiment of the present disclosure corresponds to the resource supply method part in the embodiment of the present disclosure. The description of the resource supply device part specifically refers to the resource supply method part, which will not be repeated here.
[0144] Figure 6A block diagram of an electronic device suitable for implementing the resource supply method described above according to an embodiment of the present disclosure is schematically shown. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0145] like Figure 6 As shown, the electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 to a random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include an onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0146] In RAM 603, various programs and data required for the operation of electronic device 600 are stored. Processor 601, ROM 602 and RAM 603 are connected to each other via bus 604. Processor 601 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 602 and / or RAM 603. It should be noted that the program can also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0147] According to an embodiment of the present disclosure, the electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to the bus 604. The electronic device 600 may further include one or more of the following components connected to the input / output (I / O) interface 605: an input portion 606 including a keyboard, a mouse, etc.; an output portion 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 608 including a hard disk, etc.; and a communication portion 609 including a network interface card such as a LAN card, a modem, etc. The communication portion 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the input / output (I / O) interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage portion 608 as needed.
[0148] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0149] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0150] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.
[0151] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 602 and / or the RAM 603 described above and / or one or more memories other than the ROM 602 and the RAM 603 .
[0152] An embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains a program code for executing the method provided by the embodiment of the present disclosure. When the computer program product runs on an electronic device, the program code is used to enable the electronic device to implement the resource supply method provided by the embodiment of the present disclosure.
[0153] When the computer program is executed by the processor 601, the above functions defined in the system / device of the embodiment of the present disclosure are executed. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0154] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 609, and / or installed from a removable medium 611. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0155] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0156] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions. It can be understood by those skilled in the art that the features recorded in the various embodiments of the present disclosure can be combined and / or combined in a variety of ways, even if such a combination or combination is not explicitly recorded in the present disclosure. In particular, without departing from the spirit and teaching of the present disclosure, the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0157] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A resource provision method, applied to a server, comprising: In response to receiving a resource application request from a first client, inputting resource application information in the resource application request into a trained resource demand prediction model to obtain resource demand prediction information, and sending the resource demand prediction information to the first client; In response to receiving a resource demand adjustment request from the first client, inputting resource adjustment information in the resource demand adjustment request into a trained resource adjustment evaluation model to obtain a demand adjustment evaluation result; Determining resource supply information according to the demand adjustment evaluation result, wherein the resource supply information includes: deployment unit information, resource type, target resource specification and target resource quantity; and Perform resource supply according to the resource supply information, obtain a resource supply result, and send the resource supply result to the first client; Among them, the resource demand prediction model is trained based on sample data and adjustment factors, and the resource adjustment evaluation model is trained based on review data and learning factors. The sample data and the review data are both related to historical projects. The adjustment factor is dynamically updated according to the resource adjustment information, the demand adjustment evaluation results and the resource supply results, and the learning factor is dynamically updated according to the demand adjustment evaluation results and the resource supply results.
2. The resource supply method according to claim 1, wherein: The sample data includes: historical project names, historical resource supply information, and resource adjustment records corresponding to the historical project names; The review data includes: historical resource application information, historical review results, and historical resource supply information corresponding to the historical resource application information.
3. The resource supply method according to claim 2, wherein: The resource application information includes the resource name and the name of the production project. The resource application information is input into the trained resource demand forecasting model to obtain the resource demand forecasting information including: Input the resource name and the production project name into the trained resource demand prediction model to obtain resource reference information, wherein the resource reference information includes: the deployment unit information, the resource type, the reference project scale, the reference resource specification and the reference resource quantity; Determine a project scale coefficient according to a preset project scale corresponding to the name of the production project and the reference project scale; Determining predicted resource specifications and predicted resource quantities according to the reference resource specifications, the reference resource quantities, the project scale factor, and the adjustment factor; and The resource demand forecast information is generated according to the deployment unit information, the resource type, the predicted resource specification and the predicted resource quantity.
4. The resource supply method according to claim 3, wherein: The resource adjustment information includes an adjustment item name, adjustment item information and adjustment description. The resource adjustment information is input into a trained resource adjustment evaluation model to obtain a demand adjustment evaluation result including: Input the adjustment item name, adjustment item information and adjustment description into the trained resource adjustment evaluation model to obtain a rationality evaluation value; In the case where the rationality evaluation value exceeds a preset rationality threshold, determining that the demand adjustment evaluation result is reviewed and passed; and If the rationality evaluation value does not exceed the preset rationality threshold, determining that the demand adjustment evaluation result is to be reviewed by experts; Wherein, the preset rationality threshold is dynamically updated according to the adjustment evaluation result and the resource supply result.
5. The resource supply method according to claim 4, wherein: The determining of resource supply information according to the demand adjustment evaluation result includes: If the demand adjustment assessment result is approved, determine the target resource specifications and target resource quantities according to the adjustment item name, adjustment item information, predicted resource specifications and predicted resource quantities; When the demand adjustment assessment result is pending expert review, sending the resource demand forecast information and the resource adjustment information to the second client; In response to receiving the adjustment item specified quota and expert review information from the second client, determining the adjustment item specified quota as a target resource quota corresponding to the adjustment item name, wherein the adjustment item name includes a resource specification and / or a resource quantity, and the target resource quota includes a target resource specification and / or a target resource quantity; and The resource supply information is generated according to the deployment unit information, the resource type, the target resource specification and the target resource quantity.
6. The resource supply method according to any one of claims 1 to 5, wherein: The resource provision result includes resource configuration information, and the performing resource provision according to the resource provision information to obtain the resource provision result, and sending the resource provision result to the first client includes: According to the resource type, calling the target supply interface; Based on the target supply interface, performing resource supply according to the deployment unit information, target resource specifications and target resource quantity, and obtaining a resource supply intermediate result; In the case where the resource supply intermediate result indicates that supply has failed, determining the cause of the failure to eliminate the problem according to the cause of the failure until the resource supply intermediate result indicates that supply has succeeded; and In the case where the resource supply intermediate result indicates that the supply is successful, resource configuration information is determined and sent to the first client.
7. The resource supply method according to claim 6, wherein: The resource supply result also includes resource verification information. After the resource supply intermediate result indicates that the supply is successful, performing resource supply according to the resource supply information to obtain the resource supply result, and sending the resource supply result to the first client further includes: Performing a consistency check operation according to the resource configuration information and the resource supply information to obtain first check information; When the first verification information indicates that the verification has passed, performing a deployment operation to obtain second verification information; If the second verification information indicates that the verification has passed, performing a test operation to obtain third verification information; and When the third verification information indicates that the verification has passed, resource verification information is determined and sent to the first client.
8. A resource supply device, applied to a server, comprising: A prediction module, configured to, in response to receiving a resource application request from a first client, input resource application information in the resource application request into a trained resource demand prediction model to obtain resource demand prediction information, and send the resource demand prediction information to the first client; An evaluation module, configured to, in response to receiving a resource demand adjustment request from a first client, input resource adjustment information in the resource demand adjustment request into a trained resource adjustment evaluation model to obtain a demand adjustment evaluation result; a determination module, configured to adjust the evaluation result according to the demand and determine resource supply information, wherein the resource supply information includes: deployment unit information, resource type, target resource specification and target resource quantity; and A supply module, configured to supply resources according to the resource supply information, obtain a resource supply result, and send the resource supply result to the first client; Among them, the resource demand prediction model is trained based on sample data and adjustment factors, and the resource adjustment evaluation model is trained based on review data and learning factors. The sample data and the review data are both related to historical projects. The adjustment factor is dynamically updated according to the resource adjustment information, the demand adjustment evaluation results and the resource supply results, and the learning factor is dynamically updated according to the demand adjustment evaluation results and the resource supply results.
9. An electronic device, comprising: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement the method according to any one of claims 1 to 7.
11. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.
Citation Information
Cited By
Preparation method of PVDC film
CN119889524A
A method for producing a pvdc film
CN119889524B
