WO2018218399A1 - Upgrade control method and upgrade control equipment applied to application system migration - Google Patents

Upgrade control method and upgrade control equipment applied to application system migration Download PDF

Info

Publication number
WO2018218399A1
WO2018218399A1 PCT/CN2017/086264 CN2017086264W WO2018218399A1 WO 2018218399 A1 WO2018218399 A1 WO 2018218399A1 CN 2017086264 W CN2017086264 W CN 2017086264W WO 2018218399 A1 WO2018218399 A1 WO 2018218399A1
Authority
WO
WIPO (PCT)
Prior art keywords
upgrade
template
system information
upgraded
application system
Prior art date
Application number
PCT/CN2017/086264
Other languages
French (fr)
Chinese (zh)
Inventor
胡希平
程俊
王飞
潘亮亮
Original Assignee
中国科学院深圳先进技术研究院
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 中国科学院深圳先进技术研究院 filed Critical 中国科学院深圳先进技术研究院
Priority to PCT/CN2017/086264 priority Critical patent/WO2018218399A1/en
Publication of WO2018218399A1 publication Critical patent/WO2018218399A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • the present invention belongs to the field of computer technology, and in particular, to an upgrade control method and an upgrade control device applied to application system migration.
  • the application system after migration can achieve the desired effect.
  • the programs such as applications, system programs, etc.
  • the source application system for the sake of convenience, and then describe the application system before migration as the source application system.
  • these programs generally have a certain interdependence, which is a basic criterion that must be considered and cannot be violated in migration and upgrade.
  • the present invention provides an upgrade control method and an upgrade control device for application system migration, which are used to improve the upgrade efficiency in an application system migration scenario.
  • a first aspect of the present invention provides an upgrade control method applied to an application system migration, including:
  • system information of an application system to be migrated includes: information indicating each program to be upgraded in the application system;
  • the system information further includes: information indicating a dependency relationship between the programs to be upgraded, and the system information is Graphically, the upgrade template further includes: a dependency relationship of one or more programs represented graphically;
  • the searching for the upgrade template matching the system information in the preset template database based on the acquired system information is:
  • an upgrade template matching the system information is searched in a preset template database.
  • the image similarity algorithm and the acquired system information are in a preset template database. Find an upgrade template that matches the system information, including:
  • an upgrade template matching each sub-picture is searched in a preset template database based on the image similarity algorithm.
  • Each upgrade template further includes: at least one risk index, wherein the risk index is used to quantify a potential risk that the upgrade plan included in the corresponding upgrade template performs in the at least one application system, the risk index being positive with the potential risk Related
  • the program to be upgraded in the application system is upgraded according to the upgrade template, including:
  • the upgrade template with the lowest risk index among the two or more upgrade templates is the same as the same in the application system.
  • the program is upgraded.
  • the generated upgrade scheme is stored in the form of an upgrade template for subsequent recall of the stored upgrade scheme.
  • a second aspect of the present invention provides an upgrade control device applied to an application system migration, including:
  • a system information acquiring unit configured to acquire system information of an application system to be migrated, where the system information includes: information used to indicate each program to be upgraded in the application system;
  • a search unit configured to search, according to the system information acquired by the system information acquiring unit, an upgrade template that matches the system information in a preset template database, where the template database stores two
  • each upgrade template includes: an upgrade plan related to one or two or more programs;
  • an execution unit configured to: when the search unit finds an upgrade template that matches the system information, perform an upgrade process on the program to be upgraded in the application system according to the upgrade template.
  • the system information further includes: information used to indicate a dependency relationship between the programs to be upgraded, and the system information is Graphically, the upgrade template further includes: a dependency relationship of one or more programs represented graphically;
  • the searching unit is specifically configured to: search, according to the image similarity algorithm and the system information acquired by the system information acquiring unit, an upgrade template that matches the system information in a preset template database.
  • the searching unit includes:
  • a dividing unit configured to divide the graphic representing the system information into two or more subgraphs by using a clustering algorithm
  • a sub-search unit is configured to, for each sub-picture, search for an upgrade template matching each sub-picture in a preset template database based on an image similarity algorithm.
  • the third aspect of the present invention provides another upgrade control device applied to application system migration, and the above upgrade control
  • the device comprises: a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor executing the computer program to implement the first aspect of the invention or the first aspect of the invention
  • the upgrade control method in the possible implementation.
  • a fourth aspect of the present invention provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, the computer program being executed by at least one processor, implementing the first aspect of the present invention or the present invention An upgrade control method in any of the possible implementations of the aspect.
  • a program-related upgrade solution is preset, and the system information of the application system is obtained for the application system to be migrated, and the system information is matched and found in the preset template database based on the system information.
  • the upgrade template when the upgrade template matching the system information is found, is upgraded according to the upgrade template that is found in the application system to be upgraded.
  • the solution of the invention presets the upgrade template in the template database, so that after the application system needs to be migrated, the matching upgrade template in the template database can be reused, without the engineering personnel relying on their own experience to perform the program in the application system every time.
  • the upgrade can improve the upgrade efficiency in the application migration scenario to a certain extent.
  • FIG. 1 is a schematic flow chart of an embodiment of an upgrade control method provided by the present invention.
  • FIG. 2 is a schematic diagram of a system architecture of a migration control system applying the upgrade control method shown in FIG. 1 according to the present invention
  • FIG. 3 is a schematic structural diagram of an embodiment of an upgrade control device provided by the present invention.
  • FIG. 4 is a schematic structural diagram of another embodiment of an upgrade control device according to the present invention. Embodiments of the invention
  • An embodiment of the present invention describes an upgrade control method applied to application system migration, see FIG.
  • the above upgrade control methods include:
  • Step 101 Obtain system information of an application system to be migrated
  • the system information includes: information used to indicate each program to be upgraded in the application system.
  • the program in the embodiment of the present invention includes, but is not limited to, a system program and an application program.
  • the "upgrade” mentioned in the embodiment of the present invention refers to a series of program-related programs including program upgrade, patching, and plug-in update. Update operation.
  • the application system is composed of a hardware system, a system program, and an application program.
  • the hardware system consists of an arithmetic unit and a controller, a memory, a peripheral interface, and peripheral devices.
  • System programs include operating systems, compilers, database management systems, various high-level languages, and more.
  • the application consists of generic support software and various application packages.
  • the application system in the embodiment of the present invention may also be specifically referred to as a cloud system (in some scenarios, the cloud system is also referred to as a cloud computing operating system, a cloud computing center operating system).
  • step 101 by globally traversing the application system, the status of the application system (for example, which programs need to be upgraded, the status of each program to system resources, the dependencies between the programs, etc.) can be obtained, thereby obtaining the above-mentioned use.
  • System information indicating information of each program to be upgraded in the above application system. Further, the foregoing system information may further include any one or more of the following information: occupation of system resources by each program to be upgraded (for example, proportion of system resources occupied by each program to be upgraded), between programs to be upgraded Dependencies.
  • the dependencies between programs determine the order of upgrade between programs, for example, Tomcat (Tomcat is a free servlet container, and has the function of a traditional Web server) and MySQL (MySQL is a relational data
  • Tomcat is a free servlet container, and has the function of a traditional Web server
  • MySQL MySQL is a relational data
  • the dependencies between the library management systems determine that Tomcat cannot be upgraded before the MySQL upgrade.
  • the dependencies between the programs can be pre-standardized in the installation package or configuration file in each program, and the dependencies between the programs can be obtained by analyzing the installation package or configuration file of each program.
  • Step 102 Search, according to the obtained system information, an upgrade template that matches the system information in a preset template database.
  • the template database stores two or more upgrade templates, and each upgrade template includes: an upgrade scheme related to one or more programs.
  • each upgrade template may be generated and stored in the template database based on historical experience of application system migration and/or collection and analysis of system information of each application system.
  • each upgrade template includes: Upgrade plan related to one or two programs. This upgrade plan can be used to guide the upgrade process of one or more programs (how to upgrade, how to upgrade, etc.).
  • step 102 since the system information includes information of each program to be upgraded, and the upgrade template includes an upgrade scheme related to one or more programs, the system information acquired through step 101 may be Find the upgrade template that matches the above system in the template database. For example, according to the information indicating each program to be upgraded included in the system information acquired in step 101, an upgrade template including an upgrade plan related to the corresponding program may be searched from the template database.
  • the system information further includes: information indicating a dependency relationship between the programs to be upgraded, and the system information is graphically represented, and the upgrade template further includes: The dependency of one or more programs.
  • Step 102 can be expressed as follows: Based on the image similarity algorithm and the acquired system information (ie, the system information acquired in step 101), an upgrade template matching the above system information is searched in a preset template database.
  • the programs with dependencies may be clustered in advance by a clustering algorithm.
  • the foregoing upgrading the template that matches the system information in the preset template database by using the image similarity algorithm and the acquired system information includes: dividing the graphic representing the system information into two or more by a clustering algorithm Sub-picture; For each sub-picture, an image template similarity algorithm is used to find an upgrade template matching each sub-picture in a preset template database.
  • the clustering algorithm may be, for example, a Min-Cut algorithm, an LDA algorithm, or Its clustering algorithm is not limited here.
  • Step 103 If an upgrade template that matches the system information is found, upgrade the program to be upgraded in the application system according to the upgrade template.
  • the upgrade template includes an upgrade scheme associated with one or more programs
  • the upgrade scheme can be used to guide the upgrade process of the corresponding one or more programs (how to upgrade, how to upgrade, etc.). Therefore, when the step 102 finds an upgrade template that matches the system information, the upgrade process can be performed on the program to be upgraded in the application system according to the upgrade template.
  • the upgrade control method in the embodiment of the present invention further includes: when there are multiple upgradeable versions in the same program, traversing the dependency relationship between the same program and other programs to be upgraded, and minimizing the number of upgrades For the criteria, a target version is determined from a plurality of scalable versions of the same program described above, and the same program is upgraded based on the target version.
  • the program libxml exists in two upgradeable versions of 2.5.0 and 2.6.0
  • the dependency between the libxml version of the program libxml and other programs to be upgraded if you need to libxml before traversing the upgrade program Apache
  • the version is upgraded to 2.5.0 or higher, and the upgrade program PHP needs to upgrade the version of libxm 1 to 2.6.0 or higher, then upgrade from multiple versions of the same program with the minimum number of upgrades.
  • the version determines version 2.6.0 as the current target version of libxml, taking into account the upgrade of PHP 5.5.8 and Apache software, and then upgrading libxml based on version 2.6.0.
  • each upgrade template further includes: at least one risk index, wherein the risk index is used to quantify a potential risk performed by the upgrade solution included in the corresponding upgrade template in the at least one application system, where the risk index is The potential risk is positively correlated, that is, the greater the above risk index, the greater the current risk of upgrading based on the corresponding upgrade plan.
  • the above hazard index may be given according to the experience of the engineer, or may be determined in advance by performing an upgrade experiment on the virtual machine, or the above risk index may also be derived from a known statistical model (eg, a normal distribution model, etc.), where Not limited.
  • the risk index of the same upgrade template may be different in different application systems. , not the focus of this patent discussion.
  • step 103 if two or more upgrade templates that match the above system information and are related to the same program are found, the same program in the application system is used according to the upgrade template with the lowest risk index among the two or more upgrade templates. Perform upgrade processing, that is, if you find the above system If two or more upgrade templates match the information, and the upgrade schemes included in the two upgrade templates are the same, then the upgrade template with the lowest risk index is selected from the two or more upgrade templates.
  • the programs in the system are upgraded.
  • the upgrade template and the corresponding risk index may also be output, so that the relevant personnel filter the found upgrade template and determine whether it is based on the search.
  • the upgrade template is upgraded, after the upgrade command is received, the upgrade template is selected based on the upgrade template or the selected upgrade template.
  • the upgrade control method in the embodiment of the present invention may further include: determining a dependency relationship between the programs to be upgraded in the application system; generating, according to the dependency relationship between the programs to be upgraded in the application system.
  • a program-related upgrade scheme to be upgraded in the application system storing the generated upgrade scheme in the form of an upgrade template, so as to subsequently invoke the stored upgrade scheme.
  • the prompt information may also be output to prompt the relevant personnel to intervene.
  • upgrade control method in the embodiment of the present invention may be implemented by an upgrade control device, which may be an independent device or integrated in a migration management device (such as a migration management server). This is not a limitation.
  • the program-related upgrade solution is preset, and the system information of the application system is obtained for the application system to be migrated, and the system information is searched in the preset template database.
  • the upgrade template that matches the system information is upgraded according to the upgrade template that is to be upgraded.
  • the solution of the invention presets the upgrade template in the template database, so that after the application system needs to be migrated, the matching upgrade template in the template database can be reused, without the engineering personnel relying on their own experience to perform the program in the application system every time. Upgrade, to a certain extent, can improve the rise of the application migration scenario Level efficiency.
  • the migration control system applied to the upgrade control method in the embodiment shown in FIG. 1 will be described below with reference to a specific application scenario.
  • the upgrade system includes:
  • the cloud data center 21 may be a cloud storage device composed of one or more virtual servers. For users who need to store data in environments other than enterprise devices and users who need more storage space
  • Cloud storage devices are the best storage path.
  • the data center 22 is a centralized data processing device that manages different types of system information from different users.
  • the data center 22 can be composed of a plurality of servers, including a web server, a web server, a file server, and a print server.
  • the migration management server 23 includes, but is not limited to: a migration engine, a management server, a web server, and other devices that can be used for transmission and acceptance.
  • the migration engine can access the template database 25 to receive or retrieve the required templates (e.g., the aforementioned upgrade templates) from which the migration engine can implement the upgrade control method of the embodiment shown in FIG.
  • the present invention provides an upgrade control device applied to application system migration.
  • the above upgrade control device includes:
  • the system information acquiring unit 31 is configured to acquire system information of the current application system to be migrated, where the system information includes: information used to indicate each program to be upgraded in the application system;
  • the searching unit 32 is configured to search, according to the system information acquired by the system information acquiring unit 31, an upgrade template that matches the system information in a preset template database, where the template database stores two The above upgrade templates, each upgrade template includes: an upgrade plan related to one or two or more programs;
  • the executing unit 33 is configured to: when the searching unit 32 finds the upgrade template that matches the system information, perform an upgrade process on the program to be upgraded in the application system according to the upgrade template.
  • system information further includes: indicating a dependency relationship between each program to be upgraded Information, and the system information is graphically represented, and the upgrade template further includes: a dependency relationship of one or two programs represented by a graphic;
  • the searching unit 32 is specifically configured to: search, according to the image similarity algorithm and the system information acquired by the system information acquiring unit, an upgrade template that matches the system information in a preset template database.
  • the searching unit 32 includes: a dividing unit, configured to divide the graphic representing the system information into two or more sub-graphs by a clustering algorithm; and the sub-search unit, for each sub-picture, based on image similarity
  • the algorithm finds an upgrade template matching each submap in a preset template database.
  • each upgrade template further includes: at least one risk index, wherein the risk index is used to quantify a potential risk performed by the upgrade solution included in the corresponding upgrade template in the at least one application system, the danger The index is positively correlated with the potential risk.
  • the executing unit 33 is further configured to: when the searching unit 32 finds two or more upgrade templates that match the system information and are related to the same program, according to the upgrade template with the lowest risk index among the two or more upgrade templates The same procedure in the application system is used for the upgrade process.
  • the upgrade control device in the embodiment of the present invention further includes: a determining unit, configured to: when the searching unit 32 does not find the upgrade template that matches the system information, determine that the application system is to be upgraded And a generating unit, configured to generate, according to the dependencies between the programs to be upgraded in the application system, an upgrade scheme related to the program to be upgraded in the application system; Used to store the generated upgrade scenario in the form of an upgrade template for subsequent recall of the stored upgrade scenario.
  • a determining unit configured to: when the searching unit 32 does not find the upgrade template that matches the system information, determine that the application system is to be upgraded
  • a generating unit configured to generate, according to the dependencies between the programs to be upgraded in the application system, an upgrade scheme related to the program to be upgraded in the application system; Used to store the generated upgrade scenario in the form of an upgrade template for subsequent recall of the stored upgrade scenario.
  • the upgrade control device in the embodiment of the present invention may be an independent device, or may be integrated in a migration management device (for example, a migration management server), which is not limited herein.
  • upgrade control device in the embodiment of the present invention may be used to implement all the technical solutions in the foregoing method embodiments, and the functions of the respective functional modules may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation thereof is implemented.
  • the process reference may be made to the related description in the foregoing embodiments, and details are not described herein again.
  • the program-related upgrade solution is preset, and the system information of the application system is obtained for the application system to be migrated, and the system information is searched in the preset template database.
  • the upgrade template that matches the system information is upgraded according to the upgrade template that is to be upgraded. This hair
  • the upgrade template can be reused in the template database after the application system needs to be migrated, without the need for engineers to upgrade the programs in the application system each time depending on their own experience. To a certain extent, it can improve the upgrade efficiency in the application system migration scenario.
  • FIG. 4 is a schematic diagram of an upgrade control device applied to an application system migration according to an embodiment of the present invention.
  • the upgrade control device 4 of this embodiment includes: a processor 40, a memory 41, and a computer program 42, such as an upgrade control program, stored in the memory 41 and operable on the processor 40.
  • the processor 40 executes the computer program 42 to implement the upgrade control method in each of the above method embodiments, such as steps 101 to 103 shown in FIG.
  • computer program 42 may be partitioned into one or more modules/units, which are stored in memory 41 and executed by processor 40 to perform the present invention.
  • the one or more modules/units described above may be a series of computer program instruction segments capable of performing a particular function, which is used to describe the execution of the computer program 42 in the upgrade control device 4.
  • the computer program 42 can be divided into the system information acquiring unit 31, the searching unit 32, and the executing unit 33 as shown in FIG. 3, and the functions of the system information acquiring unit 31, the searching unit 32, and the executing unit 33 can be referred to FIG. Descriptions in the embodiments are not described herein again.
  • the upgrade control device 4 may include, but is not limited to, the processor 40 and the memory 41. It will be understood by those skilled in the art that FIG. 4 is only an example of the upgrade control device 4, and does not constitute a limitation on the upgrade control device 4. It may include more or less components than those illustrated, or may combine some components, or different. The components, such as the upgrade control device 4, may also include input and output devices, network access devices, buses, and the like.
  • the processor 40 may be a central processing unit (CPU), or may be another general-purpose processor, a digital signal processor (DSP), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-to-use programmable gate array
  • CPU central processing unit
  • DSP digital signal processor
  • ASIC Application Specific Integrated Circuit
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the above-described memory 41 may be an internal storage unit of the upgrade control device 4, such as a hard disk or a memory of the upgrade control device 4.
  • the above memory 41 may also be an external storage device of the upgrade control device 4, such as an upgrade control.
  • the above-mentioned memory 41 may also include both an internal storage unit of the upgrade control device 4 and an external storage device.
  • the memory 41 is used to store the above computer program and other programs and data required to upgrade the control device 4.
  • the memory 41 can also be used to temporarily store data that has been output or is about to be output.
  • each functional unit and module are completed, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above.
  • Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit, and the integrated unit may be implemented by hardware.
  • Formal implementation can also be implemented in the form of software functional units.
  • the specific names of the respective functional units and modules are only for the purpose of facilitating mutual differentiation, and are not intended to limit the scope of protection of the present application.
  • the disclosed apparatus and method can be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be used. Combined or can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
  • the unit described as a separate component may or may not be physically distributed as a unit
  • the displayed components may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • the integrated module/unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the present invention implements all or part of the processes in the foregoing embodiments, and may also be completed by a computer program to instruct related hardware.
  • the computer program may be stored in a computer readable storage medium. After the program is executed by the processor, the steps of the various method embodiments described above can be implemented.
  • the computer program includes computer program code, and the computer program code may be in the form of a source code, an object code, an executable file, or some intermediate form.
  • the computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a Read-Only Memory (ROM). , Random Access Memory (RAM), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media It does not include electrical carrier signals and telecommunication signals.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an upgrade control method and upgrade control equipment (4) applied to application system migration, and a computer readable storage medium. The upgrade control method comprises the following steps: obtaining system information of an application system to be migrated at present (101), wherein the system information comprises information for indicating each program to be upgraded in the application system; on the basis of the obtained system information, searching an upgrade template matching the system information in a preset template database (25) (102), wherein the template database (25) stores more than two upgrade templates, and each upgrade template comprises an upgrade scheme related to one or more than two programs; and if the upgrade template matching the system information is found, then performing upgrade processing on the program to be upgraded in the application system according to the upgrade template (103). The above upgrade control method, the upgrade control equipment (4) and the computer readable storage medium can effectively improve the upgrade efficiency in the application system migration scenario .

Description

应用于应用***迁移的升级控制方法及升级控制设备 技术领域  Upgrade control method and upgrade control device applied to application system migration
[0001] 本发明属于计算机技术领域, 尤其涉及一种应用于应用***迁移的升级控制方 法及升级控制设备。  [0001] The present invention belongs to the field of computer technology, and in particular, to an upgrade control method and an upgrade control device applied to application system migration.
背景技术  Background technique
[0002] 现代计算机技术在虚拟化和大型机硬件性能上得到了不断地提高, 这也很大程 度上提升了大量应用程序运行在少量集中式服务器和云计算平台上的能力。 因 此, 在很多情况下, 能够将某个应用***迁移或者重建到新兴的计算平台上 ( 如大型数据中心或者云计算平台等) 的能力是用户所迫切需求的。  [0002] Modern computer technology has continually improved the performance of virtualization and mainframe hardware, which has greatly improved the ability of a large number of applications to run on a small number of centralized servers and cloud computing platforms. Therefore, in many cases, the ability to migrate or rebuild an application to an emerging computing platform (such as a large data center or cloud computing platform) is an urgent need of users.
[0003] 为了适应应用***环境的变化, 使得迁移以后的应用***能够达到预期的效果 。 在应用***迁移过程中, 通常需要对源应用*** (为便于表述, 后续将迁移 前的应用***描述为源应用***) 中的程序 (例如应用程序、 ***程序等) 进 行升级。 更为复杂的是, 这些程序一般都有着一定的相互依赖关系, 这是迁移 和升级中必须考虑且不能违反的基本准则。  [0003] In order to adapt to changes in the application system environment, the application system after migration can achieve the desired effect. During the application migration process, it is usually necessary to upgrade the programs (such as applications, system programs, etc.) in the source application system (for the sake of convenience, and then describe the application system before migration as the source application system). To complicate matters, these programs generally have a certain interdependence, which is a basic criterion that must be considered and cannot be violated in migration and upgrade.
[0004] 传统方案中, 每次在应用***迁移吋都需要由工程人员依赖自身的经验对源应 用***中的程序进行升级, 升级效率低下。  [0004] In the conventional solution, each time the application system is migrated, the engineering personnel need to rely on their own experience to upgrade the programs in the source application system, and the upgrade efficiency is low.
技术问题  technical problem
[0005] 本发明提供一种应用于应用***迁移的升级控制方法及升级控制设备, 用于提 高应用***迁移场景下的升级效率。  [0005] The present invention provides an upgrade control method and an upgrade control device for application system migration, which are used to improve the upgrade efficiency in an application system migration scenario.
问题的解决方案  Problem solution
技术解决方案  Technical solution
[0006] 本发明第一方面提供一种应用于应用***迁移的升级控制方法, 包括:  [0006] A first aspect of the present invention provides an upgrade control method applied to an application system migration, including:
[0007] 获取当前待迁移的应用***的***信息, 其中, 所述***信息包括: 用以指示 所述应用***中待升级的各个程序的信息;  [0007] acquiring system information of an application system to be migrated, where the system information includes: information indicating each program to be upgraded in the application system;
[0008] 基于获取的所述***信息, 在预设的模板数据库中査找与所述***信息匹配的 升级模板, 其中, 所述模板数据库中存储两个以上升级模板, 每个升级模板包 括: 与一个或两个以上程序相关的升级方案; And searching for an upgrade template that matches the system information in the preset template database, where the template database stores two or more upgrade templates, and each upgrade template package is configured. Includes: an upgrade plan associated with one or more programs;
[0009] 若査找到与所述***信息匹配的升级模板, 则根据所述升级模板对所述应用系 统中待升级的程序进行升级处理。  [0009] If an upgrade template matching the system information is found, the program to be upgraded in the application system is upgraded according to the upgrade template.
[0010] 基于本发明第一方面, 在第一种可能的实现方式中, 所述***信息还包括: 用 以指示待升级的各个程序之间的依赖关系的信息, 并且, 所述***信息以图形 表示, 所述升级模板还包括: 以图形表示的一个或两个以上程序的依赖关系;[0010] According to the first aspect of the present invention, in a first possible implementation, the system information further includes: information indicating a dependency relationship between the programs to be upgraded, and the system information is Graphically, the upgrade template further includes: a dependency relationship of one or more programs represented graphically;
[0011] 所述基于获取的所述***信息, 在预设的模板数据库中査找与所述***信息匹 配的升级模板, 为: [0011] the searching for the upgrade template matching the system information in the preset template database based on the acquired system information is:
[0012] 基于图像相似度算法和获取的所述***信息, 在预设的模板数据库中査找与所 述***信息匹配的升级模板。  [0012] Based on the image similarity algorithm and the acquired system information, an upgrade template matching the system information is searched in a preset template database.
[0013] 基于本发明第一方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述基于图像相似度算法和获取的所述***信息, 在预设的模板数据库中査找 与所述***信息匹配的升级模板, 包括:  [0013] Based on the first possible implementation manner of the first aspect of the present invention, in a second possible implementation, the image similarity algorithm and the acquired system information are in a preset template database. Find an upgrade template that matches the system information, including:
[0014] 将表示所述***信息的图形通过聚类算法分割为两个以上子图; [0014] dividing the graphic representing the system information into two or more sub-graphs by a clustering algorithm;
[0015] 针对每个子图, 基于图像相似度算法在预设的模板数据库中査找与各个子图匹 配的升级模板。 [0015] For each sub-picture, an upgrade template matching each sub-picture is searched in a preset template database based on the image similarity algorithm.
[0016] 基于本发明第一方面, 或者本发明第一方面的第一种可能的实现方式, 或者本 发明第一方面的第二种可能的实现方式, 在第三种可能的实现方式中, 每个升 级模板还包括: 至少一个危险指数, 其中, 所述危险指数用以量化相应升级模 板所包括的升级方案在至少一个应用***中执行的潜在风险, 所述危险指数与 所述潜在风险成正相关;  [0016] Based on the first aspect of the present invention, or the first possible implementation manner of the first aspect of the present invention, or the second possible implementation manner of the first aspect of the present invention, in a third possible implementation manner, Each upgrade template further includes: at least one risk index, wherein the risk index is used to quantify a potential risk that the upgrade plan included in the corresponding upgrade template performs in the at least one application system, the risk index being positive with the potential risk Related
[0017] 所述若査找到与所述***信息匹配的升级模板, 则根据所述升级模板对所述应 用***中待升级的程序进行升级处理, 包括:  [0017] If the upgrade template matching the system information is found, the program to be upgraded in the application system is upgraded according to the upgrade template, including:
[0018] 若査找到与所述***信息匹配且与相同程序相关的两个以上升级模板, 则根据 所述两个以上升级模板中危险指数最低的升级模板对所述应用***中的所述相 同程序进行升级处理。  [0018] if two or more upgrade templates that match the system information and are related to the same program are found, the upgrade template with the lowest risk index among the two or more upgrade templates is the same as the same in the application system. The program is upgraded.
[0019] 基于本发明第一方面, 或者本发明第一方面的第一种可能的实现方式, 或者本 发明第一方面的第二种可能的实现方式, 在第四种可能的实现方式中, 所述基 于获取的所述***信息, 在预设的模板数据库中査找与所述***信息匹配的升 级模板, 之后包括: [0019] Based on the first aspect of the present invention, or the first possible implementation manner of the first aspect of the present invention, or the second possible implementation manner of the first aspect of the present invention, in a fourth possible implementation manner, The base And searching, in the preset template database, an upgrade template that matches the system information, and then includes:
[0020] 若査找不到与所述***信息匹配的升级模板, 则确定所述应用***中待升级的 各个程序之间的依赖关系;  [0020] if an upgrade template matching the system information is not found, determining a dependency relationship between the programs to be upgraded in the application system;
[0021] 根据所述应用***中待升级的各个程序之间的依赖关系, 生成与所述应用*** 中待升级的程序相关的升级方案; [0021] generating, according to the dependency relationship between the programs to be upgraded in the application system, an upgrade solution related to the program to be upgraded in the application system;
[0022] 以升级模板的形式存储生成的升级方案, 以便后续调用存储的升级方案。 [0022] The generated upgrade scheme is stored in the form of an upgrade template for subsequent recall of the stored upgrade scheme.
[0023] 本发明第二方面提供一种应用于应用***迁移的升级控制设备, 包括: [0023] A second aspect of the present invention provides an upgrade control device applied to an application system migration, including:
[0024] ***信息获取单元, 用于获取当前待迁移的应用***的***信息, 其中, 所述 ***信息包括: 用以指示所述应用***中待升级的各个程序的信息; [0024] a system information acquiring unit, configured to acquire system information of an application system to be migrated, where the system information includes: information used to indicate each program to be upgraded in the application system;
[0025] 査找单元, 用于基于所述***信息获取单元获取的所述***信息, 在预设的模 板数据库中査找与所述***信息匹配的升级模板, 其中, 所述模板数据库中存 储两个以上升级模板, 每个升级模板包括: 与一个或两个以上程序相关的升级 方案; [0025] a search unit, configured to search, according to the system information acquired by the system information acquiring unit, an upgrade template that matches the system information in a preset template database, where the template database stores two The above upgrade templates, each upgrade template includes: an upgrade plan related to one or two or more programs;
[0026] 执行单元, 用于当所述査找单元査找到与所述***信息匹配的升级模板吋, 根 据所述升级模板对所述应用***中待升级的程序进行升级处理。  And an execution unit, configured to: when the search unit finds an upgrade template that matches the system information, perform an upgrade process on the program to be upgraded in the application system according to the upgrade template.
[0027] 基于本发明第二方面, 在第一种可能的实现方式中, 所述***信息还包括: 用 以指示待升级的各个程序之间的依赖关系的信息, 并且, 所述***信息以图形 表示, 所述升级模板还包括: 以图形表示的一个或两个以上程序的依赖关系; [0027] According to the second aspect of the present invention, in a first possible implementation, the system information further includes: information used to indicate a dependency relationship between the programs to be upgraded, and the system information is Graphically, the upgrade template further includes: a dependency relationship of one or more programs represented graphically;
[0028] 所述査找单元具体用于: 基于图像相似度算法和所述***信息获取单元获取的 所述***信息, 在预设的模板数据库中査找与所述***信息匹配的升级模板。 [0028] The searching unit is specifically configured to: search, according to the image similarity algorithm and the system information acquired by the system information acquiring unit, an upgrade template that matches the system information in a preset template database.
[0029] 基于本发明第二方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述査找单元包括:  [0029] Based on the first possible implementation manner of the second aspect of the present invention, in a second possible implementation manner, the searching unit includes:
[0030] 分割单元, 用于将表示所述***信息的图形通过聚类算法分割为两个以上子图  [0030] a dividing unit, configured to divide the graphic representing the system information into two or more subgraphs by using a clustering algorithm
[0031] 子査找单元, 用于针对每个子图, 基于图像相似度算法在预设的模板数据库中 査找与各个子图匹配的升级模板。 [0031] a sub-search unit is configured to, for each sub-picture, search for an upgrade template matching each sub-picture in a preset template database based on an image similarity algorithm.
[0032] 本发明第三方面提供另一种应用于应用***迁移的升级控制设备, 上述升级控 制设备包括: 存储器、 处理器及存储在上述存储器上并可在上述处理器上运行 的计算机程序, 上述处理器执行上述计算机程序吋实现如本发明第一方面或者 本发明第一方面的任一可能实现方式中的升级控制方法。 [0032] The third aspect of the present invention provides another upgrade control device applied to application system migration, and the above upgrade control The device comprises: a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor executing the computer program to implement the first aspect of the invention or the first aspect of the invention The upgrade control method in the possible implementation.
[0033] 本发明第四方面提供一种计算机可读存储介质, 上述计算机可读存储介质存储 有计算机程序, 上述计算机程序被至少一个处理器执行吋, 实现如本发明第一 方面或者本发明第一方面的任一可能实现方式中的升级控制方法。 发明的有益效果  [0033] A fourth aspect of the present invention provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, the computer program being executed by at least one processor, implementing the first aspect of the present invention or the present invention An upgrade control method in any of the possible implementations of the aspect. Advantageous effects of the invention
有益效果  Beneficial effect
[0034] 本发明方案中预先设定好与程序相关的升级方案, 针对待迁移的应用***, 获 取该应用***的***信息, 基于该***信息在预设的模板数据库中査找与该系 统信息匹配的升级模板, 当査找到与该***信息匹配的升级模板吋, 根据査找 到的升级模板对该应用***中待升级的程序进行升级处理。 本发明方案通过在 模板数据库中预设升级模板, 使得在应用***需要迁移吋, 可以复用模板数据 库中匹配的升级模板, 而无需工程人员每次都依赖自身的经验对应用***中的 程序进行升级, 在一定程度上能够提高应用***迁移场景下的升级效率。  [0034] In the solution of the present invention, a program-related upgrade solution is preset, and the system information of the application system is obtained for the application system to be migrated, and the system information is matched and found in the preset template database based on the system information. The upgrade template, when the upgrade template matching the system information is found, is upgraded according to the upgrade template that is found in the application system to be upgraded. The solution of the invention presets the upgrade template in the template database, so that after the application system needs to be migrated, the matching upgrade template in the template database can be reused, without the engineering personnel relying on their own experience to perform the program in the application system every time. The upgrade can improve the upgrade efficiency in the application migration scenario to a certain extent.
对附图的简要说明  Brief description of the drawing
附图说明  DRAWINGS
[0035] 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施例或 现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的 附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创 造性劳动性的前提下, 还可以根据这些附图获得其他的附图。  [0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below, and obviously, in the following description The drawings are only some of the embodiments of the present invention, and other drawings may be obtained from those skilled in the art without departing from the drawings.
[0036] 图 1为本发明提供的升级控制方法一个实施例流程示意图; 1 is a schematic flow chart of an embodiment of an upgrade control method provided by the present invention;
[0037] 图 2为本发明提供的一种应用图 1所示的升级控制方法的迁移控制***的***架 构示意图; 2 is a schematic diagram of a system architecture of a migration control system applying the upgrade control method shown in FIG. 1 according to the present invention;
[0038] 图 3为本发明提供的升级控制设备一个实施例结构示意图;  3 is a schematic structural diagram of an embodiment of an upgrade control device provided by the present invention;
[0039] 图 4为本发明提供的升级控制设备另一个实施例结构示意图。 本发明的实施方式 4 is a schematic structural diagram of another embodiment of an upgrade control device according to the present invention. Embodiments of the invention
[0040] 为使得本发明的发明目的、 特征、 优点能够更加的明显和易懂, 下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而非全部实施例。 基于本 发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前提下所获得的 所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. The described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
[0041] 实施例一  [0041] Embodiment 1
[0042] 本发明实施例对一种应用于应用***迁移的升级控制方法进行描述, 请参阅图 [0042] An embodiment of the present invention describes an upgrade control method applied to application system migration, see FIG.
1, 上述升级控制方法包括: 1, the above upgrade control methods include:
[0043] 步骤 101、 获取当前待迁移的应用***的***信息; [0043] Step 101: Obtain system information of an application system to be migrated;
[0044] 其中, 上述***信息包括: 用以指示上述应用***中待升级的各个程序的信息 。 需要说明的是, 本发明实施例中的程序包括但不限于***程序和应用程序, 本发明实施例提及的"升级"是指包含程序升级、 打补丁、 插件更新等一系列与程 序相关的更新操作。  [0044] The system information includes: information used to indicate each program to be upgraded in the application system. It should be noted that the program in the embodiment of the present invention includes, but is not limited to, a system program and an application program. The "upgrade" mentioned in the embodiment of the present invention refers to a series of program-related programs including program upgrade, patching, and plug-in update. Update operation.
[0045] 本发明实施例中, 应用***由硬件***、 ***程序、 应用程序组成。 其中, 硬 件***由运算器和控制器、 存储器、 ***接口和***设备组成。 ***程序包括 操作***、 编译程序、 数据库管理***、 各种高级语言等。 应用程序由通用支 援软件和各种应用软件包组成。 可选的, 本发明实施例中的应用***也可以特 指云*** (在某些场景下, 云***也被称为云计算操作***、 云计算中心操作 ***) 。  [0045] In the embodiment of the present invention, the application system is composed of a hardware system, a system program, and an application program. Among them, the hardware system consists of an arithmetic unit and a controller, a memory, a peripheral interface, and peripheral devices. System programs include operating systems, compilers, database management systems, various high-level languages, and more. The application consists of generic support software and various application packages. Optionally, the application system in the embodiment of the present invention may also be specifically referred to as a cloud system (in some scenarios, the cloud system is also referred to as a cloud computing operating system, a cloud computing center operating system).
在步骤 101中, 通过对应用***进行全局遍历, 可以获知该应用***的状况 ( 例如哪些程序需要升级, 各个程序对***资源的情况、 各个程序之间的依赖关 系等) , 进而获得包含上述用以指示上述应用***中待升级的各个程序的信息 的***信息。 进一步, 上述***信息还可以包括如下任一项或多项信息: 待升 级的各个程序对***资源的占用情况 (例如待升级的各个程序占用的***资源 的比例) 、 待升级的各个程序之间的依赖关系。 其中, 各个程序之间的依赖关 系决定了各个程序之间的升级顺序, 例如, Tomcat (Tomcat为免费幵源的 Servlet 容器, 且具有传统的 Web服务器的功能) 与 MySQL (MySQL是一个关系型数据 库管理***) 之间的依赖关系决定了 Tomcat不能在 MySQL升级之前被升级。 具 体地, 各个程序之间的依赖关系可预先标准化在各个程序中安装包或配置文件 中, 通过分析各个程序的安装包或配置文件可获得各个程序之间的依赖关系。 In step 101, by globally traversing the application system, the status of the application system (for example, which programs need to be upgraded, the status of each program to system resources, the dependencies between the programs, etc.) can be obtained, thereby obtaining the above-mentioned use. System information indicating information of each program to be upgraded in the above application system. Further, the foregoing system information may further include any one or more of the following information: occupation of system resources by each program to be upgraded (for example, proportion of system resources occupied by each program to be upgraded), between programs to be upgraded Dependencies. Among them, the dependencies between programs determine the order of upgrade between programs, for example, Tomcat (Tomcat is a free servlet container, and has the function of a traditional Web server) and MySQL (MySQL is a relational data The dependencies between the library management systems determine that Tomcat cannot be upgraded before the MySQL upgrade. Specifically, the dependencies between the programs can be pre-standardized in the installation package or configuration file in each program, and the dependencies between the programs can be obtained by analyzing the installation package or configuration file of each program.
[0047] 步骤 102、 基于获取的上述***信息, 在预设的模板数据库中査找与上述*** 信息匹配的升级模板; [0047] Step 102: Search, according to the obtained system information, an upgrade template that matches the system information in a preset template database.
[0048] 其中, 上述模板数据库中存储两个以上升级模板, 每个升级模板包括: 与一个 或两个以上程序相关的升级方案。  [0048] wherein, the template database stores two or more upgrade templates, and each upgrade template includes: an upgrade scheme related to one or more programs.
[0049] 本发明实施例中, 可以预先基于应用***迁移的历史经验和 /或对各个应用系 统的***信息的收集分析, 生成各种升级模板并存储于模板数据库中。 其中, 每个升级模板包括: 与一个或两个以上程序相关的升级方案。 该升级方案可用 以指引相应的一个或两个以上程序的升级过程 (例如何吋进行升级、 如何升级 等) 。  In the embodiment of the present invention, various upgrade templates may be generated and stored in the template database based on historical experience of application system migration and/or collection and analysis of system information of each application system. Among them, each upgrade template includes: Upgrade plan related to one or two programs. This upgrade plan can be used to guide the upgrade process of one or more programs (how to upgrade, how to upgrade, etc.).
[0050] 在步骤 102中, 由于***信息包括待升级的各个程序的信息, 而升级模板包括 与一个或两个以上程序相关的升级方案, 因此, 通过步骤 101获取的***信息, 即可从上述模板数据库中査找与上述***匹配的升级模板。 例如, 根据步骤 101 获取的***信息中包括的指示待升级的各个程序的信息, 可从上述模板数据库 中査找包括与相应程序相关的升级方案的升级模板。  [0050] In step 102, since the system information includes information of each program to be upgraded, and the upgrade template includes an upgrade scheme related to one or more programs, the system information acquired through step 101 may be Find the upgrade template that matches the above system in the template database. For example, according to the information indicating each program to be upgraded included in the system information acquired in step 101, an upgrade template including an upgrade plan related to the corresponding program may be searched from the template database.
[0051] 在一种应用场景中, 上述***信息还包括: 用以指示待升级的各个程序之间的 依赖关系的信息, 并且, 上述***信息以图形表示, 上述升级模板还包括: 以 图形表示的一个或两个以上程序的依赖关系。 步骤 102可表现为: 基于图像相似 度算法和获取的上述***信息 (即步骤 101获取的***信息) , 在预设的模板数 据库中査找与上述***信息匹配的升级模板。  [0051] In an application scenario, the system information further includes: information indicating a dependency relationship between the programs to be upgraded, and the system information is graphically represented, and the upgrade template further includes: The dependency of one or more programs. Step 102 can be expressed as follows: Based on the image similarity algorithm and the acquired system information (ie, the system information acquired in step 101), an upgrade template matching the above system information is searched in a preset template database.
[0052] 进一步, 考虑到一个应用***包含的待升级的程序可能较多, 因此, 可预先通 过聚类算法将存在依赖关系的程序进行聚类。 具体地, 上述基于图像相似度算 法和获取的上述***信息, 在预设的模板数据库中査找与上述***信息匹配的 升级模板包括: 将表示上述***信息的图形通过聚类算法分割为两个以上子图 ; 针对每个子图, 基于图像相似度算法在预设的模板数据库中査找与各个子图 匹配的升级模板。 其中, 上述聚类算法例如可以是 Min-Cut算法、 LDA算法或其 它聚类算法, 此处不做限定。 [0052] Further, considering that an application system may have more programs to be upgraded, the programs with dependencies may be clustered in advance by a clustering algorithm. Specifically, the foregoing upgrading the template that matches the system information in the preset template database by using the image similarity algorithm and the acquired system information includes: dividing the graphic representing the system information into two or more by a clustering algorithm Sub-picture; For each sub-picture, an image template similarity algorithm is used to find an upgrade template matching each sub-picture in a preset template database. The clustering algorithm may be, for example, a Min-Cut algorithm, an LDA algorithm, or Its clustering algorithm is not limited here.
[0053] 步骤 103、 若査找到与上述***信息匹配的升级模板, 则根据上述升级模板对 上述应用***中待升级的程序进行升级处理;  [0053] Step 103: If an upgrade template that matches the system information is found, upgrade the program to be upgraded in the application system according to the upgrade template.
[0054] 由于升级模板包含与一个或两个以上程序相关的升级方案, 而该升级方案可用 以指引相应的一个或两个以上程序的升级过程 (例如何吋进行升级、 如何升级 等) 。 因此, 当步骤 102査找到与上述***信息匹配的升级模板吋, 便可根据上 述升级模板对上述应用***中待升级的程序进行相应的升级处理。  [0054] Since the upgrade template includes an upgrade scheme associated with one or more programs, the upgrade scheme can be used to guide the upgrade process of the corresponding one or more programs (how to upgrade, how to upgrade, etc.). Therefore, when the step 102 finds an upgrade template that matches the system information, the upgrade process can be performed on the program to be upgraded in the application system according to the upgrade template.
[0055] 进一步, 在步骤 103中的升级处理过程中, 还可自动发现并解决潜在的升级冲 突, 以针对同一程序至多进行一次升级。 具体地, 本发明实施例中的升级控制 方法还包括: 当同一程序存在多个可升级的版本吋, 遍历所述同一程序与当前 待升级的其它程序之间的依赖关系, 以升级次数最小化为准则从上述同一程序 的多个可升级的版本确定一目标版本, 基于该目标版本对上述同一程序进行升 级。 举例说明, 当程序 libxml存在 2.5.0和 2.6.0这两个可升级的版本吋, 遍历版程 序 libxml与当前待升级的其它程序之间的依赖关系, 若遍历到升级程序 Apache之 前需要将 libxml的版本升级到 2.5.0或者更高版, 而升级程序 PHP之前需要将 libxm 1的版本升级到 2.6.0或者更高版, 则以升级次数最小化为准则从上述同一程序的 多个可升级的版本确定版本 2.6.0作为 libxml当前的目标版本, 以兼顾 PHP5.5.8和 Apache软件的升级, 之后基于版本 2.6.0升级 libxml。  [0055] Further, during the upgrade process in step 103, potential upgrade conflicts may also be automatically discovered and resolved to perform at most one upgrade for the same program. Specifically, the upgrade control method in the embodiment of the present invention further includes: when there are multiple upgradeable versions in the same program, traversing the dependency relationship between the same program and other programs to be upgraded, and minimizing the number of upgrades For the criteria, a target version is determined from a plurality of scalable versions of the same program described above, and the same program is upgraded based on the target version. For example, when the program libxml exists in two upgradeable versions of 2.5.0 and 2.6.0, the dependency between the libxml version of the program libxml and other programs to be upgraded, if you need to libxml before traversing the upgrade program Apache The version is upgraded to 2.5.0 or higher, and the upgrade program PHP needs to upgrade the version of libxm 1 to 2.6.0 or higher, then upgrade from multiple versions of the same program with the minimum number of upgrades. The version determines version 2.6.0 as the current target version of libxml, taking into account the upgrade of PHP 5.5.8 and Apache software, and then upgrading libxml based on version 2.6.0.
[0056] 可选的, 每个升级模板还包括: 至少一个危险指数, 其中, 上述危险指数用以 量化相应升级模板所包括的升级方案在至少一个应用***中执行的潜在风险, 上述危险指数与所述潜在风险成正相关, 也即, 上述危险指数越大, 基于相应 升级方案进行升级处理的现在风险越大。 具体地, 上述危害指数可以依据工程 师的经验赋予, 或者预先通过在虚拟机上进行升级实验后评估确定, 或者上述 危险指数也可由已知的统计模型 (例如正态分布模型等) 导出, 此处不作限定 。 其中, 同一升级模板在不同的应用***中的危险指数可能不同。 , 不是本专 利讨论的重点。 在步骤 103中, 若査找到与上述***信息匹配且与相同程序相关 的两个以上升级模板, 则根据上述两个以上升级模板中危险指数最低的升级模 板对上述应用***中的所述相同程序进行升级处理, 也即, 若査找到与上述系 统信息匹配的两个以上升级模板, 且这两个以上升级模板所包含的升级方案针 对的程序是相同的, 那么, 从这两个以上升级模板中, 选取危险指数最低的升 级模板对上述应用***中的程序进行升级处理。 [0056] Optionally, each upgrade template further includes: at least one risk index, wherein the risk index is used to quantify a potential risk performed by the upgrade solution included in the corresponding upgrade template in the at least one application system, where the risk index is The potential risk is positively correlated, that is, the greater the above risk index, the greater the current risk of upgrading based on the corresponding upgrade plan. Specifically, the above hazard index may be given according to the experience of the engineer, or may be determined in advance by performing an upgrade experiment on the virtual machine, or the above risk index may also be derived from a known statistical model (eg, a normal distribution model, etc.), where Not limited. Among them, the risk index of the same upgrade template may be different in different application systems. , not the focus of this patent discussion. In step 103, if two or more upgrade templates that match the above system information and are related to the same program are found, the same program in the application system is used according to the upgrade template with the lowest risk index among the two or more upgrade templates. Perform upgrade processing, that is, if you find the above system If two or more upgrade templates match the information, and the upgrade schemes included in the two upgrade templates are the same, then the upgrade template with the lowest risk index is selected from the two or more upgrade templates. The programs in the system are upgraded.
[0057] 可选的, 若査找到与上述***信息匹配的升级模板, 也可以输出査找到的升级 模板和相应的危险指数, 以便相关人员对査找到的升级模板进行筛选并确定是 否基于査找到的升级模板进行升级处理, 在接收到确定升级指令吋, 在该升级 指令的指示下, 基于査找到的升级模板或选定的升级模板进行升级处理。  [0057] Optionally, if the upgrade template matching the system information is found, the upgrade template and the corresponding risk index may also be output, so that the relevant personnel filter the found upgrade template and determine whether it is based on the search. After the upgrade template is upgraded, after the upgrade command is received, the upgrade template is selected based on the upgrade template or the selected upgrade template.
[0058] 进一步, 若在步骤 102査找不到与上述***信息匹配的升级模板, 则可以自动 生成相应的升级模板并将生成的升级模板存储在上述模板数据库中, 以便后续 复用。 具体地, 本发明实施例中的升级控制方法还可以包括: 确定上述应用系 统中待升级的各个程序之间的依赖关系; 根据上述应用***中待升级的各个程 序之间的依赖关系, 生成与所述应用***中待升级的程序相关的升级方案; 以 升级模板的形式存储生成的升级方案, 以便后续调用存储的升级方案。  [0058] Further, if the upgrade template matching the system information is not found in step 102, the corresponding upgrade template may be automatically generated and the generated upgrade template is stored in the template database for subsequent multiplexing. Specifically, the upgrade control method in the embodiment of the present invention may further include: determining a dependency relationship between the programs to be upgraded in the application system; generating, according to the dependency relationship between the programs to be upgraded in the application system. A program-related upgrade scheme to be upgraded in the application system; storing the generated upgrade scheme in the form of an upgrade template, so as to subsequently invoke the stored upgrade scheme.
[0059] 当然, 在其它实施例中, 当在步骤 102査找不到与上述***信息匹配的升级模 板吋, 也可以输出提示信息, 以提示相关人员介入处理。  [0059] Of course, in other embodiments, when the upgrade template matching the system information is not found in step 102, the prompt information may also be output to prompt the relevant personnel to intervene.
[0060] 需要说明的是, 本发明实施例中的升级控制方法可以由升级控制设备实现, 该 升级控制设备可以为独立的设备, 也可以集成在诸如迁移管理设备 (例如迁移 管理服务器) 中, 此处不作限定。  [0060] It should be noted that the upgrade control method in the embodiment of the present invention may be implemented by an upgrade control device, which may be an independent device or integrated in a migration management device (such as a migration management server). This is not a limitation.
[0061] 应理解, 上述实施例中各步骤的序号的大小并不意味着执行顺序的先后, 各过 程的执行顺序应以其功能和内在逻辑确定, 而不应对本发明实施例的实施过程 构成任何限定。  It should be understood that the size of the sequence numbers of the steps in the foregoing embodiments does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be implemented in the implementation process of the embodiments of the present invention. Any restrictions.
[0062] 由上可见, 本发明实施例中预先设定好与程序相关的升级方案, 针对待迁移的 应用***, 获取该应用***的***信息, 基于该***信息在预设的模板数据库 中査找与该***信息匹配的升级模板, 当査找到与该***信息匹配的升级模板 吋, 根据査找到的升级模板对该应用***中待升级的程序进行升级处理。 本发 明方案通过在模板数据库中预设升级模板, 使得在应用***需要迁移吋, 可以 复用模板数据库中匹配的升级模板, 而无需工程人员每次都依赖自身的经验对 应用***中的程序进行升级, 在一定程度上能够提高应用***迁移场景下的升 级效率。 [0062] It can be seen that, in the embodiment of the present invention, the program-related upgrade solution is preset, and the system information of the application system is obtained for the application system to be migrated, and the system information is searched in the preset template database. The upgrade template that matches the system information is upgraded according to the upgrade template that is to be upgraded. The solution of the invention presets the upgrade template in the template database, so that after the application system needs to be migrated, the matching upgrade template in the template database can be reused, without the engineering personnel relying on their own experience to perform the program in the application system every time. Upgrade, to a certain extent, can improve the rise of the application migration scenario Level efficiency.
[0063] 下面以一具体应用场景, 对一种应用于图 1所示实施例中的升级控制方法的迁 移控制***进行描述。 请参阅图 2所示的迁移控制***的***架构, 该升级*** 包括:  [0063] The migration control system applied to the upgrade control method in the embodiment shown in FIG. 1 will be described below with reference to a specific application scenario. Refer to the system architecture of the migration control system shown in Figure 2. The upgrade system includes:
[0064] 云数据中心 21、 数据中心 22、 迁移管理服务器 23、 公用数据存储单元 24和模板 数据库 25。  [0064] The cloud data center 21, the data center 22, the migration management server 23, the public data storage unit 24, and the template database 25.
[0065] 其中, 云数据中心 21可以由一个或多个虚拟服务器组成的云存储设备。 对于需 要将数据存储在企业设备以外环境的用户和需要更大容量存储空间的用户来说 [0065] The cloud data center 21 may be a cloud storage device composed of one or more virtual servers. For users who need to store data in environments other than enterprise devices and users who need more storage space
, 云存储设备是最佳的存储途径。 Cloud storage devices are the best storage path.
[0066] 数据中心 22为集中式的数据处理设备, 对来自不同用户的不同类型的***信息 进行管理, 数据中心 22可以由多个服务器组成, 包括万维网服务器、 网络服务 器、 文件服务器、 打印服务器。 [0066] The data center 22 is a centralized data processing device that manages different types of system information from different users. The data center 22 can be composed of a plurality of servers, including a web server, a web server, a file server, and a print server.
[0067] 迁移管理服务器 23包括但不限于: 迁移引擎、 管理服务器、 Web服务器和其它 可以用来传送和接受的设备。 迁移引擎可以访问模板数据库 25, 以从中接收或 获取所需要的模板 (例如前述的升级模版) , 迁移引擎可实现图 1所示实施例的 升级控制方法。 [0067] The migration management server 23 includes, but is not limited to: a migration engine, a management server, a web server, and other devices that can be used for transmission and acceptance. The migration engine can access the template database 25 to receive or retrieve the required templates (e.g., the aforementioned upgrade templates) from which the migration engine can implement the upgrade control method of the embodiment shown in FIG.
[0068] 实施例二 [0068] Embodiment 2
[0069] 本发明提供一种应用于应用***迁移的升级控制设备。 如图 3所示, 上述升级 控制设备包括:  [0069] The present invention provides an upgrade control device applied to application system migration. As shown in Figure 3, the above upgrade control device includes:
[0070] ***信息获取单元 31, 用于获取当前待迁移的应用***的***信息, 其中, 所 述***信息包括: 用以指示所述应用***中待升级的各个程序的信息;  [0070] The system information acquiring unit 31 is configured to acquire system information of the current application system to be migrated, where the system information includes: information used to indicate each program to be upgraded in the application system;
[0071] 査找单元 32, 用于基于***信息获取单元 31获取的所述***信息, 在预设的模 板数据库中査找与所述***信息匹配的升级模板, 其中, 所述模板数据库中存 储两个以上升级模板, 每个升级模板包括: 与一个或两个以上程序相关的升级 方案;  [0071] The searching unit 32 is configured to search, according to the system information acquired by the system information acquiring unit 31, an upgrade template that matches the system information in a preset template database, where the template database stores two The above upgrade templates, each upgrade template includes: an upgrade plan related to one or two or more programs;
[0072] 执行单元 33, 用于当査找单元 32査找到与所述***信息匹配的升级模板吋, 根 据所述升级模板对所述应用***中待升级的程序进行升级处理。  [0072] The executing unit 33 is configured to: when the searching unit 32 finds the upgrade template that matches the system information, perform an upgrade process on the program to be upgraded in the application system according to the upgrade template.
[0073] 可选的, 所述***信息还包括: 用以指示待升级的各个程序之间的依赖关系的 信息, 并且, 所述***信息以图形表示, 所述升级模板还包括: 以图形表示的 一个或两个以上程序的依赖关系; [0073] Optionally, the system information further includes: indicating a dependency relationship between each program to be upgraded Information, and the system information is graphically represented, and the upgrade template further includes: a dependency relationship of one or two programs represented by a graphic;
[0074] 査找单元 32具体用于: 基于图像相似度算法和所述***信息获取单元获取的所 述***信息, 在预设的模板数据库中査找与所述***信息匹配的升级模板。  The searching unit 32 is specifically configured to: search, according to the image similarity algorithm and the system information acquired by the system information acquiring unit, an upgrade template that matches the system information in a preset template database.
[0075] 进一步, 査找单元 32包括: 分割单元, 用于将表示所述***信息的图形通过聚 类算法分割为两个以上子图; 子査找单元, 用于针对每个子图, 基于图像相似 度算法在预设的模板数据库中査找与各个子图匹配的升级模板。  [0075] Further, the searching unit 32 includes: a dividing unit, configured to divide the graphic representing the system information into two or more sub-graphs by a clustering algorithm; and the sub-search unit, for each sub-picture, based on image similarity The algorithm finds an upgrade template matching each submap in a preset template database.
[0076] 可选的, 每个升级模板还包括: 至少一个危险指数, 其中, 所述危险指数用以 量化相应升级模板所包括的升级方案在至少一个应用***中执行的潜在风险, 所述危险指数与所述潜在风险成正相关。 执行单元 33还用于: 当査找单元 32査 找到与所述***信息匹配且与相同程序相关的两个以上升级模板吋, 根据所述 两个以上升级模板中危险指数最低的升级模板对所述应用***中的所述相同程 序进行升级处理。  [0076] Optionally, each upgrade template further includes: at least one risk index, wherein the risk index is used to quantify a potential risk performed by the upgrade solution included in the corresponding upgrade template in the at least one application system, the danger The index is positively correlated with the potential risk. The executing unit 33 is further configured to: when the searching unit 32 finds two or more upgrade templates that match the system information and are related to the same program, according to the upgrade template with the lowest risk index among the two or more upgrade templates The same procedure in the application system is used for the upgrade process.
[0077] 可选的, 本发明实施例中的升级控制设备还包括: 确定单元, 用于当査找单元 32査找不到与所述***信息匹配的升级模板吋, 确定所述应用***中待升级的 各个程序之间的依赖关系; 生成单元, 用于根据所述应用***中待升级的各个 程序之间的依赖关系, 生成与所述应用***中待升级的程序相关的升级方案; 存储单元, 用于以升级模板的形式存储生成的升级方案, 以便后续调用存储的 升级方案。  [0077] Optionally, the upgrade control device in the embodiment of the present invention further includes: a determining unit, configured to: when the searching unit 32 does not find the upgrade template that matches the system information, determine that the application system is to be upgraded And a generating unit, configured to generate, according to the dependencies between the programs to be upgraded in the application system, an upgrade scheme related to the program to be upgraded in the application system; Used to store the generated upgrade scenario in the form of an upgrade template for subsequent recall of the stored upgrade scenario.
[0078] 需要说明的是, 本发明实施例中的升级控制设备可以为独立的设备, 也可以集 成在诸如迁移管理设备 (例如迁移管理服务器) 中, 此处不作限定。  [0078] It should be noted that the upgrade control device in the embodiment of the present invention may be an independent device, or may be integrated in a migration management device (for example, a migration management server), which is not limited herein.
[0079] 应理解, 本发明实施例中的升级控制设备可以用于实现上述方法实施例中的全 部技术方案, 其各个功能模块的功能可以根据上述方法实施例中的方法具体实 现, 其具体实现过程可参照上述实施例中的相关描述, 此处不再赘述。  [0079] It should be understood that the upgrade control device in the embodiment of the present invention may be used to implement all the technical solutions in the foregoing method embodiments, and the functions of the respective functional modules may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation thereof is implemented. For the process, reference may be made to the related description in the foregoing embodiments, and details are not described herein again.
[0080] 由上可见, 本发明实施例中预先设定好与程序相关的升级方案, 针对待迁移的 应用***, 获取该应用***的***信息, 基于该***信息在预设的模板数据库 中査找与该***信息匹配的升级模板, 当査找到与该***信息匹配的升级模板 吋, 根据査找到的升级模板对该应用***中待升级的程序进行升级处理。 本发 明方案通过在模板数据库中预设升级模板, 使得在应用***需要迁移吋, 可以 复用模板数据库中匹配的升级模板, 而无需工程人员每次都依赖自身的经验对 应用***中的程序进行升级, 在一定程度上能够提高应用***迁移场景下的升 级效率。 [0080] It can be seen that, in the embodiment of the present invention, the program-related upgrade solution is preset, and the system information of the application system is obtained for the application system to be migrated, and the system information is searched in the preset template database. The upgrade template that matches the system information is upgraded according to the upgrade template that is to be upgraded. This hair By defaulting the upgrade template in the template database, the upgrade template can be reused in the template database after the application system needs to be migrated, without the need for engineers to upgrade the programs in the application system each time depending on their own experience. To a certain extent, it can improve the upgrade efficiency in the application system migration scenario.
[0081] 实施例三  Embodiment 3
[0082] 图 4是本发明一实施例提供的应用于应用***迁移的升级控制设备的示意图。  4 is a schematic diagram of an upgrade control device applied to an application system migration according to an embodiment of the present invention.
如图 4所示, 该实施例的升级控制设备 4包括: 处理器 40、 存储器 41以及存储在 存储器 41中并可在处理器 40上运行的计算机程序 42, 例如升级控制程序。 处理 器 40执行计算机程序 42吋实现上述各个方法实施例中的升级控制方法, 例如图 1 所示的步骤 101~103。 或者, 计算机程序 42可以被分割成一个或多个模块 /单元, 上述一个或者多个模块 /单元被存储在存储器 41中, 并由处理器 40执行, 以完成 本发明。 上述一个或多个模块 /单元可以是能够完成特定功能的一系列计算机程 序指令段, 该指令段用于描述计算机程序 42在升级控制设备 4中的执行过程。 例 如, 计算机程序 42可以被分割成如图 3所示的***信息获取单元 31、 査找单元 32 和执行单元 33, ***信息获取单元 31、 査找单元 32和执行单元 33的功能可以参 照图 3所示实施例中的描述, 此处不再赘述。  As shown in FIG. 4, the upgrade control device 4 of this embodiment includes: a processor 40, a memory 41, and a computer program 42, such as an upgrade control program, stored in the memory 41 and operable on the processor 40. The processor 40 executes the computer program 42 to implement the upgrade control method in each of the above method embodiments, such as steps 101 to 103 shown in FIG. Alternatively, computer program 42 may be partitioned into one or more modules/units, which are stored in memory 41 and executed by processor 40 to perform the present invention. The one or more modules/units described above may be a series of computer program instruction segments capable of performing a particular function, which is used to describe the execution of the computer program 42 in the upgrade control device 4. For example, the computer program 42 can be divided into the system information acquiring unit 31, the searching unit 32, and the executing unit 33 as shown in FIG. 3, and the functions of the system information acquiring unit 31, the searching unit 32, and the executing unit 33 can be referred to FIG. Descriptions in the embodiments are not described herein again.
[0083] 升级控制设备 4可包括, 但不仅限于处理器 40、 存储器 41。 本领域技术人员可 以理解, 图 4仅仅是升级控制设备 4的示例, 并不构成对升级控制设备 4的限定, 可以包括比图示更多或更少的部件, 或者组合某些部件, 或者不同的部件, 例 如升级控制设备 4还可以包括输入输出设备、 网络接入设备、 总线等。  [0083] The upgrade control device 4 may include, but is not limited to, the processor 40 and the memory 41. It will be understood by those skilled in the art that FIG. 4 is only an example of the upgrade control device 4, and does not constitute a limitation on the upgrade control device 4. It may include more or less components than those illustrated, or may combine some components, or different. The components, such as the upgrade control device 4, may also include input and output devices, network access devices, buses, and the like.
[0084] 所称处理器 40可以是中央处理单元 (Central Processing Unit, CPU) , 还可以是其 他通用处理器、 数字信号处理器(Digital Signal Processor, DSP)、 专用集成电路 (Application Specific Integrated Circuit, ASIC)、 现成可编程门阵列  The processor 40 may be a central processing unit (CPU), or may be another general-purpose processor, a digital signal processor (DSP), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-to-use programmable gate array
(Field-Programmable Gate Array , FPGA)或者其他可编程逻辑器件、 分立门或者 晶体管逻辑器件、 分立硬件组件等。 通用处理器可以是微处理器或者该处理器 也可以是任何常规的处理器等。  (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
[0085] 上述存储器 41可以是升级控制设备 4的内部存储单元, 例如升级控制设备 4的硬 盘或内存。 上述存储器 41也可以是升级控制设备 4的外部存储设备, 例如升级控 制设备 4上配备的插接式硬盘, 智能存储卡 (Smart Media Card, SMC) , 安全数 字 (Secure Digital, SD) 卡, 闪存卡 (Flash Card) 等。 进一步地, 上述存储器 41 还可以既包括升级控制设备 4的内部存储单元也包括外部存储设备。 存储器 41用 于存储上述计算机程序以及升级控制设备 4所需的其他程序和数据。 存储器 41还 可以用于暂吋地存储已经输出或者将要输出的数据。 [0085] The above-described memory 41 may be an internal storage unit of the upgrade control device 4, such as a hard disk or a memory of the upgrade control device 4. The above memory 41 may also be an external storage device of the upgrade control device 4, such as an upgrade control. The plug-in hard disk equipped with the device 4, a smart memory card (SMC), a Secure Digital (SD) card, a flash card (Flash Card), and the like. Further, the above-mentioned memory 41 may also include both an internal storage unit of the upgrade control device 4 and an external storage device. The memory 41 is used to store the above computer program and other programs and data required to upgrade the control device 4. The memory 41 can also be used to temporarily store data that has been output or is about to be output.
[0086] 所属领域的技术人员可以清楚地了解到, 为了描述的方便和简洁, 仅以上述各 功能单元、 模块的划分进行举例说明, 实际应用中, 可以根据需要而将上述功 能分配由不同的功能单元、 模块完成, 即将所述设备的内部结构划分成不同的 功能单元或模块, 以完成以上描述的全部或者部分功能。 实施例中的各功能单 元、 模块可以集成在一个处理单元中, 也可以是各个单元单独物理存在, 也可 以两个或两个以上单元集成在一个单元中, 上述集成的单元既可以采用硬件的 形式实现, 也可以采用软件功能单元的形式实现。 另外, 各功能单元、 模块的 具体名称也只是为了便于相互区分, 并不用于限制本申请的保护范围。  [0086] It will be clearly understood by those skilled in the art that, for convenience and brevity of description, only the division of each functional unit and module described above is exemplified. In practical applications, the above functions may be assigned differently according to needs. The functional unit and the module are completed, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit, and the integrated unit may be implemented by hardware. Formal implementation can also be implemented in the form of software functional units. In addition, the specific names of the respective functional units and modules are only for the purpose of facilitating mutual differentiation, and are not intended to limit the scope of protection of the present application.
[0087] 在上述实施例中, 对各个实施例的描述都各有侧重, 某个实施例中没有详述或 记载的部分, 可以参见其它实施例的相关描述。  [0087] In the above-mentioned embodiments, the descriptions of the various embodiments are different, and the parts that are not detailed or described in the specific embodiments may be referred to the related descriptions of other embodiments.
[0088] 本领域普通技术人员可以意识到, 结合本文中所公幵的实施例描述的各示例的 单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结合来实现 。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特定应用和设 计约束条件。 专业技术人员可以对每个特定的应用来使用不同方法来实现所描 述的功能, 但是这种实现不应认为超出本发明的范围。  [0088] Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in a combination of electronic hardware or computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
[0089] 在本发明所提供的实施例中, 应该理解到, 所揭露的设备和方法, 可以通过其 它的方式实现。 例如, 以上所描述的设备实施例仅仅是示意性的, 例如, 所述 模块或单元的划分, 仅仅为一种逻辑功能划分, 实际实现吋可以有另外的划分 方式, 例如多个单元或组件可以结合或者可以集成到另一个***, 或一些特征 可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直接耦合或 通讯连接可以是通过一些接口, 装置或单元的间接耦合或通讯连接, 可以是电 性, 机械或其它的形式。  [0089] In the embodiments provided by the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be used. Combined or can be integrated into another system, or some features can be ignored, or not executed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
[0090] 所述作为分离部件说明的单元可以是或者也可以不是物理上分幵的, 作为单元 显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可 以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或者全部单元 来实现本实施例方案的目的。 [0090] The unit described as a separate component may or may not be physically distributed as a unit The displayed components may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
[0091] 所述集成的模块 /单元如果以软件功能单元的形式实现并作为独立的产品销售 或使用吋, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发 明实现上述实施例方法中的全部或部分流程, 也可以通过计算机程序来指令相 关的硬件来完成, 所述的计算机程序可存储于一计算机可读存储介质中, 该计 算机程序在被处理器执行吋, 可实现上述各个方法实施例的步骤。 其中, 所述 计算机程序包括计算机程序代码, 所述计算机程序代码可以为源代码形式、 对 象代码形式、 可执行文件或某些中间形式等。 所述计算机可读介质可以包括: 能够携带所述计算机程序代码的任何实体或装置、 记录介质、 u盘、 移动硬盘、 磁碟、 光盘、 计算机存储器、 只读存储器 (ROM, Read-Only Memory) 、 随机 存取存储器 (RAM, Random Access Memory) 、 电载波信号、 电信信号以及软 件分发介质等。 需要说明的是, 所述计算机可读介质包含的内容可以根据司法 管辖区内立法和专利实践的要求进行适当的增减, 例如在某些司法管辖区, 根 据立法和专利实践, 计算机可读介质不包括是电载波信号和电信信号。  [0091] The integrated module/unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the present invention implements all or part of the processes in the foregoing embodiments, and may also be completed by a computer program to instruct related hardware. The computer program may be stored in a computer readable storage medium. After the program is executed by the processor, the steps of the various method embodiments described above can be implemented. The computer program includes computer program code, and the computer program code may be in the form of a source code, an object code, an executable file, or some intermediate form. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a Read-Only Memory (ROM). , Random Access Memory (RAM), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media It does not include electrical carrier signals and telecommunication signals.
[0092] 以上所述实施例仅用以说明本发明的技术方案, 而非对其限制; 尽管参照前述 实施例对本发明进行了详细的说明, 本领域的普通技术人员应当理解: 其依然 可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分技术特征进 行等同替换; 而这些修改或者替换, 并不使相应技术方案的本质脱离本发明各 实施例技术方案的精神和范围, 均应包含在本发明的保护范围之内。 The above described embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced; and the modifications or substitutions do not deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. It should be included in the scope of protection of the present invention.

Claims

权利要求书 Claim
[权利要求 1] 一种应用于应用***迁移的升级控制方法, 其特征在于, 包括: 获取当前待迁移的应用***的***信息, 其中, 所述***信息包括: 用以指示所述应用***中待升级的各个程序的信息;  [Claim 1] An upgrade control method applied to an application system migration, comprising: acquiring system information of an application system to be migrated, wherein the system information includes: Information about each program to be upgraded;
基于获取的所述***信息, 在预设的模板数据库中査找与所述***信 息匹配的升级模板, 其中, 所述模板数据库中存储两个以上升级模板 , 每个升级模板包括: 与一个或两个以上程序相关的升级方案; 若査找到与所述***信息匹配的升级模板, 则根据所述升级模板对所 述应用***中待升级的程序进行升级处理。  And searching, according to the acquired system information, an upgrade template that matches the system information, where the template database stores two or more upgrade templates, where each upgrade template includes: one or two If the upgrade template is matched with the system information, the program to be upgraded in the application system is upgraded according to the upgrade template.
[权利要求 2] 根据权利要求 1所述的升级控制方法, 其特征在于, 所述***信息还 包括: 用以指示待升级的各个程序之间的依赖关系的信息, 并且, 所 述***信息以图形表示, 所述升级模板还包括: 以图形表示的一个或 两个以上程序的依赖关系;  [Claim 2] The upgrade control method according to claim 1, wherein the system information further includes: information indicating a dependency relationship between the programs to be upgraded, and the system information is Graphically, the upgrade template further includes: a dependency relationship of one or more programs represented graphically;
所述基于获取的所述***信息, 在预设的模板数据库中査找与所述系 统信息匹配的升级模板, 为:  And searching, according to the acquired system information, an upgrade template that matches the system information in a preset template database, where:
基于图像相似度算法和获取的所述***信息, 在预设的模板数据库中 査找与所述***信息匹配的升级模板。  Based on the image similarity algorithm and the acquired system information, an upgrade template matching the system information is searched in a preset template database.
[权利要求 3] 根据权利要求 2所述的升级控制方法, 其特征在于, 所述基于图像相 似度算法和获取的所述***信息, 在预设的模板数据库中査找与所述 ***信息匹配的升级模板, 包括: The method for updating the control according to claim 2, wherein the image similarity algorithm and the acquired system information are searched for in the preset template database to match the system information. Upgrade templates, including:
将表示所述***信息的图形通过聚类算法分割为两个以上子图; 针对每个子图, 基于图像相似度算法在预设的模板数据库中査找与各 个子图匹配的升级模板。  The graphic representing the system information is divided into two or more sub-graphs by a clustering algorithm; for each sub-picture, an upgrade template matching each sub-picture is searched in a preset template database based on the image similarity algorithm.
[权利要求 4] 根据权利要求 1至 3任一项所述的升级控制方法, 其特征在于, 每个升 级模板还包括: 至少一个危险指数, 其中, 所述危险指数用以量化相 应升级模板所包括的升级方案在至少一个应用***中执行的潜在风险 , 所述危险指数与所述潜在风险成正相关; [Attachment 4] The upgrade control method according to any one of claims 1 to 3, wherein each upgrade template further comprises: at least one risk index, wherein the risk index is used to quantify the corresponding upgrade template a potential risk that the upgrade plan includes execution in at least one application system, the risk index being positively correlated with the potential risk;
所述若査找到与所述***信息匹配的升级模板, 则根据所述升级模板 对所述应用***中待升级的程序进行升级处理, 包括: 若査找到与所述***信息匹配且与相同程序相关的两个以上升级模板 , 则根据所述两个以上升级模板中危险指数最低的升级模板对所述应 用***中的所述相同程序进行升级处理。 If the upgrade template matching the system information is found, according to the upgrade template Upgrading the program to be upgraded in the application system includes: if two or more upgrade templates related to the system information and related to the same program are found, the risk index is the lowest according to the two or more upgrade templates The upgrade template upgrades the same program in the application system.
[权利要求 5] 根据权利要求 1至 3任一项所述的升级控制方法, 其特征在于, 所述基 于获取的所述***信息, 在预设的模板数据库中査找与所述***信息 匹配的升级模板, 之后包括:  [Claim 5] The upgrade control method according to any one of claims 1 to 3, wherein, based on the acquired system information, searching for a matching template information in a preset template database Upgrade the template, then include:
若査找不到与所述***信息匹配的升级模板, 则确定所述应用***中 待升级的各个程序之间的依赖关系;  If an upgrade template matching the system information is not found, determining a dependency relationship between the programs to be upgraded in the application system;
根据所述应用***中待升级的各个程序之间的依赖关系, 生成与所述 应用***中待升级的程序相关的升级方案;  Generating an upgrade plan related to the program to be upgraded in the application system according to a dependency relationship between the programs to be upgraded in the application system;
以升级模板的形式存储生成的升级方案, 以便后续调用存储的升级方 案。  The generated upgrade scenario is stored in the form of an upgrade template for subsequent recall of the stored upgrade scenario.
[权利要求 6] —种应用于应用***迁移的升级控制设备, 其特征在于, 包括: ***信息获取单元, 用于获取当前待迁移的应用***的***信息, 其 中, 所述***信息包括: 用以指示所述应用***中待升级的各个程序 的信息;  [Claim 6] An upgrade control device applied to an application system migration, comprising: a system information acquisition unit, configured to acquire system information of an application system to be migrated, where the system information includes: To indicate information of each program to be upgraded in the application system;
査找单元, 用于基于所述***信息获取单元获取的所述***信息, 在 预设的模板数据库中査找与所述***信息匹配的升级模板, 其中, 所 述模板数据库中存储两个以上升级模板, 每个升级模板包括: 与一个 或两个以上程序相关的升级方案;  a search unit, configured to search, according to the system information acquired by the system information acquiring unit, an upgrade template that matches the system information in a preset template database, where the template database stores two or more upgrade templates , each upgrade template includes: an upgrade plan associated with one or more programs;
执行单元, 用于当所述査找单元査找到与所述***信息匹配的升级模 板吋, 根据所述升级模板对所述应用***中待升级的程序进行升级处 理。  And an execution unit, configured to: when the search unit finds an upgrade template that matches the system information, perform an upgrade process on the application to be upgraded in the application system according to the upgrade template.
[权利要求 7] 根据权利要求 6所述的升级控制设备, 其特征在于, 所述***信息还 包括: 用以指示待升级的各个程序之间的依赖关系的信息, 并且, 所 述***信息以图形表示, 所述升级模板还包括: 以图形表示的一个或 两个以上程序的依赖关系; 所述査找单元具体用于: 基于图像相似度算法和所述***信息获取单 元获取的所述***信息, 在预设的模板数据库中査找与所述***信息 匹配的升级模板。 [Claim 7] The upgrade control device according to claim 6, wherein the system information further includes: information indicating a dependency relationship between the programs to be upgraded, and the system information is Graphically, the upgrade template further includes: a dependency relationship of one or more programs represented graphically; The searching unit is specifically configured to: search, according to the image similarity algorithm and the system information acquired by the system information acquiring unit, an upgrade template that matches the system information in a preset template database.
[权利要求 8] 根据权利要求 7所述的升级控制设备, 其特征在于, 所述査找单元包 括:  [Claim 8] The upgrade control device according to claim 7, wherein the search unit comprises:
分割单元, 用于将表示所述***信息的图形通过聚类算法分割为两个 以上子图;  a dividing unit, configured to divide the graphic representing the system information into two or more sub-pictures by using a clustering algorithm;
子査找单元, 用于针对每个子图, 基于图像相似度算法在预设的模板 数据库中査找与各个子图匹配的升级模板。  The sub-search unit is configured to search for an upgrade template matching each sub-picture in the preset template database based on the image similarity algorithm for each sub-picture.
[权利要求 9] 一种应用于应用***迁移的升级控制设备, 包括: 存储器、 处理器以 及存储在所述存储器中并可在所述处理器上运行的计算机程序, 其特 征在于, 所述处理器执行所述计算机程序吋实现如权利要求 1至 5任意 一项所述方法的步骤。  [Claim 9] An upgrade control device applied to application system migration, comprising: a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processing The computer program is executed to implement the steps of the method of any one of claims 1 to 5.
[权利要求 10] 一种计算机可读存储介质, 所述计算机可读存储介质存储有计算机程 序, 其特征在于, 所述计算机程序被处理器执行吋实现如权利要求 1 至 5任意一项所述方法的步骤。  [Claim 10] A computer readable storage medium storing a computer program, wherein the computer program is executed by a processor, implementing the method of any one of claims 1 to 5 The steps of the method.
PCT/CN2017/086264 2017-05-27 2017-05-27 Upgrade control method and upgrade control equipment applied to application system migration WO2018218399A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/086264 WO2018218399A1 (en) 2017-05-27 2017-05-27 Upgrade control method and upgrade control equipment applied to application system migration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/086264 WO2018218399A1 (en) 2017-05-27 2017-05-27 Upgrade control method and upgrade control equipment applied to application system migration

Publications (1)

Publication Number Publication Date
WO2018218399A1 true WO2018218399A1 (en) 2018-12-06

Family

ID=64454330

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/086264 WO2018218399A1 (en) 2017-05-27 2017-05-27 Upgrade control method and upgrade control equipment applied to application system migration

Country Status (1)

Country Link
WO (1) WO2018218399A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262657A (en) * 2008-04-29 2008-09-10 中兴通讯股份有限公司 Base station single-board upgrade system
CN102736926A (en) * 2011-04-14 2012-10-17 中兴通讯股份有限公司 Upgrade method, device and batch upgrade system based on task template
CN103257878A (en) * 2013-05-16 2013-08-21 浪潮通信信息***有限公司 Cross-platform smooth transfer method of application program based on Cloud calculation
US20150113531A1 (en) * 2013-10-18 2015-04-23 Power-All Networks Limited System for migrating virtual machine and method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262657A (en) * 2008-04-29 2008-09-10 中兴通讯股份有限公司 Base station single-board upgrade system
CN102736926A (en) * 2011-04-14 2012-10-17 中兴通讯股份有限公司 Upgrade method, device and batch upgrade system based on task template
CN103257878A (en) * 2013-05-16 2013-08-21 浪潮通信信息***有限公司 Cross-platform smooth transfer method of application program based on Cloud calculation
US20150113531A1 (en) * 2013-10-18 2015-04-23 Power-All Networks Limited System for migrating virtual machine and method thereof

Similar Documents

Publication Publication Date Title
US10333981B2 (en) Method and apparatus for security checking of image for container
US9361092B1 (en) Recommending upgrade actions during migration
US10402746B2 (en) Computing instance launch time
US9081640B2 (en) Apparatus, method and medium for calculating an update order on a service level objective
US20160155131A1 (en) System and method for fully testing a system before and after an upgrade to verify full use case compliance
CN108762898B (en) Thread interface management method, terminal equipment and computer readable storage medium
US10621003B2 (en) Workflow handling in a multi-tenant cloud environment
CN107368353B (en) Method and device for realizing hot addition of virtual machine memory
US20150100961A1 (en) Operating Programs on a Computer Cluster
US20160011879A1 (en) Preconfiguring hardware and speeding up server discovery prior to bios boot
US9959157B1 (en) Computing instance migration
US9075965B2 (en) Execution-based license discovery and optimization
CN109165175B (en) Equipment identifier generation method and device
CN111966494A (en) Resource scheduling method and device, storage medium and electronic equipment
CN111966631A (en) Mirror image file generation method, system, equipment and medium capable of being rapidly distributed
CN113656503A (en) Data synchronization method, device and system and computer readable storage medium
CN107256167B (en) Upgrade control method and upgrade control equipment applied to application system migration
CN112256670A (en) Data migration method, terminal device and readable storage medium
US9716625B2 (en) Identifying compatible system configurations
CN109542398B (en) Business system generation method and device and computer readable storage medium
US20130247037A1 (en) Control computer and method for integrating available computing resources of physical machines
WO2018218399A1 (en) Upgrade control method and upgrade control equipment applied to application system migration
CN113849161A (en) Application control method and device, storage medium and electronic equipment
CN115150268A (en) Network configuration method and device of Kubernetes cluster and electronic equipment
CN114756527A (en) Method and device for expanding Redis cluster, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17911742

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17911742

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 25.08.2020)