CN116170454A - Application deployment method, device, system, equipment and medium - Google Patents

Application deployment method, device, system, equipment and medium Download PDF

Info

Publication number
CN116170454A
CN116170454A CN202310200832.7A CN202310200832A CN116170454A CN 116170454 A CN116170454 A CN 116170454A CN 202310200832 A CN202310200832 A CN 202310200832A CN 116170454 A CN116170454 A CN 116170454A
Authority
CN
China
Prior art keywords
deployment
application
target application
cloud
cloud resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310200832.7A
Other languages
Chinese (zh)
Inventor
林子翘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Alibaba China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202310200832.7A priority Critical patent/CN116170454A/en
Publication of CN116170454A publication Critical patent/CN116170454A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides an application deployment method, an application deployment device, an application deployment system, application deployment equipment and application deployment media. The method comprises the following steps: receiving a target application to be deployed, which is provided by an application server; copying the corresponding target application for a plurality of preset deployment areas respectively; determining the association relationship between the cloud resources deployed in the deployment area and the target application obtained by replication; and responding to a deployment request, and sending the target application with the association relation with the cloud resource. The method and the device can effectively improve the work efficiency of the target application in the deployment of a plurality of cloud resources, effectively simplify the operation content of the target application, reduce the deployment difficulty and enable the user to obtain better deployment experience.

Description

Application deployment method, device, system, equipment and medium
Technical Field
The present application relates to the field of cloud computing technologies, and in particular, to an application deployment method, device, system, device, and medium.
Background
With the rapid development of cloud computing technology, the cloud computing technology is widely applied, for example, a user can deploy a required application on cloud resources according to needs.
In practical application, in order to meet the use demands of various users located in various regions on cloud resources, cloud resources for users to select according to needs are deployed in various places. Further, the user may deploy the desired application on the corresponding cloud resource. That is, the user is required to send the application to the cloud resource according to his own needs, and if the application is relatively large, much network traffic and transmission time may be consumed. Moreover, when the applications of different users are deployed in batches in multiple areas, deployment configuration work becomes quite complicated, workload is high, and human errors such as mismatching and missed configuration are easy to occur.
Disclosure of Invention
In order to solve or improve the problems existing in the prior art, embodiments of the present application provide an application deployment method, apparatus, system, device, and medium.
In a first aspect, in one embodiment of the present application, an application deployment method is provided. Applied to a deployment device, the method comprises:
receiving a target application to be deployed, which is provided by an application server;
copying the corresponding target application for a plurality of preset deployment areas respectively;
determining the association relationship between the cloud resources deployed in the deployment area and the target application obtained by replication;
and responding to a deployment request, and sending the target application with the association relation with the cloud resource.
In a second aspect, in one embodiment of the present application, another application deployment method is provided. The method is applied to the application server, and comprises the following steps:
sending a target application to be deployed to a deployment device; after receiving the target application, the deployment device copies the corresponding target application for a plurality of preset deployment areas respectively; determining the association relationship between the cloud resources deployed in the deployment area and the target application obtained by replication;
and sending a deployment request to the deployment equipment, so that the deployment equipment sends the target application with the association relation with the cloud resource based on the deployment request.
In a third aspect, in one embodiment of the present application, an application deployment method is provided. The method is applied to the user side, and comprises the following steps:
sending a deployment request to deployment equipment; the deployment request comprises an application identifier of the target application and a region identifier of a deployment region where the user is located; the deployment equipment sends the target application with the association relation with cloud resources in the deployment area based on the deployment request; the deployment equipment stores target applications obtained by copying the cloud resource deployment of a plurality of deployment areas; the target application is provided to the deployment device by an application server.
In a fourth aspect, in one embodiment of the present application, there is provided an application deployment system, including:
the application server side is used for providing target applications to be deployed;
the deployment equipment is used for receiving the target application to be deployed, which is provided by the application server; copying the corresponding target application for a plurality of preset deployment areas respectively; determining the association relationship between the cloud resources deployed in the deployment area and the target application obtained by replication; responding to a deployment request, and sending the target application with the association relation with the cloud resource;
The user end is used for sending the deployment request to the deployment equipment and receiving the target application sent by the deployment equipment.
In a fifth aspect, in one embodiment of the present application, there is provided an application deployment apparatus, the apparatus comprising:
the receiving module is used for receiving the target application to be deployed, which is provided by the application server;
the replication module is used for replicating the corresponding target application for a plurality of preconfigured deployment areas respectively;
the association module is used for determining the association relationship between the cloud resources deployed in the deployment area and the target application obtained by replication;
and the sending module is used for responding to a deployment request and sending the target application with the association relation with the cloud resource.
In a sixth aspect, in one embodiment of the present application, an electronic device is provided, comprising a memory and a processor; wherein,,
the memory is used for storing programs;
the processor is coupled to the memory, and is configured to execute the program stored in the memory, so as to implement the application deployment method according to the first aspect, or implement the application deployment method according to the second aspect, or implement the application deployment method according to the third aspect.
In a seventh aspect, in one embodiment of the present application, there is provided a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to perform the application deployment method according to the first aspect, or to perform the application deployment method according to the second aspect, or to perform the application deployment method according to the third aspect.
According to the technical scheme provided by the embodiment of the application server side, an application server side worker determines which areas need to be selected for cloud resource arrangement according to product deployment requirements or application use requirements of users. Specifically, when the application provider has a new application to be deployed, the application server side sends the target application to be deployed to the deployment device, and the deployment device deploys the application for cloud resources in each region. When the application provider determines which areas need to be deployed, the deployment device establishes a corresponding relation between the deployment areas and the copied target application according to the indication of the application provider. Further, an association relationship between the cloud resource and the target application is determined. After receiving a deployment request for a certain application, a required target application is found from the deployment device and deployed in the cloud resource. Through the scheme, the work efficiency of the target application in cloud resource deployment in a plurality of areas can be effectively improved, the operation content of the target application can be effectively simplified, the deployment difficulty is reduced, and a user obtains better deployment experience.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief description will be given below of the drawings that are needed in the embodiments or the prior art descriptions, and it is obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an application deployment system provided in an embodiment of the present application;
fig. 2 is a flow chart of an application deployment method provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of an application deployment process illustrated in an embodiment of the present application;
FIG. 4 is a flowchart of another application deployment method according to an embodiment of the present disclosure;
FIG. 5 is a flow diagram of an application deployment illustrated in an embodiment of the present application;
fig. 6 is a schematic structural diagram of an application deployment device provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another application deployment device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to enable those skilled in the art to better understand the present application, the following description will make clear and complete descriptions of the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application.
In some of the flows described in the specification, claims, and drawings described above, a plurality of operations occurring in a particular order are included, and the operations may be performed out of order or concurrently with respect to the order in which they occur. The sequence numbers of operations such as 101, 102, etc. are merely used to distinguish between the various operations, and the sequence numbers themselves do not represent any order of execution. In addition, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first" and "second" herein are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, and are not limited to the "first" and the "second" being different types. Furthermore, the embodiments described below are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
With the rapid development of cloud computing technology, the cloud computing technology is widely applied, for example, more and more application service providers (such as software service providers) provide corresponding services for users based on cloud resources, and the delivery capacity of the application service providers can be effectively improved. As the market for products expands, the number and geographic area of the required delivery increases dramatically. In the prior art, a user or an application service provider is required to perform deployment configuration of cloud resources and applications according to needs. As a user of a cloud application user, the cloud resource configuration knowledge is limited in storage, and is difficult to be qualified for complicated configuration work. The application service provider needs to deal with various applications and numerous deployment areas, the configuration work of cloud resources and deployment applications becomes increasingly heavy, and when a great deal of manpower is consumed for manual configuration, the situations of mismatch and missed configuration are inevitably avoided. Therefore, a solution that enables simple and fast implementation of application deployment is needed.
Term interpretation:
Infrastructure-as-Code (IAC): code is used to define and manage infrastructure, including cloud infrastructure.
Cloud resources: and the cloud resource is an underlying cloud resource formed by a cloud server, a database, a network and the like.
The technical scheme realized by the application will be explained below with reference to specific embodiments.
Fig. 1 is a schematic diagram of an application deployment system according to an embodiment of the present application. As can be seen from fig. 1, the system comprises:
an application server 11, configured to provide a target application to be deployed;
the deployment device 12 is configured to receive a target application to be deployed provided by an application server; copying the corresponding target application for a plurality of preset deployment areas respectively; determining the association relationship between the cloud resources deployed in the deployment area and the target application obtained by replication; responding to a deployment request, and sending the target application with the association relation with the cloud resource;
and the user terminal 13 is configured to send the deployment request to the deployment device, and receive the target application sent by the deployment device.
In practical applications, the deployment device 12 serves as a core of the system, and can perform tasks such as copying and management of target applications. Specifically, when an application service provider has an application to be deployed to a cloud resource, a target application to be deployed (the carrier of the target application is in the form of a mirror image or a software package) can be sent to deployment equipment through an application service end, and the deployment equipment belongs to the cloud resource provider, so that the target application has higher management authority and safety protection capability on the target application. The target application transmitted to the deployment device can be effectively ensured not to be illegally used.
In the deployment device, after the target application is obtained, the target application is replicated in advance according to deployment area information required to be deployed, which is provided by an application service provider. When copying, in order to facilitate the deployment of the later target application, the corresponding target application is copied for each deployment area. In the scheme, when a worker of an application service provider only needs to upload a target application, the worker selects the type (such as a mirror image package or a software package) of the application, indicates which deployment areas need to be duplicated for the application, and the deployment equipment automatically completes duplication work in the background, so that the worker does not feel, does not need to manually copy one by one, the duplication workload of the worker can be effectively reduced, and the duplication efficiency is improved.
After the replication work on the target application is completed, the cloud resources and the target application will be further configured. Specifically, the deployment manner of the corresponding cloud resource support is configured according to the application type (such as an image or a software package). Furthermore, the association relation between the cloud resources and the target application is established, namely, when the user puts forward the deployment requirement, the user only needs to specify what application is needed, and does not need to select the corresponding cloud resources or select the region, so that the deployment efficiency of the user for deploying the needed application in the cloud resources can be effectively improved, and the deployment content is simplified.
It should be noted that, the deployment request may be sent by the user through the user side, or may be sent by the application server side to the deployment device according to the purchase requirement of the user. In the deployment request, it is necessary to specify which target application needs to be deployed, and the deployment area where the user needs to deploy. The specific selection process does not need excessive participation of users, and the workload of the users for deploying the applications is reduced.
Through the scheme, the work efficiency of the target application in the deployment of the plurality of cloud resources can be effectively improved, the content of the target application can be effectively simplified, the deployment difficulty is reduced, and a user obtains better deployment experience.
Fig. 2 is a schematic flow chart of an application deployment method according to an embodiment of the present application. The execution subject of the method may be a deployment device that may implement application deployment capabilities based on the system shown in fig. 1 or based on the system shown in fig. 1. From fig. 2, it can be seen that the method specifically comprises the following steps:
201: and receiving the target application to be deployed, which is provided by the application server.
202: and respectively copying the corresponding target application for a plurality of preconfigured deployment areas.
203: and determining the association relationship between the cloud resources deployed in the deployment area and the target application obtained by replication.
204: and responding to a deployment request, and sending the target application with the association relation with the cloud resource.
In practical application, one deployment device may correspond to multiple application servers and multiple clients at the same time. The deployment device belongs to a provider of cloud resources, and can obtain trust of an application service provider and a user. And the deployment device can ensure that the copy condition of the target application can be accurately recorded.
Here, the deployment device may store the copied target application itself, or may store an application identifier (for example, an application ID) of the copied target application, or the like. The storage manner of the deployment device is merely illustrative, and does not limit the technical scheme of the application. In practical application, a user can select a required storage mode according to practical requirements.
The target application may be uploaded in the form of a mirror package or in the form of a software package. It should be noted that, when uploading, the carrier type (including the image package type and the software package type) of the application needs to be selected, because different storage modes of different types relate to the type of the cloud resource selected later.
The application server side can send an indication of the required deployment area to the deployment device, and can also respectively indicate aiming at each target application to be deployed. Further, the deployment device knows how many target applications need to be replicated and for which regions, respectively. Personnel are not needed to participate in the copying process, and corresponding copying tasks can be completed under the condition that personnel do not feel.
After the copying is completed, the corresponding relation between the target application and the deployment area is further established. In practical application, a plurality of copies are obtained, the target application corresponds to a plurality of deployment areas, and each target application has a unique identifier, so that the required target application can be accurately found according to the identifier after the deployment areas are clear.
After the replication task of the target application is completed, the association relation between each target application and the cloud resource is further established. In other words, the corresponding relation is not required to be manually configured one by the user, and the deployment equipment can be automatically associated according to the application type and the cloud resource type, so that the cloud resource can meet the running requirement of the application.
In one or more embodiments of the present application, the copying the corresponding target application for each of the preconfigured deployment areas includes:
Determining the plurality of deployment regions for providing application deployment services in response to a deployment region selection request;
copying the target application;
and establishing corresponding relations between the plurality of deployment areas and the plurality of target applications respectively.
In practical application, based on the system shown in fig. 1, when an application service provider has an application deployment requirement, uploading a target application to a deployment device, and then distributing the copied target application to a corresponding cloud resource by the deployment device according to the received deployment request, thereby completing the deployment task of the application in the cloud resource in a required area. Rather than manually replicated one by an application service provider and sent to cloud resources deployed in various regions.
Selection may be made in the interactive interface when the application service provider explicitly needs to deploy the application in which regions. For example, four deployment areas with high user demands in Beijing, shanghai, nanjing and Hangzhou are selected, four target applications are copied and established, and a corresponding relationship is established. Assuming that the target application is A1, the target application is A2, the target application is A3, and the target application is A4, the established corresponding relationship includes: beijing A1, shanghai A2, nanjin A3, hangzhou A4.
As an alternative, if the storage space of the currently deployed device is limited. When the target application to be replicated after the user selects the deployment region exceeds the storage space of the deployment device or exceeds a certain ratio (such as 80%) of the storage space of the deployment device, the replication number of the target application is limited. For example, the target applications need to be copied for 50 deployment areas respectively in total, but due to limited storage space, the target applications can be copied one by one according to the priority order of deployment. In the copying process, staff of an application service provider is not needed to participate, and after a deployment task of a target application is completed in one deployment area, the corresponding target application is copied for the next deployment area until all the designated deployment areas are copied to obtain the corresponding target application.
In one or more embodiments of the present application, the determining an association relationship between cloud resources deployed in the deployment area and the replicated target application includes:
determining a resource identifier of the cloud resource and an application identifier of the target application obtained by copying;
and establishing an association relation between the resource identifier and the application identifier.
In practical application, the required target application is obtained through the copying of the steps, and after the corresponding relation between the target application and the deployment area is determined, the association relation between the target application and the cloud resource is further established according to the requirement. Specifically, the application service provider knows the resource structure (e.g., what type of cloud server, how large storage space is needed, etc.) required to deploy the target application, determines the resource identification of each cloud resource, and the application identification of the target application. Furthermore, an association relationship between the resource identifier and the application identifier can be established.
Because the target application is copied, when the association relationship is established, cloud resources can be automatically selected according to conditions, and the corresponding relationship between the resource identification and the application identification is generated.
By the method, the corresponding relation between the deployment region and the application identifier is built in the deployment equipment, and the association relation between the resource identifier and the application identifier is also built. In the process of establishing the relationship, the application service provider does not need to be manually established one by one, and only needs to explicitly indicate the requirements of the deployment region and the cloud resource to the deployment equipment. And the target application can be rapidly deployed to the corresponding cloud resource without establishing a corresponding relation between the deployment region and the cloud resource.
In one or more embodiments of the present application, before determining the resource identifier of the cloud resource, the method further includes:
in response to a cloud resource creation request, cloud resources are created for the deployment region using an infrastructure code template.
Fig. 3 is a schematic diagram of an application deployment procedure according to an embodiment of the present application. As can be seen from fig. 3, the arrangement of cloud resources can be achieved by using the infrastructure code template, and a plurality of cloud resources with good consistency configuration can be obtained while the arrangement cost is reduced.
The cloud resources obtained through the method have good consistency and can be used for deploying and copying to obtain target applications. The method and the device can simply and rapidly establish the association relationship between the cloud resource and the target application.
In one or more embodiments of the present application, the sending, in response to a deployment request, the target application having an association relationship with the cloud resource includes: responding to the deployment request provided by the user side or the application server side, and acquiring a right identifier for representing the legal right of the cloud resource; verifying legal rights of the cloud resource based on the rights identification; and if the authority identification passes the verification, sending the target application with the association relation to the cloud resource.
When application deployment requirements exist, a user can initiate a deployment request according to the requirements, and an application service provider can also assist the user in initiating the deployment request. Specifically, the deployment device stores a right identifier of legal right authorized to the application service provider, and generally, each cloud resource has a corresponding right identifier for verifying the legal right of the cloud resource. Only cloud resources passing legal authority verification can deploy corresponding target applications, and deployment requests without legal authorities are refused, so that deployment equipment can effectively ensure application safety.
The permission identifier here may be a resource identifier of a cloud resource, or a permission identifier issued to the cloud resource by an application service provider alone, or a permission identifier issued to the cloud resource by a deployment device.
For example, assume that an application service provider provides accounting application software (corresponding to the target application described above). Users who want to use the accounting application are distributed across the country, such as Beijing, shanghai, nanjing, hangzhou, etc., meaning that the accounting application needs to be deployed in cloud resources in the corresponding region. After the accounting application software is uploaded to the deployment device, the deployment device copies the mirror image package APP0 of the accounting application software to obtain APP1, APP2, APP3 and APP4, and when the regional correspondence is established, the best is obtained, the Shanghai is the APP1, the nanjin is the APP2, the nanjin is the APP3, and the hangzhou is the APP4.
After the user B in Hangzhou purchases the accounting application software, the deployment device deploys cloud resources in Hangzhou and installs APP4 on the cloud resources. In the operation process of the user B, the user B does not need to perform any complex or complicated operation, and the user B only needs to select the target application needed by the user B. The method and the device can effectively simplify the operation flow of the application deployment of the user in the cloud resource, and reduce the requirement on the professional technical capability of the user, so that the user obtains better application deployment experience.
The user side generates a deployment request, and the deployment request carries an application name APP and a region identifier hangzhou of a deployment region of the user B. After generating the deployment request, the user side sends the deployment request to the deployment device. Furthermore, the deployment device performs validity verification on the received deployment request. It should be noted that, resource identifiers of cloud resources distributed in each deployment area are pre-stored in the deployment device. After the deployment device analyzes the deployment request to obtain the resource identification hangzhou. And carrying out authority identification verification and passing the verification. The deployment equipment searches a corresponding application identifier APP4 according to the resource identifier hangzhou, and sends the application identifier APP4 to cloud resources in Hangzhou.
In one or more embodiments of the present application, if the authority identifier passes verification, sending the target application with an association relationship to the cloud resource includes:
establishing an intranet channel with the cloud resource;
and if the authority identification passes the verification, sending the target application with the association relation to the cloud resource through the intranet channel.
It should be noted that, the application service provider only needs to provide the target application, and the deployment device and the cloud resource are provided by a third party (for example, the cloud resource service provider). Moreover, cloud resource users can select according to needs. The deployment equipment and the cloud resource are in the same intranet, so that the storage and the transmission of the target application can be ensured to be carried out in a safe and reliable environment. Meanwhile, the target application sometimes has larger data packets, so that the transmission speed can be effectively improved through intranet transmission.
Based on the same thought, the embodiment of the application also provides another application deployment method. The method is applied to the application server. Fig. 4 is a schematic flow chart of another application deployment method according to an embodiment of the present application. From fig. 4, it can be seen that the method specifically comprises the following steps:
401: sending a target application to be deployed to a deployment device; after receiving the target application, the deployment device copies the corresponding target application for a plurality of preset deployment areas respectively; and determining the association relationship between the cloud resources deployed in the deployment area and the target application obtained by replication.
402: and sending a deployment request to the deployment equipment, so that the deployment equipment sends the target application with the association relation with the cloud resource based on the deployment request.
The application server referred to herein refers to a party capable of providing a target application to a user. The deployment device is managed by the cloud resource provider. When a user selects a target application, the problem of cloud resources is not required to be considered, and an application service provider selects matched cloud resources for the application.
In addition, when the technical scheme is utilized, the application server is not required to directly send the copied multiple target applications to cloud resources of each deployment area one by one for deployment of the applications, and only the target applications are required to be directly sent to deployment equipment. Furthermore, the deployment equipment replicates the replication target application for each region during replication, and the deployment equipment replicates according to the deployment region information provided by the application service end in the replication process, so that the application service provider does not need to replicate one by one manually, and the replication task burden of the application service provider can be effectively reduced.
In addition, when the configuration is carried out, the association relationship between the cloud resources and the target application is only required to be clarified, and the association relationship between the cloud resources and the deployment area is not required to be configured.
By the method, the workload of copying the application in the cloud resource by the staff and the user and the workload of configuring the cloud resource and the target application can be effectively reduced. The technical effects of one-key copying and one-key deployment are achieved, and user application experience is improved.
Based on the same thought, the embodiment of the application also provides a further application deployment method. The method is applied to the user side. The method specifically comprises the following steps:
sending a deployment request to deployment equipment; the deployment request comprises an application identifier of the target application and a region identifier of a deployment region where the user is located; the deployment equipment sends the target application with the association relation with cloud resources in the deployment area based on the deployment request; wherein an application identifier or a uniform resource locator (Uniform Resource Locator, URL) of a target application obtained by copying the cloud resource deployments of a plurality of the deployment areas is stored in the deployment device; the target application is provided to the deployment device by an application server.
In order to facilitate understanding of the technical solution of the present application, an application deployment procedure will be illustrated by a specific embodiment. Fig. 5 is a schematic flow chart of application deployment illustrated in an embodiment of the present application. As can be seen from fig. 5, the execution flow is as follows:
and the application server uploads the deployment carrier to the deployment device.
The deployment device, after obtaining the target application (e.g., the mirror package type or the compressed software package type), replicates the target application. When copying, according to the indication of the deployment area of the application service provider, configuring the required copy deployment area at the deployment equipment. The deployment device automatically completes copying of the corresponding type and the corresponding deployment region under the condition that the application service provider does not feel according to the type of the target application. No application service provider is required to participate in the replication process.
Establishing an association relation between cloud resources and target applications obtained by copying in deployment equipment: and establishing an association relation between the cloud resource and the target application obtained by copying in the deployment equipment. Note that there is no need to pair the correspondence of a specific region with the post-distribution target application.
The cloud resource acquires a target application at the deployment device: when the cloud resource is deployed, the deployment equipment is informed of the required target application and the deployment area information, and after the authority verification of the deployment equipment is passed, the deployment equipment dynamically acquires the target application carrier distributed by the corresponding deployment area according to the information. When the deployment device sends the deployment device to the target application carrier, the transmission efficiency can be effectively improved through intranet transmission.
Based on the same thought, the embodiment also provides an application deployment device. Fig. 6 is a schematic structural diagram of an application deployment device according to an embodiment of the present application. As can be seen from fig. 6, the device comprises:
and the receiving module 61 is used for receiving the target application to be deployed, which is provided by the application server.
And the copying module 62 is used for copying the corresponding target application for the preconfigured multiple deployment areas respectively.
And the association module 63 is configured to determine an association relationship between cloud resources deployed in the deployment area and the target application obtained by replication.
And a sending module 64, configured to send, in response to a deployment request, the target application having an association relationship with the cloud resource.
Optionally, the replication module 62 is configured to determine, in response to the deployment region selection request, the plurality of deployment regions for providing the application deployment service;
copying the target application;
and establishing corresponding relations between the plurality of deployment areas and the plurality of target applications respectively.
Optionally, an association module 63, configured to determine a resource identifier of the cloud resource, and an application identifier of the target application obtained by replication;
and establishing an association relation between the resource identifier and the application identifier.
Optionally, a creation module 65 is further included for creating cloud resources for the deployment region using the infrastructure code templates in response to a cloud resource creation request.
Optionally, a sending module 64, configured to obtain, in response to the deployment request provided by the user side or the application server side, a rights identifier for indicating legal rights of the cloud resource;
verifying legal rights of the cloud resource based on the rights identification;
and if the authority identification passes the verification, sending the target application with the association relation to the cloud resource.
Optionally, a sending module 64, configured to establish an intranet channel with the cloud resource;
and if the authority identification passes the verification, sending the target application with the association relation to the cloud resource through the intranet channel.
An embodiment of the application also provides electronic equipment. The electronic device is a master node electronic device in the computing unit. Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device comprises a memory 701, a processor 702 and a communication component 703; wherein,,
the memory 701 is used for storing a program;
the processor 702 is coupled to the memory for executing the program stored in the memory for:
Receiving a target application to be deployed, which is provided by an application server;
copying the corresponding target application for a plurality of preset deployment areas respectively;
determining the association relationship between the cloud resources deployed in the deployment area and the target application obtained by replication;
and responding to a deployment request, and sending the target application with the association relation with the cloud resource.
A processor 702 for determining the plurality of deployment areas for providing application deployment services in response to a deployment area selection request;
copying the target application;
and establishing corresponding relations between the plurality of deployment areas and the plurality of target applications respectively.
A processor 702, configured to determine a resource identifier of the cloud resource, and an application identifier of the target application obtained by copying;
and establishing an association relation between the resource identifier and the application identifier.
A processor 702 for creating cloud resources for the deployment region using an infrastructure code template in response to a cloud resource creation request.
The processor 702 is configured to obtain, in response to the deployment request provided by the user side or the application server side, a permission identifier for indicating legal permission of the cloud resource;
Verifying legal rights of the cloud resource based on the rights identification;
and if the authority identification passes the verification, sending the target application with the association relation to the cloud resource.
A processor 702, configured to establish an intranet channel with the cloud resource;
and if the authority identification passes the verification, sending the target application with the association relation to the cloud resource through the intranet channel.
The memory 701 described above may be configured to store various other data to support operations on an electronic device. Examples of such data include instructions for any application or method operating on an electronic device. The memory may be implemented by any type of volatile or nonvolatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
Further, the processor 702 in this embodiment may specifically be: and the programmable exchange processing chip is provided with a data copying engine which can copy the received data.
The processor 702 may perform other functions in addition to the above functions when executing programs in memory, and specific reference may be made to the foregoing descriptions of embodiments. Further, as shown in fig. 7, the electronic device further includes: power supply assembly 704, and the like.
Embodiments also provide a non-transitory machine-readable storage medium having executable code stored thereon, which when executed by a processor of an electronic device, causes the processor to perform the method described in the corresponding embodiment of fig. 2.
Based on the same thought, the self-embodiment also provides another application deployment device. Fig. 8 is a schematic structural diagram of another application deployment device according to an embodiment of the present application. The method is applied to the application server.
As can be seen from fig. 8, the device comprises:
an application sending module 81, configured to send a target application to be deployed to a deployment device; after receiving the target application, the deployment device copies the corresponding target application for a plurality of preset deployment areas respectively; determining the association relationship between the cloud resources deployed in the deployment area and the target application obtained by replication;
A request sending module 82, configured to send a deployment request to the deployment device, so that the deployment device sends the target application with an association relationship with the cloud resource based on the deployment request.
An embodiment of the application also provides electronic equipment. The electronic device is a master node electronic device in the computing unit. Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device comprises a memory 901, a processor 902 and a communication component 903; wherein,,
the memory 901 is configured to store a program;
the processor 902 is coupled to the memory, and is configured to execute the program stored in the memory, for:
sending a target application to be deployed to a deployment device; after receiving the target application, the deployment device copies the corresponding target application for a plurality of preset deployment areas respectively; determining the association relationship between the cloud resources deployed in the deployment area and the target application obtained by replication;
and sending a deployment request to the deployment equipment, so that the deployment equipment sends the target application with the association relation with the cloud resource based on the deployment request.
The processor 902 is further configured to send a deployment request to the deployment device; the deployment request comprises an application identifier of the target application and a region identifier of a deployment region where the user is located; so that the deployment equipment sends the target application with the association relation with the cloud resource based on the deployment request; the deployment equipment stores target applications obtained by copying the cloud resource deployment of a plurality of deployment areas; the target application is provided to the deployment device by an application server.
The memory 901 described above may be configured to store various other data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on an electronic device. The memory may be implemented by any type of volatile or nonvolatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
Further, the processor 902 in this embodiment may specifically be: and the programmable exchange processing chip is provided with a data copying engine which can copy the received data.
The processor 902 may perform other functions in addition to the above functions when executing programs in memory, and specific reference is made to the foregoing descriptions of embodiments. Further, as shown in fig. 9, the electronic device further includes: power supply assembly 904, and the like.
Embodiments also provide a non-transitory machine-readable storage medium having executable code stored thereon, which when executed by a processor of an electronic device, causes the processor to perform the method described in the corresponding embodiment of fig. 4.
Based on the above embodiment, the application server determines which areas need to be selected for cloud resource arrangement according to the product deployment requirements. Specifically, when the application provider has a new application to be deployed, the application server side sends the target application to be deployed to the deployment device, and the deployment device deploys the application for cloud resources in each region. When the application provider determines which areas need to be deployed, the deployment device will determine that the deployment areas and the copied target application establish a corresponding relationship. Further, an association relationship between the cloud resource and the target application is determined. After receiving a deployment request for a certain application, the required target application is found from the deployment equipment and deployed in cloud resources. Through the scheme, the work efficiency of the target application in the deployment of the plurality of cloud resources can be effectively improved, the operation content of the target application can be effectively simplified, the deployment difficulty is reduced, and a user obtains better deployment experience.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (13)

1. An application deployment method, applied to a deployment device, the method comprising:
receiving a target application to be deployed, which is provided by an application server;
copying the corresponding target application for a plurality of preset deployment areas respectively;
determining the association relationship between the cloud resources deployed in the deployment area and the target application obtained by replication;
and responding to a deployment request, and sending the target application with the association relation with the cloud resource.
2. The method of claim 1, wherein the replicating the corresponding target application for each of the preconfigured plurality of deployment regions comprises:
Determining the plurality of deployment regions for providing application deployment services in response to a deployment region selection request;
copying the target application;
and establishing corresponding relations between the plurality of deployment areas and the plurality of target applications respectively.
3. The method of claim 1, wherein the determining the association between the cloud resources deployed in the deployment region and the replicated target application comprises:
determining a resource identifier of the cloud resource and an application identifier of the target application obtained by copying;
and establishing an association relation between the resource identifier and the application identifier.
4. The method of claim 3, further comprising, prior to determining the resource identification of the cloud resource:
in response to a cloud resource creation request, cloud resources are created for the deployment region using an infrastructure code template.
5. The method according to claim 1 or 4, wherein the sending the target application having an association relationship with the cloud resource in response to a deployment request comprises:
responding to the deployment request provided by the user side or the application server side, and acquiring a right identifier for representing the legal right of the cloud resource;
Verifying legal rights of the cloud resource based on the rights identification;
and if the authority identification passes the verification, sending the target application with the association relation to the cloud resource.
6. The method of claim 5, wherein the sending the target application with the association relationship to the cloud resource if the rights identification verification is passed comprises:
establishing an intranet channel with the cloud resource;
and if the authority identification passes the verification, sending the target application with the association relation to the cloud resource through the intranet channel.
7. An application deployment method, which is characterized by being applied to an application server, comprises the following steps:
sending a target application to be deployed to a deployment device; after receiving the target application, the deployment device copies the corresponding target application for a plurality of preset deployment areas respectively; determining the association relationship between the cloud resources deployed in the deployment area and the target application obtained by replication;
and sending a deployment request to the deployment equipment, so that the deployment equipment sends the target application with the association relation with the cloud resource based on the deployment request.
8. An application deployment method, which is characterized by being applied to a user terminal, comprises the following steps:
sending a deployment request to deployment equipment; the deployment request comprises an application identifier of the target application and a region identifier of a deployment region where the user is located; the deployment equipment sends the target application with the association relation with cloud resources in the deployment area based on the deployment request; the deployment equipment stores target applications obtained by copying the cloud resource deployment of a plurality of deployment areas; the target application is provided to the deployment device by an application server.
9. An application deployment system, the system comprising:
the application server side is used for providing target applications to be deployed;
the deployment equipment is used for receiving the target application to be deployed, which is provided by the application server; copying the corresponding target application for a plurality of preset deployment areas respectively; determining the association relationship between the cloud resources deployed in the deployment area and the target application obtained by replication; responding to a deployment request, and sending the target application with the association relation with the cloud resource;
The user end is used for sending the deployment request to the deployment equipment and receiving the target application sent by the deployment equipment.
10. The system of claim 9, further comprising:
and the infrastructure code template is used for creating a cloud resource request, and cloud resources are created for the deployment region by utilizing the infrastructure code template.
11. An application deployment apparatus, the apparatus comprising:
the receiving module is used for receiving the target application to be deployed, which is provided by the application server;
the replication module is used for replicating the corresponding target application for a plurality of preconfigured deployment areas respectively;
the association module is used for determining the association relationship between the cloud resources deployed in the deployment area and the target application obtained by replication;
and the sending module is used for responding to a deployment request and sending the target application with the association relation with the cloud resource.
12. An electronic device includes a memory and a processor; wherein,,
the memory is used for storing programs;
the processor is coupled to the memory for executing the program stored in the memory for implementing the method of any one of the preceding claims 1 to 6, or for implementing the method of the preceding claim 7, or for implementing the method of the preceding claim 8.
13. A non-transitory machine-readable storage medium having stored thereon executable code which, when executed by a processor of an electronic device, causes the processor to perform the method of any one of claims 1 to 6, or to implement the method of claim 7, or to implement the method of claim 8.
CN202310200832.7A 2023-02-28 2023-02-28 Application deployment method, device, system, equipment and medium Pending CN116170454A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310200832.7A CN116170454A (en) 2023-02-28 2023-02-28 Application deployment method, device, system, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310200832.7A CN116170454A (en) 2023-02-28 2023-02-28 Application deployment method, device, system, equipment and medium

Publications (1)

Publication Number Publication Date
CN116170454A true CN116170454A (en) 2023-05-26

Family

ID=86416285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310200832.7A Pending CN116170454A (en) 2023-02-28 2023-02-28 Application deployment method, device, system, equipment and medium

Country Status (1)

Country Link
CN (1) CN116170454A (en)

Similar Documents

Publication Publication Date Title
CN110348830B (en) Block chain-based network system, authentication method, equipment and storage medium
CN113169952B (en) Container cloud management system based on block chain technology
WO2016015558A1 (en) Method and apparatus for applying for license
WO2016173199A1 (en) Mobile application single sign-on method and device
CN111628886B (en) Method, device and computer equipment for building blockchain network in private cloud environment
CN111240732B (en) Method, device, equipment and storage medium for distributing distributed microservice
CN107087009A (en) A kind of realization method and system of collaborative share
CN110138577B (en) Cluster creation method, first server and readable storage medium
US20220326940A1 (en) Service Upgrade Method, Apparatus, and System
CN113064600B (en) Method and device for deploying application
CN107623735B (en) Accurate updating and upgrading system and method based on openssl in credit investigation machine system
CN111737104A (en) Block chain network service platform, test case sharing method thereof and storage medium
CN113687858B (en) Configuration file checking method and device, electronic equipment and storage medium
CN112468537A (en) Block chain network building structure based on local area network environment and data processing method
CN107071043A (en) The collocation method and device of a kind of network information
CN111311254A (en) Service processing method, device and system based on block chain
CN115510163A (en) Mirror image file synchronization method and device, storage medium and electronic equipment
CN107566433A (en) A kind of cloud terminal logs in virtual desktop method and device
CN110166544B (en) Load balancing application creation method and device, computer equipment and storage medium
CN113239056B (en) Data checking method and system based on block chain
CN115694699A (en) Time delay parameter acquisition method and device, electronic equipment and storage medium
CN116170454A (en) Application deployment method, device, system, equipment and medium
CN113641391B (en) Method and device for upgrading block chain system and terminal equipment
CN106936643B (en) Equipment linkage method and terminal equipment
CN115390861A (en) Resource deployment method, device and equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination