Multi-machine backup method and system

A technology for backing up and backing up files, which is applied in the computer field and can solve problems such as inability to back up data to a backup machine, data loss, and inconsistent business process status

Active Publication Date: 2016-02-03
TENCENT TECH (SHENZHEN) CO LTD
View PDF7 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, after the original machine goes down and the business process stops, the data of the business process in the memory space of the original machine will be lost
When the backup machine takes over the original machine to execute the business process, the original machine can only back up the data of the business process in the disk to the backup machine, but cannot back up the data in the memory space to the backup machine
In this way, if the backup machine restores the business process based on the data stored in the disk, the state of the business process will be inconsistent when the backup machine executes the business process and when the original machine is down. For example, before the downtime, the state of the business process is After the user logs in online and the backup machine takes over the original machine, since the backup machine does not have the user's online data, the status of the business process is that the user is not online

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Multi-machine backup method and system
  • Multi-machine backup method and system
  • Multi-machine backup method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] Such as figure 1 As shown in the block diagram of the multi-machine backup system, a multi-machine backup method provided by the embodiment of the present invention is based on the multi-machine backup system. The multi-machine backup system includes an original machine 11 and at least one backup machine 12 connected thereto. Wherein, the machines included in the multi-machine backup system are used to run different services to ensure the normal operation of the services. Specifically, the services run by the machines included in the multi-machine backup system may be such as QQ instant message service and related services, online transaction services such as Taobao, and game services such as QQ games. The business process described in this application refers to the process of online transaction services such as QQ and Taobao, and game services such as QQ games.

[0026] It should be noted that this method is applied to an original machine and a backup machine with a L...

Embodiment 2

[0081] Based on the multi-machine backup method described in Embodiment 1, the embodiment of the present invention also provides a multi-machine backup method, such as image 3 As shown, the method includes:

[0082] 301. The original machine calls the memory mapping function mmap() of the business process to map the data of the business process into the memory, and mark the mapping area in the memory where the data is mapped as shared.

[0083] 302. The original machine calls a refresh change function msync() to write the data of the service process in the mapping area into a backup file; wherein the backup file is located in a disk.

[0084] 303. The original machine sends the data in the backup file to the backup machine.

[0085] It should be noted that, for the detailed description of steps 301-303, reference may be made to the description of steps 101-103, which will not be repeated here in this embodiment of the present invention.

[0086] 304. The backup machine stor...

Embodiment 3

[0096] The embodiment of the present invention provides a multi-machine backup system, such as figure 1 Said, the system includes an original machine and at least one backup machine connected thereto. Specifically, such as Figure 4 As shown, the original machine includes a memory mapping module 41, a data refresh module 42 and a data sending module 43;

[0097] The memory mapping module 41 is used to call the memory mapping function mmap() of the service process, map the data of the service process into the memory, and mark the mapping area of ​​the data in the memory as shared;

[0098] The data refresh module 42 is used to call the refresh change function msync(), and write the data of the business process in the mapping area into a backup file; wherein, the backup file is located in a disk;

[0099] The data sending module 43 is configured to send the data in the backup file to the backup machine.

[0100] Optionally, the data refresh module 42 is specifically configure...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

Embodiments of the invention provide a multi-machine backup method and system, so that the problem that a business process of a backup machine is not consistent with a business process of an original machine after being recovered can be avoided. The method comprises the steps that: the original machine calls a memory map creation function mmap() of the business process to map data of the business process into a memory, and marks that a mapping region of mapping data in the memory is shared; the original machine calls a refresh change function msync() to write the data of the business process in the mapping region into a backup file, wherein the backup file is positioned in a disk; and the original machine sends the data in the backup file to the backup machine. The multi-machine backup method and system are suitable for multi-machine backup of a business system.

Description

technical field [0001] The invention relates to the field of computers, in particular to a multi-computer backup method and system. Background technique [0002] For large-scale business systems, it is often necessary to ensure the reliability and continuity of business processes. For example, by deploying business processes on multiple machines, when the original machine executes the business process down, other machines can be used as backup machines to execute the business process. , so as to resume the business process in time. [0003] Among them, in order for the backup machine to successfully take over the original machine to execute the business process, it needs the data of the business process when the original machine is down. For example, for large-scale business systems such as QQ and Taobao, after the original machine goes down, the backup machine takes over the original machine and executes the business process, which requires user registration information, u...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/14
Inventor 孙子荀
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products