Application deployment method, device, electronic device and storage medium

By obtaining and checking the resource information of the application to be deployed, the problem of missing or abnormal resources during the application release process is solved, ensuring that resources are fully prepared before application deployment, and realizing the normal release and online launch of the application.

CN114356344BActive Publication Date: 2024-10-18MASHANG CONSUMER FINANCE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111594336.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-23
Publication Date
2024-10-18
Estimated Expiration
2041-12-23

AI Technical Summary

Technical Problem

During the application publishing process, missing or abnormal resources cause the application to fail to be released or put online normally.

Method used

By obtaining the configured resource information of the application to be deployed, the resource verification information corresponding to the application to be deployed is generated, and the resource items that need to be checked before deployment are checked. If all items are checked and passed, the deployment is carried out to ensure that the resources are fully prepared.

Benefits of technology

It avoids the problem of missing resources, ensures that the application can be accessed normally after it is deployed and released, and ensures the successful deployment and operation of the application to the greatest extent.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114356344B_ABST
    Figure CN114356344B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides an application deployment method, device, electronic device and storage medium, the method comprising: obtaining configured resource information of the application to be deployed; generating resource verification information corresponding to the application to be deployed according to the configured resource information, wherein the resource verification information includes at least one resource verification item that the application to be deployed needs to verify before deployment; if all resource verification items in the resource verification information are verified, the application to be deployed is deployed. The embodiment of the present application solves the problem that there are resource omissions or anomalies in the process of application release, which causes the application to be unable to be deployed normally or cannot be used after deployment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of application publishing, and in particular, relates to an application deployment method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of domestic Internet companies and the popularization of mobile terminals, the frequency of application deployment is increasing. The financial industry usually requires dual-active deployment in the same city or multi-active deployment in different locations. The deployment architecture is more complex than that of ordinary applications, requiring more network applications and more configuration requirements. A configuration anomaly or omission may cause all traffic to converge to one data center, causing more problems. Therefore, resource processing before the application goes online is becoming more and more important.

[0003] In related technologies, users usually submit code to a distributed version control system (Git), which automatically triggers the continuous integration (CI) system to pull the latest code for building and generate a new deployment package. Then, users select different environments based on the different versions of the deployment package prompted on CI, and publish the application online. Continuous delivery (CD) submits the deployment package to the private cloud and automatically triggers private cloud deployment. However, in the above application publishing process, there may be resource omissions or anomalies, which may result in the application not being published normally or being unusable after being released normally. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide an application deployment method, device, electronic device and storage medium to solve the problem that resources are omitted or abnormal during the application release process, thereby causing the application to fail to be released normally or be unusable after being normally launched.

[0005] In a first aspect, an embodiment of the present application provides an application deployment method, including:

[0006] Get the configured resource information of the application to be deployed;

[0007] Generating resource verification information corresponding to the application to be deployed according to the configured resource information, wherein the resource verification information includes at least one resource verification item that needs to be verified before the application to be deployed is deployed;

[0008] If all resource check items in the resource check information are checked and passed, the application to be deployed is deployed.

[0009] In a second aspect, an embodiment of the present application provides an application deployment device, including:

[0010] The acquisition module is used to obtain the configured resource information of the application to be deployed;

[0011] A generating module, configured to generate resource verification information corresponding to the application to be deployed according to the configured resource information, wherein the resource verification information includes at least one resource verification item that needs to be verified before the application to be deployed is deployed;

[0012] The deployment module is used to deploy the application to be deployed if all resource verification items in the resource verification information are verified.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0015] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0016] In the implementation of this application, this embodiment obtains the configured resource information of the application to be deployed, and generates resource verification information corresponding to the application to be deployed according to the configured resource information, wherein the resource verification information includes at least one resource verification item that needs to be checked before the application to be deployed is deployed. If all resource verification items in the resource verification information are checked, the application to be deployed is deployed, so that the resource configuration issues that need to be checked before the application to be deployed can be reflected through the resource verification information, so that these resource configuration issues can be modified in advance, ensuring that the resources required for application release can be prepared before the application is deployed, and solving the problem of resource omissions or anomalies in the application release process, which leads to the application not being able to be released normally or being unusable after being normally launched. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0018] Figure 1 A flowchart of an application deployment method in an embodiment of the present application;

[0019] Figure 2 A schematic diagram of a process for generating resource verification information in an embodiment of the present application;

[0020] Figure 3 A framework diagram of application deployment in an embodiment of the present application;

[0021] Figure 4 This is a schematic diagram of the module composition of the application deployment device in the embodiment of the present application;

[0022] Figure 5 Schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0024] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more.

[0025] In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the previously and subsequently associated objects are in an "or" relationship.

[0026] In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0027] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0028] Specifically, deploying an application to a production environment often requires more than just code deployment. It also requires corresponding resource configuration for supporting use, such as configuration information (interfaces for docking systems), database resources, middleware resources, remote dictionary services (remote dictionary server, redis), domain name resolution, etc. These are all necessary settings for an application to be released and accessed normally after it goes online.

[0029] However, the application release involved in the related technologies is too little, and only manages the application code, lacking application configuration, resource application, domain name resolution and other resources that the application must rely on for normal operation. In addition, different resources are often managed by different people, and the person who leads the application release is not clear about the resources that other people are responsible for, which may cause omissions or missing, thus causing failures.

[0030] Based on the above-mentioned defects, the present application obtains the configured resource information of the application to be deployed, and generates resource verification information corresponding to the application to be deployed according to the configured resource information, wherein the resource verification information includes at least one resource verification item that needs to be checked before the application to be deployed is deployed. If all resource verification items in the resource verification information are verified, the application to be deployed is deployed, thereby realizing the verification of the resource verification items that need to be checked before the application to be deployed is deployed, ensuring that the resources required for the normal deployment and operation of the application can be prepared in advance, avoiding the problem of resource omission, and achieving the maximum guarantee that the application can be deployed and can be accessed normally after release.

[0031] The application deployment method provided by the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0032] like Figure 1 FIG. 1 is a flowchart of the steps of the application deployment method provided in an embodiment of the present application, and the method includes:

[0033] Step 101: Obtain configured resource information of the application to be deployed.

[0034] Specifically, the configured resource information of the application to be deployed may be information about resources that have been configured by the application to be deployed on the platform to be deployed.

[0035] For example, as an example, the application to be deployed is a World Wide Web (Web) application, the platform to be deployed is a private cloud platform, and the configured resource information includes the deployment room of the Web application, the called database resources, cache resources, etc.

[0036] In addition, specifically, the application to be deployed may be selected by the user, or may be selected by the electronic device from all applications to be deployed.

[0037] Step 103: Generate resource verification information corresponding to the application to be deployed according to the configured resource information.

[0038] The resource verification information includes at least one resource verification item that needs to be verified before the application to be deployed is deployed.

[0039] Specifically, the resource check item is a resource item that needs to be checked. For example, the resource check item may be a file package, configuration information, etc. of an application.

[0040] By generating resource verification information, and the resource verification information includes at least one resource verification item that needs to be checked before the application to be deployed is deployed, by checking the at least one resource verification item, the resources required for application deployment can be prepared in advance before the application is deployed, avoiding the problem of resource omissions, thereby ensuring the successful deployment of the application.

[0041] Step 105: If all resource check items in the resource check information are checked and passed, the application to be deployed is deployed.

[0042] Specifically, if all resource check items in the resource check information are checked and passed, it means that the resources required for the normal deployment and operation of the application to be deployed are ready, and the application to be deployed can be deployed.

[0043] As can be seen from the above, the present application obtains the configured resource information of the application to be deployed, and generates resource verification information corresponding to the application to be deployed according to the configured resource information, wherein the resource verification information includes at least one resource verification item that needs to be checked before the application to be deployed is deployed. If all resource verification items in the resource verification information are verified, the application to be deployed is deployed, so that the resource configuration issues that need to be checked before the application to be deployed can be reflected through the resource verification information, so that these resource configuration issues can be modified in advance, ensuring that the resources required for application release can be prepared before the application is deployed, and solving the problem of resource omissions or anomalies in the application release process, which leads to the application not being able to be released normally or being unusable after being normally launched.

[0044] In a possible implementation, the configured resource information includes at least one configured resource item. Figure 2 As shown, generating resource verification information corresponding to the to-be-deployed application according to the configured resource information may include the following steps:

[0045] Step 201: Detect whether each of the configured resource items is consistent with its corresponding resource item to be configured.

[0046] Specifically, the resource items to be configured are the resource items that should be configured when the application to be deployed is deployed.

[0047] In this step, it can be detected whether each configured resource item is consistent with its corresponding resource item to be configured.

[0048] For example, assuming that the application to be deployed is a Web application, the configured resource items of the Web application include the deployment room and redis configuration data, and the configured deployment room is A, and the configured redis configuration data is M; the resource items to be configured of the application to be deployed include the deployment room B, and the redis configuration data N. Here, the configured resource item "deployment room A" is compared with its corresponding resource item to be configured "deployment room B", and the configured resource item "redis configuration data M" is compared with its corresponding resource item to be configured "redis configuration data N", to check whether they are consistent.

[0049] By detecting whether each configured resource item is consistent with its corresponding resource item to be configured, it is possible to detect whether each configured resource item of the application to be deployed has been configured correctly, so as to determine whether the resource items to be deployed before the application to be deployed have been configured correctly, thereby ensuring the deployment process of the application to be deployed.

[0050] Optionally, before detecting whether each of the configured resource items is consistent with its corresponding resource item to be configured, at least one resource item to be configured can be generated based on basic attribute information of the application to be deployed, configuration information of the application to be deployed, and field information in the file package used by the application to be deployed.

[0051] Specifically, the basic attribute information of the application to be deployed may include application deployment type, deployment room, memory configuration, etc. Among them, the application deployment type may include virtual machine deployment, physical machine deployment, internal private cloud deployment, or shared cloud deployment; the deployment room may be specified by the user; the size of the memory configuration may be set by the user, for example, it may be 25000. At this time, the field information of the basic attribute information of the application to be deployed may include the application deployment type field, the deployment room field, and the memory configuration field.

[0052] The configuration information of the application to be deployed may include cache resources, database resources, middleware resources, domain names, etc. At this time, the field information of the configuration information of the application to be deployed includes cache resource fields, database resource fields, middleware resource fields, domain name fields, etc.

[0053] The file package used by the application to be deployed may be a Java package, a war package, etc. The field information in the file package used by the application to be deployed may include a file package field.

[0054] Optionally, when generating a resource item to be configured based on the basic attribute information of the application to be deployed, the configuration information of the application to be deployed, and the field information in the file package used by the application to be deployed, the first field name in the basic attribute information of the application to be deployed, the second field name of the application to be deployed, and the third field name corresponding to the file package used by the application to be deployed can be obtained; the first data to be configured corresponding to the first field name is determined, the second data to be configured corresponding to the second field name is determined, and the third data to be configured corresponding to the third field name is determined; each field name and the data to be configured corresponding to each field name are determined as a resource item to be configured, wherein the field names include: the first field name, the second field name, and the third field name.

[0055] Specifically, for example, as an example, assume that the first field name in the basic attribute information of the application to be deployed includes the application deployment type field, the deployment room field and the memory configuration field, the second field name of the application to be deployed includes the cache resource field, the database resource field, the middleware resource field, and the domain name field, and the third field name corresponding to the file package used by the application to be deployed is the file package field.

[0056] At this time, based on the above field names, the corresponding data to be configured can be determined. For example, it can be determined that the configuration data corresponding to the application deployment type field is private cloud deployment, the configuration data corresponding to the deployment room field is room B, the configuration data corresponding to the memory configuration field is 25000, the configuration data corresponding to the cache resource field is redis configuration data N, the configuration data corresponding to the database resource field is mySQL configuration data Q, the configuration data corresponding to the middleware resource field is kafka configuration data P, the configuration data corresponding to the domain name field is address D, and the configuration data corresponding to the file package field is Jav package. After determining the data to be configured corresponding to the above field names, the field names and configuration data with corresponding relationships can be determined as a resource item to be configured.

[0057] In this way, the resource items to be configured are generated through the basic attribute information of the application to be deployed, the configuration information of the application to be deployed and the field information in the file package used by the application to be deployed, so that all the resources required for the deployment of the application to be deployed are generated into the resource items to be configured, avoiding omissions during resource verification.

[0058] Step 203: If there is a case where the configured resource item is inconsistent with its corresponding resource item to be configured, the configured resource item is determined as the resource verification item.

[0059] In this step, specifically, if there is a configured resource item that is inconsistent with its corresponding resource item to be configured, the configured resource item is determined as a resource verification item.

[0060] For example, assuming that the configured resource item is the database resource mySQL, the configured data is R, and the corresponding data to be configured of the database resource mySQL in the resource to be configured is Q, it can be determined that the configured resource item is inconsistent with its corresponding resource item to be configured, and therefore the database resource can be determined as a resource verification item.

[0061] It is understandable that if a configured resource item corresponding to a resource item to be configured is not configured, it can be considered that the configured resource item corresponding to the resource item to be configured is also a resource verification item.

[0062] In this way, by determining the configured resource items that are inconsistent with the resource items to be configured as resource verification items, the configured resource items with unreasonable configurations can be verified, thereby avoiding the problem of incorrect resource configuration of the application to be deployed.

[0063] In a possible implementation manner, the configured resource information may include at least one of basic attribute information of the application to be deployed, configuration information of the application to be deployed, and a file package used by the application to be deployed.

[0064] It should be noted that the basic attribute information of the application to be deployed, the configuration information of the application to be deployed, and the specific content of the file package used by the application to be deployed can be found in the above embodiments, and will not be described in detail here.

[0065] In a possible implementation, after generating resource verification information corresponding to the to-be-deployed application according to the configured resource information, the following steps may also be included:

[0066] Determining a target operating platform corresponding to a target resource check item based on a preset correspondence relationship between the at least one resource check item and the at least one operating platform, wherein the target resource check item is any one resource check item, and the target operating platform is an operating platform corresponding to the target resource check item in the at least one operating platform;

[0067] Sending a request message to the target operating platform, wherein the request message is used to request the target operating platform to process the target resource check item;

[0068] A processing result fed back by the target operating platform after processing the target resource check item is completed is received, wherein the processing result is used to indicate that the target resource check item has been checked and passed.

[0069] Optionally, the operating platform includes at least one of the following: a database management platform, a middleware management platform, a system operation and maintenance management platform, and an application security management platform.

[0070] In this embodiment, a correspondence between at least one resource check item and at least one operating platform can be preset, for example, a correspondence between one or more resource check items and an operating platform can be set. Then, the target operating platform corresponding to the target resource check item can be determined based on the correspondence, and the target resource check item can be processed by the target operating platform to obtain a processing result fed back by the target operating platform after the target resource check item is processed.

[0071] For example, as an example, assume that the resource check item "database resources" has a corresponding relationship with the database management platform, and database resources are such as Mysql, Tidb, etc.; assume that the resource check item "cache resources" has a corresponding relationship with the middleware management platform, and cache resources are such as kafka, redis, zookeeper, etc.; assume that the resource check item "domain name resolution" has a corresponding relationship with the system operation and maintenance management platform; assume that the resource check item "application package" has a corresponding relationship with the application security management platform.

[0072] According to the above correspondence, assuming that the target resource check item is a database resource, a request message can be sent to the database management platform. At this time, the database management platform processes the database resource check item and feeds back the processing result.

[0073] In this way, the electronic device sends request information to the operating platform corresponding to the resource verification item through the above-mentioned correspondence, so that different operating platforms can process the corresponding resource verification item, thereby realizing communication between the electronic device and different operating platforms, so that request information for processing the resource verification item can be sent from the electronic device to different operating platforms, avoiding the problem that the operator needs to enter the operating platform from the operation entrance of the operating platform for processing, facilitating data analysis and statistics of application usage resources, and providing data support for subsequent unified rectification.

[0074] In addition, in a possible implementation, the application to be deployed can be deployed in a platform to be deployed; and the deployment status of the application to be deployed fed back by the platform to be deployed is received, wherein the deployment status of the application to be deployed includes whether the deployment of the application to be deployed is successful or the deployment of the application to be deployed fails.

[0075] Specifically, the platform to be deployed may be a private cloud platform, a public cloud platform, a virtual machine platform, etc.

[0076] In this embodiment, the application to be deployed can be deployed in the platform to be deployed. At this time, the platform to be deployed feeds back the deployment status of the application to be deployed, and the deployment status includes the success or failure of the deployment of the application to be deployed, so that the user can know the application deployment result.

[0077] Combine the following Figure 3 This embodiment is described in detail.

[0078] Specifically, the electronic device can be the control center or decision center of the entire process, mainly storing various metadata, and providing various mandatory decisions based on the metadata, and can view the associated resources of the application, etc. R&D users only need to operate on this page. For example, the electronic device can be a configuration management database (CMDB). The CMDB may be composed of several physical databases, which form a logical entity. The integration between databases needs to be optimized, and all configuration item information is included in the configuration management database.

[0079] In addition, during the application deployment process, joint deployment can also be achieved through code repository (Git), continuous integration (CI), and continuous delivery (CD) systems.

[0080] Among them, CI is a practice in the software development cycle, which integrates the code repository (Gitlab or Github), build tools (such as Jenkins) and test tools (SonarQube), frequently merges the code into the trunk and then automatically builds and tests it. Simply put, continuous integration is a tool that monitors code changes in the version control system, and when changes occur, it can automatically compile and test and execute subsequent custom actions.

[0081] CD is an extension of CI. After the software building and testing work is completed in CI and a new version is formed, the next step is delivery. The delivery here is not to the production environment, but to a production-like environment (STAGING), which can be understood as a grayscale environment or a pre-release environment, and then accepts some real traffic testing. If there is no problem, it is deployed to the production environment manually.

[0082] Assume that the application to be deployed is application W, and application W is a backend management system developed using springcloud. It is a multi-active application. Mysql, redis, and kafka resources are used in the system. External network access is not enabled, and the office area can be accessed. Taking the first online release of application W as an example, the application deployment process can be as follows:

[0083] First, the user builds the deployment package of application W through Git, and after application W passes the test, the R&D personnel find application W in the CMDB application list and select the corresponding version, such as v1.0.0, based on the code branch provided by CI. Then, confirm whether the deployment type of the application (multi-active application) is correct. If correct, click Confirm.

[0084] Then, the CMDB obtains the configured resource information of the application W, and generates resource verification information corresponding to the application W according to the configured resource information.

[0085] The resource verification information includes at least one resource verification item that needs to be verified before the application to be deployed is deployed.

[0086] It should also be noted that the relevant content of the resource verification information can be found in the above method embodiment, which will not be described in detail here.

[0087] Then, the CMDB determines the target operating platform corresponding to the target resource check item based on the preset correspondence between the at least one resource check item and the at least one operating platform, and the target operating platform processes the target resource check item and feeds back the processing result.

[0088] Specifically, the target resource check item is any resource check item, and the target operating platform is an operating platform corresponding to the target resource check item in at least one operating platform.

[0089] For example, the resource verification item "database resources" has a corresponding relationship with the database management platform, and database resources include Mysql, Tidb, etc.; the resource verification item "cache resources" has a corresponding relationship with the middleware management platform, and cache resources include kafka, redis, zookeeper, etc.; the resource verification item "domain name resolution" has a corresponding relationship with the system operation and maintenance management platform; the resource verification item "application package" has a corresponding relationship with the application security management platform.

[0090] Through the above correspondence, the database management platform processes the database resource verification items and feeds back the processing results, the middleware management platform processes the cache resource verification items and feeds back the processing results, the system operation and maintenance management platform processes the domain name resource verification items and feeds back the processing results, and the application security management platform processes the application package resource verification items and feeds back the processing results.

[0091] It can be understood that database resource verification items may include that the database has not been created, the database account has not been created, etc.; cache resource verification items may include that redis has no corresponding cluster and account, kafka has no corresponding cluster and topic, etc.; domain name resource verification items may include that the office area name has not been resolved; application package resource verification items may include that the application login password has not been encrypted, etc.

[0092] Then, after receiving the processing result fed back by the operation platform, CMBD can deploy the application to be deployed in the platform to be deployed through the CD system, and receive the deployment status of the application to be deployed fed back by the platform to be deployed.

[0093] The deployment status of the application to be deployed includes whether the application to be deployed is deployed successfully or whether the application to be deployed is deployed failed.

[0094] The platform to be deployed may be a private cloud server.

[0095] After receiving the processing results, CMDB can notify the CD system to deploy application W. At this time, the CD system can generate the corresponding deployment architecture diagram based on the branch information and computer room information of application W, and publish the corresponding deployment package to the corresponding private cloud server after the user confirms that it is correct.

[0096] After the above steps, the deployment process of application W is completed.

[0097] It should be noted that the embodiment of the present application provides an application deployment method, and the execution subject may be an application deployment device, or a control module in the application deployment device for executing the application deployment method. In the embodiment of the present application, the application deployment device provided by the embodiment of the present application is described by taking the application deployment device executing the application deployment method as an example.

[0098] like Figure 4 As shown, the device comprises:

[0099] The acquisition module 401 is used to acquire the configured resource information of the application to be deployed;

[0100] A generating module 403, configured to generate resource verification information corresponding to the application to be deployed according to the configured resource information, wherein the resource verification information includes at least one resource verification item that needs to be verified before the application to be deployed is deployed;

[0101] The deployment module 405 is used to deploy the to-be-deployed application if all resource check items in the resource check information are checked.

[0102] In a possible implementation manner, the configured resource information includes at least one configured resource item;

[0103] The generating module 403 is used to detect whether each configured resource item is consistent with its corresponding resource item to be configured; if there is a configured resource item that is inconsistent with its corresponding resource item to be configured, the configured resource item is determined as the resource verification item.

[0104] In a possible implementation, the generating module 403 is further configured to generate at least one resource item to be configured based on basic attribute information of the application to be deployed, configuration information of the application to be deployed, and field information in a file package used by the application to be deployed.

[0105] In one possible implementation, the generation module 403 is used to obtain the first field name in the basic attribute information of the application to be deployed, the second field name of the application to be deployed, and the third field name corresponding to the file package used by the application to be deployed; determine the first configurable data corresponding to the first field name, determine the second configurable data corresponding to the second field name, and determine the third configurable data corresponding to the third field name; determine each field name and the configurable data corresponding to each field name as a configurable resource item, wherein the field names include: the first field name, the second field name, and the third field name.

[0106] In a possible implementation manner, the configured resource information includes at least one of basic attribute information of the application to be deployed, configuration information of the application to be deployed, and a file package used by the application to be deployed.

[0107] In one possible implementation, the deployment module 405 is also used to determine the target operating platform corresponding to the target resource check item based on the pre-set correspondence between the at least one resource check item and the at least one operating platform, wherein the target resource check item is any resource check item, and the target operating platform is the operating platform corresponding to the target resource check item in the at least one operating platform; send a request message to the target operating platform, wherein the request message is used to request the target operating platform to process the target resource check item; receive a processing result fed back by the target operating platform after the processing of the target resource check item is completed, wherein the processing result is used to indicate that the target resource check item has been checked and passed.

[0108] In a possible implementation, the operating platform includes at least one of the following: a database management platform, a middleware management platform, a system operation and maintenance management platform, and an application security management platform.

[0109] In a possible implementation, the deployment module 405 is used to deploy the application to be deployed in the platform to be deployed; receive the deployment status of the application to be deployed fed back by the platform to be deployed, wherein the deployment status of the application to be deployed includes the success of the deployment of the application to be deployed or the failure of the deployment of the application to be deployed.

[0110] It should be noted here that the application deployment device provided in the above embodiment can implement all the method steps and beneficial effects of the above application deployment method embodiment. To avoid repetition, the method steps and beneficial effects that are the same as those in the above method embodiment will not be repeated here.

[0111] Corresponding to the application deployment method provided in the above embodiment, based on the same technical concept, the embodiment of the present application also provides an electronic device, which is used to execute the above application deployment method. Figure 5 A schematic diagram of the structure of an electronic device for implementing various embodiments of the present application. The electronic device may have relatively large differences due to different configurations or performances, and may include a processor (processor) 510, a communication interface (Communications Interface) 520, a memory (memory) 530 and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call a computer program stored in the memory 530 and executable on the processor 510 to perform the following steps:

[0112] Get the configured resource information of the application to be deployed;

[0113] Generating resource verification information corresponding to the application to be deployed according to the configured resource information, wherein the resource verification information includes at least one resource verification item that needs to be verified before the application to be deployed is deployed;

[0114] If all resource check items in the resource check information are checked and passed, the application to be deployed is deployed.

[0115] In one possible implementation, the configured resource information includes at least one configured resource item; generating resource verification information corresponding to the application to be deployed based on the configured resource information includes: detecting whether each of the configured resource items is consistent with its corresponding resource item to be configured; if there is an inconsistency between the configured resource item and its corresponding resource item to be configured, determining the configured resource item as the resource verification item.

[0116] In a possible implementation, before detecting whether each of the configured resource items is consistent with its corresponding resource item to be configured, it also includes: generating at least one of the resource items to be configured based on basic attribute information of the application to be deployed, configuration information of the application to be deployed, and field information in the file package used by the application to be deployed.

[0117] In a possible implementation, the generating of a resource item to be configured based on the basic attribute information of the application to be deployed, the configuration information of the application to be deployed, and the field information in the file package used by the application to be deployed includes: obtaining a first field name in the basic attribute information of the application to be deployed, a second field name of the application to be deployed, and a third field name corresponding to the file package used by the application to be deployed; determining first data to be configured corresponding to the first field name, determining second data to be configured corresponding to the second field name, and determining third data to be configured corresponding to the third field name; determining each field name and the data to be configured corresponding to each field name as a resource item to be configured, wherein the field names include: the first field name, the second field name, and the third field name.

[0118] In a possible implementation manner, the configured resource information includes at least one of basic attribute information of the application to be deployed, configuration information of the application to be deployed, and a file package used by the application to be deployed.

[0119] In a possible implementation, after generating resource verification information corresponding to the application to be deployed according to the configured resource information, it also includes: determining the target operating platform corresponding to the target resource verification item based on the pre-set correspondence between the at least one resource verification item and the at least one operating platform, wherein the target resource verification item is any one resource verification item, and the target operating platform is the operating platform corresponding to the target resource verification item in the at least one operating platform; sending request information to the target operating platform, wherein the request information is used to request the target operating platform to process the target resource verification item; receiving the processing result fed back by the target operating platform after the processing of the target resource verification item is completed, wherein the processing result is used to indicate that the target resource verification item has been verified.

[0120] In a possible implementation, the operating platform includes at least one of the following: a database management platform, a middleware management platform, a system operation and maintenance management platform, and an application security management platform.

[0121] In a possible implementation, the deploying of the application to be deployed includes: deploying the application to be deployed in the platform to be deployed; receiving the deployment status of the application to be deployed fed back by the platform to be deployed, wherein the deployment status of the application to be deployed includes the success of the deployment of the application to be deployed or the failure of the deployment of the application to be deployed.

[0122] The embodiment of the present application also provides a readable storage medium on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned application deployment method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0123] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0124] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned sensitive word detection method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0125] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0126] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0127] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0128] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. An application deployment method, characterized in that: include: Obtaining configured resource information of the application to be deployed, the configured resource information including at least two of basic attribute information of the application to be deployed, configuration information of the application to be deployed, and file packages used by the application to be deployed, the basic attribute information including application deployment type, deployment room, and memory configuration, and the configuration information of the application to be deployed including cache resources, database resources, middleware resources, and domain name; Generate resource verification information corresponding to the application to be deployed according to the configured resource information and the corresponding resource items to be configured, wherein the resource verification information includes at least one resource verification item that needs to be verified before the application to be deployed is deployed; Determining a target operating platform corresponding to a target resource check item based on a preset correspondence relationship between the at least one resource check item and the at least one operating platform, the target resource check item being any resource check item; Sending a request message to a target operating platform, wherein the request message is used to request the target operating platform to process a target resource check item; receiving a processing result fed back by the target operating platform after processing the target resource check item, wherein the processing result is used to indicate that the target resource check item has been checked and passed; If all resource check items in the resource check information are checked and passed, the application to be deployed is deployed.

2. The application deployment method according to claim 1, characterized in that: The configured resource information includes at least one configured resource item; The generating resource verification information corresponding to the to-be-deployed application according to the configured resource information includes: Detecting whether each of the configured resource items is consistent with its corresponding resource item to be configured; If there is a case where the configured resource item is inconsistent with its corresponding resource item to be configured, the configured resource item is determined as the resource verification item.

3. The application deployment method according to claim 2, characterized in that: Before detecting whether each of the configured resource items is consistent with its corresponding resource item to be configured, the method further includes: At least one resource item to be configured is generated based on the basic attribute information of the application to be deployed, the configuration information of the application to be deployed, and the field information in the file package used by the application to be deployed.

4. The application deployment method according to claim 3, characterized in that: The generating at least one resource item to be configured based on the basic attribute information of the application to be deployed, the configuration information of the application to be deployed, and the field information in the file package used by the application to be deployed includes: Obtaining a first field name in the basic attribute information of the application to be deployed, a second field name of the application to be deployed, and a third field name corresponding to a file package used by the application to be deployed; Determine the first data to be configured corresponding to the first field name, determine the second data to be configured corresponding to the second field name, and determine the third data to be configured corresponding to the third field name; Each field name and the configurable data corresponding to each field name are determined as a configurable resource item, wherein each field name includes: the first field name, the second field name, and the third field name.

5. The application deployment method according to claim 1, characterized in that: The operating platform includes at least one of the following: a database management platform, a middleware management platform, a system operation and maintenance management platform, and an application security management platform.

6. The application deployment method according to claim 1, characterized in that: The deploying the application to be deployed includes: Deploy the application to be deployed in the platform to be deployed; The deployment status of the application to be deployed fed back by the platform to be deployed is received, wherein the deployment status of the application to be deployed includes that the application to be deployed is deployed successfully or that the application to be deployed fails to be deployed.

7. An application deployment device, characterized in that: include: an acquisition module, configured to acquire configured resource information of the application to be deployed, wherein the configured resource information includes at least two of basic attribute information of the application to be deployed, configuration information of the application to be deployed, and a file package used by the application to be deployed, wherein the basic attribute information includes application deployment type, deployment room, and memory configuration, and the configuration information of the application to be deployed includes cache resources, database resources, middleware resources, and domain name; A generating module, configured to generate resource verification information corresponding to the application to be deployed according to the configured resource information and the corresponding resource items to be configured, wherein the resource verification information includes at least one resource verification item that needs to be verified before the application to be deployed is deployed; A deployment module, configured to determine a target operating platform corresponding to a target resource check item based on a preset correspondence between the at least one resource check item and the at least one operating platform, wherein the target resource check item is any resource check item; Sending a request message to a target operating platform, wherein the request message is used to request the target operating platform to process a target resource check item; receiving a processing result fed back by the target operating platform after processing the target resource check item, wherein the processing result is used to indicate that the target resource check item has been checked and passed; The deployment module is further configured to deploy the application to be deployed if all resource check items in the resource check information are checked and passed.

8. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the application deployment method as described in any one of claims 1 to 6.

9. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the application deployment method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Software component combining and constructing method

    CN103729184A

  • Method and system for deploying applications on cloud computing platform

    CN109117148A

  • Automatic deployment method of PET-CT software

    CN110634561A

  • Methods and systems for portably deploying applications on one or more cloud systems

    US20160094483A1