[go: up one dir, main page]

CN110177144B - Method for copying application environment by one key based on private cloud - Google Patents

Method for copying application environment by one key based on private cloud Download PDF

Info

Publication number
CN110177144B
CN110177144B CN201910447981.7A CN201910447981A CN110177144B CN 110177144 B CN110177144 B CN 110177144B CN 201910447981 A CN201910447981 A CN 201910447981A CN 110177144 B CN110177144 B CN 110177144B
Authority
CN
China
Prior art keywords
environment
configuration
copying
information
application
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.)
Expired - Fee Related
Application number
CN201910447981.7A
Other languages
Chinese (zh)
Other versions
CN110177144A (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.)
Wanhui Investment Management Co ltd
Original Assignee
Wanhui Investment Management 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 Wanhui Investment Management Co ltd filed Critical Wanhui Investment Management Co ltd
Priority to CN201910447981.7A priority Critical patent/CN110177144B/en
Publication of CN110177144A publication Critical patent/CN110177144A/en
Application granted granted Critical
Publication of CN110177144B publication Critical patent/CN110177144B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • 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/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Stored Programmes (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a method for copying an application environment by one key based on a private cloud, which comprises the following steps: a user logs in and accesses the cloud platform, inquires and screens out application environments needing to be copied on a cloud front-end environment management page, and clicks a copy button in a card tag of the application environments; configuring target environment information, and waiting for the automatic execution of environment copying after the target environment code is determined; in the environment copying process, the front end and the rear end communicate through a websocket, and a user obtains an environment copying execution result in real time; after the replication execution is complete, the user may access the newly replicated environment, where both the deployed applications and data remain consistent with the source environment. By the method, a user only needs to maintain one complete environment, and when business development and test requirements exist, a plurality of environments are copied from the maintained complete environment to deal with parallel development and test work pair environments.

Description

Method for copying application environment by one key based on private cloud
Technical Field
The invention relates to the technical field of operating environment processing, in particular to a method for copying an application environment by one key based on a private cloud.
Background
In the past, software development, debugging and testing environments are few and insufficient, and the problems of high maintenance cost are increased, so that software development and testing teams are troubled. The traditional solution is to practice and adjust balance between requirements and cost, build and maintain several sets of software system environments, deal with concurrent software development and test requirements, and mainly have the following defects:
resource cost of a plurality of environments needs to be occupied for a long time, for some complex service systems, such as micro-service systems in the field of financial loan, dozens or even hundreds of applications need to be deployed in a set of complete development and test environments, even if the utilization rate problem of server resources is solved by using cloud and container technologies, a considerable part of resource cost still needs to be occupied for maintaining a plurality of sets of complete environments for a long time, and in a time period when service requirements are not busy, the situation that a part of environments occupy resources in a free mode can occur.
The manual maintenance cost of several sets of environments needs to be invested for a long time, the synchronous maintenance is needed for each change of the system, several sets of environments need to be executed synchronously for several times, the manual maintenance of a plurality of sets of environments consumes time and labor, and the condition that the execution of configuration items or database scripts is asynchronous easily occurs.
The method is difficult to meet the use requirement of the suddenly increased concurrent environment, when the service requirement is suddenly increased, the requirements of the larger concurrent development and test environment appear, and when the quantity of the existing environment is exceeded, for the complex service system such as the financial loan field, it is a quite troublesome matter to increase and deploy a set of complete development and test environment, a large amount of time is consumed to deploy application, modify configuration, synchronize data and call through a link of the whole system, and the requirement of the rapid online service cannot be timely met.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method for copying a plurality of sets of environments from a maintained complete environment to meet the requirements of parallel development and test work on the environment when a user only needs to maintain one set of complete environment and has service development and test requirements.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows: a method for copying an application environment based on private cloud one-key is characterized by comprising the following steps:
a user logs in and accesses the cloud platform, inquires and screens out an application environment needing to be copied on an environment management page at the front end of the cloud platform, and clicks a copy button in a card tag of the application environment;
configuring target environment information, and waiting for the automatic execution of environment copying after the target environment code is determined;
in the environment copying process, the front end and the rear end communicate through a websocket, and a user obtains an environment copying execution result in real time;
after the replication execution is complete, the user may access the newly replicated environment, where both the deployed applications and data remain consistent with the source environment.
The further technical scheme is as follows: a user logs in and accesses the cloud platform, an environment management page is arranged at the front end of the cloud platform, codes of a source environment needing to be copied are screened out according to code inquiry input by the user, and a copy button in a card tag of the source environment is clicked;
configuring target environment information, wherein the target environment information is determined and then waits for the automatic execution of environment copying, and the target environment information can comprise a target environment code, a name, a belonging target environment space and the like;
in the environment copying process, the front end and the rear end of the cloud platform communicate through a websocket, and a user can obtain an environment copying execution result in real time;
after the replication is performed, the user can access the replicated new environment, and the applications and data deployed by the replicated new environment are consistent with those of the source environment.
The further technical scheme is as follows: the system for copying the new environment from the source environment specifically realizes the following processes:
when a user submits a request for copying environment information to a cloud platform service end environment copying processing interface, the cloud platform service end acquires value information of all deployed applications of a source environment by calling an expansion API of kubernetes which is self-expanded catalog, the value information of the deployed applications of the source environment is processed according to a deployment rule to form environment application deployment value information to be copied, then a corresponding kubernetes expansion API is called to complete the creation of a new environment and the cloning deployment of applications, and the applications consistent with the source environment are also copied and deployed in copied new environment codes.
The further technical scheme is as follows: for the application accessed to the configuration center, the cloud platform server side automatically acquires the configuration information of the source environment application and generates and modifies the configuration of the new environment deployment application according to the preset rule of the environment configuration during environment replication.
The further technical scheme is as follows: for the application configuration accessed to the configuration center, reading the environment configuration information of the required configuration project by using the configuration of the configuration center, and then calling a configuration modification interface of the configuration center to generate a piece of target environment configuration information of the project; for configuration information of other applications, copying and deploying by adopting an original and unmovable strategy; the internal access mode is used for connection configuration by utilizing the coded internal service access name of kubernets and the characteristic of different coded access isolation, so that the decoupling of configuration items and environments is realized, and a plurality of environments can use the same configuration item information without modification.
The further technical scheme is as follows: after the deployment of the database of the new environment is finished, the system creates a background task of database data clone, finishes the work of exporting and importing the data of the source environment database into the new environment database, and realizes the consistency of the copied environment and the source environment data.
Adopt the produced beneficial effect of above-mentioned technical scheme to lie in: the method can automatically and quickly copy the deployment application, and a user does not need to operate the deployment work of the applications one by one. The automatic generation and multi-environment adaptation of the new environment configuration information can be realized, and a user does not need to check and set the connection configuration of each application again. The database application and the data are completely and synchronously copied, so that the work of creating a plurality of environment databases by users, maintaining database structures and synchronizing data is omitted. The convenient environment copying is realized, and a user can be relieved to delete the copied environment and release resources after the user needs to be on line. The effects of construction at any time and deletion after use are achieved. A user only needs to maintain one set of complete environment, and when business development and test requirements exist, a plurality of sets of environments are copied from the maintained complete environment to meet the requirements of parallel development and test work on the environment.
Drawings
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
FIG. 1 is a flow chart of a method according to an embodiment of the invention;
FIG. 2 is a diagram of an interface button according to a method of an embodiment of the invention;
FIG. 3 is a diagram of setup information for a method according to an embodiment of the invention;
FIG. 4 is a graph of real-time results information for a method according to an embodiment of the invention;
FIG. 5 is a diagram of the method and new environment information according to an embodiment of the present invention;
FIG. 6 is a diagram of source environment application information for a method according to an embodiment of the invention;
FIG. 7 is a diagram of new environment application information for a method according to an embodiment of the invention;
FIG. 8 is a database information diagram of a method according to an embodiment of the invention;
FIG. 9 is a diagram of a Uxie configuration center view configuration interface according to the method of the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways than those specifically described and will be readily apparent to those of ordinary skill in the art without departing from the spirit of the present invention, and therefore the present invention is not limited to the specific embodiments disclosed below.
Generally, the embodiment of the invention discloses a method for copying an application environment by one key based on a private cloud, which comprises the following steps:
a user logs in and accesses the cloud platform, inquires and screens out application environments needing to be copied on a cloud front-end environment management page, and clicks a copy button in a card tag of the application environments;
configuring target environment information, and waiting for the automatic execution of environment copying after the target environment code is determined;
in the environment copying process, the front end and the rear end communicate through a websocket, and a user obtains an environment copying execution result in real time;
after the replication execution is complete, the user may access the newly replicated environment, where both the deployed applications and data remain consistent with the source environment.
Taking the example of replicating a jirachi-sit environment from a jirachi-standing environment
As shown in fig. 2, a user logs in and accesses the wanhuila praying research and development cloud platform, queries and screens a jirachi-starting environment on a cloud-dashboard research and development cloud front-end environment management page, and clicks a copy button in a card tag of the jirachi-starting environment.
As shown in fig. 3, the target environment information is configured, and the target environment codes jirachi-sit, after determining, the environment copy automatic execution can be waited for to complete.
As shown in fig. 4, in the environment replication process, the front end and the back end communicate with each other through the websocket, and the user can obtain the environment replication execution result in real time.
After the replication execution is completed, the user can access the newly replicated jirachi-site environment, and the applications and data deployed inside are consistent with the jirachi-standing in the source environment, as shown in fig. 5, 6 and 7.
As shown in FIG. 1, the specific implementation process of the system for copying jirachi-site in FIG. 1 is as follows:
when a user submits a request for copying environment information to a Jirachi development cloud service end environment copying processing interface, the Jirachi development cloud service end obtains information of all deployed applications in a source environment space Jirachi-staging by calling catalog which is an extended API of kubernetes, and as shown in fig. 6, the Jirachi-staging environment is totally deployed with 6 applications. And after processing the application information of the source environment, forming environment application information to be copied, and then calling a corresponding kubernets extension API to complete the creation of a new environment and the cloning deployment of the application. The container editing technology and the helm package management technology of the kubernets cluster are applied to realize the functions. As shown in FIG. 7, 6 applications consistent with the jirachi-staging source environment are also replicated and deployed in the newly replicated jirachi-site environment.
As shown in fig. 9, for an application accessed to the axie configuration center, the configuration information of the source environment application is acquired, and the configuration of the new environment deployment application is generated and modified. For example, for a jirachi-server application, the configuration of a configuration center is used for reading the jirachi-stabilizing environment configuration information of the jirachi-server project, and then a configuration modification interface of the configuration center is called to generate a piece of jirachi-site environment configuration information of the jirachi-server project. For configuration information of other applications, the deployment is copied by adopting an original and unmovable strategy. The characteristics of coded internal service access and different coded access isolation of kubernets are utilized, the internal access mode is used for connection configuration, decoupling of configuration items and environments is achieved, and multiple environments can use the same configuration item information without modification. If http:// jirachi-server-http/url connection is also used, in a jirachi-starting environment the jirachi-server service connected to the jirachi-starting environment is used, and in a jirachi-site environment the jirachi-server service connected to the jirachi-site environment is used.
After the deployment of the database of the new environment is finished, the system can create a background task of database data clone, the work of exporting and importing the data of the source environment database into the new environment database is finished, and the copied environment is consistent with the data of the source environment. As shown in FIG. 7, the data of the mysql database of the newly replicated jirachi-site environment and the jrachi-staging source environment remain consistent.
Through the technology, a user can conveniently copy a set of new environment by clicking one key, the problem that time and labor are consumed for dynamically deploying a set of complete newly developed test environment is solved, only one set of source environment needs to be maintained, and cost overhead of multiple sets of environment maintenance is saved.

Claims (2)

1. A method for copying an application environment based on private cloud one-key is characterized by comprising the following steps:
a user logs in and accesses the cloud platform, an environment management page is arranged at the front end of the cloud platform, codes of a source environment needing to be copied are screened out according to code inquiry input by the user, and a copy button in a card tag of the source environment is clicked;
configuring target environment information, wherein the target environment information is determined and waits for the automatic execution of environment copying, and the target environment information comprises a target environment code, a name and a target environment space to which the target environment information belongs;
in the environment copying process, the front end and the rear end of the cloud platform communicate through a websocket, and a user obtains an environment copying execution result in real time;
after the copying execution is finished, the user can access the copied new environment, and the application and the data deployed by the copied new environment are consistent with those of the source environment;
the system for copying the new environment from the source environment specifically realizes the following processes:
when a user submits a request for copying environment information to a cloud platform service end environment copying processing interface, the cloud platform service end acquires value information of all deployed applications in a source environment by calling an expansion API of kubernetes which is self-expanded catalog, the value information of the source environment deployed applications is processed according to a deployment rule to form environment application deployment value information to be copied, then a corresponding kubernetes expansion API is called to complete the creation of a new environment and the cloning deployment of applications, and the applications consistent with the source environment are also copied and deployed in copied new environment codes;
for the application accessed to the configuration center, the cloud platform server side automatically acquires the configuration information of the source environment application and generates and modifies the configuration of the new environment deployment application according to the preset rule of the environment configuration during environment replication;
for the application configuration accessed to the configuration center, reading the environment configuration information of the required configuration project by using the configuration of the configuration center, and then calling a configuration modification interface of the configuration center to generate a piece of target environment configuration information of the project; for configuration information of other applications, copying and deploying by adopting an original and unmovable strategy; the internal access mode is used for connection configuration by utilizing the coded internal service access name of kubernets and the characteristic of different coded access isolation, so that the decoupling of configuration items and environments is realized, and a plurality of environments can use the same configuration item information without modification.
2. The private cloud-based one-key copy application environment of claim 1, wherein: after the deployment of the database of the new environment is finished, the system creates a background task of database data clone, finishes the work of exporting and importing the data of the source environment database into the new environment database, and realizes the consistency of the copied environment and the source environment data.
CN201910447981.7A 2019-05-27 2019-05-27 Method for copying application environment by one key based on private cloud Expired - Fee Related CN110177144B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910447981.7A CN110177144B (en) 2019-05-27 2019-05-27 Method for copying application environment by one key based on private cloud

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910447981.7A CN110177144B (en) 2019-05-27 2019-05-27 Method for copying application environment by one key based on private cloud

Publications (2)

Publication Number Publication Date
CN110177144A CN110177144A (en) 2019-08-27
CN110177144B true CN110177144B (en) 2021-10-08

Family

ID=67696128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910447981.7A Expired - Fee Related CN110177144B (en) 2019-05-27 2019-05-27 Method for copying application environment by one key based on private cloud

Country Status (1)

Country Link
CN (1) CN110177144B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111813683B (en) * 2020-07-14 2023-10-03 深圳前海移联科技有限公司 Universal automatic synchronization method for software testing environment
CN111897551B (en) * 2020-08-03 2021-07-02 汇链通供应链科技(上海)有限公司 A platform and method for rapidly cloning software environment in cloud environment
CN113448837B (en) * 2020-11-03 2024-03-19 北京新氧科技有限公司 Development and test environment deployment method, system, electronic equipment and medium
CN114281396A (en) * 2021-12-31 2022-04-05 中国邮政储蓄银行股份有限公司 Deployment method and device of application system resources and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075381A (en) * 2010-12-14 2011-05-25 云海创想信息技术(北京)有限公司 Automatic test platform server and system applied to cloud storage
CN104793946A (en) * 2015-04-27 2015-07-22 广州杰赛科技股份有限公司 Application deployment method and system based on cloud computing platform
CN105487892A (en) * 2015-11-26 2016-04-13 武大吉奥信息技术有限公司 Inter-cloud GIS service deploying system in Linux environment
CN107465548A (en) * 2017-08-17 2017-12-12 北京云纵信息技术有限公司 The dispositions method and device of code
CN107707658A (en) * 2017-10-11 2018-02-16 郑州云海信息技术有限公司 A kind of private clound building method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8627309B2 (en) * 2010-02-25 2014-01-07 Microsoft Corporation Automated deployment and servicing of distributed applications
US9529698B2 (en) * 2010-07-13 2016-12-27 Salesforce.Com, Inc. Method and system for multi-mode testing through operation interface and scenario abstraction in a multi-tenant database environment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075381A (en) * 2010-12-14 2011-05-25 云海创想信息技术(北京)有限公司 Automatic test platform server and system applied to cloud storage
CN104793946A (en) * 2015-04-27 2015-07-22 广州杰赛科技股份有限公司 Application deployment method and system based on cloud computing platform
CN105487892A (en) * 2015-11-26 2016-04-13 武大吉奥信息技术有限公司 Inter-cloud GIS service deploying system in Linux environment
CN107465548A (en) * 2017-08-17 2017-12-12 北京云纵信息技术有限公司 The dispositions method and device of code
CN107707658A (en) * 2017-10-11 2018-02-16 郑州云海信息技术有限公司 A kind of private clound building method and system

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
"Research on SLA-based Business Automatic Deployment of Private Cloud Platform";Jie Chen等;《2016 International Conference on Information System and Artificial Intelligence (ISAI)》;20170116;I104-8 *
"Towards the Automated Fast Deployment and Clone of Private Cloud Service: The Ezilla Toolkit";Hui-Shan Chen等;《2013 IEEE 5th International Conference on Cloud Computing Technology and Science》;20140306;I136-41 *
"云化业务平台中业务自动部署的设计与实现";汪源;《中国优秀硕士学位论文全文数据库》;20150815;I138-272 *
"基于云计算平台的服务自动化部署机制研究";张容齐;《中国优秀硕士学位论文全文数据库》;20150815;I137-9 *

Also Published As

Publication number Publication date
CN110177144A (en) 2019-08-27

Similar Documents

Publication Publication Date Title
US11575746B2 (en) System and method for real-time cloud data synchronization using a database binary log
JP7092736B2 (en) Dynamic routing using container orchestration services
CN110177144B (en) Method for copying application environment by one key based on private cloud
CN105074702B (en) The Database Systems of single tenant and multi-tenant environment are provided
WO2021000410A1 (en) Real-time data processing method based on micro-service and related device therefor
CN105939375A (en) PaaS hybrid cloud construction method based on model
CN108737168A (en) A kind of micro services framework applications method for auto constructing based on container
CN105989163A (en) Data real-time processing method and system
CN112685499A (en) Method, device and equipment for synchronizing process data of work service flow
Osman et al. Modelling replication in nosql datastores
CN115964176B (en) Cloud computing cluster scheduling method, electronic device and storage medium
US11016756B1 (en) Application repository protocol for disparate entity applications
CN106257424B (en) A method of the distributed data base system based on KVM cloud platform realizes automatic telescopic load balancing
WO2022121387A1 (en) Data storage method and apparatus, server, and medium
Tseng et al. A successful application of big data storage techniques implemented to criminal investigation for telecom
CN109376200A (en) A kind of Kernel-based methods call and the data processing system and method for shared data table
CN111966650B (en) Operation and maintenance big data sharing data table processing method and device and storage medium
CN109241571B (en) CRDT-based real-time collaborative editing method for CAD model supporting features
CN114064678A (en) Event data processing method, device and terminal device
Shouliang The Influences of Cloud Computing to the Traditional Software Project and Our Corresponding Strategies
CN112100186A (en) Data processing method and device based on distributed system and computer equipment
CN113760836B (en) Wide table calculation method and device
Popa et al. A practical abstraction of ERP to cloud integration complexity: The easy way
CN117493618B (en) Customer relationship management method and device based on human vein map and related medium
CN100433002C (en) Via platform database copying configurating method

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20211008

CF01 Termination of patent right due to non-payment of annual fee