CN112379924B - Container template-based domestic application cross-system migration method - Google Patents

Container template-based domestic application cross-system migration method Download PDF

Info

Publication number
CN112379924B
CN112379924B CN202011215484.3A CN202011215484A CN112379924B CN 112379924 B CN112379924 B CN 112379924B CN 202011215484 A CN202011215484 A CN 202011215484A CN 112379924 B CN112379924 B CN 112379924B
Authority
CN
China
Prior art keywords
container
application
environment
domestic
target system
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
CN202011215484.3A
Other languages
Chinese (zh)
Other versions
CN112379924A (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.)
State Grid Siji Location Service Co ltd
State Grid Information and Telecommunication Co Ltd
Fujian Yirong Information Technology Co Ltd
Great Power Science and Technology Co of State Grid Information and Telecommunication Co Ltd
Original Assignee
State Grid Information and Telecommunication Co Ltd
Fujian Yirong Information Technology Co Ltd
Great Power Science and Technology Co of State Grid Information and Telecommunication 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 State Grid Information and Telecommunication Co Ltd, Fujian Yirong Information Technology Co Ltd, Great Power Science and Technology Co of State Grid Information and Telecommunication Co Ltd filed Critical State Grid Information and Telecommunication Co Ltd
Priority to CN202011215484.3A priority Critical patent/CN112379924B/en
Publication of CN112379924A publication Critical patent/CN112379924A/en
Application granted granted Critical
Publication of CN112379924B publication Critical patent/CN112379924B/en
Active 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
    • G06F8/76Adapting program code to run in a different environment; Porting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a domestic application cross-system migration method based on a container template, which comprises the following steps: the method comprises the steps of firstly, containerizing and packaging a source system containing an operating system environment through an application container platform, packaging the application system at the source system for one time, then, transferring to a domestic environment, unpacking and repacking, can adapt to the domestic environment, avoid the influence of environmental differences on program operation, simultaneously, utilize a data log synchronization technology, can finish incremental data synchronization to a domestic database on a target system under the condition of not influencing system operation, utilize a CRIU tool to acquire container operation state parameters, can provide configuration parameters for secondary packaging of containers, and ensure the consistency of container states.

Description

Container template-based domestic application cross-system migration method
Technical Field
The invention belongs to the field of containers in a home-made computing service, and particularly relates to a home-made application cross-system migration method based on a container template.
Background
In the existing life, the localization migration of an application system is to migrate a system operating environment from a traditional X86 series CPU operating environment to a localization environment supporting a localization CPU operating system, and the traditional migration method is to disassemble the application system, take a B/S application system as an example, and firstly complete the migration of a main program of the application system; then migrating the dependent component; and then carrying out migration verification on the client, and carrying out adaptability verification on the browser used by each client.
Thus, conventional application migration has several drawbacks: 1. cold migration of the database results in services that must be interrupted; 2. the application running environment cannot be migrated along with the application, so that parameters need to be reconfigured after migration is completed; 3. the client side environment is inconsistent, so that the client side application needs to be adapted again, parameters of the browser and the control are adjusted, and special components related to the client side, such as format files of office application and streaming file controls, need to be adapted again.
The invention content is as follows:
the invention aims to solve the problems in the prior art by providing a container template-based domestic application cross-system migration method.
In order to solve the above problems, the present invention provides a technical solution:
a domestic application cross-system migration method based on a container template comprises the following steps:
s1, firstly, performing containerization packaging on a source system including an operating system environment through an application container platform;
s2, data are acquired through a data acquisition module, then synchronous database building is carried out on a database in a domestic environment through a data conversion module, and data synchronization is kept;
s3, acquiring the current state of the running process, acquiring running environment parameters through an environment acquisition module, and writing an acquisition result into an environment configuration library;
s4, migrating the container mirror image of the source system to the target system, then starting the application on the target system, configuring the application database as the database on the target system, configuring the container state as the container state of the source system, and repackaging the container into the mirror image;
s5, starting an application container on the target system;
s6, then container packaging is carried out on the client desktop application in the source system;
and S7, starting the client desktop container on the target system to finish the migration process of the client system.
Preferably, the operating system environment in step S1 includes that the application system and the environment in which the system is located depend on the system containerization packaging system at the same time.
Preferably, before data collection in step S2, a database is required to be used to start a data log function in advance.
Preferably, the CRIU tool is used to collect the operating status parameters of the container in step S3.
Preferably, the acquisition result is written into the environment configuration library in the step S3, and the environment synchronous monitoring program is used for monitoring, so as to keep the parameters of the source system and the parameters of the target system consistent.
Preferably, in step S4, the container image of the source system is migrated to the target system, and parameter configuration needs to be performed based on the configuration library.
Preferably, the client desktop application in step S6 includes a browser, a layout file, a streaming file editor, and an electronic signature application.
Preferably, in step S7, the client desktop image needs to be made while the client desktop container is started on the target system.
The invention has the beneficial effects that:
1. the application system packs the source system at one time, then unpacks and packs again after migrating to the domestic environment, so that the application system can adapt to the domestic environment and avoid the influence of environmental difference on program operation;
2. by using a data log synchronization technology, incremental data can be synchronized to a domestic database on a target system under the condition that the system operation is not influenced;
3. the CRIU tool is used for collecting the running state parameters of the container, configuration parameters can be provided for secondary packaging of the container, and the consistency of the container state is ensured;
4. the client migration mode based on the desktop container can ensure that the client control of the application system is completely transplanted, and the situation that the application cannot normally run due to inconsistent control configuration parameters is avoided.
Description of the drawings:
for ease of illustration, the invention is described in detail by the following detailed description and the accompanying drawings.
FIG. 1 is a flow chart of the overall operation of the system of the present invention;
fig. 2 is a block diagram of the system architecture of the present invention.
The specific implementation mode is as follows:
as shown in fig. 1-2, the following technical solutions are adopted in the present embodiment:
the embodiment is as follows:
a domestic application cross-system migration method based on a container template comprises the following steps:
s1, firstly, performing containerization packaging on a source system including an operating system environment through an application container platform;
s2, data are acquired through a data acquisition module, then synchronous database building is carried out on a database in a domestic environment through a data conversion module, and data synchronization is kept;
s3, acquiring the current state of the running process, acquiring running environment parameters through an environment acquisition module, and writing an acquisition result into an environment configuration library;
s4, migrating the container mirror image of the source system to the target system, then starting the application on the target system, configuring the application database as the database on the target system, configuring the container state as the container state of the source system, and repacking the containers into the mirror image;
s5, starting an application container on the target system;
s6, then container packaging is carried out on the client desktop application in the source system;
and S7, starting the client desktop container on the target system to finish the migration process of the client system.
In the step S1, the operating system environment includes an application system and an environment where the system is located, and depends on a system containerization packaging system, the application system performs packaging once in the source system, unpacks and repacks after migrating to the domestic environment, so that the operating system can adapt to the domestic environment, and avoids the influence of environmental difference on program operation.
Before data acquisition in step S2, a data log function needs to be started by using a database in advance, and incremental data can be synchronized to a domestic database on a target system by using a data log synchronization technology without affecting the system operation condition.
In step S3, the CRIU tool is used to acquire the operation state parameters of the container, and the CRIU tool is used to acquire the operation state parameters of the container, so as to provide configuration parameters for secondary packaging of the container, and ensure consistency of container states.
In the step S3, the acquisition result is written into the environment configuration library, and the environment synchronous monitoring program is used for monitoring, so that parameters of the source system and the target system are kept consistent, and program monitoring is facilitated.
In step S4, the container mirror image of the source system is migrated to the target system, and parameter configuration needs to be performed based on the configuration library, so that it is convenient to better ensure that the parameters are normal.
The client desktop application in the step S6 includes a browser, a layout file, a streaming file editor, and an electronic signature application, which facilitates overall file migration.
In step S7, a client desktop mirror image needs to be manufactured while the client desktop container is started on the target system, and a client migration manner based on the desktop container can ensure that the client control of the application system is completely migrated, thereby avoiding that the application cannot normally run due to inconsistent control configuration parameters.
Specifically, when actual operation is performed, firstly, an application container platform performs containerization packaging on a source system including an operating system environment, including the application system and the environment where the system is located, depending on the system containerization packaging; then, a data log function is started by using a database, data are acquired through a data acquisition module, then synchronous database building is carried out on the database in a domestic environment through a data conversion module, and data synchronization is kept; then, acquiring the current state of the running process by using a CRIU tool, acquiring running environment parameters through an environment acquisition module, writing an acquisition result into an environment configuration library, and monitoring through an environment synchronous monitoring program to keep the parameters of a source system and a target system consistent; then migrating the container mirror image of the source system to the target system, simultaneously carrying out parameter configuration based on the configuration library, then starting the application on the target system, configuring the application database as the database on the target system, configuring the container state as the container state of the source system, and carrying out container packaging again to form the mirror image; then starting an application container on the target system; then, container packaging is carried out on the client desktop application in the source system, wherein the client desktop application comprises a browser, a format file, a streaming file editor and an electronic signature application; and finally, starting a client desktop container on the target system, simultaneously making a client desktop mirror image, starting the client desktop container, and completing the migration process of the client system.
While there have been shown and described what are at present considered to be the fundamental principles of the invention and its essential features and advantages, it will be understood by those skilled in the art that the invention is not limited by the embodiments described above, which are merely illustrative of the principles of the invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the invention as defined by the appended claims and their equivalents.

Claims (5)

1. A domestic application cross-system migration method based on a container template is characterized by comprising the following steps:
s1, firstly, performing containerization packaging on a source system including an operating system environment through an application container platform;
s2, data are acquired through a data acquisition module, then synchronous database building is carried out on a database in a domestic environment through a data conversion module, and data synchronization is kept;
s3, acquiring the current state of the operated process, acquiring operating environment parameters through an environment acquisition module, and writing an acquisition result into an environment configuration library;
s4, migrating the container mirror image of the source system to the target system, then starting the application on the target system, configuring the application database as the database on the target system, configuring the container state as the container state of the source system, and repacking the containers into the mirror image;
s5, starting an application container on the target system;
s6, then container packaging is carried out on the client desktop application in the source system;
s7, starting a client desktop container on the target system to complete the migration process of the client system;
before data acquisition in the step S2, a data log function needs to be started by using a database in advance;
and in the step S3, a CRIU tool is used for collecting the running state parameters of the container.
2. The method for migrating domestic applications across systems based on container templates according to claim 1, wherein in step S3, the collected results are written into an environment configuration library and monitored by an environment synchronization monitoring program, so as to keep parameters of a source system consistent with parameters of a target system.
3. The method for migrating domestic applications across systems based on container templates of claim 1, wherein in step S4, parameter configuration needs to be performed based on a configuration library while migrating the container image of the source system to the target system.
4. The method for migrating domestic applications across systems based on container templates as claimed in claim 1, wherein said client desktop applications in step S6 include browser, layout file, streaming file editor, and electronic signature application.
5. The method for migrating domestic applications across systems based on container templates in claim 1, wherein in step S7, a client desktop image needs to be made while a client desktop container is started on a target system.
CN202011215484.3A 2020-11-04 2020-11-04 Container template-based domestic application cross-system migration method Active CN112379924B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011215484.3A CN112379924B (en) 2020-11-04 2020-11-04 Container template-based domestic application cross-system migration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011215484.3A CN112379924B (en) 2020-11-04 2020-11-04 Container template-based domestic application cross-system migration method

Publications (2)

Publication Number Publication Date
CN112379924A CN112379924A (en) 2021-02-19
CN112379924B true CN112379924B (en) 2023-03-07

Family

ID=74579812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011215484.3A Active CN112379924B (en) 2020-11-04 2020-11-04 Container template-based domestic application cross-system migration method

Country Status (1)

Country Link
CN (1) CN112379924B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104714812A (en) * 2013-12-13 2015-06-17 中国电信股份有限公司 Method and system for quickly deploying and loading Java applications in cloud environment
CN105490860A (en) * 2015-12-24 2016-04-13 北京奇虎科技有限公司 Method, device and system for deploying application program operation environment
US10198250B1 (en) * 2018-01-04 2019-02-05 Accenture Global Solutions Limited Partitioning based migration of systems to container and microservice based platforms
CN110119377A (en) * 2019-04-24 2019-08-13 华中科技大学 Online migratory system towards Docker container is realized and optimization method
CN111880894A (en) * 2020-06-29 2020-11-03 苏州浪潮智能科技有限公司 Method and system for generating front-end container mirror image

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104714812A (en) * 2013-12-13 2015-06-17 中国电信股份有限公司 Method and system for quickly deploying and loading Java applications in cloud environment
CN105490860A (en) * 2015-12-24 2016-04-13 北京奇虎科技有限公司 Method, device and system for deploying application program operation environment
US10198250B1 (en) * 2018-01-04 2019-02-05 Accenture Global Solutions Limited Partitioning based migration of systems to container and microservice based platforms
CN110119377A (en) * 2019-04-24 2019-08-13 华中科技大学 Online migratory system towards Docker container is realized and optimization method
CN111880894A (en) * 2020-06-29 2020-11-03 苏州浪潮智能科技有限公司 Method and system for generating front-end container mirror image

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Docker容器热迁移方案研究;鞠瑞;《中国优秀硕士学位论文 全文数据库 信息科技辑》;20200615;第20-41页 *

Also Published As

Publication number Publication date
CN112379924A (en) 2021-02-19

Similar Documents

Publication Publication Date Title
CN110795219B (en) Resource scheduling method and system suitable for multiple computing frameworks
CN101916224A (en) Test progress abnormality detection method and automatic test control device
CN112559475B (en) Data real-time capturing and transmitting method and system
CN110262374B (en) Development platform of steel rolling process control system
CN107783816A (en) The method and device that creation method and device, the big data cluster of virtual machine create
US8701079B2 (en) Procedure and development environment for generation of an executable overall control program
CN112328217A (en) Code deployment method, device, system, computer equipment and medium
CN106951593B (en) Method and device for generating configuration file of protection measurement and control device
CN112379924B (en) Container template-based domestic application cross-system migration method
JP2021140430A (en) Database migration method, database migration system, and database migration program
CN105069066A (en) Big data platform based distributed calculation frame and method for monitoring energy conservation and emission reduction
CN107368338A (en) A kind of software automatic deployment method and device
CN107633056A (en) Data managing method for power information acquisition terminal
CN113900629A (en) Automatic engine implementation system of computer process
CN108958840A (en) A kind of cluster configuration dynamic instrumentation merging loading method
CN111273901A (en) File format and deployment method of machine learning model capable of being rapidly deployed online
Sølvsberg et al. Analysis-oriented structure for runtime data in Industry 4.0 asset administration shells
CN110674214A (en) Big data synchronization method and device, computer equipment and storage medium
CN113535352B (en) Test method for realizing automatic batch running based on blood relationship generated by scheduling configuration
US20230101320A1 (en) Method for creating and executing a control program for controlling an automation system, and automation system
CN115640221A (en) Universal containerization testing method based on kubernets
CN102467099A (en) Address tag generation method of TDC (Technolegy Drive Control) controller
CN117763041A (en) Data table structure synchronization method and device applied to data aggregation
CN114817391A (en) Wind control service data analysis method and device
CN115455331A (en) Page table single data processing method and device, electronic 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
TR01 Transfer of patent right

Effective date of registration: 20231027

Address after: 350000 building 20, area G, 89 software Avenue, Gulou District, Fuzhou City, Fujian Province

Patentee after: FUJIAN YIRONG INFORMATION TECHNOLOGY Co.,Ltd.

Patentee after: STATE GRID INFORMATION & TELECOMMUNICATION GROUP Co.,Ltd.

Patentee after: STATE GRID INFO-TELECOM GREAT POWER SCIENCE AND TECHNOLOGY Co.,Ltd.

Patentee after: State Grid Siji Location Service Co.,Ltd.

Address before: 350000 building 20, area G, 89 software Avenue, Gulou District, Fuzhou City, Fujian Province

Patentee before: FUJIAN YIRONG INFORMATION TECHNOLOGY Co.,Ltd.

Patentee before: STATE GRID INFORMATION & TELECOMMUNICATION GROUP Co.,Ltd.

Patentee before: STATE GRID INFO-TELECOM GREAT POWER SCIENCE AND TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right