Migration adaptation method, device and equipment based on domestically produced trusted computing software and hardware platform

By predicting and determining the migration plan, adapting the software and hardware information of the application system, creating an operating environment and optimizing performance, the problem of low performance in traditional migration and adaptation methods is solved, and more efficient migration and adaptation is achieved.

CN112463417BActive Publication Date: 2025-03-25GUANGDONG TELECOM ENG
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011495380.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-17
Publication Date
2025-03-25
Estimated Expiration
2040-12-17

AI Technical Summary

Technical Problem

The traditional migration adaptation method only adapts to parts of the application system, resulting in compatibility issues and low overall performance.

Method used

By predicting the migrationability and migration workload of the application system under the target platform, we determine the overall migration plan, including the adaptation of software and hardware information, create an operating environment, and perform performance testing and optimization.

Benefits of technology

Improve the overall performance of the migrated application system and avoid compatibility issues caused by partial migration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112463417B_ABST
    Figure CN112463417B_ABST
Patent Text Reader

Abstract

The present application relates to a migration adaptation method, device and equipment based on a domestically produced information technology software and hardware platform. According to the technology stack corresponding to the application system to be migrated, the portability and migration workload of the application system under the target platform are predicted to obtain the application system migration prediction result; according to the application system migration prediction result, the application system migration plan is determined; the application system migration plan includes software information and hardware information that adapt the application system to the target platform; in the target platform, the software corresponding to the software information and the hardware corresponding to the external hardware information are installed to obtain the operating environment required by the application system; the application system is migrated to the operating environment created in the target platform, and the performance of the migrated application system is tested according to the performance indicators; according to the performance test results, the performance of the application system migrated to the target platform is optimized. The use of this method can improve the overall performance of the migrated application system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a migration adaptation method, device and equipment based on a domestically produced trusted computing software and hardware platform. Background Art

[0002] With the development of computer technology, different types of application systems have emerged one after another. Usually, an application system needs to be adapted through software and hardware before it can be migrated to a non-native platform. For example, a non-domestic application system needs to be adapted through software and hardware before it can be migrated to a domestic platform.

[0003] In traditional methods, only one or several parts of the application system are adapted during the migration process, for example, only the migration adaptation of the database is performed. However, only adapting one or several parts during the migration process will cause compatibility issues, which ultimately leads to low overall performance of the migrated application system. Summary of the invention

[0004] Based on this, it is necessary to provide a migration adaptation method, device, computer equipment and storage medium based on domestic information technology software and hardware platform that can improve the overall performance in response to the above-mentioned technical problems.

[0005] A migration adaptation method based on a domestically produced trusted computing software and hardware platform, the method comprising:

[0006] According to the technology stack corresponding to the application system to be migrated, predict the portability and migration workload of the application system under the target platform, and obtain the application system migration prediction result;

[0007] Determine an application system migration plan according to the application system migration prediction result; the application system migration plan includes software information and hardware information that enables the application system to adapt to the target platform;

[0008] In the target platform, the software corresponding to the software information and the hardware corresponding to the hardware information are installed externally to obtain the operating environment required by the application system;

[0009] Migrating the application system to the operating environment created in the target platform, and performing performance testing on the migrated application system according to performance indicators;

[0010] According to the performance test results, the performance of the application system migrated to the target platform is optimized.

[0011] In one embodiment, the step of predicting the migration feasibility and migration workload of the application system on the target platform according to the technology stack corresponding to the application system to be migrated, and obtaining the application system migration prediction result includes:

[0012] According to the application software stack, system software stack and computer hardware system corresponding to the application system to be migrated, the portability and migration workload of the application system under the target platform are predicted to obtain the application system migration prediction result. In one embodiment, the software corresponding to the information of the software installed in the target platform and the hardware corresponding to the external hardware information include:

[0013] In the target platform, the operating system, compiler, software development kit of the interpreted language, dependent libraries and related auxiliary tool software corresponding to the information of the software are installed;

[0014] In the target platform, hardware corresponding to the hardware information is externally connected.

[0015] In one embodiment, migrating the application system to the operating environment created in the target platform includes:

[0016] The components, application framework, various application software packages, programming languages, system architecture, database, middleware, CPU and various external devices corresponding to the application system are migrated to the operating environment created by the target platform through corresponding migration tools.

[0017] In one embodiment, the performing performance testing on the migrated application system according to the performance indicators includes:

[0018] According to the preliminary performance indicators set for the application system, a performance simulation test is performed on the computer system in the migrated application system in a simulated operating environment;

[0019] Determine target performance indicators based on the performance simulation test results and the preliminary performance indicators;

[0020] According to the target performance indicator, the application system is subjected to performance testing in the migrated operating environment.

[0021] In one embodiment, the performance optimization of the application system migrated to the target platform according to the performance test result includes:

[0022] Create benchmark data and optimization goals based on performance test results;

[0023] Performing stress testing on the application system;

[0024] Compare the obtained stress test results with the established benchmark data and optimization goals to analyze the performance bottlenecks of the application system;

[0025] An optimization solution for the performance bottleneck is obtained, and performance optimization is performed according to the optimization solution.

[0026] In one embodiment, the performing performance optimization according to the optimization scheme includes:

[0027] According to the optimization scheme, the performance of at least one of the CPU and memory, network, disk interface, application program, virtual machine, database and middleware of the application system is optimized.

[0028] A migration adaptation device based on a domestically-produced information and innovation software and hardware platform, the device comprising:

[0029] A prediction module is used to predict the migration feasibility and migration workload of the application system under the target platform according to the technology stack corresponding to the application system to be migrated, and obtain the application system migration prediction result;

[0030] A determination module, used to determine an application system migration plan according to the application system migration prediction result; the application system migration plan includes software information and hardware information that enables the application system to adapt to the target platform;

[0031] An installation module, used to install the software corresponding to the software information and the hardware corresponding to the external hardware information in the target platform, so as to obtain the operating environment required by the application system;

[0032] A testing module, used to migrate the application system to the operating environment created in the target platform, and perform performance testing on the migrated application system according to performance indicators;

[0033] The optimization module is used to optimize the performance of the application system migrated to the target platform according to the performance test results.

[0034] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0035] According to the technology stack corresponding to the application system to be migrated, predict the portability and migration workload of the application system under the target platform, and obtain the application system migration prediction result;

[0036] Determine an application system migration plan according to the application system migration prediction result; the application system migration plan includes software information and hardware information that enables the application system to adapt to the target platform;

[0037] In the target platform, the software corresponding to the software information and the hardware corresponding to the hardware information are installed externally to obtain the operating environment required by the application system;

[0038] Migrating the application system to the operating environment created in the target platform, and performing performance testing on the migrated application system according to performance indicators;

[0039] According to the performance test results, the performance of the application system migrated to the target platform is optimized.

[0040] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0041] According to the technology stack corresponding to the application system to be migrated, predict the portability and migration workload of the application system under the target platform, and obtain the application system migration prediction result;

[0042] Determine an application system migration plan according to the application system migration prediction result; the application system migration plan includes software information and hardware information that enables the application system to adapt to the target platform;

[0043] In the target platform, the software corresponding to the software information and the hardware corresponding to the hardware information are installed externally to obtain the operating environment required by the application system;

[0044] Migrating the application system to the operating environment created in the target platform, and performing performance testing on the migrated application system according to performance indicators;

[0045] According to the performance test results, the performance of the application system migrated to the target platform is optimized.

[0046] The above-mentioned migration adaptation method, device, computer equipment and storage medium based on the domestically-made information innovation software and hardware platform first predicts the portability and migration workload of the application system under the target platform according to the technology stack corresponding to the application system to be migrated, and then determines a reasonable migration plan based on the application system migration prediction results, that is, the software and hardware required to adapt the application system to the target platform for the subsequent migration of the application system to the target platform. Install the determined software and hardware that adapt the application system to the target platform on the target platform, that is, obtain the operating environment required by the application system, and prepare the operating environment to migrate the application system to the target platform. Further, the application system migrated to the target platform is performance tested according to the performance indicators to optimize the areas that can be optimized for the target platform in the performance test results. In summary of the above steps, the migration plan that meets the application system can be determined by predicting the technology stack corresponding to the application system, and then the application system is migrated as a whole according to the migration plan, avoiding compatibility problems caused by partial migration. After the migration is completed, performance testing is performed according to the performance indicators, and performance optimization is performed for the low-performance parts of the application system, so that the overall performance of the migrated application system is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A flowchart of a migration adaptation method based on a domestically-produced trusted computing software and hardware platform in one embodiment;

[0048] Figure 2 A schematic diagram of a flow chart of a performance optimization method in an embodiment;

[0049] Figure 3 A schematic diagram of specific measures in a performance optimization process in an embodiment;

[0050] Figure 4 A flowchart of the steps of a migration adaptation method based on a domestically produced trusted computing software and hardware platform in an embodiment;

[0051] Figure 5 It is a structural block diagram of a migration adapter device based on a domestically produced trusted computing software and hardware platform in one embodiment;

[0052] Figure 6 It is a structural block diagram of a migration adaptation device based on a domestically produced trusted computing software and hardware platform in another embodiment;

[0053] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0055] In one embodiment, Figure 1 As shown, a migration adaptation method based on a domestically-made trusted computing software and hardware platform is provided. This embodiment uses the method applied to a target platform as an example. It is understandable that the target platform may be a server or a terminal. In this embodiment, the method includes the following steps:

[0056] Step 102 , predicting the portability and migration workload of the application system on the target platform according to the technology stack corresponding to the application system to be migrated, and obtaining the application system migration prediction result.

[0057] Among them, the application system includes computer hardware system, system software and application software group. The basic computer hardware system includes arithmetic units and controllers, memory, peripheral interfaces and peripheral devices. System software includes operating systems, compilers, database management systems and multiple high-level languages. Application software includes general support software and multiple application software packages. Technology stack refers to the multiple technologies used in developing application systems. The target platform is the platform to which the application system is to be migrated. Portability refers to the characteristics of the application system that can be migrated to the target platform. The migration workload is the workload required to migrate the application system to the target platform. The application system migration prediction results include the characteristics of the software and hardware of the technology stack corresponding to the application system.

[0058] Specifically, the target platform identifies the software and hardware types of the technology stack corresponding to the application system to be migrated, and obtains the information of the software and hardware used by the application system to be migrated. Based on the information of the software and hardware used by the application system, the target platform predicts the portability and migration workload of migrating the application system to the target platform, and obtains the application system migration prediction result.

[0059] It can be understood that the target platform can make predictions from multiple aspects based on the technology stack corresponding to the application system to predict the portability and migration workload of the application system under the target platform. For example, the target platform can predict and identify the programming language used in the technology stack corresponding to the application system to be migrated, and obtain the prediction result about the programming language in the application system migration prediction result. For example, if it is identified that the language used by the technology stack corresponding to the application system is a compiled language, the prediction result that the compiled language should be compiled is obtained. The target platform can also predict and identify the application software stack corresponding to the application system, and obtain the prediction result about the application software stack in the application system migration prediction result.

[0060] Step 104, determining an application system migration plan according to the application system migration prediction result; the application system migration plan includes software information and hardware information that enables the application system to adapt to the target platform.

[0061] The application system migration plan is the plan determined before the application system migration. Software information is the information about the software that needs to be installed on the target platform and is used to adapt the application system to the target platform. Hardware information is the information about the external hardware that needs to be installed on the target platform and is used to adapt the application system to the target platform.

[0062] Specifically, the target platform provides the user with software and hardware information that can adapt the application system to the target platform as a solution based on the application system migration prediction results. The user can evaluate the application system's portability and migration workload based on the solution provided by the target platform to control the feasibility of the solution.

[0063] For example, if the target platform detects that the dependent components in the application system migration prediction result do not include the ARM (Advanced RISC Machine, a RISC microprocessor designed by Acorn Ltd. of the United Kingdom) version, then the solution provided corresponding to the prediction result includes the need to download the corresponding ARM version information.

[0064] Step 106, in the target platform, the software corresponding to the software information and the hardware corresponding to the external hardware information are installed to obtain the operating environment required by the application system.

[0065] The operating environment is the environment in which the target platform with installed software and external hardware runs. The installed software and external hardware can make the application system to be migrated adapt to the target platform.

[0066] Specifically, the target platform will install the software corresponding to the software information in the application system migration solution, and connect the hardware corresponding to the hardware information in the application system migration solution to obtain the operating environment, and wait for the application system to be migrated.

[0067] Step 108, migrate the application system to the operating environment created in the target platform, and perform performance testing on the migrated application system according to performance indicators.

[0068] Among them, the performance index is the performance check item of the application system after migration to the target platform. The performance test is to test the performance of the application system after migration to the target platform.

[0069] Specifically, the user triggers the application system migration operation on the target platform. The target platform, which runs the operating environment adapted by the application system, responds to the application system migration operation triggered by the user and implements the application system migration. The target platform performs performance testing on the application system migrated to itself according to performance indicators.

[0070] Step 110: Optimize the performance of the application system migrated to the target platform according to the performance test results.

[0071] The performance test result is the result of the performance test of the application system after migration to the target platform. The performance optimization is to optimize the performance of the application system after migration to the target platform.

[0072] Specifically, the target platform provides the user with the performance test results obtained by the performance test of the application system migrated to itself. The user formulates an optimization plan based on the performance test results obtained by the target platform. The target platform optimizes the performance of the application system migrated to the target platform according to the optimization plan formulated by the user.

[0073] The above migration adaptation method based on the domestically-made trusted software and hardware platform first predicts the portability and migration workload of the application system under the target platform according to the technology stack corresponding to the application system to be migrated, and then determines a reasonable migration plan based on the obtained application system migration prediction results, that is, the software and hardware required to adapt the application system to the target platform for the subsequent migration of the application system to the target platform. Install the determined software and hardware that adapt the application system to the target platform on the target platform, that is, obtain the operating environment required by the application system, and prepare the operating environment to migrate the application system to the target platform. Further, the application system migrated to the target platform is performance tested according to the performance indicators to optimize the areas that can be optimized for the target platform in the performance test results. Combining the above steps, the migration plan that meets the application system can be determined by predicting the technology stack corresponding to the application system, and then the application system is migrated as a whole according to the migration plan, avoiding compatibility problems caused by partial migration. After the migration is completed, performance testing is performed according to the performance indicators, and performance optimization is performed for the low-performance parts of the application system, so that the overall performance of the migrated application system is improved.

[0074] In one embodiment, based on the technology stack corresponding to the application system to be migrated, the portability and migration workload of the application system on the target platform are predicted to obtain an application system migration prediction result, including: based on the application software stack, system software stack and computer hardware system corresponding to the application system to be migrated, the portability and migration workload of the application system on the target platform are predicted to obtain an application system migration prediction result.

[0075] Among them, the application software stack includes general support software and various application software packages; general support software includes components and application frameworks; the system software stack includes programming languages, system architecture, dependency libraries, operating systems, databases and middleware; the computer hardware system includes CPU and various external devices.

[0076] Specifically, the target platform can predict the portability and migration workload of the application system on the target platform based on the technologies involved in the application system to be migrated, including components, application frameworks, various application software packages, programming languages, system architectures, dependent libraries, operating systems, databases, middleware, CPUs and various external devices, and obtain the application system migration prediction results.

[0077] In one embodiment, the target platform identifies the programming language category of the application system to be migrated according to the two language categories of interpreted language and compiled language, and identifies the dependent library corresponding to the compiled language. The target platform also identifies whether the components and frameworks used by the application system to be migrated are open source or closed source. The target platform also identifies the database type corresponding to the data volume of the application system to be migrated. Among them, the dependent library corresponding to the compiled language is a dynamic link library that runs after the target platform recompiles the compiled language.

[0078] In one embodiment, the interpreted language may be "Java" or "Python", and the compiled language may be "C\C++" or "Go".

[0079] In one embodiment, the target platform can compile the compiled language "C\C++" and run the dynamic link library.

[0080] In one embodiment, the target platform performs a migration feasibility analysis based on the type of programming language used by the application system. The migration feasibility analysis may indicate that the migration of an interpreted language does not require modification of the source code, while a compiled language requires recompilation, and after the application system is migrated to the target platform, the corresponding compiled dependency library must be run before the migration can be performed. The migration workload predicted by the target platform may indicate that the migration workload of a compiled language is greater than that of an interpreted language, corresponding to the migration prediction result of the application system.

[0081] In one embodiment, the target platform performs a migration feasibility analysis based on whether the components and frameworks used by the application system are open source or closed source. The application system migration prediction result corresponding to the migration feasibility analysis may be that the closed source components and frameworks need to be replaced with open source components and frameworks before migration. The migration workload predicted by the target platform, corresponding to the application system migration prediction result, may be that the migration workload of closed source components and frameworks is greater than that of open source components and frameworks.

[0082] In one embodiment, the target platform performs a migration feasibility analysis based on the type of database used by the application system. The migration feasibility analysis may include a migration prediction result for the application system, which may include a data migration between different types of databases, an analysis of the amount of data to be migrated, and data verification after the application system data is migrated. The migration workload predicted by the target platform may correspond to a migration prediction result for the application system, which may include different migration workloads for different databases and different amounts of data in the database.

[0083] In one embodiment, the target platform predicts that the system architecture after migration should be consistent with the system architecture used by the application system based on the system architecture used by the application system. The migration workload predicted by the target platform may have different migration workloads corresponding to the application system migration prediction results with different complexity of the architecture.

[0084] In one embodiment, the system architecture can be a CS system architecture (Client-Server) or a BS system architecture (Web-Server, browser and server architecture mode), which can be divided into a three-layer architecture or a four-layer architecture according to the complexity of the system architecture.

[0085] In one embodiment, the target platform can use a migration analysis tool to predict the migration feasibility and migration workload of the application system on the target platform.

[0086] In this embodiment, before the application system is migrated, predictions are made for all technologies involved in the application system, which can provide a reference for determining the rationality of the migration plan at a later stage.

[0087] In one embodiment, in the target platform, the software corresponding to the information of the installed software and the hardware corresponding to the external hardware information include: in the target platform, the operating system, compiler, software development kit of the interpreted language, dependent libraries and related auxiliary tool software corresponding to the information of the installed software; in the target platform, the hardware corresponding to the external hardware information.

[0088] Among them, the relevant auxiliary tool software is the software required to make the application system compatible when migrated to the target platform.

[0089] Specifically, the target platform can install the software involved in the software information in the application system migration solution, including the operating system, compiler, software development kit for the interpreted language, dependent libraries and related auxiliary tool software. The target platform can also connect the external hardware involved in the hardware information in the application system migration solution.

[0090] In one embodiment, if the dependent component has an ARM version, the target platform can directly install the corresponding ARM version. If the dependent component does not have an ARM version but has a corresponding open source software package, the target platform can directly download the open source software package. If the dependent component does not have an ARM version and does not have an open source software package, the target platform can directly download the source code and recompile. If the dependent component does not have an ARM version and the programming language is closed source, but there is an ARM component with the same function, then the ARM component with the same function is installed. If the dependent component does not have an ARM version and the programming language is closed source, and there is no ARM component with the same function, the target platform can analyze the impact of the upper-level application corresponding to the application that needs to use the ARM version in the system architecture of the application system, so as to tailor the functional modules of the corresponding upper-level application, so that when there is no ARM version available, there is no impact on the compatibility of the application system.

[0091] In one embodiment, the ARM version can be either 64-bit or 32-bit.

[0092] In one embodiment, a software development kit or PVM (Process Virtual Machine) that replaces the ARM version of the interpreted language needs to be installed for the interpreted language target platform.

[0093] In one embodiment, the software development kit of the interpreted language installed on the target platform is a software development kit of the interpreted language supporting the ARM architecture.

[0094] In one embodiment, the compiler installed on the target platform is a compiler that supports the ARM architecture, such as a compiler of version "GCC 9.1" or above.

[0095] In one embodiment, the driver installed on the target platform may come from a hardware manufacturer or an OS (Operating System) manufacturer.

[0096] In this embodiment, the corresponding software is installed and the corresponding hardware is externally connected according to the application system migration plan, so as to provide operating environment support for the subsequent migration and replacement implementation stage.

[0097] In one embodiment, migrating an application system to an operating environment created in a target platform includes: migrating components, application frameworks, various application software packages, programming languages, system architectures, databases, middleware, CPUs, and various external devices corresponding to the application system to the operating environment created by the target platform through corresponding migration tools.

[0098] Specifically, the target platform corresponding to the software information and the hardware corresponding to the external hardware information is run to create an operating environment. The target platform uses the corresponding migration tool to migrate the components, application framework, various application software packages, programming languages, system architecture, database, middleware, CPU and various external devices corresponding to the application system to this operating environment.

[0099] In one embodiment, the target platform installs adaptation software for the CPU and operating system of the application system, installs open source components to replace closed source components of the application system, recompiles dependent libraries that cannot be directly migrated to obtain adapted dependent libraries, and adapts and installs middleware and databases, as well as adapts and connects external devices, such as terminal plug-ins.

[0100] In this embodiment, the software is installed and the hardware is externally connected for the application software stack, programming language, system architecture, dependent library, components and application framework corresponding to the application system, and the operating environment created by the target platform operation can migrate the components, application framework, various application software packages, programming language, system architecture, database, middleware, CPU and various external devices corresponding to the application system to this adapted operating environment.

[0101] In one embodiment, a performance test is performed on the migrated application system according to performance indicators, including: performing a performance simulation test on the computer system in the migrated application system in a simulated operating environment according to preliminary performance indicators set for the application system; determining target performance indicators based on the performance simulation test results and the preliminary performance indicators; and performing a performance test on the application system in the migrated operating environment according to the target performance indicators.

[0102] Among them, preliminary performance indicators are performance indicators that have not been determined. Performance simulation tests are similar performance tests done in similar operating environments. The simulated operating environment is an environment similar to the operating environment created by the target platform. The target performance indicators are performance indicators used for performance testing in the actual created operating environment.

[0103] In one embodiment, the simulation environment may be a software of the target platform specifically used for simulation testing.

[0104] Specifically, the target platform first uses the available performance indicators as the performance indicators for the simulation test. The target platform performs a performance simulation test on the computer system in the migrated application system in a simulated operating environment, and improves the preliminary performance indicators based on the performance simulation test results and preliminary performance indicators to determine the target performance indicators. The target platform performs performance tests on the application system in the created real operating environment in accordance with the target performance indicators. If one of the target performance indicators fails the test, the user may need to re-debug the target platform until all target performance indicators pass the test.

[0105] In one embodiment, the target platform can perform performance testing on the entire application system, focusing on performance testing of functions, interfaces, and compatibility.

[0106] In one embodiment, the target platform can perform performance testing on parts of the application system, and can use daily work business processes to cover the core functional parts to record scripts, and then perform performance testing on the recorded scripts.

[0107] In one embodiment, the target platform may perform a performance test on a portion of the application system, and then perform a multi-system integration test on each portion of the application system, with a focus on performance testing of data interactions of each portion of the application system.

[0108] In one embodiment, the target platform may perform actual operation tests on the migrated application system by simulating users in actual working conditions.

[0109] In one embodiment, the target platform may also test the compatibility between components.

[0110] In this embodiment, a preliminary performance test is first performed on the migrated computer system in a simulated environment to ensure the integrity of the performance indicators of the performance test after the application system is migrated. If a target performance indicator fails the performance test during the performance test, it is necessary to determine the reason for the failure, debug the operating environment of the target platform, retest and pass it, and then perform the performance test of the next target performance indicator to improve the efficiency of finding the reason for the failure of the performance test.

[0111] In one embodiment, performance optimization is performed on the application system migrated to the target platform based on the performance test results, including: creating benchmark data and optimization targets based on the performance test results; stress testing the application system; comparing the obtained stress test results with the established benchmark data and optimization targets to analyze the performance bottlenecks of the application system; obtaining optimization plans for the performance bottlenecks, and performing performance optimization based on the optimization plans.

[0112] Among them, the benchmark data includes hardware configuration data, networking data, test model data, and application system operation data. The optimization goal is a goal set based on the performance level that the application system architecture can expect to achieve. Stress testing is a test of the pressure-bearing capacity of the migrated application system, including IO (Input / Output), concurrency, and load stress testing. Performance bottlenecks are areas that affect performance improvement and need to be overcome.

[0113] Specifically, before optimizing the performance of the migrated application system, the user must first establish a benchmark data and optimization target on the target platform based on the performance test results. After the target platform performs a stress test on the migrated application system, the obtained stress test results are compared with the established benchmark data and optimization targets to analyze the performance bottlenecks of the application system. After the target platform executes the optimization plan for the performance bottleneck, it performs a stress test again, monitors and records the stress test results. If the stress test results still do not reach the optimization target, the modified optimization plan is executed and then a stress test is performed again until the optimization target is reached.

[0114] In one embodiment, Figure 2 As shown in the figure, before optimizing the performance of the migrated application system, the user determines the baseline data and optimization target based on the performance test results. The target platform performs stress testing on the migrated application system and monitors performance bottlenecks. The user sorts out the test links and analyzes the test results to identify performance bottlenecks. The user formulates an optimization plan for the performance bottleneck. The target platform implements the optimization plan and optimizes the performance of the migrated application system. If negative optimization occurs, the target platform rolls back the optimization plan, and after each execution of the optimization plan, the target platform performs stress testing and records the optimization results until the optimization target is achieved.

[0115] In one embodiment, the target platform may perform stress testing on system applications through peak workload or professional stress testing tools.

[0116] In one embodiment, the target platform may monitor and record stress test results through a performance monitoring tool.

[0117] In one embodiment, the performance bottleneck of the application system can be comprehensively analyzed from aspects such as CPU over-busyness, IO waiting, network waiting, networking between systems, and network bandwidth.

[0118] In one embodiment, after determining the performance bottleneck of the application system, the target platform executes the optimization plan, and when encountering negative optimization, the optimization plan is rolled back.

[0119] In this embodiment, a stress test is performed on the migrated application system, and a performance bottleneck is determined according to the stress test result, so as to optimize the performance of the application system with respect to the performance bottleneck.

[0120] In one embodiment, the performance optimization is performed according to the optimization scheme, including: according to the optimization scheme, the performance of at least one of the CPU and memory, network, disk interface, application program, virtual machine, database and middleware of the application system is optimized.

[0121] Specifically, the target platform executes the optimization plan to optimize the performance bottleneck of the application system. If the performance bottleneck is related to one of the CPU and memory, network, disk interface, application, virtual machine, database and middleware of the application system, the target platform executes the relevant optimization plan to optimize one of them. If the performance bottleneck is related to multiple of the CPU and memory, network, disk interface, application, virtual machine, database and middleware of the application system, the target platform executes a comprehensive optimization plan.

[0122] In one embodiment, Figure 3 As shown, the target platform can optimize the performance of the CPU and memory of the application system by modifying the CPU prefetch switch. For example, when the data is relatively concentrated, the target platform automatically turns on the CPU prefetch switch and reads the data to be accessed into the CPU cache memory. Otherwise, the CPU prefetch switch is turned off.

[0123] In one embodiment, Figure 3 As shown, the target platform can turn on the CPU prefetch switch when the application system uses open source free software and function libraries, and turn off the CPU prefetch switch when using test tools, proxy servers and databases. Among them, the open source free software and function libraries can be "X265 software". The test tool can be "STREAM test tool". The proxy server can be "Nginx".

[0124] In one embodiment, Figure 3 As shown, when the CPU does not need a timer, the target platform can control the non-periodic clock of the kernel to reduce clock interrupts when no interrupts are required. The kernel can be "Linux 2.6.17" version or later. The non-periodic clock can be the "nohz mechanism".

[0125] In one embodiment, Figure 3 As shown, the target platform can adjust the memory page size to increase the access rate of the cache storing the page table inside the CPU. The page table cache can be TLB (Translation lookaside buffer).

[0126] In one embodiment, Figure 3 As shown, the optimization scheme executed by the target platform may be to adjust the number of concurrent threads.

[0127] In one embodiment, Figure 3 As shown, there are many optimization schemes that the target platform can perform for network performance. For example, it can be to optimize the size configuration of the PCIE (peripheral component interconnect express, a high-speed serial computer expansion bus standard) payload and adjust the maximum value of each data transmission of the PCIE bus; it can be to adjust the number of network card queues by setting the number of network card queues; it can be to bind each network card interrupt to the CPU separately to reduce NUMA (Non Uniform Memory Access); it can be to adjust appropriate parameters to reduce the number of interrupt processing; it can also be to enable TCP (Transmission Control Protocol, Transmission Control Protocol) segmentation offloading and hand over TCP segmentation processing to the network card for processing.

[0128] In one embodiment, Figure 3 As shown in the figure, there are many optimization schemes that the target platform can implement for disk input or output performance. It can be to adjust the dirty data cache expiration time; it can be to adjust the maximum proportion of dirty pages occupying the total memory; it can be based on the principle of locality, when reading disk data, additionally read a set amount of data to cache in memory; it can be based on the characteristics of business processing data, select a suitable input / output scheduler.

[0129] In one embodiment, Figure 3 As shown in the figure, there are many optimization schemes for the target platform to perform application performance. It can be to optimize the compilation options; it can be to select the appropriate file buffer mechanism; it can be to cache the execution results; it can be to use jemalloc (memory allocator) to optimize memory allocation; it can be cacheline optimization; it can be the floating point SIMD (Single Instruction Multiple Data) engine instruction acceleration that comes with the ARM core; it can be the use of compiler capabilities to automatically vectorize and accelerate.

[0130] In one embodiment, the target platform may have multiple optimization schemes for virtual machine performance, such as using GC (Garbage Collection) for analysis, virtual machine thread optimization, or adjusting thread stack size. The virtual machine may be JVM (Java Virtual Machine).

[0131] In one embodiment, Figure 3 As shown, there are multiple optimization schemes for database performance execution on the target platform, such as parameter configuration optimization and SQL (Structured Query Language) optimization.

[0132] In one embodiment, the target platform may have multiple optimization schemes for middleware performance execution, such as "JAVA" startup parameter adjustment or GC performance optimization.

[0133] In this embodiment, by optimizing the performance of the application system after migration to the target platform, the overall performance of the application system migrated to the target platform can be made higher.

[0134] In one embodiment, Figure 4 As shown, a migration adaptation method based on a domestically-made trusted computing software and hardware platform is provided. In this embodiment, the method includes the following steps:

[0135] Step 1: Predict the technology stack corresponding to the application system.

[0136] Specifically, the target platform predicts the portability and migration workload of the application system on the target platform based on the components, application framework, various application software packages, programming languages, system architecture, dependent libraries, operating system, database, middleware, CPU and various external devices corresponding to the application system to be migrated, and obtains the application system migration prediction result.

[0137] Step 2: Determine the application system migration plan based on the prediction results.

[0138] Specifically, the application system migration solution includes rewriting assembly code, reading compiled language, and installing relevant execution information of dependent libraries corresponding to the compiled language.

[0139] Step 3: Migrate the application system according to the application system migration plan.

[0140] Specifically, the target platform installs the operating system, compiler, software development kit for the interpreted language, dependent libraries, and related auxiliary tool software corresponding to the application system migration solution, and connects the hardware corresponding to the application system migration solution to obtain the operating environment required by the application system. The target platform migrates the application system to the adapted operating environment.

[0141] Step 4: Perform performance testing on the migrated application system.

[0142] Specifically, the user defines the performance indicators of the application system and compares the key performance test results before and after the migration. The target platform performs full coverage testing, system integration joint debugging testing, and user testing based on the performance indicators defined by the user.

[0143] Step 5: Optimize the performance of the migrated application system.

[0144] Specifically, the target platform optimizes the CPU and memory, network, disk input / output, application, virtual machine, database, and middleware performance for performance bottlenecks until the stress test results reach the optimization goals.

[0145] It should be understood that, although the various steps in the flowcharts of the above-mentioned various embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts of the above-mentioned various embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0146] In one embodiment, Figure 5 As shown, a migration adaptation device 500 based on a domestically-made trusted computing software and hardware platform is provided, comprising: a prediction module 502, a determination module 504, an installation module 506, a test module 508 and an optimization module 510, wherein:

[0147] The prediction module 502 is used to predict the portability and migration workload of the application system on the target platform according to the technology stack corresponding to the application system to be migrated, and obtain the application system migration prediction result.

[0148] The determination module 504 is used to determine the application system migration plan according to the application system migration prediction result; the application system migration plan includes software information and hardware information that enables the application system to adapt to the target platform.

[0149] The installation module 506 is used to install the software corresponding to the software information and the hardware corresponding to the external hardware information in the target platform to obtain the operating environment required by the application system.

[0150] The testing module 508 is used to migrate the application system to the operating environment created in the target platform and perform performance testing on the migrated application system according to performance indicators.

[0151] The optimization module 510 is used to optimize the performance of the application system migrated to the target platform according to the performance test results.

[0152] In one embodiment, the prediction module 502 is also used to predict the portability and migration workload of the application system on the target platform based on the application software stack, system software stack and computer hardware system corresponding to the application system to be migrated, and obtain the application system migration prediction result.

[0153] In one embodiment, the installation module 506 is also used to install the operating system, compiler, software development kit of the interpreted language, dependent libraries and related auxiliary tool software corresponding to the software information in the target platform; and the hardware corresponding to the external hardware information in the target platform.

[0154] In one embodiment, Figure 6 As shown, the device also includes:

[0155] The migration module 507 is used to migrate the components, application framework, various application software packages, programming languages, system architecture, database, middleware, CPU and various external devices corresponding to the application system to the operating environment created by the target platform through corresponding migration tools.

[0156] In one embodiment, the test module 508 is also used to perform a performance simulation test on the computer system in the migrated application system in a simulated operating environment according to the preliminary performance indicators set for the application system; determine the target performance indicators based on the performance simulation test results and the preliminary performance indicators; and perform a performance test on the application system in the migrated operating environment according to the target performance indicators.

[0157] In one embodiment, the optimization module 510 is also used to create benchmark data and optimization targets based on performance test results; perform stress testing on the application system; compare the obtained stress test results with the established benchmark data and optimization targets to analyze the performance bottlenecks of the application system; obtain optimization plans for the performance bottlenecks, and perform performance optimization based on the optimization plans.

[0158] In one embodiment, the optimization module 510 is further used to optimize the performance of at least one of the CPU and memory, network, disk interface, application program, virtual machine, database and middleware of the application system according to the optimization scheme.

[0159] For the specific limitations of the migration adaptation device based on the domestic trusted computing software and hardware platform, please refer to the limitations of the migration adaptation method based on the domestic trusted computing software and hardware platform in the above text, which will not be repeated here. Each module in the above-mentioned application system migration device can be implemented in whole or in part through software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0160] In one embodiment, a computer device is provided. The computer device may be a target platform, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a migration adaptation method based on a domestically produced information technology software and hardware platform is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse.

[0161] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0162] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0163] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0164] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0165] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0166] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A migration adaptation method based on a domestically-developed trusted computing software and hardware platform, characterized in that: The method comprises: According to the technology stack corresponding to the application system to be migrated, the portability and migration workload of the application system under the target platform are predicted to obtain the application system migration prediction result; wherein the application system includes a computer hardware system, system software and application software group; Determine an application system migration plan according to the application system migration prediction result; the application system migration plan includes software information and hardware information that enables the application system to adapt to the target platform; In the target platform, the software corresponding to the software information is installed and the hardware corresponding to the hardware information is externally connected to obtain the operating environment required by the application system; Migrating the application system to the operating environment created in the target platform, and performing a performance test on the migrated application system according to performance indicators; wherein the performance indicators are check items for the performance of the application system after migration to the target platform; The performing of performance testing on the migrated application system according to the performance indicators includes: According to the preliminary performance indicators set for the application system, a performance simulation test is performed on the computer system in the migrated application system in a simulated operating environment; Determine target performance indicators based on the performance simulation test results and the preliminary performance indicators; According to the target performance indicator, the application system is subjected to a performance test in the operating environment to which it is migrated; According to the performance test results, the performance of the application system migrated to the target platform is optimized.

2. The method according to claim 1, characterized in that The step of predicting the migration feasibility and migration workload of the application system on the target platform according to the technology stack corresponding to the application system to be migrated, and obtaining the application system migration prediction result includes: According to the application software stack, system software stack and computer hardware system corresponding to the application system to be migrated, the portability and migration workload of the application system under the target platform are predicted to obtain the application system migration prediction result.

3. The method according to claim 1, characterized in that The software corresponding to the software information is installed in the target platform and the hardware corresponding to the hardware information is externally connected, including: In the target platform, the operating system, compiler, software development kit of the interpreted language, dependent library and related auxiliary tool software corresponding to the software information are installed; in the target platform, the hardware corresponding to the hardware information is externally connected.

4. The method according to claim 1, characterized in that The step of migrating the application system to the operating environment created in the target platform includes: The components, application framework, various application software packages, programming languages, system architecture, database, middleware, CPU and various external devices corresponding to the application system are migrated to the operating environment created by the target platform through corresponding migration tools.

5. The method according to any one of claims 1 to 4, characterized in that The step of optimizing the performance of the application system migrated to the target platform according to the performance test result includes: Create benchmark data and optimization goals based on performance test results; Performing stress testing on the application system; Compare the obtained stress test results with the established benchmark data and optimization goals to analyze the performance bottlenecks of the application system; An optimization solution for the performance bottleneck is obtained, and performance optimization is performed according to the optimization solution.

6. The method according to claim 5, characterized in that The performing performance optimization according to the optimization scheme includes: According to the optimization scheme, the performance of at least one of the CPU and memory, network, disk interface, application program, virtual machine, database and middleware of the application system is optimized.

7. A migration adaptation device based on a domestically produced ICT software and hardware platform, characterized in that: The device comprises: A prediction module is used to predict the migration feasibility and migration workload of the application system under the target platform according to the technology stack corresponding to the application system to be migrated, and obtain the application system migration prediction result; wherein the application system includes a computer hardware system, system software and application software group; A determination module, used to determine an application system migration plan according to the application system migration prediction result; the application system migration plan includes software information and hardware information that enables the application system to adapt to the target platform; An installation module, used to install the software corresponding to the software information and the hardware corresponding to the hardware information in the target platform, so as to obtain the operating environment required by the application system; A testing module, used to migrate the application system to the operating environment created in the target platform, and perform performance testing on the migrated application system according to performance indicators; An optimization module, used to optimize the performance of the application system migrated to the target platform according to the performance test results; wherein the performance index is a check item of the performance of the application system after migration to the target platform; The test module is also used to perform performance simulation tests on the computer system in the migrated application system in a simulated operating environment according to the preliminary performance indicators set for the application system; determine the target performance indicators based on the performance simulation test results and the preliminary performance indicators; and perform performance tests on the application system in the migrated operating environment according to the target performance indicators.

8. The device according to claim 7, characterized in that The prediction module is also used to predict the portability and migration workload of the application system on the target platform according to the application software stack, system software stack and computer hardware system corresponding to the application system to be migrated, and obtain the application system migration prediction result.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Information retrieval method and device

    CN106776929A