Framework deployment method, device, computer equipment and storage medium
By simulating the cluster physical machine environment on the test machine to generate the installation package of the deep learning framework and storing it on the shared server, the problem of low deployment efficiency on domestic heterogeneous computing platforms is solved and a fast and simplified framework deployment process is achieved.
Patent Information
- Application Number
- CN202110327542.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-26
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-03-26
AI Technical Summary
When deploying deep learning frameworks to physical machine clusters, especially on domestic heterogeneous computing platforms, existing methods are inefficient and lack a complete software architecture and binary installation packages, resulting in the need for manual compilation, which increases complexity and time costs.
By simulating the development environment of each physical machine in the cluster on the test machine, the installation package of the target framework is generated and stored on the shared server, allowing each physical machine to obtain the installation package directly from the server for deployment, avoiding errors caused by environmental differences and user differences. Recompile requirements.
It significantly improves the deployment efficiency of the deep learning framework on physical machines, simplifies the deployment process, is suitable for a variety of development environments and user needs, and reduces the complexity of environment configuration.
Smart Images

Figure CN113190238B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of deep learning technology, and in particular to a framework deployment method, apparatus, computer equipment and storage medium. Background Art
[0002] In the development stage of deep learning, each deep learning researcher needs to write a lot of repetitive code. In order to improve work efficiency, these researchers wrote these codes into a framework and put it online for all researchers to use. Then, different frameworks appeared on the Internet for the development and testing of deep learning technology products. Therefore, how to quickly deploy the deep learning framework to a physical machine has become a concern of current researchers.
[0003] Currently, when deploying a deep learning framework on a physical machine, the physical machine usually needs to first download the existing deep learning framework installation package from the official library, and then recompile and generate the deep learning framework installation package based on the various dependent installation packages in the local environment, the local development environment, the operating system version, and the device hardware configuration parameters, so as to realize the deployment of the deep learning framework on the local device.
[0004] With the rise of heterogeneous computing platforms for deploying deep learning frameworks, emerging heterogeneous computing platforms have built their own software stack systems and provided corresponding accelerator cards. In addition to Nvidia, the mainstream accelerator card manufacturers, the ROCm system has also rapidly emerged. However, the software architecture on these emerging heterogeneous computing platforms is not complete. For example, there are a large number of guidance documents for the deployment and testing of the pytorch framework on the existing mainstream Nvidia platform. Generally, compiled binary packages can be provided for direct installation and use, which can achieve rapid deployment of deep learning frameworks. However, the software architecture on the ROCm platform is not complete, and some common library functions are still being developed and improved. There are almost no official torch binary installation packages, and most of the deployment documents on the official website are based on the Ubuntu system, and there are very few for other Linux systems such as Centos. This situation indirectly leads to the fact that only a reasonable version of the target framework can be produced by source code compilation to match the heterogeneous computing platform for deployment.
[0005] However, when the deep learning framework is deployed on a physical machine cluster, especially on a cluster of domestic heterogeneous computing platforms with high confidentiality, the above method has the problem of low deployment efficiency. Summary of the invention
[0006] Based on this, it is necessary to provide a framework deployment method, apparatus, computer equipment and storage medium that can improve the deployment efficiency of the software framework in the physical machines of the cluster in response to the above technical problems.
[0007] In a first aspect, a framework deployment method is provided, the method comprising:
[0008] According to the development environment information of each physical machine in the cluster to be deployed, build the development environment of the target framework of the cluster to be deployed;
[0009] Obtaining a configuration file of the target framework, and generating the target framework according to the configuration file in the target development environment;
[0010] Functional verification is performed on the target framework, and if the target framework verification passes, the framework installation package of the target framework is stored on a shared server, so that each physical machine in the cluster to be deployed obtains the framework installation package from the shared server to deploy the target framework.
[0011] According to the method described in the above embodiment, the test machine pre-builds the development environment of the target framework of the cluster to be deployed through the development environment information of each physical machine in the cluster to be deployed, and realizes the simulation of the development environment of each physical machine in the cluster to be deployed on the test machine, so that the target framework obtained based on the simulated development environment can be applied to any physical machine in the cluster to be deployed. Therefore, when any physical machine in the cluster to be deployed needs to deploy the target framework, the physical machine user does not need to configure the target framework in combination with its own development environment, and recompile and generate the installation package of the target framework, which reduces many complex operation processes required for environmental configuration, and the physical machine user Users can obtain the framework installation package of the target framework from the shared server and directly install and use it, which greatly improves the deployment efficiency of the target framework on the physical machine, especially when facing the physical machine deployment of the cluster. Since the development environment and user requirements of each physical machine in the cluster are different, when the above method is applied to implement the deployment of each physical machine in the cluster, since the framework installation package of the target framework stored on the shared server is obtained in advance by simulating the development environment of the cluster to be deployed, the framework installation package of the target framework will not need to be recompiled due to differences in the development environment of each physical machine and differences in physical machine users, which further improves the deployment efficiency of the physical machines in the cluster.
[0012] In one embodiment, building a development environment of a target framework of the cluster to be deployed according to the development environment information of each physical machine in the cluster to be deployed includes:
[0013] Obtaining the image file of the target framework;
[0014] Adding the development environment information of each of the physical machines to the image file of the target framework;
[0015] Generate the target development environment of the target framework according to the added image file.
[0016] This embodiment implements a method for simulating the development environment of each physical machine in the cluster to be deployed, and builds the development environment of the target framework by adding the development environment information of each physical machine to the image file. Since the image file of the target framework contains the basic development environment of the target framework, the development environment information of each physical machine is added on the basis of the image file, so that the development environment of the cluster to be deployed can be quickly matched. If the development environment of each physical machine of the cluster to be deployed changes later, there is no need to repeatedly configure the basic development environment of the target framework, and only the development environment information of each physical machine needs to be additionally modified, thereby improving the efficiency of the test machine in building the development environment of the target framework and the reusability of historical data.
[0017] In one of the embodiments, the development environment information of each of the physical machines includes: a compiler, a network interface, a related dependent application library, a distributed plug-in, and a ROCM system of each physical machine in the cluster to be deployed.
[0018] In one of the embodiments, the functional verification of the target framework and storing the framework installation package of the target framework on a shared storage server if the target framework passes the verification includes:
[0019] In the development environment of the test machine, functional testing is performed on the target framework using preset test cases;
[0020] If the functional test passes, a verification request is sent to the shared server, so that the shared server performs functional verification on the target framework, and stores the framework installation package of the target framework included in the verification request if the functional verification passes.
[0021] In this embodiment, when the test machine obtains the target framework, functional verification is further performed on the test machine to verify whether the target framework is available and whether a default library exists, so that the test machine can obtain a valid and available target framework and then deploy it to each physical machine in the cluster, thereby avoiding the problem of the target framework being inapplicable when the physical machine deploys the target framework later, thereby improving the efficiency of target framework deployment.
[0022] In one embodiment, the method further comprises:
[0023] If the functional test fails, the target framework is regenerated, and the process returns to the step of performing functional testing on the target framework using preset test cases in the development environment of the test machine until the functional test passes.
[0024] In one embodiment, the verification request further includes a dependent installation package of the target framework, wherein the dependent installation package is a functional dependent installation package captured by the test machine during a process of performing a functional test on the target framework using the test case.
[0025] If the functional test passes, sending a verification request to the shared server so that the shared server performs functional verification on the target framework, and storing the framework installation package of the target framework included in the verification request if the functional verification passes, including:
[0026] If the functional test passes, a verification request is sent to the shared server so that the shared server performs functional verification on the target framework, and stores the framework installation package of the target framework and the dependent installation packages of the target framework included in the verification request if the functional verification passes.
[0027] In this embodiment, during the process of the test machine performing functional verification on the target framework, the dependency installation package of the target framework can be captured. Since the dependency installation package of the target framework is obtained according to the functional dependencies corresponding to the test case, it is an installation package corresponding to some basic functions and is used frequently in actual applications. Therefore, the verification request of this embodiment also includes the dependency installation package of the target framework, so that the physical machine can also obtain the dependency installation package to deploy the target framework and implement the application of the corresponding functions. The physical machine user does not need to compile and generate the dependency installation package according to the corresponding function configuration file to implement the corresponding function application, so that the above-mentioned deployment method can meet the needs of more users, thereby improving the applicability of the above-mentioned deployment method.
[0028] In a second aspect, a framework deployment method is provided, characterized in that the method comprises:
[0029] Obtaining a framework installation package of the target framework from the shared server; the framework installation package is a development environment of the target framework of the cluster to be deployed, which is built by the test machine according to the development environment information of each physical machine in the cluster to be deployed, a configuration file of the target framework, and an installation package obtained after functional verification is performed by the test machine and the shared server;
[0030] The target framework is deployed according to the framework installation package.
[0031] In this embodiment, since the framework installation package of the target framework stored on the shared server is compiled and generated by the test machine through a development environment that simulates a physical machine, the framework installation package of the target framework can be applied to any physical machine in the cluster. Therefore, when each physical machine in the cluster deploys the target framework, the framework installation package of the target framework can be directly obtained from the shared server for installation. There is no need to recompile and generate the installation package of the target framework in combination with the development environment of the local machine for installation and deployment. This simplifies the deployment process of the target framework and enables rapid deployment of the target framework.
[0032] In a third aspect, a framework deployment method is provided, characterized in that the method comprises:
[0033] Receive a verification request sent by a test machine; the verification request includes a framework installation package of a target framework, wherein the framework installation package is a development environment of the target framework of the cluster to be deployed, which is built by the test machine according to the development environment information of each physical machine in the cluster to be deployed, a configuration file of the target framework, and an installation package obtained after functional verification by the test machine;
[0034] Performing functional verification on the target framework according to the verification request;
[0035] If the functional verification passes, the framework installation package of the target framework is stored, so that each physical machine in the to-be-deployed cluster obtains the framework installation package from the shared server to deploy the target framework.
[0036] In this embodiment, since the framework installation package of the target framework stored on the shared server is compiled and generated by the test machine through a development environment that simulates a physical machine, the framework installation package of the target framework can be applied to any physical machine in the cluster, and the shared server performs further functional verification on the framework to verify that the target framework can be applied on the shared server, thereby further improving the applicability of the target framework. Therefore, when each physical machine in the cluster deploys the target framework, the framework installation package of the target framework can be directly obtained from the shared server for installation without having to recompile and generate the installation package of the target framework in combination with the development environment of the local machine for installation and deployment. This simplifies the deployment process of the target framework and enables rapid deployment of the target framework.
[0037] In a fourth aspect, a framework deployment device is provided, the device comprising:
[0038] A building module, used to build a development environment of a target framework of the cluster to be deployed according to the development environment information of each physical machine in the cluster to be deployed;
[0039] An acquisition module, used for acquiring a configuration file of the target framework, and generating the target framework according to the configuration file in the target development environment;
[0040] The verification and deployment module is used to perform functional verification on the target framework, and if the target framework is verified, the framework installation package of the target framework is stored on a shared server, so that each physical machine in the cluster to be deployed can obtain the framework installation package from the shared server to deploy the target framework.
[0041] In a fifth aspect, a framework deployment device is provided, the device comprising:
[0042] An acquisition module is used to obtain a framework installation package of a target framework from a shared server; the framework installation package is a development environment of the target framework of the cluster to be deployed, which is built by a test machine according to the development environment information of each physical machine in the cluster to be deployed, a configuration file of the target framework, and an installation package obtained after functional verification by the test machine and functional verification by the shared server;
[0043] A deployment module is used to deploy the target framework according to the framework installation package.
[0044] In a sixth aspect, a framework deployment device is provided, the device comprising:
[0045] A receiving module, used for receiving a verification request sent by a test machine; the verification request includes a framework installation package of a target framework, wherein the framework installation package is a development environment of the target framework of the cluster to be deployed, which is built by the test machine according to the development environment information of each physical machine in the cluster to be deployed, a configuration file of the target framework, and an installation package obtained after functional verification by the test machine;
[0046] A verification module, used for performing functional verification on the target framework according to the verification request;
[0047] The storage module is used to store the framework installation package of the target framework when the functional verification passes, so that each physical machine in the cluster to be deployed obtains the framework installation package from the shared server to deploy the target framework.
[0048] In a seventh aspect, a computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the method of the first aspect when executing the computer program.
[0049] In an eighth aspect, a computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the method of the second aspect when executing the computer program.
[0050] In a ninth aspect, a computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the method of the third aspect when executing the computer program.
[0051] In a tenth aspect, a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method of the first aspect is implemented.
[0052] In an eleventh aspect, a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method of the second aspect is implemented.
[0053] In a twelfth aspect, a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method of the third aspect is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 A schematic diagram of the structure of an application system in an embodiment;
[0055] Figure 2 A schematic diagram of a process flow of a method for deploying a framework in an embodiment;
[0056] Figure 3 for Figure 2 A flowchart of an implementation method of S101 in the embodiment;
[0057] Figure 4 for Figure 2 A flowchart of an implementation method of S103 in the embodiment;
[0058] Figure 5 A schematic diagram of a process flow of a method for deploying a framework in an embodiment;
[0059] Figure 6 A schematic diagram of a process flow of a method for deploying a framework in an embodiment;
[0060] Figure 7 A schematic diagram of a process flow of a method for deploying a framework in an embodiment;
[0061] Figure 8 It is a structural block diagram of a deployment device of a framework in one embodiment;
[0062] Fig. 9 is a structural block diagram of a deployment device of a framework in one embodiment;
[0063] Fig.10 It is a structural block diagram of a deployment device of a framework in one embodiment;
[0064] Fig.11It is a structural block diagram of a deployment device of a framework in one embodiment;
[0065] Fig.12 It is a structural block diagram of a deployment device of a framework in one embodiment;
[0066] Fig.13 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0067] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0068] The deployment method of the framework provided in this application can be applied to Figure 1 In the application system shown. Among them, the test machine is connected to the shared server, and the shared server is connected to the computing node cluster. The shared server and the computing node cluster can be in the intranet and not connected to the external network. The computing node cluster includes multiple physical machines, which can be a non-networked computing node cluster based on a domestic heterogeneous computing platform, or a networked computing node cluster based on a domestic heterogeneous computing platform. Each physical machine in the computing node cluster can be used to deploy various types of software frameworks for reasoning machine learning models or deep learning models. The test machine can be but is not limited to various personal computers, laptops, smart phones, tablets and servers; the shared server can be implemented with an independent server or a server cluster consisting of multiple servers.
[0069] Those skilled in the art will understand that Figure 1 The structure of the application system shown in the figure is only a block diagram of a partial structure related to the present application scheme, and does not constitute a limitation on the application system to which the present application scheme is applied. The specific application system may include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.
[0070] In one embodiment, Figure 2 As shown, a framework deployment method is provided, which is applied to Figure 1 The test machine in the example is used to illustrate, including the following steps:
[0071] S101, building a development environment of a target framework of the cluster to be deployed according to the development environment information of each physical machine in the cluster to be deployed.
[0072] The development environment information of each physical machine may include a series of program files related to the development environment of the cluster to be deployed, such as the compiler, network interface, related dependent application library, distributed plug-in, and ecosystem of each physical machine. The ecosystem may be a ROCm system, an Nvidia system, etc. The target framework may be a machine learning framework or a deep learning framework. For example, the target framework may be a Pytorch framework, a TensorFlow framework, etc.
[0073] In this embodiment, the test machine can obtain the relevant configuration files of the current hardware and / or software of each physical machine from each physical machine in the cluster to be deployed in real time under a networked environment, and obtain the development environment of each physical machine based on the relevant configuration files; optionally, the test machine can also obtain the relevant configuration files of the relevant hardware and / or software of each physical machine in the cluster to be deployed in advance under a non-networked environment, and then obtain the development environment of each physical machine based on the relevant configuration files. After the test machine obtains the development environment of each physical machine in the cluster to be deployed, that is, the development environment of the cluster to be deployed, it can build a development environment that is consistent with the development environment of the cluster to be deployed, and use the built development environment as the development environment when the target framework is deployed on the cluster to be deployed, so as to simulate the development environment of the cluster to be deployed on the test machine.
[0074] After the test machine simulates the development environment of the cluster to be deployed, it can further build the development environment of the target framework in combination with the deployment environment information of the target framework or the deployment requirements of the target framework. In one application scenario, the process of the test machine building the development environment of the target framework includes: the test machine obtains the development environment information of each physical machine in the cluster to be deployed and the deployment environment information of the target framework, and then compiles the program files contained in the development environment information of each physical machine in the cluster to be deployed and the program files contained in the deployment environment information of the target framework together to generate the development environment of the target framework of the cluster to be deployed; optionally, the test machine can also first compile the program files contained in the deployment environment information of the target framework to generate a process file, and then further add the program files contained in the development environment information of each physical machine in the cluster to be deployed based on the process file, and then compile again to generate the development environment of the target framework of the cluster to be deployed; optionally, the test machine can also first compile the development environment information of each physical machine in the cluster to be deployed to generate a process file, and then further add the program files contained in the deployment environment information of the target framework based on the process file, and then compile again to generate the development environment of the target framework of the cluster to be deployed.
[0075] For example, if the deployment environment information of the target framework includes program files related to the target framework deployment, such as the application system required for the target framework deployment, the application library that the application system depends on, basic function configuration parameters, etc.; the development environment information of each physical machine includes a series of program files related to the development environment of the cluster to be deployed, such as the compiler, network interface, related dependent application library, distributed plug-in, ecosystem, etc. of each physical machine; specifically, the test machine can compile the program files related to the target framework, such as the application system required for the target framework deployment, the application library that the application system depends on, basic function configuration parameters, etc., as well as a series of program files related to the development environment of the cluster to be deployed, such as the compiler, network interface, related dependent application library, distributed plug-in, ecosystem, etc. of each physical machine, to generate the development environment of the target framework of the cluster to be deployed. Optionally, the test machine may first compile the program files related to the target framework, such as the application system required for deploying the target framework, the application library on which the application system depends, basic function configuration parameters, etc., to generate a process file, and then add a series of program files related to the development environment of the cluster to be deployed, such as the compiler, network interface, related dependent application library, distributed plug-in, ecosystem, etc. of each physical machine to the process file; finally, compile the added process files to generate the development environment of the target framework of the cluster to be deployed.
[0076] S102, obtaining a configuration file of a target framework, and generating a target framework according to the configuration file in a development environment.
[0077] Among them, the configuration file of the target framework can be the source code project of the target framework. In this embodiment, the test machine can directly download the source code project of the target framework from the relevant database (such as the official warehouse) in a networked environment, and then compile it in the development environment of the target framework that has been built before to generate the target framework. Optionally, during the compilation process, the test machine can configure and install the compilation options as required, such as whether to use the MPI interface, ibverbs plug-in, etc., and then cache the option tool installation package generated during the compilation process to the specified path with the help of the centos rpm package, so that the cluster that is expected to be deployed later can download the option tool installation package from the test machine for use.
[0078] S103, functional verification is performed on the target framework, and if the target framework is verified, the framework installation package of the target framework is stored on the shared server, so that each physical machine in the cluster to be deployed obtains the framework installation package from the shared server to deploy the target framework.
[0079] In this embodiment, when the test machine generates a target framework according to the configuration file of the acquired target framework, the target framework can be deployed on the test machine and / or the shared server for functional verification, thereby verifying whether the generated target framework can be deployed normally. If the target framework is deployed on the test machine for functional testing and the verification is passed, it means that the target framework is suitable for the development environment on the test machine and can be used normally on the test machine. If the target framework is deployed on the shared server for functional testing and the verification is passed, it means that the target framework is also suitable for the development environment on the shared server and can be used normally on the shared server. In actual applications, the test machine deploys the target framework on the test machine for functional verification. If the verification is passed, it is determined that the target framework verification is passed. In this scenario, the test machine can directly send the framework installation package of the target framework to the shared server for storage. After that, any physical machine in the cluster to be deployed can obtain the framework installation package of the target framework from the shared server for installation and deployment. Optionally, the test machine can also directly send the framework installation package of the target framework to the shared server for functional verification again, and store the framework installation package if the verification is passed.
[0080] The framework deployment method disclosed in this embodiment builds the development environment of the target framework of the cluster to be deployed according to the development environment information of each physical machine in the cluster to be deployed, obtains the configuration file of the target framework, and generates the target framework according to the configuration file in the development environment; performs functional verification on the target framework, and stores the framework installation package of the target framework on a shared server when the target framework verification passes, so that each physical machine in the cluster to be deployed can obtain the framework installation package from the shared server to deploy the target framework. In the above method, the test machine pre-builds the development environment of the target framework of the cluster to be deployed according to the development environment information of each physical machine in the cluster to be deployed, and realizes the simulation of the development environment of each physical machine in the cluster to be deployed on the test machine, so that the target framework obtained based on the simulated development environment can be applied to any physical machine in the cluster to be deployed. Therefore, when any physical machine in the cluster to be deployed needs to deploy the target framework, the physical machine user does not need to configure the target framework in combination with its own development environment, and recompiles and generates the installation package of the target framework, which reduces many complex operation processes required for environmental configuration, and the physical machine user can The framework installation package of the target framework is obtained from the shared server and then directly installed and used, which greatly improves the deployment efficiency of the target framework on the physical machine, especially when facing the physical machine deployment of the cluster. Since the development environment and user requirements of each physical machine in the cluster are different, when the above method is applied to implement the deployment of each physical machine in the cluster, since the framework installation package of the target framework stored on the shared server is obtained in advance by simulating the development environment of the cluster to be deployed, the framework installation package of the target framework does not need to be recompiled due to differences in the development environment of each physical machine and differences in physical machine users, which further improves the deployment efficiency of the physical machines in the cluster.
[0081] In one embodiment, an implementation of the above S101 is also provided, such as Figure 3 As shown, the above S101 "building a development environment of a target framework of the cluster to be deployed according to the development environment information of each physical machine in the cluster to be deployed" includes:
[0082] S201, obtaining the image file of the target framework.
[0083] In this embodiment, when the test machine obtains the development environment information of each physical machine in the cluster to be deployed, it can first extract the type of ecosystem from the development environment information, determine the version type and version number of the ecosystem, and then download the image file of the corresponding system type and version number from the corresponding container database according to the version type and version number of the ecosystem for subsequent use. For example, assuming that the target framework is the Pytorch framework, the Pytorch framework needs to be deployed on the ROCM system, that is, the development environment of the cluster to be deployed includes the ROCM system, therefore, the test machine can directly download (pull) the Pytorch image file with certain dependencies loaded in the ROCM official warehouse of docker. It should be noted that the image file of the target framework is a basic image file, and the test machine obtaining the basic image file is equivalent to the test machine building a basic development environment.
[0084] S202, adding the development environment information of each physical machine to the image file of the target framework.
[0085] After the test machine obtains the image file of the target framework and the development environment information of each physical machine, it can add the development environment information of each physical machine to the image file of the target framework to obtain the added image file. For example, after the test machine downloads the Pytorch image, it installs a series of program files related to the development environment of the cluster to be deployed, such as the compiler, network interface, related dependent application libraries, distributed plug-ins, and ecosystem of each physical machine based on the Pytorch image.
[0086] S203, generating a development environment of the target framework according to the added image file.
[0087] After the test machine adds the development environment information of each physical machine based on the image file of the target framework, the added image file can be further compiled to generate the development environment of the target framework to complete the development environment of the target framework.
[0088] The above-mentioned embodiment realizes that the test machine uses a container (docker) to build the development environment of the target framework, wherein since the image file of the target framework contains the basic development environment of the target framework, the development environment information of each physical machine is added on the basis of the image file, so that the development environment of the cluster to be deployed can be quickly matched. If the development environment of each physical machine of the cluster to be deployed changes later, there is no need to repeatedly configure the basic development environment of the target framework, and only the development environment information of each physical machine needs to be additionally modified, thereby improving the efficiency of the test machine in building the development environment of the target framework and the reusability of historical data.
[0089] In one embodiment, an implementation of the above S103 is also provided, such as Figure 4As shown, the above S103 "performs functional verification on the target framework, and stores the framework installation package of the target framework on the shared server if the target framework passes the verification" includes:
[0090] S301, in the development environment of the test machine, use the preset test cases to perform functional testing on the target framework. If the functional test passes, execute step S302; if the functional test fails, execute step S303.
[0091] This embodiment relates to a specific way for the test machine to perform functional verification on the target framework. Specifically, the test machine can pre-build test cases for different application scenarios, such as test cases for classification tasks, test cases for detection tasks, test cases for identification tasks, etc., and then apply these test cases to the target framework to perform functional tests in sequence, so as to verify whether the target framework compiled and generated in S102 is available in the current development environment of the test machine or whether there is a default library. If all these test cases can be tested and passed, it can be determined that the target framework verification has passed. If only one of these test cases fails, it can be determined that the target framework verification has failed.
[0092] S302: Send a verification request to the shared server, so that the shared server performs functional verification on the target framework, and stores the framework installation package of the target framework included in the verification request if the functional verification passes.
[0093] The verification request is used to instruct the shared server to perform functional verification on the target framework, and the verification request carries the framework installation package of the target framework.
[0094] The present embodiment involves the result of the functional test of the target framework by the test machine, which is the result of verification. This result indicates that the target framework can be used normally in the current development environment of the test machine. In this case, the test machine will package and generate a framework installation package (such as a whl installation file) that can be installed removably, which is convenient for installation on a computer node cluster that does not have a compilation environment. Then the test machine sends a verification request carrying the framework installation package to the shared server. After receiving the verification request, the shared server can further extract the framework installation package of the target framework from the verification request, install the framework installation package on the shared server, and build test cases for different application scenarios, such as test cases for classification tasks, test cases for detection tasks, test cases for identification tasks, etc., and then apply these test cases to the target framework for functional testing in sequence, so as to verify whether the target framework verified in S301 is available in the current development environment of the shared server or whether there is a default library. If all these test cases can be tested, the framework installation package of the target framework included in the verification request is stored, so that each physical machine in the cluster to be deployed can obtain the framework installation package from the shared server for use. If there are test cases that fail the test among these test cases, it is determined that the target framework is not available on the shared server, and the shared server needs to feedback information to the test machine, instructing the test machine to repair the target framework or recompile and generate the target framework to regenerate the framework installation package of the target framework, and re-perform functional verification on the test machine and the shared server until all verifications pass. It should be noted that during the process of the test machine performing functional testing on the target framework, the dependent installation packages can be captured and stored so that other devices can obtain them from the test machine when needed later. It is understandable that the test cases used on the test machine may be the same as those used on the shared server, or they may be different. This can be determined based on actual test requirements and is not limited here.
[0095] S303, regenerate the target framework, return to the step of performing functional testing on the target framework using preset test cases in the development environment of the test machine, until the functional test passes.
[0096] This embodiment involves a case where the result of the functional test performed by the test machine on the target framework is a verification failure. This result indicates that the target framework cannot be used normally in the current development environment of the test machine. In this case, the test machine adjusts the compilation and regenerates the target framework according to the aforementioned steps S101-S102, and then returns to the aforementioned step S301 to perform functional testing on the regenerated target framework until the test passes.
[0097] In this embodiment, when the test machine obtains the target framework, functional verification is further performed on the test machine to verify whether the target framework is available and whether a default library exists, so that the test machine can obtain a valid and available target framework and then deploy it to each physical machine in the cluster, thereby avoiding the problem of the target framework being inapplicable when the physical machine deploys the target framework later, thereby improving the deployment efficiency of the target framework.
[0098] In one embodiment, the verification request sent by the test machine to the shared server also includes the dependent installation package of the target framework. The dependent installation package is a functional dependent installation package captured by the test machine in the process of using the test case to perform functional testing on the target framework. Correspondingly, when executing the above step S302, the test machine can specifically execute, if the functional verification passes, to send a verification request to the shared server so that the shared server performs functional verification on the target framework, and if the functional verification passes, store the framework installation package of the target framework and the dependent installation package of the target framework included in the verification request.
[0099] In this embodiment, the way in which the test machine instructs the shared server to perform functional verification on the target framework is consistent with the method described in S301 above. For details, please refer to the above description and will not be repeated here. It should be noted that in the process of the test machine or shared server using various types of test cases to perform functional verification on the target framework, the dependent installation package of the target framework can be captured and stored on the shared server, so that each physical machine in the cluster to be deployed can obtain the dependent installation package of the target framework from the shared server for installation and use, thereby improving various types of software functions of the target framework.
[0100] In this embodiment, during the process of the test machine performing functional verification on the target framework, the dependent installation package of the target framework can be captured. Since the dependent installation package of the target framework is obtained according to the functional dependencies corresponding to the test case, it is an installation package corresponding to some basic functions and is used frequently in actual applications. Therefore, the verification request of this embodiment also includes the dependent installation package of the target framework, so that the physical machine can also obtain the dependent installation package to deploy the target framework and implement the application of the corresponding functions. There is no need for the physical machine user to obtain the corresponding update configuration file by himself, and then compile and generate the dependent installation package according to the configuration file to implement the corresponding functional application, so that the above-mentioned deployment method can meet the needs of more users and improve the applicability of the above-mentioned deployment method.
[0101] Optionally, a specific target framework is provided, and the target framework is the Pytorch framework, and the corresponding Pytorch framework is deployed on the ROCM heterogeneous computing platform. The ROCM heterogeneous computing platform is currently an emerging heterogeneous computing platform, but the software architecture system of this emerging heterogeneous computing platform is not perfect, and some common library functions are still under development. There is almost no official torch binary installation package. This situation leads to the fact that only a reasonable version of the Pytorch framework can be generated by source code compilation to match the ROCM heterogeneous computing platform. The deployment method of the framework provided in the above embodiment can realize the rapid deployment of the Pytorch framework to each physical machine in the computing node cluster (ROCM heterogeneous computing platform cluster). The specific deployment method can be found in the above description. It should be noted that the ROCM system is installed on each physical machine in the computing node cluster in this embodiment.
[0102] All the above embodiments are deployment methods of the framework on the test machine side. Figure 5 The embodiment is a method for deploying a framework on a physical machine side, and the method for deploying a framework on a physical machine side will be described in detail below.
[0103] In one embodiment, Figure 5 As shown, a framework deployment method is provided, which is applied to Figure 1 The following steps are used as an example to illustrate the physical machine in the example:
[0104] S401, obtaining a framework installation package of a target framework from a shared server.
[0105] Among them, the framework installation package is the development environment of the target framework of the cluster to be deployed, which is built by the test machine according to the development environment information of each physical machine in the cluster to be deployed, the configuration file of the target framework, and the installation package obtained after functional verification by the test machine and the shared server.
[0106] S402, deploying the target framework according to the framework installation package.
[0107] This embodiment involves a process of deploying a target framework on any physical machine in a cluster to be deployed. During this process, the physical machine needs to first obtain the framework installation package of the target framework. Specifically, the installation package of the target framework can be copied from a shared server, and the target framework can be further installed on the physical machine, and the execution of specific tasks can be started to complete the rapid deployment of the target framework. It should be noted that before actually deploying the target framework, the physical machine can also test the target framework in the form of test cases. If the test passes, the target framework is deployed on the physical machine. If the test fails, the physical machine can transmit feedback information to the test machine through the shared server to instruct the test machine to recompile and generate the target framework, or repair the target framework.
[0108] In this embodiment, since the framework installation package of the target framework stored on the shared server is compiled and generated by the test machine through a development environment that simulates a physical machine, the framework installation package of the target framework can be applied to any physical machine in the cluster. Therefore, when each physical machine in the cluster deploys the target framework, the framework installation package of the target framework can be directly obtained from the shared server for installation. There is no need to recompile and generate the installation package of the target framework in combination with the development environment of the local machine for installation and deployment, which simplifies the deployment process of the target framework and enables rapid deployment of the target framework.
[0109] Above Figure 5 The embodiment is a method for deploying a framework on a physical machine side. Figure 6 The embodiment is a method for deploying a framework on a shared server side. The method for deploying a framework on a shared server side will be specifically described below.
[0110] In one embodiment, Figure 6 As shown, a framework deployment method is provided, which is applied to Figure 1 The shared server in the example is used to illustrate the following steps:
[0111] S501, receive the verification request sent by the test machine; the verification request includes the framework installation package of the target framework, which is the development environment of the target framework of the cluster to be deployed, built by the test machine according to the development environment information of each physical machine in the cluster to be deployed, the configuration file of the target framework, and the installation package obtained after functional verification by the test machine.
[0112] S502: Perform functional verification on the target framework according to the verification request.
[0113] S503 , if the functional verification passes, the framework installation package of the target framework is stored, so that each physical machine in the cluster to be deployed obtains the framework installation package from the shared server to deploy the target framework.
[0114] This embodiment involves a process in which a shared server verifies whether a target framework compiled and generated by a test machine can be used normally on the shared server, and after the verification is passed, the framework installation package of the target framework compiled and generated by the test machine is stored so that each physical machine in the cluster to be deployed that is subsequently connected to the shared server can directly obtain the framework installation package of the target framework for use. The specific process of the above-mentioned verification, the specific process of the test machine compiling and generating the target framework, and the specific process of the physical machine deploying the target framework can be found in the description of the aforementioned embodiment and will not be repeated here.
[0115] In this embodiment, since the framework installation package of the target framework stored on the shared server is compiled and generated by the test machine through the development environment of the simulated physical machine, the framework installation package of the target framework can be applied to any physical machine in the cluster, and the shared server performs further functional verification on the target framework to verify that the target framework can be applied on the shared server, thereby further improving the applicability of the target framework. Therefore, when each physical machine in the cluster deploys the target framework, the framework installation package of the target framework can be directly obtained from the shared server for installation, without the need to recompile and generate the installation package of the target framework in combination with the development environment of the local machine for installation and deployment, which simplifies the deployment process of the target framework and realizes rapid deployment of the target framework.
[0116] In one embodiment, another application is provided Figure 1 The application system shown in the embodiment performs a framework deployment method, which can realize the rapid deployment of the target framework to each physical machine in the computing node cluster, such as Figure 7 As shown, the method specifically includes:
[0117] S601, the test machine obtains the image file of the target framework.
[0118] S602, the testing machine adds the development environment information of each physical machine to the image file of the target framework.
[0119] S603, the testing machine generates a development environment of the target framework according to the added image file.
[0120] S604, in the development environment of the test machine, develop and compile the target framework, use the preset test cases to perform functional verification on the target framework, if the functional verification passes, execute step S605; if the functional verification fails, execute step S611.
[0121] S605, the testing machine generates a framework installation package of the target framework, and sends a verification request to the shared server, wherein the verification request carries the framework installation package.
[0122] S606, after receiving the verification request, the shared server extracts the framework installation package of the target framework from the verification request, installs the target framework, and performs functional verification on the target framework. If the functional verification passes, execute step S607; if the functional verification fails, execute S610.
[0123] S607: Store the framework installation package of the target framework included in the verification request.
[0124] S608, each physical machine in the computer node cluster obtains a framework installation package of the target framework from the shared server.
[0125] S609, each physical machine in the computer node cluster installs the framework installation package to deploy the target framework.
[0126] S610, feedback verification failure information to the test machine, so that the test machine regenerates the target framework and returns to execute the above step S604 until the functional verification passes.
[0127] S611, regenerate the target framework and return to execute the above step S604 until the functional verification passes.
[0128] Each step in the above embodiment has been described above. Please refer to the above description for details and will not be repeated here.
[0129] It should be understood that although Figure 2-7 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-7 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0130] In one embodiment, Figure 8 As shown, a framework deployment device is provided, including:
[0131] The building module 11 is used to build the development environment of the target framework of the cluster to be deployed according to the development environment information of each physical machine in the cluster to be deployed.
[0132] The acquisition module 12 is used to acquire the configuration file of the target framework and generate the target framework according to the configuration file in the target development environment.
[0133] The verification and deployment module 13 is used to perform functional verification on the target framework, and if the target framework is verified, the framework installation package of the target framework is stored on a shared server, so that each physical machine in the cluster to be deployed obtains the framework installation package from the shared server to deploy the target framework.
[0134] In one embodiment, Fig. 9 As shown, the building module 11 includes:
[0135] An acquisition unit 111 is used to acquire the image file of the target framework;
[0136] An adding unit 112 is used to add the development environment information of each of the physical machines in the image file of the target framework;
[0137] The generating unit 113 is used to generate the development environment of the target framework according to the added image file.
[0138] In one embodiment, the development environment information includes: the ecosystem, compiler, network interface, related dependent application libraries, and distributed plug-ins of each physical machine in the cluster to be deployed.
[0139] In one embodiment, Fig.10 As shown, the verification deployment module 13 includes:
[0140] A first verification unit 131 is used to perform functional testing on the target framework using a preset test case in a development environment of a test machine;
[0141] The second verification unit 132 is used to send a verification request to the shared server if the functional test passes, so that the shared server performs functional verification on the target framework, and store the framework installation package of the target framework included in the verification request if the functional verification passes;
[0142] The third verification unit 133 is used to regenerate the target framework if the functional test fails, and return to execute the step of performing functional testing on the target framework using preset test cases in the development environment of the test machine until the functional test passes.
[0143] In one embodiment, Fig.11 As shown, the verification request also includes a dependent installation package of the target framework, and the dependent installation package is a functional dependent installation package captured by the test machine in the process of performing functional testing on the target framework using the test case.
[0144] Correspondingly, the second verification unit 132 is specifically used to send a verification request to the shared server when the functional test passes, so that the shared server performs functional verification on the target framework, and stores the framework installation package of the target framework and the dependent installation package of the target framework included in the verification request when the functional verification passes.
[0145] In one embodiment, Fig.11 As shown, a framework deployment device is provided, including:
[0146] The acquisition module 21 is used to obtain the framework installation package of the target framework from the shared server; the framework installation package is the development environment of the target framework of the cluster to be deployed, which is built by the test machine according to the development environment information of each physical machine in the cluster to be deployed, the configuration file of the target framework, and the installation package obtained after the functional verification is performed by the test machine and the shared server;
[0147] The deployment module 22 is used to deploy the target framework according to the framework installation package.
[0148] In one embodiment, Fig.12 As shown, a framework deployment device is provided, including:
[0149] The receiving module 31 is used to receive the verification request sent by the test machine; the verification request includes the framework installation package of the target framework, and the framework installation package is the development environment of the target framework of the cluster to be deployed built by the test machine according to the development environment information of each physical machine in the cluster to be deployed, the configuration file of the target framework, and the installation package obtained after the functional verification is performed by the test machine;
[0150] A verification module 32, configured to perform functional verification on the target framework according to the verification request;
[0151] The storage module 33 is used to store the framework installation package of the target framework when the functional verification passes, so that each physical machine in the cluster to be deployed obtains the framework installation package from the shared server to deploy the target framework.
[0152] For the specific definition of the deployment device of the framework, please refer to the definition of the deployment method of the framework above, which will not be repeated here. Each module in the deployment device of the above framework can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0153] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.13As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store test data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a framework deployment method is implemented.
[0154] Those skilled in the art will understand that Fig.13 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0155] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0156] According to the development environment information of each physical machine in the cluster to be deployed, build the development environment of the target framework of the cluster to be deployed;
[0157] Obtaining a configuration file of the target framework, and generating the target framework according to the configuration file in the development environment;
[0158] Functional verification is performed on the target framework, and if the target framework verification passes, the framework installation package of the target framework is stored on a shared server, so that each physical machine in the cluster to be deployed obtains the framework installation package from the shared server to deploy the target framework.
[0159] The above embodiment provides a computer device, whose implementation principle and technical effect are similar to those of the above method embodiment, and will not be repeated here.
[0160] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0161] Obtaining a framework installation package of the target framework from the shared server; the framework installation package is a development environment of the target framework of the cluster to be deployed, which is built by the test machine according to the development environment information of each physical machine in the cluster to be deployed, a configuration file of the target framework, and an installation package obtained after functional verification is performed by the test machine and the shared server;
[0162] The target framework is deployed according to the framework installation package.
[0163] The above embodiment provides a computer device, whose implementation principle and technical effect are similar to those of the above method embodiment, and will not be repeated here.
[0164] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0165] Receive a verification request sent by a test machine; the verification request includes a framework installation package of a target framework, wherein the framework installation package is a development environment of the target framework of the cluster to be deployed, which is built by the test machine according to the development environment information of each physical machine in the cluster to be deployed, a configuration file of the target framework, and an installation package obtained after functional verification by the test machine;
[0166] Performing functional verification on the target framework according to the verification request;
[0167] If the functional verification passes, the framework installation package of the target framework is stored, so that each physical machine in the to-be-deployed cluster obtains the framework installation package from the shared server to deploy the target framework.
[0168] The above embodiment provides a computer device, whose implementation principle and technical effect are similar to those of the above method embodiment, and will not be repeated here.
[0169] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0170] According to the development environment information of each physical machine in the cluster to be deployed, build the development environment of the target framework of the cluster to be deployed;
[0171] Obtaining a configuration file of the target framework, and generating the target framework according to the configuration file in the development environment;
[0172] Functional verification is performed on the target framework, and if the target framework verification passes, the framework installation package of the target framework is stored on a shared server, so that each physical machine in the cluster to be deployed obtains the framework installation package from the shared server to deploy the target framework.
[0173] The above embodiment provides a computer-readable storage medium, whose implementation principle and technical effect are similar to those of the above method embodiment, and will not be repeated here.
[0174] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0175] Obtaining a framework installation package of the target framework from the shared server; the framework installation package is a development environment of the target framework of the cluster to be deployed, which is built by the test machine according to the development environment information of each physical machine in the cluster to be deployed, a configuration file of the target framework, and an installation package obtained after functional verification is performed by the test machine and the shared server;
[0176] The target framework is deployed according to the framework installation package.
[0177] The above embodiment provides a computer-readable storage medium, whose implementation principle and technical effect are similar to those of the above method embodiment, and will not be repeated here.
[0178] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0179] Receive a verification request sent by a test machine; the verification request includes a framework installation package of a target framework, wherein the framework installation package is a development environment of the target framework of the cluster to be deployed, which is built by the test machine according to the development environment information of each physical machine in the cluster to be deployed, a configuration file of the target framework, and an installation package obtained after functional verification by the test machine;
[0180] Performing functional verification on the target framework according to the verification request;
[0181] If the functional verification passes, the framework installation package of the target framework is stored, so that each physical machine in the to-be-deployed cluster obtains the framework installation package from the shared server to deploy the target framework.
[0182] The above embodiment provides a computer-readable storage medium, whose implementation principle and technical effect are similar to those of the above method embodiment, and will not be repeated here.
[0183] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0184] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0185] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A framework deployment method, It is characterized in that The method comprises: According to the development environment information of each physical machine in the cluster to be deployed, build the development environment of the target framework of the cluster to be deployed; Obtaining a configuration file of the target framework, and generating the target framework according to the configuration file in the development environment; In the development environment of the test machine, functional testing is performed on the target framework using preset test cases; If the functional test passes, a verification request is sent to the shared server; the verification request includes the framework installation package of the target framework and the dependent installation package of the target framework, so that the shared server performs functional verification on the target framework, and stores the framework installation package of the target framework and the dependent installation package of the target framework included in the verification request if the functional verification passes, so that each physical machine in the cluster to be deployed obtains the framework installation package from the shared server to deploy the target framework; the dependent installation package is a functional dependent installation package captured by the test machine in the process of using the test case to perform functional testing on the target framework.
2. The method according to claim 1, It is characterized in that The step of building a development environment of a target framework of the cluster to be deployed according to the development environment information of each physical machine in the cluster to be deployed includes: Obtaining the image file of the target framework; Adding the development environment information of each of the physical machines to the image file of the target framework; Generate a development environment for the target framework based on the added image file.
3. The method according to claim 1, It is characterized in that The method further comprises: If the functional test fails, the target framework is regenerated, and the process returns to the step of performing functional testing on the target framework using preset test cases in the development environment of the test machine until the functional test passes.
4. The method according to claim 1, It is characterized in that The method further comprises: Obtaining configuration files related to the hardware and / or software of each physical machine from each physical machine in the cluster to be deployed; The development environment of each of the physical machines is obtained according to the relevant configuration files.
5. The method according to claim 1, It is characterized in that The development environment information of the physical machine includes the compiler, network interface, related dependent application libraries, distributed plug-ins, and ecosystem of the physical machine.
6. A framework deployment method, It is characterized in that The method comprises: Obtain a framework installation package of the target framework from a shared server; the framework installation package is the development environment of the target framework of the cluster to be deployed, which is built by the test machine according to the development environment information of each physical machine in the cluster to be deployed, the configuration file of the target framework, and the installation package obtained after functional verification is performed by the test machine and the shared server; the functional verification performed by the shared server includes the test machine sending a verification request to the shared server so that the shared server performs functional verification on the target framework, and if the functional verification passes, stores the framework installation package of the target framework and the dependent installation package of the target framework included in the verification request, wherein the dependent installation package is the functional dependent installation package captured by the test machine in the process of performing functional testing on the target framework using test cases; The target framework is deployed according to the framework installation package.
7. A framework deployment method, It is characterized in that The method comprises: Receive a verification request sent by a test machine; the verification request includes a framework installation package of a target framework and a dependent installation package of the target framework, wherein the framework installation package is a development environment of the target framework of the cluster to be deployed, which is built by the test machine according to the development environment information of each physical machine in the cluster to be deployed, a configuration file of the target framework, and an installation package obtained after functional verification by the test machine; Performing functional verification on the target framework according to the verification request; If the functional verification passes, the framework installation package of the target framework and the dependent installation package of the target framework are stored, so that each physical machine in the cluster to be deployed obtains the framework installation package from the shared server to deploy the target framework; the dependent installation package is the functional dependent installation package captured by the test machine during the process of functional testing the target framework using test cases.
8. A deployment device for a framework, It is characterized in that The device comprises: A building module, used to build a development environment of a target framework of the cluster to be deployed according to the development environment information of each physical machine in the cluster to be deployed; An acquisition module, used for acquiring a configuration file of the target framework, and generating the target framework according to the configuration file in the development environment; A verification and deployment module is used to perform functional testing on the target framework using preset test cases in the development environment of the test machine; if the functional test passes, a verification request is sent to a shared server; the verification request includes a framework installation package of the target framework and a dependent installation package of the target framework, so that the shared server performs functional verification on the target framework, and stores the framework installation package of the target framework and the dependent installation package of the target framework included in the verification request if the functional verification passes, so that each physical machine in the cluster to be deployed obtains the framework installation package from the shared server to deploy the target framework; the dependent installation package is a functional dependent installation package captured by the test machine in the process of performing functional testing on the target framework using the test case.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
