CN113687982B - Method and device for constructing off-site disaster recovery cluster and related equipment - Google Patents
Method and device for constructing off-site disaster recovery cluster and related equipment Download PDFInfo
- Publication number
- CN113687982B CN113687982B CN202110962590.6A CN202110962590A CN113687982B CN 113687982 B CN113687982 B CN 113687982B CN 202110962590 A CN202110962590 A CN 202110962590A CN 113687982 B CN113687982 B CN 113687982B
- Authority
- CN
- China
- Prior art keywords
- site
- information
- master
- slave
- constructing
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 70
- 238000011084 recovery Methods 0.000 title claims abstract description 69
- 238000010276 construction Methods 0.000 claims abstract description 65
- 230000008569 process Effects 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 12
- 230000002159 abnormal effect Effects 0.000 claims description 10
- 238000012544 monitoring process Methods 0.000 claims description 3
- 230000009286 beneficial effect Effects 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 6
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000002360 explosive Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Quality & Reliability (AREA)
- Databases & Information Systems (AREA)
- Alarm Systems (AREA)
Abstract
The application discloses a method for constructing a disaster recovery cluster in different places, which comprises the steps of obtaining configuration information of a main site according to a main site constructing instruction; constructing and generating a main site according to the main site configuration information; pulling master site building information from the master site according to a slave site building instruction; constructing and generating a slave site according to the master site construction information; the method for constructing the disaster recovery clusters in different places can realize the automatic construction of the disaster recovery clusters in different places, and effectively improves the construction efficiency of the disaster recovery clusters. The application also discloses a device, a system and a computer readable storage medium for constructing the remote disaster recovery cluster, which have the beneficial effects.
Description
Technical Field
The present invention relates to the technical field of data disaster recovery backup, and in particular, to a method for constructing a disaster recovery cluster in different places, and also relates to a device, a system and a computer readable storage medium for constructing a disaster recovery cluster in different places.
Background
With the explosive growth of massive unstructured data, distributed object storage has become a storage foundation for users to build data center architecture, and more key services are accessed into the distributed object storage. In the scene, the distributed object storage product not only needs to ensure the storage requirement of customers on mass data, but also can meet the disaster recovery backup of key data. For example, in the financial industry, a city has a plurality of data centers, and each data center performs data synchronization, backup and sharing, so as to ensure that user services continue to run when a certain cluster fails. The common disaster recovery modes in the current market can be divided into scenes such as the disaster recovery in the same city, the disaster recovery in different places, the double-activity data center, the two-place three-center and the like.
At present, how to build the disaster recovery clusters in different places is different, but generally, after the clusters are built, the configuration files are modified to specify the cluster roles so as to enable the clusters to be connected, so that the multi-site clusters for disaster recovery backup in different places are built, the operation process involves modification and information synchronization of the configuration items and the configuration files, and the purely manual modification is time-consuming and labor-consuming, so that the efficiency is low.
Therefore, how to realize the automatic construction of the disaster recovery clusters in different places and improve the construction efficiency of the disaster recovery clusters are the problems to be solved by the technicians in the field.
Disclosure of Invention
The method for constructing the remote disaster recovery clusters can realize automatic construction of the remote disaster recovery clusters, and effectively improves the construction efficiency of the disaster recovery clusters; another object of the present application is to provide a device, a system and a computer readable storage medium for constructing a disaster recovery cluster in different places, which have the above beneficial effects.
In a first aspect, the present application provides a method for constructing a disaster recovery cluster in different places, including:
acquiring configuration information of a main site according to a main site building instruction;
constructing and generating a main site according to the main site configuration information;
pulling master site building information from the master site according to a slave site building instruction;
and constructing and generating a slave site according to the master site construction information.
Preferably, the creating a master site according to the master site configuration information includes:
creating realm, zonegroup, zone and system user admin according to the master site configuration information;
obtaining a public key and a private key of the admin of the system user, and writing the public key and the private key into a main site configuration file;
and modifying the public key and the private key of the zone according to the public key and the private key, and synchronizing the period to complete the construction of the master site.
Preferably, the pulling the master site building information from the master site according to the slave site building instruction includes:
acquiring secondary site configuration information and primary site information according to the secondary site building instruction;
and pulling the master site construction information from the master site according to the slave site configuration information and the master site information.
Preferably, the master site information includes master site address information and public keys and private keys of admin of the system user, and the creating the slave site according to the master site creation information includes:
pulling real information and period information from the master site according to the address information of the master site;
creating a real by using the real information, and synchronizing a period by using the period information;
creating zonegroup and zone according to the slave site configuration information;
and writing the public key and the private key of the admin of the system user into the configuration file of the slave site, and completing the construction of the slave site.
Preferably, the method for constructing the off-site disaster recovery cluster further comprises the following steps:
real-time monitoring is carried out on the construction process of the master site and the slave site;
when the abnormal information is monitored, a failed rollback operation is performed at the abnormal location.
Preferably, the method for constructing the off-site disaster recovery cluster further comprises the following steps:
and outputting an alarm prompt when the execution times of the failed rollback operation exceeds the preset times.
Preferably, after the generating the master site according to the master site configuration information is set up, the method further includes:
outputting the construction completion information of the main site to a user side;
after the secondary site is built according to the primary site building information, the method further comprises the steps of:
and outputting the site building completion information to the user side.
In a second aspect, the present application further discloses a device for constructing a disaster recovery cluster in different places, including:
the information acquisition module is used for acquiring the configuration information of the main site according to the main site construction instruction;
the main site building module is used for building and generating a main site according to the main site configuration information;
the information pulling module is used for pulling the master site building information from the master site according to the slave site building instruction;
and the slave site building module is used for building and generating slave sites according to the master site building information.
In a third aspect, the present application further discloses a system for constructing a disaster recovery cluster in different places, including:
a memory for storing a computer program;
and the processor is used for realizing any one of the steps of the method for constructing the off-site disaster recovery cluster when executing the computer program.
In a fourth aspect, the present application further discloses a computer readable storage medium, where a computer program is stored, where the computer program, when executed by a processor, implements the steps of any of the off-site disaster recovery cluster building methods described above.
The method for constructing the remote disaster recovery cluster comprises the steps of obtaining configuration information of a main site according to a main site constructing instruction; constructing and generating a main site according to the main site configuration information; pulling master site building information from the master site according to a slave site building instruction; and constructing and generating a slave site according to the master site construction information.
Therefore, compared with the mode of manually modifying configuration files, the method greatly optimizes the operation flow of multi-site environment construction and effectively improves the environment deployment efficiency.
The device, the system and the computer readable storage medium for constructing the remote disaster recovery cluster provided by the application have the beneficial effects and are not repeated here.
Drawings
In order to more clearly illustrate the prior art and the technical solutions in the embodiments of the present application, the following will briefly describe the drawings that need to be used in the description of the prior art and the embodiments of the present application. Of course, the following figures related to the embodiments of the present application are only some of the embodiments of the present application, and it is obvious to those skilled in the art that other figures can be obtained from the provided figures without any inventive effort, and the obtained other figures also belong to the protection scope of the present application.
Fig. 1 is a schematic flow chart of a method for constructing a disaster recovery cluster in different places provided by the application;
fig. 2 is a timing chart of a method for setting up a master site provided in the present application;
FIG. 3 is a timing diagram of a method of slave station setup provided herein;
fig. 4 is a schematic structural diagram of a device for constructing a disaster recovery cluster in different places provided by the application;
fig. 5 is a schematic structural diagram of a system for constructing a disaster recovery cluster in different places provided by the application.
Detailed Description
The core of the application is to provide a method for constructing the remote disaster recovery cluster, which can realize the automatic construction of the remote disaster recovery cluster and effectively improve the construction efficiency of the disaster recovery cluster; another core of the present application is to provide a device, a system and a computer readable storage medium for constructing a disaster recovery cluster in different places, which also have the above-mentioned beneficial effects.
In order to more clearly and completely describe the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The embodiment of the application provides a method for constructing a disaster recovery cluster in different places.
Referring to fig. 1, fig. 1 is a flow chart of a method for constructing a disaster recovery cluster in a different place, where the method for constructing a disaster recovery cluster in a different place may include:
s101: acquiring configuration information of a main site according to a main site building instruction;
the step aims at obtaining configuration information of a master site, wherein the configuration information of the master site is used for realizing construction of the master site and can include but is not limited to site role information, master site name information and the like. Specifically, a user can input a main site building instruction through a user side, and after receiving the main site building instruction, main site management software can obtain main site configuration information through analyzing the instruction; of course, the primary site configuration information may also be directly input by the user through the user side, that is, the primary site setup instruction and the primary site configuration information are input simultaneously or sequentially.
S102: constructing and generating a main site according to the configuration information of the main site;
the step aims at realizing the construction of the master site, after the configuration information of the master site is obtained, the configuration information of the master site can be utilized to enter a construction flow of the master site, and finally the master site is generated. It should be noted that, the process of setting up the master site may be implemented by the master site management software, and after receiving the configuration information of the master site, the process may perform automatic setting up of the master site according to the configuration information of the master site.
As a preferred embodiment, the creating the master site according to the master site configuration information may include: creating realm, zonegroup, zone and admin of a system user according to the configuration information of the main site; obtaining a public key and a private key of a system user admin, and writing the public key and the private key into a main site configuration file; and modifying the public key and the private key of the zone according to the public key and the private key, and synchronizing period to complete the construction of the master site.
The preferred embodiment provides a method for setting up a master site, specifically, after master site configuration information is obtained, realm, zonegroup, zone and a system user admin can be set up in sequence according to the master site configuration information, and meanwhile, a public key and a private key of the system user admin are obtained so as to modify the public key and the private key of a zone, write the public key and the private key into a master site configuration file, synchronize the public key and the private key to all nodes in a cluster, and finally complete the setting up of the master site by synchronizing period.
Wherein, a zone is a logical object storage cluster, and a zone comprises a plurality of RGW (object storage gateway) instances; zonegroup comprises one or more zones; realm represents a globally unique namespace containing one or more zonegroups, and realm uses the concept of period to manage the configuration state of zonegroups and zones, so that period update and commit operations are performed each time a change is made to a zonegroup or zone.
S103: pulling the master site building information from the master site according to the slave site building instruction;
the step aims at realizing the pulling of the construction information of the master site so as to be used for constructing the slave site. Specifically, when receiving the slave site construction instruction, the master site can be logged in so as to draw master site construction information from the master site, wherein the master site construction information is information required in the process of constructing the master site and generated information, and because the remote disaster recovery cluster is used for realizing data disaster recovery backup, the master site and the slave site are backup sites, the slave site can be constructed directly by using the master site construction information. In addition, the obtaining of the slave site building instruction is similar to that of the master site building instruction, and the description of the application is omitted here.
As a preferred embodiment, the pulling the master site building information from the master site according to the slave site building instruction may include: acquiring configuration information of a slave site and information of a master site according to a slave site building instruction; and pulling the master site construction information from the master site according to the slave site configuration information and the master site information.
The preferred embodiment provides a method for acquiring the construction information of the master site. Specifically, the configuration information of the slave site and the information of the master site can be obtained according to the construction instruction of the slave site, and the configuration information and the information of the master site can be realized by an instruction analysis method; furthermore, the main site can be logged in according to the main site information to obtain the main site construction information. The master site information can comprise master site address information, so that slave site management software logs in the master site to acquire master site building information; the slave site configuration information may include, but is not limited to, site role information, slave site name information, and the like.
S104: and constructing and generating a slave site according to the master site construction information.
The method aims at realizing the construction of the slave site, namely directly utilizing the construction information of the master site to realize the construction of the slave site. Likewise, the secondary site building process can be implemented by secondary site management software, which can automatically build secondary sites according to the primary site building information after receiving the primary site building information.
As a preferred embodiment, the master site information includes master site address information and public keys and private keys of admin of the system user, and the generating the slave site according to the master site setup information may include: pulling real information and period information from a master site according to the address information of the master site; creating a real by using the real information and synchronizing a period by using the period information; creating zonegroup and zone according to the slave site configuration information; and writing the public key and the private key of the admin of the system user into the configuration file of the slave site, and completing the construction of the slave site.
The preferred embodiment provides a method for constructing a slave station. Firstly, the master site information may include the master site address information and public keys and private keys of the admin of the system user, so that for the slave site management software, after obtaining the master site information, the slave site management software may pull real information and period information from the master site according to the master site address information, which are respectively used for implementing the creation of real and the synchronization of period; meanwhile, creating zonegroup and zone according to the configuration information of the slave site, and directly writing a public key and a private key of a system user admin in the information of the master site into the configuration file of the slave site, thereby completing the construction of the slave site.
As a preferred embodiment, after the generating the master site according to the master site configuration information, the method may further include: outputting the construction completion information of the main site to a user side; after the generating the slave site according to the master site building information, the method may further include: and outputting the site building completion information to the user side.
The method for constructing the remote disaster recovery cluster can realize an information feedback function, namely, after construction of the master site and the slave site is completed, corresponding site construction completion information can be fed back to the user side so as to inform the user that the current site is constructed.
As a preferred embodiment, the method for constructing the off-site disaster recovery cluster may further include: real-time monitoring is carried out on the construction process of the master site and the slave site; when the abnormal information is monitored, a failed rollback operation is performed at the abnormal location.
The method for constructing the off-site disaster recovery cluster can realize the failed rollback operation, namely, in the site construction process, the implementation process can be monitored in real time, and once abnormal information is captured, the failed rollback operation can be directly executed at an abnormal position, namely, in the deployment process, if any step is wrong, the rollback operation is performed to a state before the error occurs based on the wrong step, so that the operation efficiency is improved.
As a preferred embodiment, the method for constructing the off-site disaster recovery cluster may further include: and outputting an alarm prompt when the execution times of the failed rollback operation exceeds the preset times.
The method for constructing the remote disaster recovery cluster can realize the alarm function, namely, when the execution times of the failed rollback operation exceeds the preset times, an alarm prompt is output to remind a technician of timely inquiring the abnormality. The specific value of the preset times does not affect implementation of the technical scheme, and is set by a technician according to actual conditions, so that the implementation is not limited.
Therefore, compared with the mode of manually modifying configuration files, the method greatly optimizes the operation flow of multi-site environment construction and effectively improves the environment deployment efficiency.
Based on the above embodiments, another method for constructing a disaster recovery cluster in different places is provided in the embodiments of the present application.
The method for constructing the remote disaster recovery cluster provided by the embodiment of the application is divided into two scene executions: the method comprises the steps of setting up a scene of a master site and setting up a scene of a slave site, wherein setting up of the master site is required to be executed firstly, and on the basis, a slave site cluster which is mutually backed up is set up.
1. Building a main station:
referring to fig. 2, fig. 2 is a timing chart of a method for setting up a master site provided in the present application, and a specific flow includes:
(1) Task input: the user inputs a site role and a main site name in a page configuration guide;
(2) And (3) task issuing: the user triggers the main site building flow by clicking the 'determining';
(3) Task execution: the management software builds multi-site related configuration (as shown in the timing diagram of fig. 2, including creating real, creating zonegroup, creating zone, creating system user admin, modifying configuration file, modifying zone's aksk (public key and private key), synchronizing period) according to the user input content;
(4) Failure rollback: when the execution failure occurs in the task execution process, rollback operation is carried out on the task with the failure execution;
(5) And after the task is successfully executed, the master site cluster is built. The user can query the public key, the private key and the synchronous endpoint address (master site address information) of the admin user from the management interface to build the slave site.
2. Building from a site:
referring to fig. 3, fig. 3 is a timing chart of a slave station building method provided in the present application, and the specific flow includes:
(1) Task input: the user inputs site roles, slave site names, master site synchronous endpoint addresses and public key private key information of master site admin users in a page configuration guide;
(2) And (3) task issuing: the user triggers the slave site building flow by clicking the 'determining';
(3) Task execution: the management software builds multi-site related configuration according to the user input content (as shown in the time chart of FIG. 3, including pulling the master site real, pulling the master site period, creating zonegroup, creating zone, synchronizing period and synchronizing configuration file);
(4) Failure rollback: when the execution failure occurs in the task execution process, rollback operation is carried out on the task with the failure execution;
(5) And after the task is successfully executed, completing the construction of the slave station cluster.
Therefore, compared with the mode of manually modifying configuration files, the method greatly optimizes the operation flow of multi-site environment construction and effectively improves the environment deployment efficiency.
In order to solve the above technical problems, the present application further provides a device for constructing a remote disaster recovery cluster, please refer to fig. 4, fig. 4 is a schematic structural diagram of the device for constructing a remote disaster recovery cluster provided in the present application, where the device for constructing a remote disaster recovery cluster may include:
the information acquisition module 1 is used for acquiring configuration information of a main site according to a main site building instruction;
the main site construction module 2 is used for constructing and generating a main site according to the main site configuration information;
the information pulling module 3 is used for pulling the master site building information from the master site according to the slave site building instruction;
the slave site building module 4 is used for building and generating slave sites according to the master site building information.
Therefore, compared with the mode of manually modifying configuration files, the method greatly optimizes the operation flow of multi-site environment construction and effectively improves the environment deployment efficiency.
As a preferred embodiment, the above-mentioned master site building module 2 may be specifically used for creating realm, zonegroup, zone and the system user admin according to the master site configuration information; obtaining a public key and a private key of a system user admin, and writing the public key and the private key into a main site configuration file; and modifying the public key and the private key of the zone according to the public key and the private key, and synchronizing period to complete the construction of the master site.
As a preferred embodiment, the information pulling module 3 may be specifically configured to obtain the configuration information of the slave station and the information of the master station according to the slave station setup instruction; and pulling the master site construction information from the master site according to the slave site configuration information and the master site information.
As a preferred embodiment, the slave site building module 4 may be specifically configured to pull real information and period information from the master site according to the address information of the master site; creating a real by using the real information and synchronizing a period by using the period information; creating zonegroup and zone according to the slave site configuration information; and writing the public key and the private key of the admin of the system user into the configuration file of the slave site, and completing the construction of the slave site.
As a preferred embodiment, the device for constructing the off-site disaster recovery cluster may further include a failure rollback module, configured to monitor the construction processes of the master site and the slave site in real time; when the abnormal information is monitored, a failed rollback operation is performed at the abnormal location.
As a preferred embodiment, the off-site disaster recovery cluster building device may further include an alarm prompt module, configured to output an alarm prompt when the number of execution times of the failed rollback operation exceeds a preset number of times.
As a preferred embodiment, the device for constructing a disaster recovery cluster in different places may further include an information feedback module, configured to output, after the main site is constructed and generated according to the configuration information of the main site, construction completion information of the main site to the user side; and after the slave site is built and generated according to the master site building information, outputting the building completion information of the slave site to the user side.
For the description of the apparatus provided in the present application, reference is made to the above method embodiments, and the description is omitted herein.
In order to solve the above technical problems, the present application further provides a system for constructing a remote disaster recovery cluster, please refer to fig. 5, fig. 5 is a schematic structural diagram of the system for constructing a remote disaster recovery cluster provided in the present application, and the device for constructing a remote disaster recovery cluster may include:
a memory 10 for storing a computer program;
the processor 20 is configured to implement any one of the above-mentioned steps of the method for constructing a disaster recovery cluster in different places when executing the computer program.
For the description of the system provided in the present application, reference is made to the above method embodiments, and the description is omitted herein.
In order to solve the above problems, the present application further provides a computer readable storage medium, where a computer program is stored on the computer readable storage medium, where the computer program when executed by a processor can implement the steps of any one of the above-mentioned off-site disaster recovery cluster building methods.
The computer readable storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
For the description of the computer-readable storage medium provided in the present application, reference is made to the above method embodiments, and the description is omitted herein.
In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. 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 application.
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. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The technical scheme provided by the application is described in detail. Specific examples are set forth herein to illustrate the principles and embodiments of the present application, and the description of the examples above is only intended to assist in understanding the methods of the present application and their core ideas. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the present application.
Claims (7)
1. The method for constructing the remote disaster recovery cluster is characterized by comprising the following steps of:
acquiring configuration information of a main site according to a main site building instruction;
constructing and generating a main site according to the main site configuration information;
pulling master site building information from the master site according to a slave site building instruction;
constructing and generating a slave site according to the master site construction information;
the step of constructing and generating the master site according to the master site configuration information comprises the following steps:
creating realm, zonegroup, zone and system user admin according to the master site configuration information;
obtaining a public key and a private key of the admin of the system user, and writing the public key and the private key into a main site configuration file;
modifying the public key and the private key of the zone according to the public key and the private key, and synchronizing period to complete the construction of a master site;
the step of pulling the master site building information from the master site according to the slave site building instruction comprises the following steps:
acquiring secondary site configuration information and primary site information according to the secondary site building instruction;
pulling the master site construction information from the master site according to the slave site configuration information and the master site information;
the master site information includes master site address information and public keys and private keys of admin of the system user, and the creating the slave site according to the master site creating information includes:
pulling real information and period information from the master site according to the address information of the master site;
creating a real by using the real information, and synchronizing a period by using the period information;
creating zonegroup and zone according to the slave site configuration information;
and writing the public key and the private key of the admin of the system user into the configuration file of the slave site, and completing the construction of the slave site.
2. The method for constructing a disaster recovery cluster in different places according to claim 1, further comprising:
real-time monitoring is carried out on the construction process of the master site and the slave site;
when the abnormal information is monitored, a failed rollback operation is performed at the abnormal location.
3. The method for constructing a disaster recovery cluster in different places according to claim 2, further comprising:
and outputting an alarm prompt when the execution times of the failed rollback operation exceeds the preset times.
4. The method for constructing a disaster recovery cluster in different places according to claim 1, wherein after constructing and generating a main site according to the configuration information of the main site, the method further comprises:
outputting the construction completion information of the main site to a user side;
after the secondary site is built according to the primary site building information, the method further comprises the steps of:
and outputting the site building completion information to the user side.
5. The utility model provides a device is built to different place disaster recovery cluster which characterized in that includes:
the information acquisition module is used for acquiring the configuration information of the main site according to the main site construction instruction;
the main site building module is used for building and generating a main site according to the main site configuration information;
the information pulling module is used for pulling the master site building information from the master site according to the slave site building instruction;
the slave site building module is used for building and generating slave sites according to the master site building information;
the secondary site building module is specifically configured to create realm, zonegroup, zone and a system user admin according to the primary site configuration information; obtaining a public key and a private key of the admin of the system user, and writing the public key and the private key into a main site configuration file; modifying the public key and the private key of the zone according to the public key and the private key, and synchronizing period to complete the construction of a master site;
the information pulling module is specifically used for acquiring the configuration information of the slave site and the information of the master site according to the construction instruction of the slave site; pulling the master site construction information from the master site according to the slave site configuration information and the master site information;
the master site information comprises master site address information and a public key and a private key of the system user admin, and the slave site building module is specifically used for: pulling real information and period information from the master site according to the address information of the master site; creating a real by using the real information, and synchronizing a period by using the period information; creating zonegroup and zone according to the slave site configuration information; and writing the public key and the private key of the admin of the system user into the configuration file of the slave site, and completing the construction of the slave site.
6. The utility model provides a system is built to different place disaster recovery cluster which characterized in that includes:
a memory for storing a computer program;
a processor for implementing the steps of the off-site disaster recovery cluster construction method according to any one of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and the computer program, when executed by a processor, implements the steps of the off-site disaster recovery cluster construction method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110962590.6A CN113687982B (en) | 2021-08-20 | 2021-08-20 | Method and device for constructing off-site disaster recovery cluster and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110962590.6A CN113687982B (en) | 2021-08-20 | 2021-08-20 | Method and device for constructing off-site disaster recovery cluster and related equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113687982A CN113687982A (en) | 2021-11-23 |
CN113687982B true CN113687982B (en) | 2024-02-09 |
Family
ID=78581280
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110962590.6A Active CN113687982B (en) | 2021-08-20 | 2021-08-20 | Method and device for constructing off-site disaster recovery cluster and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113687982B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107391294A (en) * | 2017-07-28 | 2017-11-24 | 郑州云海信息技术有限公司 | A kind of method for building up and device of IPSAN disaster tolerance systems |
CN109756958A (en) * | 2017-11-03 | 2019-05-14 | 珠海市魅族科技有限公司 | Communication means and communication device, access point apparatus and site apparatus |
CN112153134A (en) * | 2020-09-18 | 2020-12-29 | 北京浪潮数据技术有限公司 | Disaster tolerance drilling method, device, equipment and storage medium of disaster tolerance cloud host |
CN112241341A (en) * | 2019-07-16 | 2021-01-19 | 中兴通讯股份有限公司 | Remote disaster recovery method, device and system |
WO2021051582A1 (en) * | 2019-09-17 | 2021-03-25 | 平安科技(深圳)有限公司 | Host performance monitoring method and apparatus for server cluster, device, and storage medium |
CN112929438A (en) * | 2021-02-04 | 2021-06-08 | 中国工商银行股份有限公司 | Business processing method and device of double-site distributed database |
-
2021
- 2021-08-20 CN CN202110962590.6A patent/CN113687982B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107391294A (en) * | 2017-07-28 | 2017-11-24 | 郑州云海信息技术有限公司 | A kind of method for building up and device of IPSAN disaster tolerance systems |
CN109756958A (en) * | 2017-11-03 | 2019-05-14 | 珠海市魅族科技有限公司 | Communication means and communication device, access point apparatus and site apparatus |
CN112241341A (en) * | 2019-07-16 | 2021-01-19 | 中兴通讯股份有限公司 | Remote disaster recovery method, device and system |
WO2021008550A1 (en) * | 2019-07-16 | 2021-01-21 | 中兴通讯股份有限公司 | Method, device, and system for remote disaster tolerance |
WO2021051582A1 (en) * | 2019-09-17 | 2021-03-25 | 平安科技(深圳)有限公司 | Host performance monitoring method and apparatus for server cluster, device, and storage medium |
CN112153134A (en) * | 2020-09-18 | 2020-12-29 | 北京浪潮数据技术有限公司 | Disaster tolerance drilling method, device, equipment and storage medium of disaster tolerance cloud host |
CN112929438A (en) * | 2021-02-04 | 2021-06-08 | 中国工商银行股份有限公司 | Business processing method and device of double-site distributed database |
Non-Patent Citations (2)
Title |
---|
信息系统运维服务中数据备份与恢复管理研究;王继斌;刘环鹏;;信息技术(07);全文 * |
图书馆资源服务器集群互备和双站热备互动容灾框架;周佳骏;;图书馆工作与研究(03);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113687982A (en) | 2021-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022126974A1 (en) | Kafka-based incremental data synchronization method and apparatus, device, and medium | |
CN110865843B (en) | Page backtracking, information backup and problem solving method, system and equipment | |
CN110019443A (en) | Non-relational database transaction methods, device and electronic equipment | |
CN106161644B (en) | Distributed system for data processing and data processing method thereof | |
CN110942155A (en) | Research method of machine learning engine | |
CN113468170B (en) | System for automatically realizing real-time synchronization of data | |
CN112597014A (en) | Automatic testing method, device, medium and electronic equipment based on data driving | |
CN103885854A (en) | Data backup method, data backup device and data backup system | |
CN114553709B (en) | Topological relation display method and related equipment | |
CN111913933B (en) | Power grid historical data management method and system based on unified support platform | |
CN113962405A (en) | Intelligent submerged arc furnace remote operation and maintenance system | |
CN113783953A (en) | Industrial Internet of things network management and control method and system based on cloud edge cooperation | |
CN110011853B (en) | Cross fault troubleshooting method and device for multiple platforms and clusters | |
CN113687982B (en) | Method and device for constructing off-site disaster recovery cluster and related equipment | |
CN113395180B (en) | Industrial real-time big data acquisition and release method and industrial real-time big data platform | |
CN112612852B (en) | Data synchronization method and device, electronic equipment and storage medium | |
CN113157701A (en) | Dual-activity mechanism deployment method and device of ORACLE database | |
CN116501546A (en) | Data disaster recovery method, system, storage medium and equipment | |
CN115544169A (en) | Data synchronization method, device, equipment and storage medium | |
CN111797166B (en) | Method and device for synchronizing quasi-real-time resume data, electronic equipment and medium | |
CN110675283B (en) | Power distribution equipment synchronous management system and method | |
CN113127036A (en) | Software development system, method, apparatus and medium for continuous integration of code | |
CN111966680A (en) | Database storage expansion method and device | |
CN116560721B (en) | Vehicle diagnosis system, method and electronic equipment | |
CN114826902B (en) | Cross-region operation and maintenance data storage method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |