CN114296874A - Cross-machine-room mirror image synchronization method and device, computer equipment and storage medium - Google Patents
Cross-machine-room mirror image synchronization method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN114296874A CN114296874A CN202111621405.3A CN202111621405A CN114296874A CN 114296874 A CN114296874 A CN 114296874A CN 202111621405 A CN202111621405 A CN 202111621405A CN 114296874 A CN114296874 A CN 114296874A
- Authority
- CN
- China
- Prior art keywords
- target
- room
- machine room
- synchronization
- computer room
- 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
Images
Landscapes
- Stored Programmes (AREA)
Abstract
Description
技术领域technical field
本发明实施例涉及虚拟机技术领域,尤其涉及一种跨机房镜像同步方法、装置、计算机设备及存储介质。Embodiments of the present invention relate to the technical field of virtual machines, and in particular, to a method, apparatus, computer equipment, and storage medium for synchronizing images across computer rooms.
背景技术Background technique
因为业务需求需要大量镜像来启动虚拟机提供服务,为了整个系统的高可用,需要确保每个机房都有全量的镜像。Because business requirements require a large number of images to start virtual machines to provide services, for the high availability of the entire system, it is necessary to ensure that each computer room has a full amount of images.
目前实现的方式是首先限定一个主机房并制作镜像,再从主机房同步到其他从机房,其中的主机房不能随意更换,且同步链路固定,只能由主机房向其他从机房同步,而同步镜像存在大量占用带宽的问题,在使用的高峰期间对业务服务的提供影响较大,同时当主机房同步故障时也无法继续同步过程。The current implementation method is to first define a host room and make a mirror, and then synchronize from the host room to other slave rooms. The host room cannot be replaced at will, and the synchronization link is fixed, and can only be synchronized from the host room to other slave rooms. Synchronous mirroring has the problem of occupying a large amount of bandwidth, which has a great impact on the provision of business services during the peak period of use. At the same time, when the synchronization of the main room fails, the synchronization process cannot be continued.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种跨机房镜像同步方法、装置、计算机设备及存储介质,以避免同步链路固定的问题,从而降低对业务服务的影响,也避免了因某个机房同步故障而导致无法继续同步的问题。Embodiments of the present invention provide a cross-machine room mirror synchronization method, device, computer equipment, and storage medium, so as to avoid the problem of a fixed synchronization link, thereby reducing the impact on business services, and avoiding the failure of synchronization in a certain machine room. Continue to sync issues.
第一方面,本发明实施例提供了一种跨机房镜像同步方法,该方法包括:In a first aspect, an embodiment of the present invention provides a method for synchronizing mirror images across computer rooms, and the method includes:
步骤A、确定所有机房中机器的第一数量,并根据所述第一数量在所有机房中确定第一目标机房制作目标镜像;Step A, determine the first number of machines in all computer rooms, and determine the first target computer room in all computer rooms according to the first number to make a target mirror image;
步骤B、查询各个待同步机房中机器的第二数量,并根据所述第二数量在所述待同步机房中确定第二目标机房;Step B, query the second quantity of machines in each to-be-synchronized computer room, and determine a second target computer room in the to-be-synchronized computer room according to the second quantity;
步骤C、查询已拥有所述目标镜像的各个同步源机房中机器的第三数量,并根据所述第三数量在所述同步源机房中确定第三目标机房,其中,所述同步源机房包括所述第一目标机房;Step C: Query the third number of machines in each synchronization source computer room that already owns the target image, and determine the third target computer room in the synchronization source computer room according to the third number, wherein the synchronization source computer room includes: the first target computer room;
步骤D、将所述第三目标机房作为同步源对所述第二目标机房进行所述目标镜像的同步,并返回执行步骤B,直至完成所有机房的同步。Step D, using the third target computer room as a synchronization source to synchronize the target mirroring of the second target computer room, and returning to step B until the synchronization of all computer rooms is completed.
可选的,所述根据所述第一数量在所有机房中确定第一目标机房制作目标镜像,包括:Optionally, determining the first target computer room in all computer rooms to make a target image according to the first quantity, including:
将所有机房中所述第一数量最小的机房确定为所述第一目标机房;Determining the computer room with the smallest first quantity among all the computer rooms as the first target computer room;
所述根据所述第二数量在所述待同步机房中确定第二目标机房,包括:The determining of the second target computer room in the to-be-synchronized computer room according to the second quantity includes:
将所述待同步机房中所述第二数量最小的机房确定为所述第二目标机房;Determining the computer room with the smallest second quantity among the computer rooms to be synchronized as the second target computer room;
所述根据所述第三数量在所述同步源机房中确定第三目标机房,包括:The determining of the third target computer room in the synchronization source computer room according to the third quantity includes:
将所述同步源机房中所述第三数量最小的机房确定为所述第三目标机房。The computer room with the smallest third number in the synchronization source computer room is determined as the third target computer room.
可选的,所述查询已拥有所述目标镜像的各个同步源机房中机器的第三数量,并根据所述第三数量在所述同步源机房中确定第三目标机房,包括:Optionally, the querying the third quantity of machines in each synchronization source computer room that already owns the target image, and determining the third target computer room in the synchronization source computer room according to the third quantity, including:
在所述同步源机房中确定与所述第二目标机房的云厂商相同的目标同步源机房;determining in the synchronization source computer room the same target synchronization source computer room as the cloud vendor of the second target computer room;
查询各个所述目标同步源机房中机器的第四数量,并根据所述第四数量在所述目标同步源机房中确定所述第三目标机房。The fourth quantity of machines in each target synchronization source computer room is queried, and the third target computer room is determined in the target synchronization source computer room according to the fourth quantity.
可选的,所述查询已拥有所述目标镜像的各个同步源机房中机器的第三数量,并根据所述第三数量在所述同步源机房中确定第三目标机房,还包括:Optionally, the querying for a third number of machines in each synchronization source computer room that already owns the target image, and determining a third target computer room in the synchronization source computer room according to the third number, further includes:
若所述同步源机房中不存在所述目标同步源机房,则根据所述第三数量在所述同步源机房中确定第三目标机房。If the target synchronization source computer room does not exist in the synchronization source computer room, a third target computer room is determined in the synchronization source computer room according to the third quantity.
可选的,所述将所述第三目标机房作为同步源对所述第二目标机房进行所述目标镜像的同步,包括:Optionally, using the third target computer room as a synchronization source to perform synchronization of the target mirroring on the second target computer room, comprising:
通过所述第三目标机房向所述第二目标机房的同步服务发送同步源请求。Send a synchronization source request to the synchronization service of the second target computer room through the third target computer room.
可选的,在所述通过所述第三目标机房向所述第二目标机房的同步服务发送同步源请求之后,还包括:Optionally, after the synchronization source request is sent to the synchronization service of the second target computer room through the third target computer room, the method further includes:
将所述第二目标机房加入到同步任务队列信息表;adding the second target computer room to the synchronization task queue information table;
按照预设周期查询所述同步任务队列信息表,以确定所述第二目标机房的同步情况,直至同步完成。The synchronization task queue information table is queried according to a preset period to determine the synchronization situation of the second target computer room until the synchronization is completed.
可选的,在所述根据所述第一数量在所有机房中确定第一目标机房制作目标镜像之后,还包括:Optionally, after the first target computer room is determined in all computer rooms according to the first quantity to make a target mirror image, the method further includes:
将所述第一目标机房加入到同步源列表;adding the first target computer room to the synchronization source list;
在所述将所述第三目标机房作为同步源对所述第二目标机房进行所述目标镜像的同步之后,还包括:After the third target computer room is used as a synchronization source to synchronize the target mirror image on the second target computer room, the method further includes:
将所述第二目标机房加入到所述同步源列表,以根据所述同步源列表确定所述同步源机房。The second target computer room is added to the synchronization source list to determine the synchronization source computer room according to the synchronization source list.
第二方面,本发明实施例还提供了一种跨机房镜像同步装置,该装置包括:In a second aspect, an embodiment of the present invention further provides a cross-machine room mirror synchronization device, the device comprising:
第一目标机房确定模块,用于确定所有机房中机器的第一数量,并根据所述第一数量在所有机房中确定第一目标机房制作目标镜像;a first target computer room determination module, configured to determine a first number of machines in all computer rooms, and determine the first target computer room in all computer rooms to make a target image according to the first number;
第二目标机房确定模块,用于查询各个待同步机房中机器的第二数量,并根据所述第二数量在所述待同步机房中确定第二目标机房;A second target computer room determination module, configured to query the second quantity of machines in each of the computer rooms to be synchronized, and determine a second target computer room in the to-be-synchronized computer room according to the second quantity;
第三目标机房确定模块,用于查询已拥有所述目标镜像的各个同步源机房中机器的第三数量,并根据所述第三数量在所述同步源机房中确定第三目标机房,其中,所述同步源机房包括所述第一目标机房;The third target computer room determination module is configured to query the third number of machines in each synchronization source computer room that already owns the target image, and determine the third target computer room in the synchronization source computer room according to the third number, wherein, The synchronization source computer room includes the first target computer room;
目标镜像同步模块,用于将所述第三目标机房作为同步源对所述第二目标机房进行所述目标镜像的同步,并返回所述第二目标机房确定模块继续执行,直至完成所有机房的同步。The target mirror synchronization module is configured to use the third target computer room as a synchronization source to synchronize the target mirror to the second target computer room, and return to the second target computer room determination module to continue execution until all computer rooms are completed. Synchronize.
第三方面,本发明实施例还提供了一种计算机设备,该计算机设备包括:In a third aspect, an embodiment of the present invention further provides a computer device, the computer device comprising:
一个或多个处理器;one or more processors;
存储器,用于存储一个或多个程序;memory for storing one or more programs;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现本发明任意实施例所提供的跨机房镜像同步方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the cross-machine room mirror synchronization method provided by any embodiment of the present invention.
第四方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现本发明任意实施例所提供的跨机房镜像同步方法。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the cross-machine room mirror synchronization method provided by any embodiment of the present invention.
本发明实施例提供了一种跨机房镜像同步方法,首先确定所有机房中机器的第一数量,并根据该第一数量在所有机房中确定第一目标机房制作目标镜像,然后分别查询各个待同步机房中机器的第二数量以及各个同步源机房中机器的第三数量,并根据该第二数量在待同步机房中确定第二目标机房,以及根据该第三数量在同步源机房中确定第三目标机房,从而将第三目标机房作为同步源对第二目标机房进行目标镜像的同步,再重复上述第二目标机房和第三目标机房的确定过程及同步过程,直至完成所有机房的同步。本发明实施例所提供的跨机房镜像同步方法,取消了对主机房的限定,通过实时确定每个机房可用的服务器台数,并从中选取合适的同步源及同步对象进行同步,避免了链路固定的问题,从而降低了对业务服务的影响,也避免了因某个机房同步故障而导致无法继续同步的问题,实现了为每个机房快速高效的同步镜像。An embodiment of the present invention provides a method for synchronizing mirror images across computer rooms. First, a first number of machines in all computer rooms is determined, and a first target computer room is determined in all computer rooms to make target mirror images according to the first number, and then each to-be-synchronized machine is queried separately. The second number of machines in the computer room and the third number of machines in each synchronization source computer room, and determine the second target computer room in the to-be-synchronized computer room according to the second number, and determine the third number in the synchronization source computer room according to the third number target computer room, so that the third target computer room is used as the synchronization source to synchronize the target mirror of the second target computer room, and then the above-mentioned determination process and synchronization process of the second target computer room and the third target computer room are repeated until the synchronization of all computer rooms is completed. The cross-machine room mirror synchronization method provided by the embodiment of the present invention cancels the limitation of the main machine room. By determining the number of servers available in each machine room in real time, and selecting an appropriate synchronization source and synchronization object for synchronization, the fixed link is avoided. This reduces the impact on business services, and also avoids the problem of inability to continue synchronization due to a synchronization failure in a computer room, and realizes fast and efficient synchronization mirroring for each computer room.
附图说明Description of drawings
图1为本发明实施例一提供的跨机房镜像同步方法的流程图;1 is a flowchart of a method for synchronizing mirror images across computer rooms provided in Embodiment 1 of the present invention;
图2为本发明实施例二提供的跨机房镜像同步装置的结构示意图;2 is a schematic structural diagram of a cross-machine room mirror synchronization device provided in Embodiment 2 of the present invention;
图3为本发明实施例三提供的计算机设备的结构示意图。FIG. 3 is a schematic structural diagram of a computer device according to Embodiment 3 of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all structures related to the present invention.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in greater detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowchart depicts the steps as a sequential process, many of the steps may be performed in parallel, concurrently, or concurrently. Furthermore, the order of the steps can be rearranged. The process may be terminated when its operation is complete, but may also have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, subroutines, and the like.
此外,术语“第一”、“第二”等可在本文中用于描述各种方向、动作、步骤或元件等,但这些方向、动作、步骤或元件不受这些术语限制。这些术语仅用于将第一个方向、动作、步骤或元件与另一个方向、动作、步骤或元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一目标机房称为第二目标机房,且类似地,可将第二目标机房称为第一目标机房。第一目标机房和第二目标机房两者都是目标机房,但其不是同一目标机房。术语“第一”、“第二”等不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。Furthermore, the terms "first," "second," etc. may be used herein to describe various directions, acts, steps or elements, etc., but are not limited by these terms. These terms are only used to distinguish a first direction, act, step or element from another direction, act, step or element. For example, without departing from the scope of this application, the first target computer room may be referred to as the second target computer room, and similarly, the second target computer room may be referred to as the first target computer room. Both the first target computer room and the second target computer room are target computer rooms, but they are not the same target computer room. The terms "first", "second", etc. should not be understood as indicating or implying relative importance or implying the number of indicated technical features. Thus, a feature defined as "first" or "second" may expressly or implicitly include one or more of that feature. In the description of the present invention, "plurality" means at least two, such as two, three, etc., unless otherwise expressly and specifically defined.
实施例一Example 1
图1为本发明实施例一提供的跨机房镜像同步方法的流程图。本实施例可适用于对多个机房进行镜像同步的情况,该方法可以由本发明实施例所提供的为跨机房镜像同步装置来执行,该装置可以由硬件和/或软件的方式来实现,一般可集成于计算机设备中,该计算机设备具体可以是服务中心。如图1所示,具体包括如下步骤:FIG. 1 is a flowchart of a method for synchronizing mirror images across computer rooms according to Embodiment 1 of the present invention. This embodiment is applicable to the case of performing mirror synchronization on multiple computer rooms. The method may be performed by the device for mirror synchronization across computer rooms provided by the embodiment of the present invention. The device may be implemented by hardware and/or software. Generally, It can be integrated in computer equipment, and the computer equipment can be a service center in particular. As shown in Figure 1, it specifically includes the following steps:
S11、确定所有机房中机器的第一数量,并根据所述第一数量在所有机房中确定第一目标机房制作目标镜像。S11. Determine a first number of machines in all computer rooms, and determine a first target computer room in all computer rooms to create a target image according to the first number.
具体的,机器即服务器,在方法的开始,可以首先分别确定各个机房中提供服务的机器的第一数量,然后根据该第一数量确定得到第一目标机房,并将第一目标机房提供给管理员制作目标镜像(即所需的镜像),从而可以将第一目标机房作为第一个同步源。各个机房可能需要向用户提供大量服务,提供服务有网络需求,需要占用机房的公网带宽,同时由于机房存在跨云的情况,跨云的机房同步只能走公网,也会有较大的几率导致机房提供的服务不可用,则具体可以将其中第一数量较小的机房确定为第一目标机房,以进一步减小对业务服务的影响。可选的,所述根据所述第一数量在所有机房中确定第一目标机房制作目标镜像,包括:将所有机房中所述第一数量最小的机房确定为所述第一目标机房,以尽可能的降低对业务服务的影响,具体可以通过对第一数量进行排序(如由少到多)得到第一目标机房。Specifically, a machine is a server. At the beginning of the method, the first number of machines providing services in each computer room can be determined respectively, and then the first target computer room is determined according to the first number, and the first target computer room is provided to the management The operator makes the target mirror (that is, the required mirror), so that the first target computer room can be used as the first synchronization source. Each computer room may need to provide a large number of services to users. The provision of services requires network requirements and needs to occupy the public network bandwidth of the computer room. At the same time, due to the cross-cloud situation in the computer room, the cross-cloud computer room synchronization can only be done through the public network. If the probability causes the service provided by the computer room to be unavailable, the computer room with a smaller first number may be specifically determined as the first target computer room to further reduce the impact on the business service. Optionally, the determining the first target computer room in all the computer rooms according to the first number to make the target mirror image includes: determining the computer room with the smallest first number among all the computer rooms as the first target computer room, so as to minimize the number of computer rooms. The impact on the business service may be reduced, specifically, the first target computer room may be obtained by sorting the first quantity (eg, from less to more).
S12、查询各个待同步机房中机器的第二数量,并根据所述第二数量在所述待同步机房中确定第二目标机房。S12. Query the second quantity of machines in each computer room to be synchronized, and determine a second target computer room in the computer room to be synchronized according to the second quantity.
具体的,在确定第一目标机房并制作完成目标镜像之后或者完成一次同步过程之后,可以开始查询各个待同步机房中提供服务的机器的第二数量,然后根据该第二数量确定得到第二目标机房,从而可以从待同步机房中选取一个机房作为同步对象,其中的待同步机房即为所有机房中尚未完成同步的机房。同上所述,具体可以将其中第二数量较小的机房确定为第二目标机房,以进一步减小对业务服务的影响。可选的,所述根据所述第二数量在所述待同步机房中确定第二目标机房,包括:将所述待同步机房中所述第二数量最小的机房确定为所述第二目标机房,以尽可能的降低对业务服务的影响,具体可以通过对第二数量进行排序(如由少到多)得到第二目标机房。Specifically, after the first target computer room is determined and the target image is created or after a synchronization process is completed, the second number of machines providing services in each to-be-synchronized computer room can be inquired, and then the second target can be determined according to the second number. A computer room can be selected from the computer room to be synchronized as the synchronization object, and the computer room to be synchronized is the computer room that has not yet been synchronized among all the computer rooms. As described above, specifically, the computer room with the second smaller number may be determined as the second target computer room, so as to further reduce the impact on the business service. Optionally, the determining the second target computer room in the to-be-synchronized computer room according to the second quantity includes: determining the computer room with the smallest second quantity in the to-be-synchronized computer room as the second target computer room , so as to reduce the impact on the business service as much as possible, specifically, the second target computer room can be obtained by sorting the second quantity (eg, from less to more).
S13、查询已拥有所述目标镜像的各个同步源机房中机器的第三数量,并根据所述第三数量在所述同步源机房中确定第三目标机房,其中,所述同步源机房包括所述第一目标机房。S13. Query the third number of machines in each synchronization source computer room that already owns the target image, and determine a third target computer room in the synchronization source computer room according to the third number, wherein the synchronization source computer room includes all the synchronization source computer rooms. Describe the first target computer room.
具体的,在确定了第二目标机房之后,可以查询各个同步源机房中提供服务的机器的第三数量,然后根据该第三数量确定得到第三目标机房,从而可以从同步源机房中选取一个机房作为同步源,其中的同步源机房即为所有机房中已拥有目标镜像的机房,具体可以包括一开始制作目标镜像的第一目标机房,以及已完成同步的第二目标机房等,初次确定时,第三目标机房即第一目标机房。同上所述,具体可以将其中第三数量较小的机房确定为第三目标机房,以进一步减小对业务服务的影响。可选的,所述根据所述第三数量在所述同步源机房中确定第三目标机房,包括:将所述同步源机房中所述第三数量最小的机房确定为所述第三目标机房,以尽可能的降低对业务服务的影响,具体可以通过对第三数量进行排序(如由少到多)得到第三目标机房。Specifically, after the second target computer room is determined, the third number of machines providing services in each synchronization source computer room can be inquired, and then the third target computer room can be determined according to the third number, so that one can be selected from the synchronization source computer room. The computer room is used as the synchronization source, and the synchronization source computer room is the computer room that already has the target image in all the computer rooms. Specifically, it can include the first target computer room where the target image was created at the beginning, and the second target computer room that has been synchronized. , the third target computer room is the first target computer room. As described above, specifically, the third computer room with a smaller number may be determined as the third target computer room, so as to further reduce the impact on the business service. Optionally, the determining the third target computer room in the synchronization source computer room according to the third quantity includes: determining the computer room with the smallest third quantity in the synchronization source computer room as the third target computer room , in order to reduce the impact on business services as much as possible, specifically, the third target computer room can be obtained by sorting the third quantity (such as from less to more).
可选的,所述查询已拥有所述目标镜像的各个同步源机房中机器的第三数量,并根据所述第三数量在所述同步源机房中确定第三目标机房,包括:在所述同步源机房中确定与所述第二目标机房的云厂商相同的目标同步源机房;查询各个所述目标同步源机房中机器的第四数量,并根据所述第四数量在所述目标同步源机房中确定所述第三目标机房。具体的,在对第二目标机房进行同步时,可以优先选择同步源机房中与第二目标机房的云厂商相同的机房,以进一步降低对业务服务的影响。则可以首先在所有同步源机房中确定与第二目标机房的云厂商相同的目标同步源机房,再查询各个目标同步源机房中提供服务的机器的第四数量,以根据该第四数量确定得到第三目标机房,如上所述,可以将目标同步源机房中第四数量较小的机房确定为第三目标机房,进一步可以将第四数量最小的机房确定为第三目标机房,以尽可能的降低对业务服务的影响。具体可以首先根据云厂商对各个同步源机房进行分组,并分别对各个组别按照机器数量进行排序,再将与第二目标机房的云厂商相同的组别确定为目标组别,从而即可根据目标组别中的排序结果确定第三目标机房,同时在后续每次更新同步源机房时,可以将新加入的同步源机房加入到对应的组别中,并按照机器数量插入到排序结果中,以节约每次的排序过程。Optionally, the querying the third number of machines in each synchronization source computer room that already owns the target mirror, and determining the third target computer room in the synchronization source computer room according to the third number, including: in the In the synchronization source computer room, determine the same target synchronization source computer room as the cloud vendor of the second target computer room; query the fourth number of machines in each of the target synchronization source computer rooms, and according to the fourth number in the target synchronization source The third target computer room is determined in the computer room. Specifically, when synchronizing the second target computer room, the same computer room as the cloud vendor of the second target computer room in the synchronization source computer room may be preferentially selected to further reduce the impact on business services. Then you can first determine the target synchronization source computer room that is the same as the cloud vendor of the second target computer room in all the synchronization source computer rooms, and then query the fourth number of machines that provide services in each target synchronization source computer room, so as to determine and obtain according to the fourth number. The third target computer room, as mentioned above, the computer room with the fourth smaller number in the target synchronization source computer room may be determined as the third target computer room, and further, the computer room with the fourth smallest number may be determined as the third target computer room, so as to maximize the Reduce impact on business services. Specifically, you can firstly group each synchronization source computer room according to the cloud manufacturer, and sort each group according to the number of machines, and then determine the same group as the cloud manufacturer in the second target computer room as the target group, so that you can The sorting result in the target group determines the third target computer room. At the same time, when the synchronization source computer room is updated each time, the newly added synchronization source computer room can be added to the corresponding group, and inserted into the sorting result according to the number of machines. To save each sorting process.
进一步可选的,所述查询已拥有所述目标镜像的各个同步源机房中机器的第三数量,并根据所述第三数量在所述同步源机房中确定第三目标机房,还包括:若所述同步源机房中不存在所述目标同步源机房,则根据所述第三数量在所述同步源机房中确定第三目标机房。具体的,若所有同步源机房中不存在与第二目标机房的云厂商相同的目标同步源机房,则可以直接根据各个同步源机房中机器的第三数量确定第三目标机房,具体过程如上所述,在此不做冗述。Further optionally, the querying the third number of machines in each synchronization source computer room that already owns the target image, and determining the third target computer room in the synchronization source computer room according to the third number, further comprising: if If the target synchronization source computer room does not exist in the synchronization source computer room, the third target computer room is determined in the synchronization source computer room according to the third quantity. Specifically, if there is no target synchronization source computer room that is the same as the cloud vendor of the second target computer room in all synchronization source computer rooms, the third target computer room can be determined directly according to the third number of machines in each synchronization source computer room. The specific process is as above. described, and will not be repeated here.
S14、将所述第三目标机房作为同步源对所述第二目标机房进行所述目标镜像的同步,并返回执行步骤S12,直至完成所有机房的同步。S14. Use the third target computer room as a synchronization source to synchronize the target mirror image to the second target computer room, and return to step S12 until the synchronization of all computer rooms is completed.
具体的,在确定了第二目标机房和第三目标机房之后,即可将第三目标机房作为同步源对第二目标机房进行目标镜像的同步。在完成同步之后,即可将第二目标机房由待同步机房更新为同步源机房,然后返回执行步骤S12,以重新确定第二目标机房和第三目标机房进行同步,直至完成所有机房的同步。Specifically, after the second target computer room and the third target computer room are determined, the third target computer room can be used as a synchronization source to perform target mirror synchronization on the second target computer room. After the synchronization is completed, the second target computer room can be updated from the to-be-synchronized computer room to the synchronization source computer room, and then returns to step S12 to re-determine the second target computer room and the third target computer room to synchronize until all computer rooms are synchronized.
可选的,所述将所述第三目标机房作为同步源对所述第二目标机房进行所述目标镜像的同步,包括:通过所述第三目标机房向所述第二目标机房的同步服务发送同步源请求。进一步可选的,在所述通过所述第三目标机房向所述第二目标机房的同步服务发送同步源请求之后,还包括:将所述第二目标机房加入到同步任务队列信息表;按照预设周期查询所述同步任务队列信息表,以确定所述第二目标机房的同步情况,直至同步完成。具体的,在确定了第二目标机房和第三目标机房之后,可以将第三目标机房作为同步源向第二目标机房的同步服务发送同步源请求,以请求进行同步,同时在开始同步后,可以将第二目标机房加入到同步任务队列信息表中,然后可以通过按照预设周期不断查询该同步任务队列信息表来查看第二目标机房的同步情况,如同步进度以及是否成功同步等等,直至同步完成,即可将该第二目标机房更新为同步源机房,并可以从同步任务队列信息表中移出。Optionally, using the third target computer room as a synchronization source to synchronize the target image to the second target computer room includes: synchronizing services to the second target computer room through the third target computer room Send a sync source request. Further optionally, after the synchronization source request is sent to the synchronization service of the second target computer room through the third target computer room, the method further includes: adding the second target computer room to the synchronization task queue information table; The synchronization task queue information table is queried in a preset period to determine the synchronization situation of the second target computer room, until the synchronization is completed. Specifically, after the second target computer room and the third target computer room are determined, the third target computer room can be used as the synchronization source to send a synchronization source request to the synchronization service of the second target computer room to request synchronization. The second target computer room can be added to the synchronization task queue information table, and then the synchronization status of the second target computer room can be checked by continuously querying the synchronization task queue information table according to the preset period, such as the synchronization progress and whether the synchronization is successful, etc. Until the synchronization is completed, the second target computer room can be updated to the synchronization source computer room, and can be removed from the synchronization task queue information table.
在上述技术方案的基础上,可选的,在所述根据所述第一数量在所有机房中确定第一目标机房制作目标镜像之后,还包括:将所述第一目标机房加入到同步源列表;在所述将所述第三目标机房作为同步源对所述第二目标机房进行所述目标镜像的同步之后,还包括:将所述第二目标机房加入到所述同步源列表,以根据所述同步源列表确定所述同步源机房。具体的,在获得了可以作为同步源的第一目标机房和同步完成的第二目标机房之后,均可以将相应的机房加入到同步源列表中,以便后续可以从同步源列表中确定新作为同步源的第三目标机房。On the basis of the above technical solution, optionally, after the first target computer room is determined in all computer rooms to make a target image according to the first quantity, the method further includes: adding the first target computer room to the synchronization source list ; After the third target computer room is used as the synchronization source to synchronize the target mirroring of the second target computer room, it also includes: adding the second target computer room to the synchronization source list, so that according to the The synchronization source list determines the synchronization source computer room. Specifically, after obtaining the first target computer room that can be used as the synchronization source and the second target computer room that has been synchronized, the corresponding computer room can be added to the synchronization source list, so that the new synchronization source can be determined from the synchronization source list later. The third destination room of the source.
本发明实施例所提供的技术方案,首先确定所有机房中机器的第一数量,并根据该第一数量在所有机房中确定第一目标机房制作目标镜像,然后分别查询各个待同步机房中机器的第二数量以及各个同步源机房中机器的第三数量,并根据该第二数量在待同步机房中确定第二目标机房,以及根据该第三数量在同步源机房中确定第三目标机房,从而将第三目标机房作为同步源对第二目标机房进行目标镜像的同步,再重复上述第二目标机房和第三目标机房的确定过程及同步过程,直至完成所有机房的同步。本发明实施例所提供的技术方案,取消了对主机房的限定,通过实时确定每个机房可用的服务器台数,并从中选取合适的同步源及同步对象进行同步,避免了链路固定的问题,从而降低了对业务服务的影响,也避免了因某个机房同步故障而导致无法继续同步的问题,实现了为每个机房快速高效的同步镜像。The technical solution provided by the embodiment of the present invention firstly determines the first number of machines in all the computer rooms, and determines the first target computer room in all the computer rooms to make a target image according to the first number, and then queries the machines in each to-be-synchronized computer room respectively. The second number and the third number of machines in each synchronization source computer room, the second target computer room is determined in the to-be-synchronized computer room according to the second number, and the third target computer room is determined in the synchronization source computer room according to the third number, so that The third target computer room is used as the synchronization source to synchronize the target mirror image of the second target computer room, and the above-mentioned determination process and synchronization process of the second target computer room and the third target computer room are repeated until the synchronization of all computer rooms is completed. The technical solution provided by the embodiment of the present invention cancels the limitation on the main engine room, and avoids the problem of fixed links by determining the number of servers available in each computer room in real time, and selecting an appropriate synchronization source and synchronization object for synchronization. In this way, the impact on business services is reduced, and the problem that synchronization cannot be continued due to a synchronization failure of a certain computer room is also avoided, and fast and efficient synchronization mirroring for each computer room is realized.
实施例二Embodiment 2
图2为本发明实施例二提供的跨机房镜像同步装置的结构示意图,该装置可以由硬件和/或软件的方式来实现,一般可集成于计算机设备中,用于执行本发明任意实施例所提供的跨机房镜像同步方法。如图2所示,该装置包括:FIG. 2 is a schematic structural diagram of a cross-machine room mirror synchronization device provided in Embodiment 2 of the present invention. The device may be implemented by hardware and/or software, and may generally be integrated into computer equipment for executing any of the embodiments of the present invention. Provides a method for mirror synchronization across computer rooms. As shown in Figure 2, the device includes:
第一目标机房确定模块21,用于确定所有机房中机器的第一数量,并根据所述第一数量在所有机房中确定第一目标机房制作目标镜像;The first target computer
第二目标机房确定模块22,用于查询各个待同步机房中机器的第二数量,并根据所述第二数量在所述待同步机房中确定第二目标机房;The second target computer
第三目标机房确定模块23,用于查询已拥有所述目标镜像的各个同步源机房中机器的第三数量,并根据所述第三数量在所述同步源机房中确定第三目标机房,其中,所述同步源机房包括所述第一目标机房;The third target computer
目标镜像同步模块24,用于将所述第三目标机房作为同步源对所述第二目标机房进行所述目标镜像的同步,并返回所述第二目标机房确定模块继续执行,直至完成所有机房的同步。The target
本发明实施例所提供的技术方案,首先确定所有机房中机器的第一数量,并根据该第一数量在所有机房中确定第一目标机房制作目标镜像,然后分别查询各个待同步机房中机器的第二数量以及各个同步源机房中机器的第三数量,并根据该第二数量在待同步机房中确定第二目标机房,以及根据该第三数量在同步源机房中确定第三目标机房,从而将第三目标机房作为同步源对第二目标机房进行目标镜像的同步,再重复上述第二目标机房和第三目标机房的确定过程及同步过程,直至完成所有机房的同步。本发明实施例所提供的技术方案,取消了对主机房的限定,通过实时确定每个机房可用的服务器台数,并从中选取合适的同步源及同步对象进行同步,避免了链路固定的问题,从而降低了对业务服务的影响,也避免了因某个机房同步故障而导致无法继续同步的问题,实现了为每个机房快速高效的同步镜像。The technical solution provided by the embodiment of the present invention firstly determines the first number of machines in all the computer rooms, and determines the first target computer room in all the computer rooms to make a target image according to the first number, and then queries the machines in each to-be-synchronized computer room respectively. The second number and the third number of machines in each synchronization source computer room, the second target computer room is determined in the to-be-synchronized computer room according to the second number, and the third target computer room is determined in the synchronization source computer room according to the third number, so that The third target computer room is used as the synchronization source to synchronize the target mirror image of the second target computer room, and the above-mentioned determination process and synchronization process of the second target computer room and the third target computer room are repeated until the synchronization of all computer rooms is completed. The technical solution provided by the embodiment of the present invention cancels the limitation on the main engine room, and avoids the problem of fixed links by determining the number of servers available in each computer room in real time, and selecting an appropriate synchronization source and synchronization object for synchronization. In this way, the impact on business services is reduced, and the problem that synchronization cannot be continued due to a synchronization failure of a certain computer room is also avoided, and fast and efficient synchronization mirroring for each computer room is realized.
在上述技术方案的基础上,可选的,第一目标机房确定模块21具体用于:On the basis of the above technical solution, optionally, the first target computer
将所有机房中所述第一数量最小的机房确定为所述第一目标机房;Determining the computer room with the smallest first quantity among all the computer rooms as the first target computer room;
第二目标机房确定模块22具体用于:The second target computer
将所述待同步机房中所述第二数量最小的机房确定为所述第二目标机房;Determining the computer room with the smallest second quantity among the computer rooms to be synchronized as the second target computer room;
第三目标机房确定模块23具体用于:The third target computer
将所述同步源机房中所述第三数量最小的机房确定为所述第三目标机房。The computer room with the smallest third number in the synchronization source computer room is determined as the third target computer room.
在上述技术方案的基础上,可选的,第三目标机房确定模块23,包括:On the basis of the above technical solution, optionally, the third target computer
目标同步源机房确定单元,用于在所述同步源机房中确定与所述第二目标机房的云厂商相同的目标同步源机房;a target synchronization source computer room determining unit, configured to determine in the synchronization source computer room the same target synchronization source computer room as the cloud vendor of the second target computer room;
第一确定单元,用于查询各个所述目标同步源机房中机器的第四数量,并根据所述第四数量在所述目标同步源机房中确定所述第三目标机房。The first determining unit is configured to query the fourth quantity of machines in each of the target synchronization source computer rooms, and determine the third target computer room in the target synchronization source computer room according to the fourth quantity.
在上述技术方案的基础上,可选的,第三目标机房确定模块23,还包括:On the basis of the above technical solution, optionally, the third target computer
第二确定单元,用于若所述同步源机房中不存在所述目标同步源机房,则根据所述第三数量在所述同步源机房中确定第三目标机房。A second determining unit, configured to determine a third target computer room in the synchronization source computer room according to the third quantity if the target synchronization source computer room does not exist in the synchronization source computer room.
在上述技术方案的基础上,可选的,目标镜像同步模块24,包括:On the basis of the above technical solution, optionally, the target
同步源请求发送单元,用于通过所述第三目标机房向所述第二目标机房的同步服务发送同步源请求。A synchronization source request sending unit, configured to send a synchronization source request to the synchronization service of the second target computer room through the third target computer room.
在上述技术方案的基础上,可选的,目标镜像同步模块24,还包括:On the basis of the above technical solution, optionally, the target
信息表加入单元,用于在所述通过所述第三目标机房向所述第二目标机房的同步服务发送同步源请求之后,将所述第二目标机房加入到同步任务队列信息表;an information table adding unit, configured to add the second target computer room to the synchronization task queue information table after the synchronization source request is sent to the synchronization service of the second target computer room through the third target computer room;
信息表查询单元,用于按照预设周期查询所述同步任务队列信息表,以确定所述第二目标机房的同步情况,直至同步完成。The information table query unit is configured to query the synchronization task queue information table according to a preset period to determine the synchronization situation of the second target computer room until the synchronization is completed.
在上述技术方案的基础上,可选的,该跨机房镜像同步装置,还包括:On the basis of the above technical solution, optionally, the cross-machine room mirror synchronization device further includes:
第一同步源列表加入模块,用于在所述根据所述第一数量在所有机房中确定第一目标机房制作目标镜像之后,将所述第一目标机房加入到同步源列表;a first synchronization source list adding module, configured to add the first target computer room to the synchronization source list after the first target computer room is determined in all computer rooms according to the first number to create a target mirror image;
第二同步源列表加入模块,用于在所述将所述第三目标机房作为同步源对所述第二目标机房进行所述目标镜像的同步之后,将所述第二目标机房加入到所述同步源列表,以根据所述同步源列表确定所述同步源机房。The second synchronization source list adding module is configured to add the second target computer room to the A synchronization source list, so as to determine the synchronization source computer room according to the synchronization source list.
本发明实施例所提供的跨机房镜像同步装置可执行本发明任意实施例所提供的跨机房镜像同步方法,具备执行方法相应的功能模块和有益效果。The cross-machine room mirror synchronization apparatus provided by the embodiment of the present invention can execute the cross-machine room mirror synchronization method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects of the execution method.
值得注意的是,在上述跨机房镜像同步装置的实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that, in the above embodiment of the cross-machine room mirror synchronization device, the included units and modules are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; In addition, the specific names of the functional units are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present invention.
实施例三Embodiment 3
图3为本发明实施例三提供的计算机设备的结构示意图,示出了适于用来实现本发明实施方式的示例性计算机设备的框图。图3显示的计算机设备仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。如图3所示,该计算机设备包括处理器31、存储器32、输入装置33及输出装置34;计算机设备中处理器31的数量可以是一个或多个,图3中以一个处理器31为例,计算机设备中的处理器31、存储器32、输入装置33及输出装置34可以通过总线或其他方式连接,图3中以通过总线连接为例。FIG. 3 is a schematic structural diagram of a computer device according to Embodiment 3 of the present invention, and shows a block diagram of an exemplary computer device suitable for implementing the embodiments of the present invention. The computer device shown in FIG. 3 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present invention. As shown in FIG. 3 , the computer device includes a
存储器32作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本发明实施例中的跨机房镜像同步方法对应的程序指令/模块(例如,跨机房镜像同步装置中的第一目标机房确定模块21、第二目标机房确定模块22、第三目标机房确定模块23及目标镜像同步模块24)。处理器31通过运行存储在存储器32中的软件程序、指令以及模块,从而执行计算机设备的各种功能应用以及数据处理,即实现上述的跨机房镜像同步方法。As a computer-readable storage medium, the
存储器32可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据计算机设备的使用所创建的数据等。此外,存储器32可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器32可进一步包括相对于处理器31远程设置的存储器,这些远程存储器可以通过网络连接至计算机设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The
输入装置33可用于实时获取各个机房中可用服务器的台数,以及产生与计算机设备的用户设置和功能控制有关的键信号输入等。输出装置34可用于向各机房发送同步任务等等。The
实施例四Embodiment 4
本发明实施例四还提供一种包含计算机可执行指令的存储介质,该计算机可执行指令在由计算机处理器执行时用于执行一种跨机房镜像同步方法,该方法包括:Embodiment 4 of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are used to execute a cross-machine room mirror synchronization method when executed by a computer processor, and the method includes:
步骤A、确定所有机房中机器的第一数量,并根据所述第一数量在所有机房中确定第一目标机房制作目标镜像;Step A, determine the first number of machines in all computer rooms, and determine the first target computer room in all computer rooms according to the first number to make a target mirror image;
步骤B、查询各个待同步机房中机器的第二数量,并根据所述第二数量在所述待同步机房中确定第二目标机房;Step B, query the second quantity of machines in each to-be-synchronized computer room, and determine a second target computer room in the to-be-synchronized computer room according to the second quantity;
步骤C、查询已拥有所述目标镜像的各个同步源机房中机器的第三数量,并根据所述第三数量在所述同步源机房中确定第三目标机房,其中,所述同步源机房包括所述第一目标机房;Step C: Query the third number of machines in each synchronization source computer room that already owns the target image, and determine the third target computer room in the synchronization source computer room according to the third number, wherein the synchronization source computer room includes: the first target computer room;
步骤D、将所述第三目标机房作为同步源对所述第二目标机房进行所述目标镜像的同步,并返回执行步骤B,直至完成所有机房的同步。Step D, using the third target computer room as a synchronization source to synchronize the target mirroring of the second target computer room, and returning to step B until the synchronization of all computer rooms is completed.
存储介质可以是任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDR RAM、SRAM、EDO RAM、兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到计算机系统。第二计算机系统可以提供程序指令给计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。The storage medium may be any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROMs, floppy disks, or tape devices; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc. ; non-volatile memory, such as flash memory, magnetic media (eg hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system connected to the computer system through a network such as the Internet. The second computer system may provide program instructions to the computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (eg, in different computer systems connected by a network). The storage medium may store program instructions (eg, embodied as a computer program) executable by one or more processors.
当然,本发明实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的方法操作,还可以执行本发明任意实施例所提供的跨机房镜像同步方法中的相关操作。Of course, a storage medium containing computer-executable instructions provided by an embodiment of the present invention, the computer-executable instructions of which are not limited to the above-mentioned method operations, and can also execute the cross-machine room mirror synchronization method provided by any embodiment of the present invention related operations in .
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer-readable signal medium may include a propagated data signal in baseband or as part of a carrier wave, with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、电线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本发明可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。From the above description of the embodiments, those skilled in the art can clearly understand that the present invention can be realized by software and necessary general-purpose hardware, and of course can also be realized by hardware, but in many cases the former is a better embodiment . Based on such understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products can be stored in a computer-readable storage medium, such as a floppy disk of a computer , read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (FLASH), hard disk or CD, etc., including several instructions to make a computer device (which can be a personal computer, A server, or a network device, etc.) executes the methods described in the various embodiments of the present invention.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention. The scope is determined by the scope of the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111621405.3A CN114296874A (en) | 2021-12-28 | 2021-12-28 | Cross-machine-room mirror image synchronization method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111621405.3A CN114296874A (en) | 2021-12-28 | 2021-12-28 | Cross-machine-room mirror image synchronization method and device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114296874A true CN114296874A (en) | 2022-04-08 |
Family
ID=80968959
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111621405.3A Pending CN114296874A (en) | 2021-12-28 | 2021-12-28 | Cross-machine-room mirror image synchronization method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114296874A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108170508A (en) * | 2017-12-12 | 2018-06-15 | 顺丰科技有限公司 | Batch creates method, apparatus, equipment and its storage medium of virtual machine |
CN110377397A (en) * | 2019-07-09 | 2019-10-25 | 中信百信银行股份有限公司 | The method of storage application rapid deployment dilatation based on the duplication of empty machine |
-
2021
- 2021-12-28 CN CN202111621405.3A patent/CN114296874A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108170508A (en) * | 2017-12-12 | 2018-06-15 | 顺丰科技有限公司 | Batch creates method, apparatus, equipment and its storage medium of virtual machine |
CN110377397A (en) * | 2019-07-09 | 2019-10-25 | 中信百信银行股份有限公司 | The method of storage application rapid deployment dilatation based on the duplication of empty machine |
Non-Patent Citations (1)
Title |
---|
魏磊 等: "云数据管理实战指南", 31 March 2021, 机械工业出版社, pages: 31 - 36 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100423225B1 (en) | Merge protocol for clustered computer system | |
US20150019491A1 (en) | Replication of Data Between Mirrored Data Sites | |
JP2019526106A (en) | Data processing method and device | |
US11640261B2 (en) | Log processing method to avoid log collision, and related device and system | |
EP3817338B1 (en) | Method and apparatus for acquiring rpc member information, electronic device and storage medium | |
JP6700308B2 (en) | Data copy method and device | |
CN112052230B (en) | Multi-machine room data synchronization method, computing device and storage medium | |
WO2022134797A1 (en) | Data fragmentation storage method and apparatus, a computer device, and a storage medium | |
CN112015595B (en) | Master-slave database switching method, computing device and storage medium | |
WO2017152860A1 (en) | Heartbeat information sending method and device, and heartbeat sending node | |
CN107295030B (en) | Data writing method and device, data processing method, device and system | |
CN114281600A (en) | Disaster recovery backup and recovery method, device, equipment and storage medium | |
KR20140047230A (en) | Method for optimizing distributed transaction in distributed system and distributed system with optimized distributed transaction | |
CN105373563B (en) | Database switching method and device | |
CN110798358B (en) | Distributed service identification method and device, computer readable medium and electronic equipment | |
JP2018014049A (en) | Information processing system, information processing apparatus, information processing method, and program | |
US11290318B2 (en) | Disaster recovery of cloud resources | |
JP2017538237A (en) | Method, apparatus, and system for displaying virtual machine names | |
CN114296874A (en) | Cross-machine-room mirror image synchronization method and device, computer equipment and storage medium | |
CN117112690A (en) | Data synchronization method of distributed cluster and related equipment thereof | |
CN114221971A (en) | Data synchronization method, device, server, storage medium and product | |
CN114064339A (en) | Data request processing method and device, electronic equipment and storage medium | |
JP5464449B2 (en) | Method for detecting inconsistency between processing units considering reboot due to failure, shared apparatus, and cluster system | |
CN114928604B (en) | File distribution method and device | |
JP5449471B2 (en) | Method for synchronous processing of update processing for shared data, data sharing system, and data sharing program |
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 | ||
CB02 | Change of applicant information |
Address after: 518000 702, block 5D, software industry base, 14 Haitian 2nd Road, Binhai community, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province Applicant after: Shenzhen Weike Software Technology Co.,Ltd. Address before: 518000 7022, block 5D, software industry base, No. 14, Haitian Second Road, Binhai community, Yuehai street, Nanshan District, Shenzhen, Guangdong Applicant before: Shenzhen Weike Software Technology Co.,Ltd. |
|
CB02 | Change of applicant information |