CN112114839A - Method and system for rapid upgrade of standby environment - Google Patents
Method and system for rapid upgrade of standby environment Download PDFInfo
- Publication number
- CN112114839A CN112114839A CN201910536875.6A CN201910536875A CN112114839A CN 112114839 A CN112114839 A CN 112114839A CN 201910536875 A CN201910536875 A CN 201910536875A CN 112114839 A CN112114839 A CN 112114839A
- Authority
- CN
- China
- Prior art keywords
- upgrade
- standby
- data
- verification test
- version
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000012795 verification Methods 0.000 claims abstract description 51
- 238000012360 testing method Methods 0.000 claims abstract description 36
- 230000008569 process Effects 0.000 claims abstract description 31
- 230000010076 replication Effects 0.000 claims abstract description 22
- 238000005516 engineering process Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本发明公开了一种备用环境快速升级的方法和系统,能用较短时间完成升级备用系统,大大降低了备用系统的不可用风险。其技术方案为:主系统中的子系统在完成数据升级并验证测试能够上线时打上版本标签;主系统在可靠性验证通过后备系统开始升级,备系统在接收主系统数据复制的过程中自动判断是否接收到版本标签,若接收到版本标签则备系统接收主系统的数据复制过程结束,版本标签用于通过版本信息控制保证主备环境的一致性;备系统进行子系统应用部署、上线验证测试、可靠性验证并通过后备系统升级完成。
The invention discloses a method and system for rapid upgrade of the standby environment, which can complete the upgrade of the standby system in a short time, and greatly reduces the unavailability risk of the standby system. The technical scheme is as follows: the subsystems in the main system are marked with a version label when the data upgrade is completed and the verification test can go online; the main system starts to upgrade after the reliability verification passes the backup system, and the backup system automatically judges in the process of receiving the data replication of the main system. Whether the version label is received, if the version label is received, the data replication process of the standby system receiving the master system ends. The version label is used to ensure the consistency of the active and standby environments through version information control; the standby system performs subsystem application deployment and online verification testing , reliability verification and completed through backup system upgrade.
Description
技术领域technical field
本发明涉及备用系统升级的技术,具体涉及备用环境的快速升级的方法和系统。The present invention relates to a technology for upgrading a standby system, in particular to a method and system for rapidly upgrading a standby environment.
背景技术Background technique
通常一个复杂的核心业务系统会有大量的子系统,而且系统升级比较频繁,每次升级都会涉及到主备环境依次升级。在升级完主系统回切业务服务之后,都需要花费较多时间来验证主系统的可靠性和稳定性,等主系统稳定后再开始着手升级备用环境。Usually, a complex core business system has a large number of subsystems, and the system is upgraded frequently. Each upgrade involves the sequential upgrade of the active and standby environments. After upgrading the main system and switching back to business services, it takes a lot of time to verify the reliability and stability of the main system, and then start upgrading the standby environment after the main system is stable.
现有技术中一般采用数据库复制工具把主系统的升级数据和用于验证主系统可靠性的时间段内的回切业务数据同步到备用系统。但由于数据量巨大,数据复制需要耗费较长时间才能完全同步到备用系统,在这期间备用系统都处于没有经过验证的、不可用状态。在这期间如果主系统遇到了任何严重问题,需要切换其它环境的时候,就会出现无环境可用的境地,风险极大。因此,目前业界需要一种尽量缩短备用系统的不可用时间的技术。In the prior art, a database replication tool is generally used to synchronize the upgrade data of the primary system and the switchback service data within the time period used to verify the reliability of the primary system to the standby system. However, due to the huge amount of data, it takes a long time for data replication to be fully synchronized to the standby system. During this period, the standby system is in an unverified and unavailable state. During this period, if the main system encounters any serious problems and needs to switch to other environments, there will be no environment available, and the risk is extremely high. Therefore, there is currently a need in the industry for a technology that minimizes the unavailable time of the backup system.
发明内容SUMMARY OF THE INVENTION
以下给出一个或多个方面的简要概述以提供对这些方面的基本理解。此概述不是所有构想到的方面的详尽综览,并且既非旨在指认出所有方面的关键性或决定性要素亦非试图界定任何或所有方面的范围。其唯一的目的是要以简化形式给出一个或多个方面的一些概念以为稍后给出的更加详细的描述之序。A brief summary of one or more aspects is presented below to provide a basic understanding of the aspects. This summary is not an exhaustive overview of all contemplated aspects and is neither intended to identify key or critical elements of all aspects nor attempt to delineate the scope of any or all aspects. Its sole purpose is to present some concepts of one or more aspects in a simplified form as a prelude to the more detailed description that is presented later.
本发明的目的在于解决上述问题,提供了一种备用环境快速升级的方法和系统,能用较短时间完成升级备用系统,大大降低了备用系统的不可用风险。The purpose of the present invention is to solve the above problems, and to provide a method and system for rapid upgrade of the standby environment, which can complete the upgrade of the standby system in a short time, and greatly reduces the unavailability risk of the standby system.
本发明的技术方案为:本发明揭示了一种备用环境快速升级的方法,包括:The technical scheme of the present invention is as follows: the present invention discloses a method for rapid upgrade of the standby environment, including:
主系统中的子系统在完成数据升级并验证测试能够上线时打上版本标签;The subsystems in the main system are marked with version tags when the data upgrade is completed and the verification test can be launched;
主系统在可靠性验证通过后备系统开始升级,备系统在接收主系统数据复制的过程中自动判断是否接收到版本标签,若接收到版本标签则备系统接收主系统的数据复制过程结束,版本标签用于通过版本信息控制保证主备环境的一致性;The primary system starts the upgrade after the backup system passes the reliability verification. The backup system automatically determines whether it has received the version label during the process of receiving the data copy of the primary system. If the version label is received, the backup system receives the data copy process of the primary system. It is used to ensure the consistency of the active and standby environments through version information control;
备系统进行子系统应用部署、上线验证测试、可靠性验证并通过后备系统升级完成。The backup system performs subsystem application deployment, online verification test, reliability verification, and is completed through the backup system upgrade.
根据本发明的备用环境快速升级的方法的一实施例,主系统在数据升级过程中,若上线验证测试不通过或者可靠性验证测试不通过则进行主系统回滚后重新开始主系统升级。According to an embodiment of the method for rapid upgrade of the standby environment of the present invention, during the data upgrade process of the main system, if the online verification test fails or the reliability verification test fails, the main system is rolled back and then the main system upgrade is restarted.
根据本发明的备用环境快速升级的方法的一实施例,备系统在数据升级过程中,若上线验证测试不通过或者可靠性验证测试不通过则进行备系统回滚后重新开始备系统升级。According to an embodiment of the method for rapid upgrade of the standby environment of the present invention, during the data upgrade process of the standby system, if the online verification test fails or the reliability verification test fails, the standby system is rolled back and the standby system upgrade is restarted.
根据本发明的备用环境快速升级的方法的一实施例,备系统中的各个子系统进行并行数据复制以提升效率。According to an embodiment of the method for rapid upgrade of the standby environment of the present invention, each subsystem in the standby system performs parallel data replication to improve efficiency.
本发明还揭示了一种备用环境快速升级的系统,包括:The invention also discloses a system for rapid upgrade of the standby environment, comprising:
主系统升级模块,主系统中的子系统在完成数据升级并验证测试能够上线时打上版本标签;The main system upgrade module, the subsystems in the main system are marked with version labels when the data upgrade is completed and the verification test can be launched;
主备系统数据复制模块,备系统在主系统通过可靠性验证后开始升级,备系统在接收主系统数据复制的过程中自动判断是否接收到版本标签,若接收到版本标签则备系统接收主系统的数据复制过程结束,版本标签用于通过版本信息控制保证主备环境的一致性;The data replication module of the active and standby systems. The standby system starts to upgrade after the main system passes the reliability verification. The standby system automatically determines whether it has received the version label during the process of receiving the data copy of the main system. If the version label is received, the standby system receives the main system. The data replication process is completed, and the version label is used to ensure the consistency of the active and standby environments through version information control;
备系统升级模块,备系统在经过子系统应用部署、上线验证测试、可靠性验证并通过后备系统升级完成。The backup system upgrade module, the backup system is completed after the subsystem application deployment, online verification test, reliability verification and the backup system upgrade.
根据本发明的备用环境快速升级的系统的一实施例,主系统升级模块被配置为主系统在数据升级过程中,若上线验证测试不通过或者可靠性验证测试不通过则进行主系统回滚后重新开始主系统升级。According to an embodiment of the system for rapid upgrade of the standby environment of the present invention, the main system upgrade module is configured to perform a rollback of the main system if the online verification test fails or the reliability verification test fails during the data upgrade process of the main system. Restart the main system upgrade.
根据本发明的备用环境快速升级的系统的一实施例,备系统升级模块被配置为备系统在数据升级过程中,若上线验证测试不通过或者可靠性验证测试不通过则进行备系统回滚后重新开始备系统升级。According to an embodiment of the system for rapid upgrade of the standby environment of the present invention, the standby system upgrade module is configured so that during the data upgrade process of the standby system, if the online verification test fails or the reliability verification test fails, the standby system is rolled back. Restart the standby system upgrade.
根据本发明的备用环境快速升级的系统的一实施例,备系统中的各个子系统进行并行数据复制以提升效率。According to an embodiment of the system for rapid upgrade of the standby environment of the present invention, each subsystem in the standby system performs parallel data replication to improve efficiency.
本发明还揭示了一种备用环境快速升级的系统,系统包括:The invention also discloses a system for rapid upgrade of the standby environment, the system includes:
处理器;以及processor; and
存储器,所述存储器被配置为存储一系列计算机可执行的指令以及与所述一系列计算机可执行的指令相关联的计算机可访问的数据,a memory configured to store a series of computer-executable instructions and computer-accessible data associated with the series of computer-executable instructions,
其中,当所述一系列计算机可执行的指令被所述处理器执行时,使得所述处理器进行前述的方法。Wherein, the series of computer-executable instructions, when executed by the processor, cause the processor to perform the aforementioned method.
本发明还揭示了一种非临时性计算机可读存储介质,所述非临时性计算机可读存储介质上存储有一系列计算机可执行的指令,当所述一系列可执行的指令被计算装置执行时,使得计算装置进行前述的方法。The present invention also discloses a non-transitory computer-readable storage medium, where a series of computer-executable instructions are stored on the non-transitory computer-readable storage medium, when the series of executable instructions are executed by a computing device , causing the computing device to perform the aforementioned method.
本发明对比现有技术有如下的有益效果:本发明通过在主系统数据升级完成后打上版本标签,版本标签用于后续判断备系统接收主系统数据复制的过程是否结束的条件。通过这一处理,本发明能够实现:Compared with the prior art, the present invention has the following beneficial effects: the present invention adds a version label after the main system data upgrade is completed, and the version label is used for the subsequent judgment as to whether the process of receiving the main system data replication by the standby system is over. Through this process, the present invention can realize:
1、本发明能快速升级备用系统,极大缩短了版本过程中的备用系统不可用时间,降低了无系统可用的危险。1. The present invention can quickly upgrade the backup system, greatly shorten the unavailable time of the backup system in the version process, and reduce the risk of no system being available.
2、本发明能够清晰的了解版本升级配置数据和业务操作数据的完成时刻,让系统升级过程变得可控。2. The present invention can clearly understand the completion time of version upgrade configuration data and business operation data, so that the system upgrade process becomes controllable.
3、本发明能够让整套复杂系统中的各个子系统具有明确的版本标签,在今后的系统运维和升级过程中也能有据可循。3. The present invention enables each subsystem in the entire complex system to have a definite version label, which can also be based on evidence in the future system operation, maintenance and upgrade process.
附图说明Description of drawings
在结合以下附图阅读本公开的实施例的详细描述之后,能够更好地理解本发明的上述特征和优点。在附图中,各组件不一定是按比例绘制,并且具有类似的相关特性或特征的组件可能具有相同或相近的附图标记。The above-described features and advantages of the present invention can be better understood after reading the detailed description of the embodiments of the present disclosure in conjunction with the following drawings. In the drawings, components are not necessarily drawn to scale and components with similar related characteristics or features may have the same or similar reference numerals.
图1示出了本发明的备用环境快速升级的方法的一实施例的流程图。FIG. 1 shows a flow chart of an embodiment of a method for rapid upgrade of a standby environment of the present invention.
图2示出了采用了本发明的备用环境快速升级方法的一个示例的时序图。FIG. 2 shows a sequence diagram of an example of the method for rapidly upgrading the standby environment using the present invention.
图3示出了主系统和备系统之间的数据传输示意图。FIG. 3 shows a schematic diagram of data transmission between the primary system and the backup system.
图4示出了本发明的备用环境快速升级的系统的一实施例的原理图。FIG. 4 shows a schematic diagram of an embodiment of the system for rapid upgrade of the standby environment of the present invention.
具体实施方式Detailed ways
以下结合附图和具体实施例对本发明作详细描述。注意,以下结合附图和具体实施例描述的诸方面仅是示例性的,而不应被理解为对本发明的保护范围进行任何限制。The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. Note that the aspects described below in conjunction with the accompanying drawings and specific embodiments are only exemplary, and should not be construed as any limitation to the protection scope of the present invention.
图1示出了本发明的备用环境快速升级的方法的一实施例的流程。请参见图1,下面是对本实施例的方法的各实施步骤的详细描述。FIG. 1 shows the flow of an embodiment of the method for rapid upgrade of the standby environment of the present invention. Referring to FIG. 1 , the following is a detailed description of each implementation step of the method of this embodiment.
步骤S101:主系统开始升级。Step S101: The main system starts to upgrade.
步骤S102:主系统中的各子系统进行数据升级。Step S102: each subsystem in the main system performs data upgrade.
步骤S103:主系统中的各子系统应用部署。Step S103: Application deployment of each subsystem in the main system.
步骤S104:主系统进行上线验证测试。Step S104: the main system performs an online verification test.
步骤S105:判断主系统能否上线。如果能则运行步骤S106,如果不能则运行步骤S118。Step S105: Determine whether the main system can go online. If yes, go to step S106, if not, go to step S118.
步骤S106:主系统打上版本标签。Step S106: the main system is marked with a version label.
版本标签用于后续判断备系统接收主系统数据复制的过程是否结束的条件。The version label is used as a condition for subsequently judging whether the process of receiving the data replication of the primary system by the standby system ends.
步骤S107:对主系统进行可靠性验证。Step S107: Perform reliability verification on the main system.
步骤S108:判断是否稳定。若稳定则运行步骤S109,若不稳定则运行步骤S118。Step S108: Determine whether it is stable. If it is stable, go to step S109, and if it is not stable, go to step S118.
步骤S109:备系统开始升级。Step S109: the standby system starts to upgrade.
步骤S110:备系统接收主系统数据复制。Step S110: The backup system receives the data copy of the master system.
图3示出了主系统复制到备系统的数据示例,比如CRM/BRM/WEB/HR子系统的数据复制(包括配置数据、版本标签和业务数据)。FIG. 3 shows an example of data replicated from the primary system to the standby system, such as data replication of the CRM/BRM/WEB/HR subsystem (including configuration data, version tags and business data).
步骤S111:判断是否接收到版本标签,若接收到版本标签则运行步骤S112,若没有接收到则运行步骤S110。Step S111: Determine whether a version label is received, if the version label is received, go to step S112, and if not, go to step S110.
步骤S112:备系统的各子系统应用部署。Step S112: Application deployment of each subsystem of the standby system.
步骤S113:备系统进行上线验证测试。Step S113: The standby system performs an online verification test.
步骤S114:判断备系统的系统能否上线,如果能够上线则运行步骤S115,如果不能上线则运行步骤S117。Step S114: Determine whether the system of the standby system can go online, if it can go online, go to step S115, and if it cannot go online, go to step S117.
步骤S115:备系统进行可靠性验证。Step S115: The standby system performs reliability verification.
步骤S116:判断备系统是否稳定,若稳定则代表升级完成,流程结束,若不稳定则运行步骤S117。Step S116 : Determine whether the standby system is stable, if it is stable, it means that the upgrade is completed, and the process ends, and if it is unstable, go to Step S117 .
步骤S117:备系统回滚。然后运行步骤S109。Step S117 : the standby system is rolled back. Then step S109 is executed.
步骤S118:主系统回滚。然后运行步骤S101。Step S118: the primary system is rolled back. Then step S101 is executed.
主/备系统中包括多个子系统,备系统的升级主要靠主系统升级过程产生的数据复制来完成。在备系统的数据复制过程中,很难清晰的知道每个子系统版本升级完成的准确时间点,所以现有的做法是等所有子系统的版本升级数据和环境验证期间的业务数据都被复制到备用环境才认为所有业务的版本升级是完成了,继而才会对备环境做验证工作。由此可见,确定各个业务子系统的准确升级完成时间变得尤其关键。The active/standby system includes multiple subsystems, and the upgrade of the standby system is mainly completed by data replication generated during the upgrade process of the main system. During the data replication process of the standby system, it is difficult to clearly know the exact time when the version upgrade of each subsystem is completed. Therefore, the existing practice is to wait for the version upgrade data of all subsystems and the business data during environmental verification to be copied to the The standby environment considers that the version upgrade of all services is completed, and then the standby environment is verified. It can be seen that it is particularly critical to determine the exact upgrade completion time of each business subsystem.
本发明考虑到主系统在升级测试完成后会有一个节点:上线(Go Live),如图2所示在11/2日临晨6:00会宣布主系统Go Live,就在这个时间点对各个子应用系统打一个标签,例如在客户关系管理系统(CRM)创建一张版本标识表:T_CRM_VERSION,并在这张表里打上标签数据:6.8,再加上Go Live时刻的时间戳。这样从11/1日16:00至11/2日6:00期间的数据都是版本升级的配置数据。The present invention takes into account that the main system will have a node after the upgrade test is completed: Go Live. As shown in Figure 2, the main system Go Live will be announced at 6:00 in the morning on November 2. Each sub-application system is marked with a label, for example, a version identification table is created in the customer relationship management system (CRM): T_CRM_VERSION, and the label data is marked in this table: 6.8, plus the timestamp of the Go Live moment. In this way, the data from 16:00 on 11/1 to 6:00 on 11/2 is the configuration data of the version upgrade.
在备系统的版本标识表:T_CRM_VERSION上设置一个触发器,当备系统收到主系统写入的标志位时(如备系统从11/4日22:00开始复制,23:00就发现T_CRM_VERSION表的标签数据6.8和主系统上线的时间戳已经复制过来),触发器会调用数据库的utl_file组件来写入一个操作系统本地文件。Set a trigger on the version identification table of the standby system: T_CRM_VERSION, when the standby system receives the flag bit written by the main system (for example, the standby system starts to replicate from 22:00 on 11/4, and finds the T_CRM_VERSION table at 23:00). The tag data of 6.8 and the time stamp of the main system online have been copied over), the trigger will call the utl_file component of the database to write to an operating system local file.
操作系统会有一个每5秒进行扫描的代码来检测该文件是否有被写入,一旦发现有写入,将会发送一个邮件或短消息通知工作人员,备系统已经可以开始进行验证工作了,这期间无需人工的介入,实现自动化的处理。The operating system will have a code that scans every 5 seconds to detect whether the file has been written. Once it is found to be written, it will send an email or short message to notify the staff that the backup system is ready for verification. During this period, no manual intervention is required, and automatic processing is realized.
从图2所示内容可以看出,原来备系统从11/4 22:00至数据复制并测试验证完成结束要29小时,如果采用新的技术方案,配置数据复制只需要1小时,加上后期的测试验证,在11/5 11:00就可以宣布备系统升级完成,也就是说本发明示例的备系统的升级阶段的不可用时间只需要13小时,比原来的方案节约了16小时的不可用时间。As shown in Figure 2, it can be seen that the original backup system takes 29 hours from 11/4 22:00 to the completion of data replication and test verification. If the new technical solution is adopted, it only takes 1 hour to configure data replication, plus the later period It can be announced that the upgrade of the standby system is completed at 11:00 on 11/5, that is to say, the unavailability time of the upgrade stage of the standby system of the example of the present invention is only 13 hours, which saves 16 hours of unavailability compared to the original solution. use time.
图4示出了本发明的备用环境快速升级的系统的一实施例的原理,请参见图4,本实施例的系统包括:主系统升级模块、主备系统数据复制模块、备系统升级模块。FIG. 4 shows the principle of an embodiment of the system for rapid upgrade of the standby environment according to the present invention. Referring to FIG. 4 , the system of this embodiment includes: a main system upgrade module, an active and standby system data replication module, and a standby system upgrade module.
主系统升级模块用于主系统中的子系统在完成数据升级并验证测试能够上线时打上版本标签。主系统升级模块被配置为主系统在数据升级过程中,若上线验证测试不通过或者可靠性验证测试不通过则进行主系统回滚后重新开始主系统升级。The main system upgrade module is used to label the subsystems in the main system with version labels when the data upgrade is completed and the verification test can be launched. The main system upgrade module is configured as the main system. During the data upgrade process, if the online verification test fails or the reliability verification test fails, the main system is rolled back and the main system upgrade is restarted.
主备系统数据复制模块用于备系统在主系统通过可靠性验证后开始升级,备系统在接收主系统数据复制的过程中判断是否接收到版本标签,若接收到版本标签则备系统接收主系统的数据复制过程结束。The data replication module of the active and standby systems is used for the standby system to start the upgrade after the main system passes the reliability verification. The standby system determines whether it has received the version label during the process of receiving the data copy of the main system. If the version label is received, the standby system receives the main system. The data copy process ends.
备系统升级模块用于备系统在经过子系统应用部署、上线验证测试、可靠性验证并通过后备系统升级完成。备系统升级模块被配置为备系统在数据升级过程中,若上线验证测试不通过或者可靠性验证测试不通过则进行备系统回滚后重新开始备系统升级。The backup system upgrade module is used for the backup system to be upgraded after the subsystem application deployment, online verification test, reliability verification and backup system upgrade. The backup system upgrade module is configured as the backup system. During the data upgrade process, if the online verification test fails or the reliability verification test fails, the backup system is rolled back and the backup system upgrade is restarted.
此外,本发明还公开了一种备用环境快速升级的系统,系统包括处理器以及存储器,存储器被配置为存储一系列计算机可执行的指令以及与这一系列计算机可执行的指令相关联的计算机可访问的数据。当这一系列计算机可执行的指令被处理器执行时,使得处理器进行如图1所示实施例运行的方法。该方法的具体步骤已经在前述内容中详述,在此不再赘述。In addition, the present invention also discloses a system for rapid upgrade of the standby environment, the system includes a processor and a memory, the memory is configured to store a series of computer-executable instructions and the computer-executable instructions associated with the series of computer-executable instructions. access data. The series of computer-executable instructions, when executed by the processor, cause the processor to perform the method performed by the embodiment shown in FIG. 1 . The specific steps of the method have been described in detail in the foregoing content, and are not repeated here.
此外,本发明还公开了一种非临时性计算机可读存储介质,非临时性计算机可读存储介质上存储有一系列计算机可执行的指令,当这一系列可执行的指令被计算装置执行时,使得计算装置进行如图1所示实施例运行的方法。该方法的具体步骤已经在前述内容中详述,在此不再赘述。In addition, the present invention also discloses a non-transitory computer-readable storage medium. The non-transitory computer-readable storage medium stores a series of computer-executable instructions. When the series of executable instructions is executed by a computing device, The computing device is caused to perform the method of the embodiment shown in FIG. 1 . The specific steps of the method have been described in detail in the foregoing content, and are not repeated here.
从上述实施例看出,本发明的技术效果包括以下几个方面:As seen from the above-described embodiments, the technical effects of the present invention include the following aspects:
1.备份环境升级用时极大缩短,降低主环境失败后无环境可用风险;1. The backup environment upgrade time is greatly shortened, reducing the risk of no environment availability after the main environment fails;
2.备份环境由数据复制软件自动升级,减少人力投入,降低升级失败风险;2. The backup environment is automatically upgraded by the data replication software, which reduces manpower investment and reduces the risk of upgrade failure;
3.备份环境数据库自动发现版本升级成功标识,并及时通知应用部门升级应用;3. The backup environment database automatically finds the version upgrade success sign, and promptly informs the application department to upgrade the application;
4.有版本信息控制,保证主备环境严格一致,不会导致主备环境业务混乱;4. There is version information control to ensure that the active and standby environments are strictly consistent and will not cause business confusion in the active and standby environments;
5.备份环境的各个子系统可以并行数据复制,升级效率更高。5. Each subsystem of the backup environment can replicate data in parallel, and the upgrade efficiency is higher.
尽管为使解释简单化将上述方法图示并描述为一系列动作,但是应理解并领会,这些方法不受动作的次序所限,因为根据一个或多个实施例,一些动作可按不同次序发生和/或与来自本文中图示和描述或本文中未图示和描述但本领域技术人员可以理解的其他动作并发地发生。Although the above-described methods are illustrated and described as a series of acts for simplicity of explanation, it should be understood and appreciated that these methods are not limited by the order of the acts, as some acts may occur in a different order in accordance with one or more embodiments and/or occur concurrently with other actions from or not shown and described herein but understood by those skilled in the art.
本领域技术人员将进一步领会,结合本文中所公开的实施例来描述的各种解说性逻辑板块、模块、电路、和算法步骤可实现为电子硬件、计算机软件、或这两者的组合。为清楚地解说硬件与软件的这一可互换性,各种解说性组件、框、模块、电路、和步骤在上面是以其功能性的形式作一般化描述的。此类功能性是被实现为硬件还是软件取决于具体应用和施加于整体系统的设计约束。技术人员对于每种特定应用可用不同的方式来实现所描述的功能性,但这样的实现决策不应被解读成导致脱离了本发明的范围。Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the specific application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
结合本文所公开的实施例描述的各种解说性逻辑板块、模块、和电路可用通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或其它可编程逻辑器件、分立的门或晶体管逻辑、分立的硬件组件、或其设计成执行本文所描述功能的任何组合来实现或执行。通用处理器可以是微处理器,但在替换方案中,该处理器可以是任何常规的处理器、控制器、微控制器、或状态机。处理器还可以被实现为计算设备的组合,例如DSP与微处理器的组合、多个微处理器、与DSP核心协作的一个或多个微处理器、或任何其他此类配置。The various illustrative logic blocks, modules, and circuits described in connection with the embodiments disclosed herein may be implemented using general purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other Programmable logic devices, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein are implemented or performed. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors cooperating with a DSP core, or any other such configuration.
结合本文中公开的实施例描述的方法或算法的步骤可直接在硬件中、在由处理器执行的软件模块中、或在这两者的组合中体现。软件模块可驻留在RAM存储器、闪存、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、可移动盘、CD-ROM、或本领域中所知的任何其他形式的存储介质中。示例性存储介质耦合到处理器以使得该处理器能从/向该存储介质读取和写入信息。在替换方案中,存储介质可以被整合到处理器。处理器和存储介质可驻留在ASIC中。ASIC可驻留在用户终端中。在替换方案中,处理器和存储介质可作为分立组件驻留在用户终端中。The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integrated into the processor. The processor and storage medium may reside in the ASIC. The ASIC may reside in the user terminal. In the alternative, the processor and storage medium may reside in the user terminal as discrete components.
在一个或多个示例性实施例中,所描述的功能可在硬件、软件、固件或其任何组合中实现。如果在软件中实现为计算机程序产品,则各功能可以作为一条或更多条指令或代码存储在计算机可读介质上或藉其进行传送。计算机可读介质包括计算机存储介质和通信介质两者,其包括促成计算机程序从一地向另一地转移的任何介质。存储介质可以是能被计算机访问的任何可用介质。作为示例而非限定,这样的计算机可读介质可包括RAM、ROM、EEPROM、CD-ROM或其它光盘存储、磁盘存储或其它磁存储设备、或能被用来携带或存储指令或数据结构形式的合意程序代码且能被计算机访问的任何其它介质。任何连接也被正当地称为计算机可读介质。例如,如果软件是使用同轴电缆、光纤电缆、双绞线、数字订户线(DSL)、或诸如红外、无线电、以及微波之类的无线技术从web网站、服务器、或其它远程源传送而来,则该同轴电缆、光纤电缆、双绞线、DSL、或诸如红外、无线电、以及微波之类的无线技术就被包括在介质的定义之中。如本文中所使用的盘(disk)和碟(disc)包括压缩碟(CD)、激光碟、光碟、数字多用碟(DVD)、软盘和蓝光碟,其中盘(disk)往往以磁的方式再现数据,而碟(disc)用激光以光学方式再现数据。上述的组合也应被包括在计算机可读介质的范围内。In one or more exemplary embodiments, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software as a computer program product, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage medium can be any available medium that can be accessed by a computer. By way of example and not limitation, such computer-readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage, or other magnetic storage devices, or can be used to carry or store instructions or data structures in the form of Any other medium that conforms to program code and that can be accessed by a computer. Any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a web site, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave , then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc as used herein includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and blu-ray disc, where disks are often reproduced magnetically data, and discs reproduce the data optically with a laser. Combinations of the above should also be included within the scope of computer-readable media.
提供对本公开的先前描述是为使得本领域任何技术人员皆能够制作或使用本公开。对本公开的各种修改对本领域技术人员来说都将是显而易见的,且本文中所定义的普适原理可被应用到其他变体而不会脱离本公开的精神或范围。由此,本公开并非旨在被限定于本文中所描述的示例和设计,而是应被授予与本文中所公开的原理和新颖性特征相一致的最广范围。The previous description of the present disclosure is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to the present disclosure will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other variations without departing from the spirit or scope of the present disclosure. Thus, the present disclosure is not intended to be limited to the examples and designs described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910536875.6A CN112114839A (en) | 2019-06-20 | 2019-06-20 | Method and system for rapid upgrade of standby environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910536875.6A CN112114839A (en) | 2019-06-20 | 2019-06-20 | Method and system for rapid upgrade of standby environment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112114839A true CN112114839A (en) | 2020-12-22 |
Family
ID=73795996
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910536875.6A Pending CN112114839A (en) | 2019-06-20 | 2019-06-20 | Method and system for rapid upgrade of standby environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112114839A (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1684427A (en) * | 2004-04-14 | 2005-10-19 | 华为技术有限公司 | Method for software upgrading and withdrawing |
CN1741664A (en) * | 2004-08-29 | 2006-03-01 | 华为技术有限公司 | Communication equipment sub-system staging method |
CN101242201A (en) * | 2008-03-11 | 2008-08-13 | 华为技术有限公司 | A master-slave system maintenance method, system and device |
CN101997708A (en) * | 2009-08-11 | 2011-03-30 | 中兴通讯股份有限公司 | Method and device for remotely upgrading main board and backup board |
CN102110121A (en) * | 2009-12-24 | 2011-06-29 | 阿里巴巴集团控股有限公司 | Method and system for processing data |
CN103294752A (en) * | 2012-01-30 | 2013-09-11 | 国际商业机器公司 | Online verification method and system of a standby database in log shipping physical replication environment |
WO2014067335A1 (en) * | 2012-11-01 | 2014-05-08 | 中兴通讯股份有限公司 | Method and system for upgrading software of distributed communication device |
CN107301250A (en) * | 2017-07-27 | 2017-10-27 | 南京南瑞集团公司 | A kind of Various database cooperates with backup method |
CN109728886A (en) * | 2017-10-27 | 2019-05-07 | 中兴通讯股份有限公司 | A kind of method of data synchronization, device, equipment and storage medium suitable for cross-version upgrading |
-
2019
- 2019-06-20 CN CN201910536875.6A patent/CN112114839A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1684427A (en) * | 2004-04-14 | 2005-10-19 | 华为技术有限公司 | Method for software upgrading and withdrawing |
CN1741664A (en) * | 2004-08-29 | 2006-03-01 | 华为技术有限公司 | Communication equipment sub-system staging method |
CN101242201A (en) * | 2008-03-11 | 2008-08-13 | 华为技术有限公司 | A master-slave system maintenance method, system and device |
CN101997708A (en) * | 2009-08-11 | 2011-03-30 | 中兴通讯股份有限公司 | Method and device for remotely upgrading main board and backup board |
CN102110121A (en) * | 2009-12-24 | 2011-06-29 | 阿里巴巴集团控股有限公司 | Method and system for processing data |
CN103294752A (en) * | 2012-01-30 | 2013-09-11 | 国际商业机器公司 | Online verification method and system of a standby database in log shipping physical replication environment |
WO2014067335A1 (en) * | 2012-11-01 | 2014-05-08 | 中兴通讯股份有限公司 | Method and system for upgrading software of distributed communication device |
CN107301250A (en) * | 2017-07-27 | 2017-10-27 | 南京南瑞集团公司 | A kind of Various database cooperates with backup method |
CN109728886A (en) * | 2017-10-27 | 2019-05-07 | 中兴通讯股份有限公司 | A kind of method of data synchronization, device, equipment and storage medium suitable for cross-version upgrading |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11907561B2 (en) | Data backup method and apparatus | |
TW522320B (en) | Apparatus and method for recovering a failed database data set | |
US10726042B2 (en) | Replication control using eventually consistent meta-data | |
US8909662B2 (en) | Message based mobile object with native PIM integration | |
CN105468475A (en) | Backup method and backup device of database | |
CN104765652B (en) | A kind of data backup and data reconstruction method and device | |
WO2017113694A1 (en) | File synchronizing method, device and system | |
WO2018033062A1 (en) | System disk management method and device | |
CN110413433A (en) | Restoration methods, equipment and storage medium after a kind of Maria DB clustering fault | |
CN112114839A (en) | Method and system for rapid upgrade of standby environment | |
CN109634845B (en) | Method and device for generating context record text | |
CN111159156A (en) | Backup method and device for SQLite database | |
CN108280097A (en) | A kind of fault handling method and device of Database Systems | |
CN114490570A (en) | Production data synchronization method and device, data synchronization system and server | |
CN111026569A (en) | Method for repairing designated block data in alliance chain | |
CN116303775A (en) | Log processing method and device, electronic equipment and storage medium | |
CN112765188B (en) | Configuration information processing method, configuration management system, electronic device and storage medium | |
CN101242201A (en) | A master-slave system maintenance method, system and device | |
CN108255906B (en) | Data additional recording method and device | |
CN118972401B (en) | Data synchronization method, terminal and computer readable storage medium | |
US12189626B1 (en) | Automatic query optimization | |
CN116132253B (en) | Fault processing method, device and storage medium | |
CN116610657A (en) | Method and device for data compensation | |
JP4636008B2 (en) | Data replication system, data replication method, data replication program | |
CN118170410A (en) | Database upgrading method and device and related equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201222 |
|
RJ01 | Rejection of invention patent application after publication |