CN117135050B - Application deployment method and device - Google Patents

Application deployment method and device Download PDF

Info

Publication number
CN117135050B
CN117135050B CN202311398080.6A CN202311398080A CN117135050B CN 117135050 B CN117135050 B CN 117135050B CN 202311398080 A CN202311398080 A CN 202311398080A CN 117135050 B CN117135050 B CN 117135050B
Authority
CN
China
Prior art keywords
deployment
network
unit
determining
network area
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.)
Active
Application number
CN202311398080.6A
Other languages
Chinese (zh)
Other versions
CN117135050A (en
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.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech 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 CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202311398080.6A priority Critical patent/CN117135050B/en
Publication of CN117135050A publication Critical patent/CN117135050A/en
Application granted granted Critical
Publication of CN117135050B publication Critical patent/CN117135050B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • 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/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an application deployment method and device, and relates to the technical field of cloud storage. One embodiment of the method comprises the following steps: determining performance information of a plurality of deployment units of an application to be deployed and each deployment unit; acquiring configuration information of a plurality of network areas of a deployment area; for each deployment unit: determining a deployment network area corresponding to the deployment unit from the plurality of network areas according to the performance information of the deployment unit and the configuration information of each network area; for each deployment network zone: dividing a deployment space in a deployment network area according to the requirement information of at least one deployment unit corresponding to the deployment network area; for each deployment unit: acquiring a deployment file of a deployment unit; and deploying the deployment units in the deployment spaces of the corresponding deployment network areas by using the deployment files. According to the implementation mode, the application can be reasonably deployed in the cloud environment, so that the resource management and daily operation and maintenance requirements of large scale and high requirements can be met.

Description

Application deployment method and device
Technical Field
The present invention relates to the field of cloud storage technologies, and in particular, to an application deployment method and apparatus.
Background
Cloud protogenesis is the development direction of current cloud computing, and can bring great value promotion to future development of enterprises. The enterprise-level applications are large and cumbersome. In the prior art, enterprise-level applications are typically deployed in a cloud environment manually by relevant personnel, based on experience. How to reasonably deploy applications in cloud environments to meet the requirements of large-scale and high-requirement resource management and daily operation and maintenance is a problem to be solved.
Disclosure of Invention
In view of the above, the embodiment of the invention provides an application deployment method and device, which can reasonably deploy an application in a cloud environment to meet the requirements of large-scale and high-requirement resource management and daily operation and maintenance.
In a first aspect, an embodiment of the present invention provides an application deployment method, including:
determining performance information of a plurality of deployment units of an application to be deployed and each deployment unit;
acquiring configuration information of a plurality of network areas of a deployment area;
for each of the deployment units: determining a deployment network area corresponding to the deployment unit from the plurality of network areas according to the performance information of the deployment unit and the configuration information of each network area;
for each of the deployment network zones: dividing a deployment space in the deployment network region according to the requirement information of at least one deployment unit corresponding to the deployment network region;
for each of the deployment units: acquiring a deployment file of the deployment unit; and deploying the deployment unit in a deployment space of a corresponding deployment network area by using the deployment file.
Optionally, the determining, according to the performance information of the deployment unit and the configuration information of each network area, a deployment network area corresponding to the deployment unit from the plurality of network areas includes:
Determining at least one alternative network area matched with the deployment unit from the plurality of network areas according to the performance information of the deployment unit and the configuration information of each network area;
and determining a deployment network area corresponding to the deployment unit from at least one alternative network area.
Optionally, the determining, from at least one of the alternative network areas, a deployment network area corresponding to the deployment unit includes:
determining cost information for the deployment unit corresponding to each of the alternative network zones;
and determining a deployment network area corresponding to the deployment unit from at least one alternative network area according to the cost information corresponding to each alternative network area.
Optionally, the determining, from at least one of the alternative network areas, a deployment network area corresponding to the deployment unit includes:
determining at least one association unit corresponding to the deployment unit;
determining network areas deployed by the association units;
determining the association value of the deployment unit and each alternative network area according to the network areas deployed by each association unit;
and determining a deployment network area corresponding to the deployment unit from at least one candidate network area according to the association value corresponding to each candidate network area.
Optionally, the dividing a deployment space in the deployment network area according to the requirement information of at least one deployment unit corresponding to the deployment network area includes:
determining requirement information of each deployment unit corresponding to the deployment network area, wherein the requirement information comprises: application space, estimated data increment and estimated service life;
for each of the deployment units corresponding to the deployment network zone: determining a pre-occupied space of the deployment unit according to the application space of the deployment unit, the estimated data increment and the estimated service life;
dividing a deployment space in the deployment network region according to the cluster information corresponding to the deployment region and the pre-occupation space of each deployment unit corresponding to the network region.
Optionally, the deploying network zones for each of the network zones: according to the requirement information of at least one deployment unit corresponding to the network area, before the deployment network area is divided into deployment spaces, the method further comprises the following steps:
determining the fault tolerance rate of the application to be deployed;
and determining cluster information corresponding to each deployment area according to the fault tolerance of the application to be deployed.
Optionally, the network area includes: an open service area, an internet area, a transportation area and an external connection area; the configuration information of the network area includes: computing resources, storage resources, and network resources.
In a second aspect, an embodiment of the present invention provides an application deployment apparatus, including:
the information determining module is used for determining a plurality of deployment units of the application to be deployed and performance information of each deployment unit;
the information acquisition module is used for acquiring configuration information of a plurality of network areas of the deployment area;
a network area determining module, configured to, for each of the deployment units: determining a deployment network area corresponding to the deployment unit from the plurality of network areas according to the performance information of the deployment unit and the configuration information of each network area;
a space division module, configured to, for each of the deployment network areas: dividing a deployment space in the deployment network region according to the requirement information of at least one deployment unit corresponding to the deployment network region;
a deployment module, configured to, for each of the deployment units: acquiring a deployment file of the deployment unit; and deploying the deployment unit in a deployment space of a corresponding deployment network area by using the deployment file.
Optionally, the deployment module is specifically configured to:
determining at least one alternative network area matched with the deployment unit from the plurality of network areas according to the performance information of the deployment unit and the configuration information of each network area;
And determining a deployment network area corresponding to the deployment unit from at least one alternative network area.
Optionally, the deployment module is specifically configured to:
determining cost information for the deployment unit corresponding to each of the alternative network zones;
and determining a deployment network area corresponding to the deployment unit from at least one alternative network area according to the cost information corresponding to each alternative network area.
Optionally, the deployment module is specifically configured to:
determining at least one association unit corresponding to the deployment unit;
determining network areas deployed by the association units;
determining the association value of the deployment unit and each alternative network area according to the network areas deployed by each association unit;
and determining a deployment network area corresponding to the deployment unit from at least one candidate network area according to the association value corresponding to each candidate network area.
Optionally, the space division module is specifically configured to:
determining requirement information of each deployment unit corresponding to the deployment network area, wherein the requirement information comprises: application space, estimated data increment and estimated service life;
for each of the deployment units corresponding to the deployment network zone: determining a pre-occupied space of the deployment unit according to the application space of the deployment unit, the estimated data increment and the estimated service life;
Dividing a deployment space in the deployment network region according to the cluster information corresponding to the deployment region and the pre-occupation space of each deployment unit corresponding to the network region.
In a third aspect, an embodiment of the present invention provides an electronic device, including:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the methods of any of the embodiments described above.
In a fourth aspect, embodiments of the present invention provide a computer readable medium having stored thereon a computer program which, when executed by a processor, implements a method as described in any of the above embodiments.
In a fifth aspect, embodiments of the present invention provide a computer program product comprising a computer program which, when executed by a processor, implements a method as described in any of the above embodiments.
One embodiment of the above invention has the following advantages or benefits: and determining a deployment network area corresponding to the deployment unit from the plurality of network areas according to the performance information of the deployment unit and the configuration information of each network area. Thus, the deployment network zone is able to meet the performance requirements of the deployment unit. And dividing a deployment space in the deployment network region according to the requirement information of at least one deployment unit corresponding to the deployment network region. The demand information may include: application space, estimated data growth and estimated service life. Therefore, the deployment space divided by the deployment network region can meet the space requirement of the deployment unit. Finally, each deployment unit is deployed in the deployment space of the corresponding deployment network area, so that the application can be reasonably deployed in the cloud environment, and the requirements of large-scale and high-requirement resource management and daily operation and maintenance are met.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a flowchart of an application deployment method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of an application deployment method according to a second embodiment of the present invention;
FIG. 3 is a flowchart of an application deployment method according to a third embodiment of the present invention;
FIG. 4 is a schematic diagram of splitting an application into multiple deployment units provided by a fourth embodiment of the present invention;
FIG. 5 is a schematic diagram of an application deployment architecture corresponding to FIG. 4 provided by a fourth embodiment of the present invention;
FIG. 6 is a schematic diagram of an application deployment apparatus according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the technical scheme of the invention, the aspects of acquisition, analysis, use, transmission, storage and the like of the related user personal information all meet the requirements of related laws and regulations, are used for legal and reasonable purposes, are not shared, leaked or sold outside the aspects of legal use and the like, and are subjected to supervision and management of a supervision department. Necessary measures should be taken for the personal information of the user to prevent illegal access to such personal information data, ensure that personnel having access to the personal information data comply with the regulations of the relevant laws and regulations, and ensure the personal information of the user. Once these user personal information data are no longer needed, the risk should be minimized by limiting or even prohibiting the data collection and/or deletion.
Fig. 1 is a flow chart of an application deployment method according to a first embodiment of the present invention, as shown in fig. 1, where the method includes:
step 101: and determining performance information of a plurality of deployment units of the application to be deployed and each deployment unit.
The application to be deployed is made up of a plurality of deployment units. After the deployment of each deployment unit is completed, the deployment of the application to be deployed is completed. Each deployment unit may correspond to different performance information, respectively. The performance information may include: computing or processor performance information, memory performance information, storage resource information, network performance information, cluster information, fault tolerance, etc.
The multiple deployment units of the application to be deployed and the performance information of each deployment unit can be manually input. And acquiring and analyzing a demand document or a deployment document of the application to be deployed, and determining a plurality of deployment units of the application to be deployed and performance information of each deployment unit according to the analysis result.
Step 102: configuration information of a plurality of network areas of a deployment area is obtained.
The deployment area is an area where the application to be deployed is deployed. The deployment area may be a data center or a central machine room, etc. The deployment area may be divided into a plurality of network zones. Different network areas are configured with different configuration information. The network zone may include: open service area, internet area, shipping area, outside connection area, etc. The configuration information of the network area includes: computing or server configuration information, memory configuration information, storage configuration information, network configuration information, and the like.
Configuration information of a plurality of network areas of the deployment area can be manually input. And acquiring and analyzing the related documents of the deployment area, and determining the configuration information of a plurality of network areas of the deployment area according to the analysis result.
Step 103: for each deployment unit: and determining a deployment network area corresponding to the deployment unit from the plurality of network areas according to the performance information of the deployment unit and the configuration information of each network area.
The configuration information of the deployment network area needs to satisfy the performance information of the deployment unit to deploy the deployment unit in the network area capable of satisfying the performance requirement thereof. Namely, the computing or server configuration information of the deployment network area can meet the requirement of the computing or processor performance information of the deployment unit, the memory configuration information of the deployment network area can meet the requirement of the memory performance information of the deployment unit, the network configuration information of the deployment network area can meet the requirement of the network performance information of the deployment unit, and the like.
The method can determine the lowest configuration information corresponding to each item of performance information of the deployment unit, and then judge whether each item of configuration information of the network area is larger than or equal to each item of the lowest configuration information. And if all the configuration information of the network area is larger than or equal to the lowest configuration information, determining that the configuration information of the deployment network area meets the performance information of the deployment unit.
Step 104: for each deployment network zone: and dividing a deployment space in the deployment network region according to the requirement information of at least one deployment unit corresponding to the deployment network region.
The demand information may include: the application space, the estimated data increment and the estimated service life are used for enabling the deployment space partitioned by the deployment network to meet the space requirement of the deployment unit.
For example, the deployment network area corresponds to a first deployment unit and a second deployment unit, and no cluster is built in the deployment network area. The preemption space of the first deployment unit is 100G, and the preemption space of the second deployment unit is 400G, and the size of the deployment space is divided into the deployment network areas: 100g+400g+50g=500g, with 50g being spare space.
Step 105: for each deployment unit: acquiring a deployment file of a deployment unit; and deploying the deployment units in the deployment spaces of the corresponding deployment network areas by using the deployment files.
And acquiring and analyzing a demand document or a deployment document of the application to be deployed, and determining the storage position of the deployment file of each deployment unit and the deployment sequence of each deployment unit. Acquiring deployment files of the deployment units from storage positions of the deployment files of the deployment units; and according to the deployment sequence of each deployment unit, deploying each deployment unit in the deployment space of the corresponding deployment network area by using the deployment file of each deployment unit. After the deployment of each deployment unit is completed, the deployment of the application to be deployed is completed.
In the scheme of the embodiment of the invention, the deployment network area corresponding to the deployment unit is determined from the plurality of network areas according to the performance information of the deployment unit and the configuration information of each network area. Thus, the deployment network zone is able to meet the performance requirements of the deployment unit. And dividing a deployment space in the deployment network region according to the requirement information of at least one deployment unit corresponding to the deployment network region. The demand information may include: application space, estimated data growth and estimated service life. Therefore, the deployment space divided by the deployment network region can meet the space requirement of the deployment unit. Finally, each deployment unit is deployed in the deployment space of the corresponding deployment network area, so that the application can be reasonably deployed in the cloud environment, and the requirements of large-scale and high-requirement resource management and daily operation and maintenance are met.
Fig. 2 is a flow chart of an application deployment method according to a second embodiment of the present invention, as shown in fig. 2, where the method includes:
step 201: and determining performance information of a plurality of deployment units of the application to be deployed and each deployment unit.
Step 202: configuration information of a plurality of network areas of a deployment area is obtained.
Step 203: for each deployment unit: and determining at least one alternative network area matched with the deployment unit from the plurality of network areas according to the performance information of the deployment unit and the configuration information of each network area.
The configuration information of the alternative network area needs to satisfy the performance information of the deployment unit. That is, the computing or server configuration information of the alternative network area can meet the requirement of computing or processor performance information of the deployment unit, the memory configuration information of the alternative network area can meet the requirement of memory performance information of the deployment unit, the network configuration information of the alternative network area can meet the requirement of network performance information of the deployment unit, and the like.
Step 204: and determining a deployment network area corresponding to the deployment unit from at least one alternative network area.
There are many ways of determining the deployment network area corresponding to the deployment unit. For example, a deployment network zone corresponding to a deployment unit is manually specified. Alternatively, a plurality of measurement scores of each candidate network area are determined, and then the weight sum of the plurality of measurement scores is calculated and used as the score of the candidate network area. The alternative network region with the highest score or exceeding the threshold value is selected as the deployment network region. The measurement score may include: cost score, performance score, stability score, etc.
Step 205: for each deployment network zone: and dividing a deployment space in the deployment network region according to the requirement information of at least one deployment unit corresponding to the deployment network region.
Step 206: for each deployment unit: acquiring a deployment file of a deployment unit; and deploying the deployment units in the deployment spaces of the corresponding deployment network areas by using the deployment files.
In the scheme of the embodiment of the invention, at least one alternative network area matched with the deployment unit is determined from a plurality of network areas, and then the deployment network area corresponding to the deployment unit is determined from at least one alternative network area, so that each deployment unit is deployed in a more matched proper deployment network area, the operation cost is reduced, and the application performance of the application to be deployed is improved.
In one embodiment of the present invention, determining a deployment network area corresponding to a deployment unit from at least one alternative network area includes: determining spending information for the deployment unit corresponding to each of the alternative network zones; and determining a deployment network area corresponding to the deployment unit from at least one alternative network area according to the cost information corresponding to each alternative network area. The alternative network region that costs the least or is below the cost threshold may be selected as the deployment network region. The scheme can reduce the operation cost of the application to be deployed while meeting the performance of the application to be deployed.
In one embodiment of the present invention, determining a deployment network area corresponding to a deployment unit from at least one alternative network area includes: determining at least one association unit corresponding to the deployment unit; determining network areas deployed by each association unit; according to the network areas deployed by the association units, determining association values of the deployment units and the alternative network areas; and determining a deployment network area corresponding to the deployment unit from at least one alternative network area according to the association value corresponding to each alternative network area.
The association unit is a unit related to the deployment unit, the association unit is a unit with information interaction with the deployment unit, and the association unit can also be an upstream unit or a downstream unit of the deployment unit.
And determining the association value of the deployment unit and each alternative network area according to the network area deployed by each association unit. The association value of an alternative network zone is proportional to the number of association units deployed for that alternative network zone. For example, if there are 1 association unit deployed in the alternative network area, the association value of the alternative network area is 1. If there are 5 association units, deployed in the alternative network area, the association value of the alternative network area is 5.
The alternative network zone with the highest association value or exceeding the threshold value may be selected as the deployment network zone. According to the scheme, the deployment unit and the associated unit related to the deployment unit can be deployed in the same network area, so that the cost of information interaction between the deployment unit and the associated unit is reduced, and subsequent operation and maintenance and fault investigation are facilitated.
Fig. 3 is a flowchart of an application deployment method according to a first embodiment of the present invention, as shown in fig. 3, where the method includes:
step 301: and determining performance information of a plurality of deployment units of the application to be deployed and each deployment unit.
Step 302: configuration information of a plurality of network areas of a deployment area is obtained.
Step 303: for each deployment unit: and determining a deployment network area corresponding to the deployment unit from the plurality of network areas according to the performance information of the deployment unit and the configuration information of each network area.
Step 304: for each deployment network zone: determining requirement information of each deployment unit corresponding to the deployment network area, wherein the requirement information comprises: application space, estimated data growth and estimated service life.
The application space is the size of the space currently occupied by the deployment unit. The estimated data increment may be a month estimated data increment, a year estimated data increment, etc. of the deployment unit. The estimated service life is the expected service life of the application to be deployed.
Step 305: aiming at each deployment unit corresponding to the deployment network area: and determining the pre-occupied space of the deployment unit according to the application space of the deployment unit, the estimated data increment and the estimated service life.
The application space, the estimated data increment and the estimated service life of the deployment unit can be substituted into a preset calculation formula or input into a space model to obtain the pre-occupied space of the deployment unit. The embodiment of the invention does not limit the specific form of the calculation formula. As an embodiment, the calculation formula may be:
pre-occupation space = application space + estimated data increase amount × estimated age + spare space.
Step 306: dividing a deployment space in a deployment network region according to cluster information corresponding to the deployment region and the pre-occupied space of each deployment unit corresponding to the network region.
In one embodiment of the invention, for each deployment network zone: according to the requirement information of at least one deployment unit corresponding to the network area, before the deployment network area is partitioned into deployment spaces, the method further comprises the following steps: determining the fault tolerance rate of an application to be deployed; and determining cluster information corresponding to each deployment area according to the fault tolerance of the application to be deployed.
The cluster information may include: number of cluster nodes. The mapping relation between the fault tolerance and the cluster information can be set in the system. And determining cluster information corresponding to the deployment area according to the mapping relation. And creating a cluster in the deployment area according to the cluster information.
The size of the deployment space in the deployment network area is determined by the product of the pre-occupied space of each deployment unit corresponding to the deployment network area and the number of cluster nodes.
For example, the deployment network area corresponds to a first deployment unit and a second deployment unit, and the deployment network area is configured with a cluster of three nodes. The pre-occupied space of the first deployment unit is 1T, the pre-occupied space of the second deployment unit is 2T, and the size of the deployment space is divided into the deployment network areas: (1t+2t) ×3+0.5t=9t, 0.5t being spare space.
Step 307: for each deployment unit: acquiring a deployment file of a deployment unit; and deploying the deployment units in the deployment spaces of the corresponding deployment network areas by using the deployment files.
In the embodiment of the invention, the pre-occupied space of the deployment unit is determined according to the application space, the pre-estimated data increment and the pre-estimated service life of the deployment unit; dividing a deployment space in a deployment network region according to cluster information corresponding to the deployment region and the pre-occupied space of each deployment unit corresponding to the network region. Therefore, the deployment space divided by the deployment network area can meet the space requirement of the deployment unit.
To facilitate an understanding of the solution of the embodiments of the present invention, an enterprise-level container application deployment solution is provided below. The scheme comprises the following steps:
The first step: identifying a plurality of deployment units of a container application and performance information of each deployment unit, comprising the following sub-steps:
1) The container application is divided into different deployment units according to the system deployment architecture and service requirements. Deployment units can be divided into three categories: an out-connection service, a core application service, and a data processing service, each class including at least one deployment unit.
2) And marking a network area label for each deployment unit according to the performance information of the deployment unit and the configuration information of each network area, wherein the network area label corresponds to the deployment network area corresponding to the deployment unit.
The statistical application involves several network areas, each of which requires a resource size. If there are multiple deployment units in an application system deployed in a network area, the resources of these deployment units need to merge statistics.
And a second step of: constructing a container cluster in a deployment network area according to the fault tolerance of the container application, wherein the method comprises the following substeps:
1) The basic resources needed for preparing the container resources comprise basic resources such as calculation, storage, network and the like, and can be in the form of virtual machines or physical machines.
2) The basic resources are located in different network areas according to service requirements, and the network areas of the deployment area can comprise: open service area, internet area, shipping area, outside connection area, etc. An enterprise may also define desired network areas as desired.
3) Server clusters are built in each network area through a container platform or a container cloud platform. The resources among clusters are isolated from each other, and the resources in the clusters are shared with each other. Each cluster is named by the English abbreviation of the network area and the serial number of the cluster so as to ensure the standardization and the uniqueness of the naming.
And a third step of: allocating container space quota for each deployment network area to complete application deployment, comprising the following sub-steps:
1) A workspace is created for each container application, which, because of the logical concept, can be created large enough, e.g., 1000C cpu, 4000G memory, 10T storage, etc. The name of the workspace may be a lower case letter for application system abbreviation, such as a pay-and-pay-as-pay system, which is abbreviated as DSDF, and its workspace name is DSDF.
2) And dividing deployment spaces in the corresponding network areas respectively according to the network areas corresponding to the deployment units. Each network area deployment space needs to be bound with a corresponding cluster, and only one cluster is bound in the deployment space to ensure the safety and standardization of management, so that the clusters cannot be crossed. The naming convention for the deployment space is the workspace name_cluster name, e.g., dsdf_dmz_cluster 1.
And carrying out quota allocation of the deployment space according to the resources required by the statistical application in each network area, wherein if each network area comprises clusters of two nodes, the quota of the actual deployment space is equal to half of the statistical value.
3) Acquiring deployment files of each deployment unit; and deploying the deployment units in the deployment spaces of the corresponding deployment network areas by using the deployment files to finish the deployment of the application containers.
Fig. 4 is a schematic diagram of splitting an application into multiple deployment units according to a fourth embodiment of the present invention. As shown in fig. 4, the facility employee system includes: deployment unit 1 and deployment unit 2. The deployment network area of the deployment unit 1 is an open service area, and the deployment network area of the deployment unit 2 is an operation area. The operation distribution system comprises: deployment unit 3 and deployment unit 4. The deployment network area of the deployment unit 3 is DMZ (internet area), and the deployment network area of the deployment unit 4 is an open service area. The DMZ zone, the open service zone and the operation zone are all provided with clusters of double nodes.
Fig. 5 is a schematic diagram of an application deployment architecture corresponding to fig. 4 according to a fourth embodiment of the present invention. As shown in fig. 5, a deployment unit 3 for operating the distribution system is deployed in the DMZ zone. Deployment unit 1 of the organization employee system and deployment unit 4 of the operation distribution system are deployed in the open service area. Deployment unit 2 of the facility employee system is deployed in the shipping area.
Fig. 6 is a schematic structural diagram of an application deployment device according to an embodiment of the present invention, as shown in fig. 6, the device includes:
An information determining module 601, configured to determine a plurality of deployment units of an application to be deployed and performance information of each deployment unit;
an information obtaining module 602, configured to obtain configuration information of a plurality of network areas of a deployment area;
a network area determining module 603, configured to, for each deployment unit: determining a deployment network area corresponding to the deployment unit from the plurality of network areas according to the performance information of the deployment unit and the configuration information of each network area;
a space division module 604, configured to, for each deployment network area: dividing a deployment space in a deployment network area according to the requirement information of at least one deployment unit corresponding to the deployment network area;
a deployment module 605 for, for each deployment unit: acquiring a deployment file of a deployment unit; and deploying the deployment units in the deployment spaces of the corresponding deployment network areas by using the deployment files.
Optionally, the deployment module 605 is specifically configured to:
determining at least one alternative network area matched with the deployment unit from a plurality of network areas according to the performance information of the deployment unit and the configuration information of each network area;
and determining a deployment network area corresponding to the deployment unit from at least one alternative network area.
Optionally, the deployment module 605 is specifically configured to:
Determining spending information for the deployment unit corresponding to each of the alternative network zones;
and determining a deployment network area corresponding to the deployment unit from at least one alternative network area according to the cost information corresponding to each alternative network area.
Optionally, the deployment module 605 is specifically configured to:
determining at least one association unit corresponding to the deployment unit;
determining network areas deployed by each association unit;
according to the network areas deployed by the association units, determining association values of the deployment units and the alternative network areas;
and determining a deployment network area corresponding to the deployment unit from at least one alternative network area according to the association value corresponding to each alternative network area.
Optionally, the space division module 604 is specifically configured to:
determining requirement information of each deployment unit corresponding to the deployment network area, wherein the requirement information comprises: application space, estimated data increment and estimated service life;
aiming at each deployment unit corresponding to the deployment network area: determining a pre-occupied space of the deployment unit according to the application space of the deployment unit, the estimated data increment and the estimated service life;
dividing a deployment space in a deployment network region according to cluster information corresponding to the deployment region and the pre-occupied space of each deployment unit corresponding to the network region.
Optionally, the method further comprises:
the cluster module is used for determining the fault tolerance of the application to be deployed;
and determining cluster information corresponding to each deployment area according to the fault tolerance of the application to be deployed.
The embodiment of the invention provides electronic equipment, which comprises:
one or more processors;
storage means for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the methods of any of the embodiments described above.
An embodiment of the invention provides a computer program product comprising a computer program which, when executed by a processor, implements the method of any of the embodiments described above.
Referring now to FIG. 7, there is illustrated a schematic diagram of a computer system 700 suitable for use in implementing an embodiment of the present invention. The terminal device shown in fig. 7 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, ROM 702, and RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, and the like; an output portion 707 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 708 including a hard disk or the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. The drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read therefrom is mounted into the storage section 708 as necessary.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 709, and/or installed from the removable medium 711. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 701.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present invention may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as: the system comprises an information determining module, an information obtaining module, a network area determining module, a space dividing module and a deployment module. The names of these modules do not constitute a limitation on the module itself in some cases, and for example, the information determining module may also be described as "a module that determines a plurality of deployment units of an application to be deployed and performance information of each deployment unit".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to include:
determining performance information of a plurality of deployment units of an application to be deployed and each deployment unit;
acquiring configuration information of a plurality of network areas of a deployment area;
for each of the deployment units: determining a deployment network area corresponding to the deployment unit from the plurality of network areas according to the performance information of the deployment unit and the configuration information of each network area;
for each of the deployment network zones: dividing a deployment space in the deployment network region according to the requirement information of at least one deployment unit corresponding to the deployment network region;
for each of the deployment units: acquiring a deployment file of the deployment unit; and deploying the deployment unit in a deployment space of a corresponding deployment network area by using the deployment file.
According to the technical scheme of the embodiment of the invention, the deployment network area corresponding to the deployment unit is determined from the plurality of network areas according to the performance information of the deployment unit and the configuration information of each network area. Thus, the deployment network zone is able to meet the resource requirements of the deployment unit. And dividing a deployment space in the deployment network region according to the requirement information of at least one deployment unit corresponding to the deployment network region. The demand information may include: application space, estimated data growth and estimated service life. Therefore, the deployment space divided by the deployment network region can meet the requirement information of the deployment unit. Finally, each deployment unit is deployed in the deployment space of the corresponding deployment network area, so that the application can be reasonably deployed in the cloud environment, and the requirements of large-scale and high-requirement resource management and daily operation and maintenance are met.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. An application deployment method, comprising:
determining performance information of a plurality of deployment units of an application to be deployed and each deployment unit;
acquiring configuration information of a plurality of network areas of a deployment area;
for each of the deployment units: determining a deployment network area corresponding to the deployment unit from the plurality of network areas according to the performance information of the deployment unit and the configuration information of each network area;
for each of the deployment network zones: dividing a deployment space in the deployment network region according to the requirement information of at least one deployment unit corresponding to the deployment network region;
for each of the deployment units: acquiring a deployment file of the deployment unit; using the deployment file to deploy the deployment unit in a deployment space of a corresponding deployment network area;
the determining, according to the performance information of the deployment unit and the configuration information of each network area, a deployment network area corresponding to the deployment unit from the plurality of network areas includes:
determining at least one alternative network area matched with the deployment unit from the plurality of network areas according to the performance information of the deployment unit and the configuration information of each network area;
Determining a deployment network area corresponding to the deployment unit from at least one alternative network area;
and determining a deployment network area corresponding to the deployment unit from at least one alternative network area, including:
determining at least one association unit corresponding to the deployment unit;
determining network areas deployed by the association units;
determining the association value of the deployment unit and each alternative network area according to the network areas deployed by each association unit;
and determining a deployment network area corresponding to the deployment unit from at least one candidate network area according to the association value corresponding to each candidate network area.
2. The method of claim 1, wherein the determining, from at least one of the alternative network areas, a deployment network area corresponding to the deployment unit comprises:
determining cost information for the deployment unit corresponding to each of the alternative network zones;
and determining a deployment network area corresponding to the deployment unit from at least one alternative network area according to the cost information corresponding to each alternative network area.
3. The method according to claim 1, wherein the partitioning the deployment space in the deployment network area according to the requirement information of the at least one deployment unit corresponding to the deployment network area includes:
Determining requirement information of each deployment unit corresponding to the deployment network area, wherein the requirement information comprises: application space, estimated data increment and estimated service life;
for each of the deployment units corresponding to the deployment network zone: determining a pre-occupied space of the deployment unit according to the application space of the deployment unit, the estimated data increment and the estimated service life;
dividing a deployment space in the deployment network region according to the cluster information corresponding to the deployment region and the pre-occupation space of each deployment unit corresponding to the network region.
4. The method of claim 1, wherein for each of the deployment network zones: according to the requirement information of at least one deployment unit corresponding to the network area, before the deployment network area is divided into deployment spaces, the method further comprises the following steps:
determining the fault tolerance rate of the application to be deployed;
and determining cluster information corresponding to each deployment area according to the fault tolerance of the application to be deployed.
5. The method of claim 1, wherein the network zone comprises: an open service area, an internet area, a transportation area and an external connection area; the configuration information of the network area includes: computing resources, storage resources, and network resources.
6. An application deployment apparatus, comprising:
the information determining module is used for determining a plurality of deployment units of the application to be deployed and performance information of each deployment unit;
the information acquisition module is used for acquiring configuration information of a plurality of network areas of the deployment area;
a network area determining module, configured to, for each of the deployment units: determining a deployment network area corresponding to the deployment unit from the plurality of network areas according to the performance information of the deployment unit and the configuration information of each network area;
a space division module, configured to, for each of the deployment network areas: dividing a deployment space in the deployment network region according to the requirement information of at least one deployment unit corresponding to the deployment network region;
a deployment module, configured to, for each of the deployment units: acquiring a deployment file of the deployment unit; using the deployment file to deploy the deployment unit in a deployment space of a corresponding deployment network area;
the deployment module is specifically configured to:
determining at least one alternative network area matched with the deployment unit from the plurality of network areas according to the performance information of the deployment unit and the configuration information of each network area;
Determining a deployment network area corresponding to the deployment unit from at least one alternative network area;
the deployment module is specifically configured to:
determining at least one association unit corresponding to the deployment unit;
determining network areas deployed by the association units;
determining the association value of the deployment unit and each alternative network area according to the network areas deployed by each association unit;
and determining a deployment network area corresponding to the deployment unit from at least one candidate network area according to the association value corresponding to each candidate network area.
7. The apparatus of claim 6, wherein the deployment module is specifically configured to:
determining cost information for the deployment unit corresponding to each of the alternative network zones;
and determining a deployment network area corresponding to the deployment unit from at least one alternative network area according to the cost information corresponding to each alternative network area.
8. The apparatus of claim 6, wherein the spatial partitioning module is specifically configured to:
determining requirement information of each deployment unit corresponding to the deployment network area, wherein the requirement information comprises: application space, estimated data increment and estimated service life;
For each of the deployment units corresponding to the deployment network zone: determining a pre-occupied space of the deployment unit according to the application space of the deployment unit, the estimated data increment and the estimated service life;
dividing a deployment space in the deployment network region according to the cluster information corresponding to the deployment region and the pre-occupation space of each deployment unit corresponding to the network region.
9. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-5.
10. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-5.
CN202311398080.6A 2023-10-26 2023-10-26 Application deployment method and device Active CN117135050B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311398080.6A CN117135050B (en) 2023-10-26 2023-10-26 Application deployment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311398080.6A CN117135050B (en) 2023-10-26 2023-10-26 Application deployment method and device

Publications (2)

Publication Number Publication Date
CN117135050A CN117135050A (en) 2023-11-28
CN117135050B true CN117135050B (en) 2024-02-09

Family

ID=88858636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311398080.6A Active CN117135050B (en) 2023-10-26 2023-10-26 Application deployment method and device

Country Status (1)

Country Link
CN (1) CN117135050B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008025514A1 (en) * 2006-08-29 2008-03-06 Sap Ag Systems and methods for rapid application configuration and deployment
JP2017143365A (en) * 2016-02-09 2017-08-17 日本電信電話株式会社 Application deployment system and method
CN108363653A (en) * 2018-02-07 2018-08-03 平安科技(深圳)有限公司 Dispositions method, device, computer equipment and the storage medium of monitoring system
CN109062694A (en) * 2018-07-31 2018-12-21 佛山市苔藓云链科技有限公司 A method of application program is moved into cloud platform
CN111897654A (en) * 2020-07-31 2020-11-06 腾讯科技(深圳)有限公司 Method and device for migrating application to cloud platform, electronic equipment and storage medium
CN114490086A (en) * 2022-02-16 2022-05-13 中国工商银行股份有限公司 Method, device, electronic equipment, medium and program product for dynamically adjusting resources
CN114625535A (en) * 2022-03-08 2022-06-14 新浪网技术(中国)有限公司 Service deployment method and device for multiple Kubernetes clusters
CN115689277A (en) * 2022-10-12 2023-02-03 北京思路智园科技有限公司 Chemical industry park risk early warning system under cloud limit collaborative technology
WO2023098374A1 (en) * 2021-12-02 2023-06-08 中兴通讯股份有限公司 Network resource deployment method and apparatus, and electronic device and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10601871B2 (en) * 2017-01-18 2020-03-24 International Business Machines Corporation Reconfiguration of security requirements for deployed components of applications
CN114281352A (en) * 2020-09-28 2022-04-05 京东方科技集团股份有限公司 Service deployment method and related equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008025514A1 (en) * 2006-08-29 2008-03-06 Sap Ag Systems and methods for rapid application configuration and deployment
JP2017143365A (en) * 2016-02-09 2017-08-17 日本電信電話株式会社 Application deployment system and method
CN108363653A (en) * 2018-02-07 2018-08-03 平安科技(深圳)有限公司 Dispositions method, device, computer equipment and the storage medium of monitoring system
CN109062694A (en) * 2018-07-31 2018-12-21 佛山市苔藓云链科技有限公司 A method of application program is moved into cloud platform
CN111897654A (en) * 2020-07-31 2020-11-06 腾讯科技(深圳)有限公司 Method and device for migrating application to cloud platform, electronic equipment and storage medium
WO2023098374A1 (en) * 2021-12-02 2023-06-08 中兴通讯股份有限公司 Network resource deployment method and apparatus, and electronic device and storage medium
CN114490086A (en) * 2022-02-16 2022-05-13 中国工商银行股份有限公司 Method, device, electronic equipment, medium and program product for dynamically adjusting resources
CN114625535A (en) * 2022-03-08 2022-06-14 新浪网技术(中国)有限公司 Service deployment method and device for multiple Kubernetes clusters
CN115689277A (en) * 2022-10-12 2023-02-03 北京思路智园科技有限公司 Chemical industry park risk early warning system under cloud limit collaborative technology

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
IT***云化迁移评估模型研究;杨锦洲;何进;张国;;信息通信技术(第02期);全文 *

Also Published As

Publication number Publication date
CN117135050A (en) 2023-11-28

Similar Documents

Publication Publication Date Title
CN107479882B (en) Generating method and generating device of application page, medium and electronic equipment
CN109359277B (en) Data monitoring method, device and computer storage medium
US9798782B2 (en) Re-sizing data partitions for ensemble models in a mapreduce framework
CN110688828A (en) File processing method and device, file processing system and computer equipment
CN109446274A (en) The method and apparatus of big data platform BI metadata management
CN108958959A (en) The method and apparatus for detecting hive tables of data
CN110471754A (en) Method for exhibiting data, device, equipment and storage medium in job scheduling
CN105446952B (en) For handling the method and system of semantic segment
CN113361838A (en) Business wind control method and device, electronic equipment and storage medium
CN110309142A (en) The method and apparatus of regulation management
CN110019214A (en) The method and apparatus that data split result is verified
CN110989891B (en) Component deployment method in chart editor, chart editor and related equipment
CN109597810A (en) A kind of task cutting method, device, medium and electronic equipment
CN110930056A (en) Thinking-guidance-graph-based task management method, terminal device and storage medium
CN109960212A (en) Task sending method and device
CN109240916A (en) Information output controlling method, device and computer readable storage medium
CN117135050B (en) Application deployment method and device
CN117093619A (en) Rule engine processing method and device, electronic equipment and storage medium
CN109117199A (en) The configuring management method and device of distributed program
CN110347654A (en) A kind of method and apparatus of online cluster features
CN113705184A (en) Method and device for generating custom report, storage medium and electronic equipment
CN109918353A (en) The method and terminal device of automated information processing
CN112508535A (en) Jbpm-based method and device for improving approval workflow
CN110083471A (en) A kind of method and apparatus preventing application crash
CN116821117B (en) Stream data processing method, system, 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
GR01 Patent grant
GR01 Patent grant