CN115840756B - Data updating method of main and standby modulation system, equipment and medium - Google Patents

Data updating method of main and standby modulation system, equipment and medium Download PDF

Info

Publication number
CN115840756B
CN115840756B CN202211605548.XA CN202211605548A CN115840756B CN 115840756 B CN115840756 B CN 115840756B CN 202211605548 A CN202211605548 A CN 202211605548A CN 115840756 B CN115840756 B CN 115840756B
Authority
CN
China
Prior art keywords
database
data
backup
library
updating
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
Application number
CN202211605548.XA
Other languages
Chinese (zh)
Other versions
CN115840756A (en
Inventor
赵化时
孙超
江伟
陆鑫
张喜铭
刘荣鑫
顾慧杰
史豪杰
朱文
钱金戈
何锡祺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Southern Power Grid Co Ltd
NR Electric Co Ltd
NR Engineering Co Ltd
Original Assignee
China Southern Power Grid Co Ltd
NR Electric Co Ltd
NR Engineering Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Southern Power Grid Co Ltd, NR Electric Co Ltd, NR Engineering Co Ltd filed Critical China Southern Power Grid Co Ltd
Priority to CN202211605548.XA priority Critical patent/CN115840756B/en
Publication of CN115840756A publication Critical patent/CN115840756A/en
Application granted granted Critical
Publication of CN115840756B publication Critical patent/CN115840756B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to a data updating method of a master-slave modulation system, equipment and a medium. The master and slave modulation systems comprise a master modulation system and a slave modulation system, the master modulation system comprises a first master database and at least one first slave database, and the method comprises the following steps: acquiring a data updating instruction; updating in the first main database according to the data updating instruction, and obtaining target data with data change in the first main database; and sending the target data to the first backup database and the backup system so that the first backup database and the backup system are updated according to the target data. By adopting the method, the data updating efficiency can be improved.

Description

Data updating method of main and standby modulation system, equipment and medium
Technical Field
The present disclosure relates to the field of active/standby modulation systems, and in particular, to a data updating method for active/standby modulation systems, devices, and media.
Background
The dispatching automation system is a core support system for power production dispatching, and in order to enhance the disaster recovery capacity of the automation system, two sets of dispatching automation systems of a main dispatching system and a standby dispatching system are commonly built for all levels of power grids in China at present, and the standby dispatching system is used as hot standby of the main dispatching system to run in parallel.
When data maintenance is required, a data updater needs to perform respective maintenance operations on the main and standby systems, and the main and standby systems are treated as two independent systems. The data maintenance strategy of the master and slave modulation system has lower efficiency.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a data updating method of a master/slave system, a device, and a medium, which can improve data updating efficiency.
In a first aspect, the present application provides a method for updating data of a primary and secondary modulation system. The master and slave modulation systems comprise a master modulation system and a slave modulation system, the master modulation system comprises a first master database and at least one first slave database, and the method comprises the following steps:
acquiring a data updating instruction;
updating in the first main database according to the data updating instruction, and obtaining target data with data change in the first main database;
and sending the target data to the first backup database and the backup system so that the first backup database and the backup system are updated according to the target data.
In one embodiment, the sending the target data to the first backup database and the backup system, so that the first backup database and the backup system update according to the target data, further includes:
obtaining a data updating configuration file, and determining a target first standby database to be updated in a plurality of first standby databases according to the data updating configuration file;
and sending the target data to the target first backup database and the backup and dispatching system so that the target first backup database and the backup and dispatching system are updated according to the target data.
In one embodiment, the backup adjustment system includes a second main database and at least one second backup database, and the sending the target data to the first backup database and the backup adjustment system, so that the first backup database and the backup adjustment system update according to the target data includes:
and sending the target data to the first standby database and the second main database, so that the first standby database and the second main database are updated according to the target data, and after the second main database is updated, controlling the second main database to update the target data to the second standby database.
In one embodiment, the first main database includes a physical sub-library or a logical sub-library, and the updating the data update instruction in the first main database includes:
determining whether an operation object of the data updating instruction is a physical sub-library or a logical sub-library, and obtaining a first determination result;
and updating the physical sub-library and/or the logical sub-library in the first main database according to the data updating instruction according to the first determining result.
In one embodiment, the physical sub-library and the logical sub-library each include a static partition and a dynamic partition;
the updating the data updating instruction in the physical sub-library or the logical sub-library in the first main database according to the first determination result comprises the following steps:
determining whether an operation object of the data updating instruction belongs to a static partition or a dynamic partition;
if the operation object of the data updating instruction belongs to a static partition, updating the static partition in a physical sub-library or a logical sub-library in the first main database according to the data updating instruction;
and if the operation object of the data updating instruction belongs to a dynamic partition, updating the dynamic partition in a physical sub-library or a logical sub-library in the first main database according to the data updating instruction.
In one embodiment, if the data update instruction belongs to a static partition, updating the data update instruction in the static partition in a physical sub-library or a logical sub-library in the first main database includes:
and if the data updating instruction belongs to the static partition, transmitting target data in the static partition of the data updating instruction in a physical sub-library or a logical sub-library in the first main database to the first standby database through memory mapping for bit-by-bit coverage.
In one embodiment, the sending the target data to the first backup database and the backup system, so that the first backup database and the backup system update according to the target data, further includes:
and sending the target data to the first backup database and the backup system so that the first backup database and the backup system update asynchronously according to the target data.
In a second aspect, the present application further provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the data updating method of the active-standby debug system according to the first aspect when executing the computer program.
In a third aspect, the present application further provides a master-slave modulation system, where the master-slave modulation system includes a master modulation system and a slave modulation system, where the master modulation system and the slave modulation system respectively store computer programs, and the computer programs implement the data updating method of the master-slave modulation system in the first aspect when executed by the master modulation system and the slave modulation system.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the data updating method of the master-slave-system according to the first aspect.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the data updating method of the active-standby modulation system according to the first aspect.
The main and standby modulation system comprises a main modulation system and a standby modulation system, wherein the main modulation system comprises a first main database and at least one first standby database, and the method comprises the following steps: acquiring a data updating instruction; updating the data updating instruction in the first main database, and obtaining target data with data change in the first main database; and sending the target data to the first backup database and the backup system so that the first backup database and the backup system are updated according to the target data. By means of the method, data updating is performed on the first main database in the main dispatching system, then the changed target data in the first main database is determined, and the target data are sent to the first standby database and the standby dispatching system for updating. Therefore, through the technical scheme, after the data of the first main database which mainly operates is updated, other databases and standby systems are updated according to the changed target data in the first main database, and operation and maintenance personnel do not need to operate respectively on the main and standby systems, so that the efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of a multi-power dispatching system in one embodiment;
FIG. 2 is a schematic diagram of a multi-power dispatching system in another embodiment;
FIG. 3 is a schematic diagram of a multi-power dispatching system in another embodiment;
FIG. 4 is a flow chart illustrating a data transmission method of a multi-power dispatching system according to one embodiment;
fig. 5 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The data updating method of the master and slave modulation system provided by the embodiment of the application can be applied to an application environment shown in fig. 1. The system comprises a main dispatching system and a standby dispatching system, wherein the main dispatching system comprises a first main database and at least one first standby database, the role of the first main database comprises storing real-time monitoring data, an application installed in the main dispatching system can store the real-time data into the first main database, and the operating data into the first main database, namely, the application realizes corresponding functions by accessing and operating the data in the first main database.
The first standby databases are mainly used for backing up data in the first main databases and providing external access, for example, a first standby database is used for providing external real-time data, but cannot be operated/controlled; a first database is provided for external presentation data, the time not being real-time nor operational/controllable. And an isolating device is also arranged between the databases. The number of the first standby databases is mainly set according to actual use, and is not limited herein.
In order to meet the requirement of the power grid on safety and ensure the disaster recovery capability of the power grid, the main and standby regulation system also comprises a standby regulation system, a database in the standby regulation system is completely consistent with that in the main regulation system, and when the main regulation system fails, the standby regulation system can be switched in a seamless manner to replace the main regulation system to maintain the normal work of the power grid. For convenience of description, the databases in the backup system are a second main database and at least one second backup database, wherein the function, the data content and the like of the second main database are the same as those of the first main database in the main system, and the function, the data content and the like of the second backup database are the same as those of the first backup database in the main system.
It can be understood that, in order to ensure that the message interaction and the data transmission can be normally performed between the databases, routing nodes are deployed between the databases.
It should be noted that, the primary tuning system may be an independent server or a server cluster formed by a plurality of servers, the first primary database and the first standby database may be located in the same server or different servers, or may be located in a cloud server separately, and similarly, the standby tuning system may also be an independent server or a server cluster formed by a plurality of servers, and the second primary database and the second standby database may be located in the same server or different servers, or may be located in a cloud server separately, where the present invention is not limited.
In one embodiment, as shown in fig. 2, there is provided a data updating method of a primary and backup modulation system, the method including:
step 210, acquiring a data updating instruction;
the method and the device are applied to the master-slave modulation system shown in fig. 1 or a control device for controlling the master-slave modulation system shown in fig. 1. The data maintainer can send out a data updating instruction through the control device or the main regulating system.
Step 220, updating in the first main database according to the data updating instruction, and obtaining target data with data change in the first main database;
triggering a data updating process in the first main database according to the received data updating instruction, wherein the data updating process comprises processes of data maintenance, data release and the like. After the first living database is updated, the data with the changed data in the first main database is obtained, and the changed data is defined as target data for convenience of description.
And step 230, the target data is sent to the first backup database and the backup adjustment system, so that the first backup database and the backup adjustment system are updated according to the target data.
After the target data in the first main database is obtained, the target data is generated to a first standby database in the main dispatching system and the standby dispatching system. Thus, the first standby database and the standby adjustment system are updated according to the target data. Specifically, the updating process in the standby system includes updating in the second main database according to the target data, and after the second main database is updated, sending the updated data to the second standby database, and updating the second standby database according to the updated data.
It should be noted that, the process of updating the data in each database may refer to the prior art, and will not be described herein.
In the data updating method of the main and standby modulation systems, the main and standby modulation systems comprise a main modulation system and a standby modulation system, the host system comprises a first host database and at least one first standby database, and the method comprises the following steps: acquiring a data updating instruction; updating the data updating instruction in the first main database, and obtaining target data with data change in the first main database; and sending the target data to the first backup database and the backup system so that the first backup database and the backup system are updated according to the target data. By means of the method, data updating is performed on the first main database in the main dispatching system, then the changed target data in the first main database is determined, and the target data are sent to the first standby database and the standby dispatching system for updating. Therefore, through the technical scheme, after the data of the first main database which mainly operates is updated, other databases and standby systems are updated according to the changed target data in the first main database, and operation and maintenance personnel do not need to operate respectively on the main and standby systems, so that the efficiency is improved.
In one embodiment, based on the embodiment shown in fig. 1, the sending the target data to the first backup database and the backup system, so that the first backup database and the backup system update according to the target data, further includes:
obtaining a data updating configuration file, and determining a target first standby database to be updated in a plurality of first standby databases according to the data updating configuration file;
and sending the target data to the target first backup database and the backup and dispatching system so that the target first backup database and the backup and dispatching system are updated according to the target data.
Specifically, in practical application, if there are multiple backup databases, i.e. there are multiple first backup databases. Because of all differences between the multiple standby databases, after the first main database is updated, some of the first standby databases do not need to be updated correspondingly, and therefore, in this embodiment, a data update configuration file is further set, where the data update configuration file includes the first standby databases that need to be updated corresponding to the target data. After the first main database is updated, the data updating configuration file is obtained, and then a target first standby database, namely the first standby database to be updated, is determined in a plurality of first standby databases according to the data updating configuration file. And sending the target data to a target first standby database and a standby and dispatching system, and updating the target first standby database and the standby and dispatching system according to the target data.
Correspondingly, the backup adjustment system includes a second main database and at least one second backup database, and the sending the target data to the first backup database and the backup adjustment system, so that the first backup database and the backup adjustment system update according to the target data includes:
and sending the target data to the first standby database and the second main database, so that the first standby database and the second main database are updated according to the target data, and after the second main database is updated, controlling the second main database to update the target data to the second standby database.
Specifically, the backup system is used as a hot backup system of the main system, the backup system also comprises a second main database, a plurality of second backup databases and a data updating configuration file, after the second main database is updated, the data updating configuration file is obtained, and then a target second backup database, namely a second backup database to be updated, is determined in the plurality of second backup databases according to the data updating configuration file. And sending the target data to a target second standby database, and updating the target second standby database according to the target data.
In one embodiment, the first main database includes a physical sub-library or a logical sub-library, and the updating the data update instruction in the first main database includes:
determining whether an operation object of the data updating instruction is a physical sub-library or a logical sub-library, and obtaining a first determination result;
and updating the physical sub-library and/or the logical sub-library in the first main database according to the data updating instruction according to the first determining result.
Specifically, in the present application, each database is provided with a physical sub-database and a logical sub-database, that is, the first main database includes a physical sub-database or a logical sub-database, and the first standby database also includes a physical sub-database or a logical sub-database.
After receiving the data updating instruction, determining whether to update in a physical sub-library or a logical sub-library according to the data updating instruction, obtaining a corresponding determination result, defining the determination result as a first determination result, and updating the physical sub-library and/or the logical sub-library in the first main database according to the first determination result and the data updating instruction. Similarly, after receiving the target data, the first standby database determines whether to update in the physical sub-library or the logical sub-library, and updates in the physical sub-library and/or the logical sub-library in the first standby database.
Correspondingly, each database in the backup and adjustment system is also provided with a physical sub-library and a logical sub-library, namely the second main database comprises the physical sub-library or the logical sub-library, and the second backup database also comprises the physical sub-library or the logical sub-library. And after receiving the target data sent by the first main database, the standby and regulating system determines whether the updated object is a physical sub-library or a logical sub-library according to the target data, and obtains a second determination result. And then updating the physical sub-library and/or the logical sub-library in the second main database according to the second determination result and the target data. Similarly, the second standby database determines whether to update in the physical sub-library or the logical sub-library after receiving the target data, and updates in the physical sub-library and/or the logical sub-library in the second standby database.
In one embodiment, the physical sub-library and the logical sub-library respectively comprise a static partition and a dynamic partition, and in a specific implementation, as shown in fig. 3, the physical sub-library and the logical sub-library respectively comprise a static partition, a dynamic partition, an index file and a local metadata file; the updating the data updating instruction in the physical sub-library or the logical sub-library in the first main database according to the first determination result comprises the following steps:
determining whether an operation object of the data updating instruction belongs to a static partition or a dynamic partition;
if the operation object of the data updating instruction belongs to a static partition, updating the static partition in a physical sub-library or a logical sub-library in the first main database according to the data updating instruction;
and if the operation object of the data updating instruction belongs to a dynamic partition, updating the dynamic partition in a physical sub-library or a logical sub-library in the first main database according to the data updating instruction.
Specifically, in the process of updating data, whether the operation object of the data updating instruction belongs to a static partition or a dynamic partition is determined according to the data updating instruction, specifically, whether the operation object of the data updating instruction belongs to the static partition or the dynamic partition can be determined by searching in an index file according to the data updating instruction, or whether the operation object of the data updating instruction belongs to the static partition or the dynamic partition is determined by traversing the static partition according to the data updating instruction, and if no operation correspondence is found, traversing the dynamic partition, thereby determining whether the operation object of the data updating instruction belongs to the static partition or the dynamic partition.
If the operation object of the data updating instruction belongs to the static partition, updating the static partition in a physical sub-library or a logical sub-library in the first main database according to the data updating instruction; if the operation object of the data updating instruction belongs to the dynamic partition, updating the dynamic partition in a physical sub-library or a logical sub-library in the first main database according to the data updating instruction.
Further, if the data update instruction belongs to a static partition, updating the data update instruction in the static partition in a physical sub-library or a logical sub-library in the first main database, including:
and if the data updating instruction belongs to the static partition, transmitting target data in the static partition of the data updating instruction in a physical sub-library or a logical sub-library in the first main database to the first standby database through memory mapping for bit-by-bit coverage.
Specifically, for the data in the static partition, firstly, the target data (or the file where the target data is located) in the static partition in the physical sub-library or the logical sub-library in the first main database is obtained, then the target data is mapped to the first standby database through a memory, and the data of the corresponding static partition in the first standby database is directly covered bit by bit.
If the operation object of the data updating instruction belongs to the dynamic partition, firstly acquiring a dynamic partition file and a dynamic data change record which change in a physical sub-library or a logical sub-library in the first main database, and then updating the corresponding data in the dynamic partition in the first main database into the first standby database bit by identifying the dynamic data change record. And the dynamic data without change is not processed, so that the efficiency of updating the physical sub-library data is improved.
After the data updating in the first main database is completed, the target data is copied to the second main database through the routing node, and the second main database can update the target data, and the specific process can refer to the process of the first main database.
Further, in the process of updating the first standby database and the standby system according to the target data, the updating can be performed in an asynchronous updating mode. In this way, in the updating process, the updating personnel can receive the feedback of the updating completion only after the updating of the first main database is completed, so that the response efficiency of the data updating flow is improved.
In one embodiment, referring to fig. 4, in the process of performing data maintenance on the logical sub-library by the data updater in the first main database, the data publishing process of the first main database is triggered, and whether the data maintained in the logical sub-library belongs to a static partition or a dynamic partition is determined.
For data in a static partition, firstly acquiring a static partition file with a change in a logic sub-library in a first main database, and then directly covering the corresponding static partition file in the sub-library bit by using the static partition file with the change in the logic sub-library through memory mapping;
for the data in the dynamic partition, firstly, a dynamic partition file and a dynamic data change record of which the first main database is changed in the logic sub-library are obtained, then, for the dynamic data with the change in the logic sub-library, the corresponding data in the physical sub-library is updated into the data in the logic sub-library bit by bit, and for the dynamic data without the change in the logic sub-library, the processing is not performed, so that the efficiency of updating the data of the physical sub-library is improved.
After updating the data maintenance record of the logic sub-database in the first main database into the physical sub-database, completing the real-time database publishing process of the first main database, copying the logic sub-database file in the first main database maintenance node to the second main database routing node, deploying related programs in the second main database routing node, triggering the publishing process of the second main database in an asynchronous mode, namely, whether the first main database does not pay attention to the publishing success or not of the second main database, and directly returning the successful publishing information to data updaters so as to improve the response efficiency of the publishing process.
The method can prevent the problem that the real-time database data is inconsistent because the second main database misses a release (such as network reasons) for a certain time.
After updating the data maintenance record in the logic sub-library in the first main database to the second main database in the physical sub-library, completing the second main database real-time library release process, and at the moment, the data updater only needs to confirm whether the maintenance data in the logic sub-library in the first main database exists in the physical sub-library file of the second main database.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
In one embodiment, a computer device is provided, which may be a server/computer, the internal structure of which may be as shown in FIG. 5. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The computer device may be a device or a control means in a host system as described in any of the above embodiments. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method for updating data of a primary and secondary tone system.
It will be appreciated by those skilled in the art that the structure shown in fig. 5 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor, implements the data updating method of the active-standby modulation system described in any of the above embodiments.
In one embodiment, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the method for updating data of a master-slave-system described in any of the above embodiments.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (9)

1. The utility model provides a data updating method of a master and slave modulation system, which is characterized in that the master and slave modulation system is deployed in a power dispatching system, the master and slave modulation system comprises a master modulation system and a slave modulation system, the master modulation system comprises a first master database and at least one first slave database, and the method comprises the following steps:
acquiring a data updating instruction;
updating in the first main database according to the data updating instruction, and obtaining target data with data change in the first main database;
the target data are sent to the first backup database and the backup system, so that the first backup database and the backup system are updated according to the target data;
the step of sending the target data to the first backup database and the backup system so that the first backup database and the backup system update according to the target data, and the step of further comprises:
obtaining a data updating configuration file, and determining a target first standby database to be updated in a plurality of first standby databases according to the data updating configuration file;
and sending the target data to the target first standby database and the standby system so that the target first standby database and the standby system perform asynchronous updating according to the target data, wherein the asynchronous updating means that an updating completion signal is generated after the first main database is updated, and the first standby database and the standby system are updated simultaneously.
2. The method of claim 1, wherein the backup system comprises a second master database and at least one second backup database, the sending the target data to the first backup database and the backup system such that the first backup database and the backup system are updated according to the target data, comprising:
and sending the target data to the first standby database and the second main database, so that the first standby database and the second main database are updated according to the target data, and after the second main database is updated, controlling the second main database to update the target data to the second standby database.
3. The method of claim 1, wherein the first master database comprises a physical sub-library or a logical sub-library, the updating in the first master database according to the data update instruction comprising:
determining whether an operation object of the data updating instruction is a physical sub-library or a logical sub-library, and obtaining a first determination result;
and updating the physical sub-library and/or the logical sub-library in the first main database according to the data updating instruction according to the first determining result.
4. The method of claim 3, wherein the physical and logical sub-libraries comprise static and dynamic partitions, respectively;
the updating the data updating instruction in the physical sub-library or the logical sub-library in the first main database according to the first determination result comprises the following steps:
determining whether an operation object of the data updating instruction belongs to a static partition or a dynamic partition;
if the operation object of the data updating instruction belongs to a static partition, updating the static partition in a physical sub-library or a logical sub-library in the first main database according to the data updating instruction;
and if the operation object of the data updating instruction belongs to a dynamic partition, updating the dynamic partition in a physical sub-library or a logical sub-library in the first main database according to the data updating instruction.
5. The method of claim 4, wherein the sending the target data to the first backup database and the backup system to cause the first backup database and the backup system to update according to the target data comprises:
and if the data updating instruction belongs to the static partition, transmitting target data in the static partition of the data updating instruction in a physical sub-library or a logical sub-library in the first main database to the first standby database through memory mapping for bit-by-bit coverage.
6. The method of claim 1, wherein sending the target data to the first backup database and the backup system to cause the first backup database and the backup system to update according to the target data, further comprising:
and sending the target data to the first backup database and the backup system so that the first backup database and the backup system update asynchronously according to the target data.
7. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
8. A master and slave system, characterized in that it comprises a master system and a slave system, on which computer programs are stored, respectively, which when executed by the master system and the slave system implement the steps of the method according to any one of claims 1 to 6.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202211605548.XA 2022-12-14 2022-12-14 Data updating method of main and standby modulation system, equipment and medium Active CN115840756B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211605548.XA CN115840756B (en) 2022-12-14 2022-12-14 Data updating method of main and standby modulation system, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211605548.XA CN115840756B (en) 2022-12-14 2022-12-14 Data updating method of main and standby modulation system, equipment and medium

Publications (2)

Publication Number Publication Date
CN115840756A CN115840756A (en) 2023-03-24
CN115840756B true CN115840756B (en) 2024-03-22

Family

ID=85578587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211605548.XA Active CN115840756B (en) 2022-12-14 2022-12-14 Data updating method of main and standby modulation system, equipment and medium

Country Status (1)

Country Link
CN (1) CN115840756B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049527A (en) * 2012-12-20 2013-04-17 中国电力科学研究院 Large power grid oriented parallel real-time database master and slave switching management system
CN104504172A (en) * 2014-11-27 2015-04-08 国家电网公司 Main-standby scheduling model data synchronization method for electricity SCADA (supervisory control and data acquisition) system
CN107612960A (en) * 2017-07-21 2018-01-19 国网重庆市电力公司 Integral control system in dispatching of power netwoks
CN111506648A (en) * 2020-04-10 2020-08-07 深圳前海微众银行股份有限公司 Transaction data backup method and device, computing equipment and storage medium
CN112613626A (en) * 2020-12-28 2021-04-06 南方电网数字电网研究院有限公司 Method and device for monitoring running state of standby system and computer equipment
WO2022127673A1 (en) * 2020-12-15 2022-06-23 网联清算有限公司 Data clearing method, apparatus and system, and electronic device and storage medium
CN115438021A (en) * 2022-08-08 2022-12-06 中国银联股份有限公司 Resource allocation method and device for database server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049527A (en) * 2012-12-20 2013-04-17 中国电力科学研究院 Large power grid oriented parallel real-time database master and slave switching management system
CN104504172A (en) * 2014-11-27 2015-04-08 国家电网公司 Main-standby scheduling model data synchronization method for electricity SCADA (supervisory control and data acquisition) system
CN107612960A (en) * 2017-07-21 2018-01-19 国网重庆市电力公司 Integral control system in dispatching of power netwoks
CN111506648A (en) * 2020-04-10 2020-08-07 深圳前海微众银行股份有限公司 Transaction data backup method and device, computing equipment and storage medium
WO2022127673A1 (en) * 2020-12-15 2022-06-23 网联清算有限公司 Data clearing method, apparatus and system, and electronic device and storage medium
CN112613626A (en) * 2020-12-28 2021-04-06 南方电网数字电网研究院有限公司 Method and device for monitoring running state of standby system and computer equipment
CN115438021A (en) * 2022-08-08 2022-12-06 中国银联股份有限公司 Resource allocation method and device for database server

Also Published As

Publication number Publication date
CN115840756A (en) 2023-03-24

Similar Documents

Publication Publication Date Title
CN109729129B (en) Configuration modification method of storage cluster system, storage cluster and computer system
US20060047926A1 (en) Managing multiple snapshot copies of data
US20160117197A1 (en) Method, Apparatus, and System for Issuing Partition Balancing Subtask
US7702757B2 (en) Method, apparatus and program storage device for providing control to a networked storage architecture
US10387273B2 (en) Hierarchical fault tolerance in system storage
CN107851102A (en) System and method for key assignments storage
CN114385561A (en) File management method and device and HDFS system
CN101986276A (en) Methods and systems for storing and recovering files and server
CN108259608B (en) Multi-agent cluster operation method
KR101527634B1 (en) Method and apparatus for providing sharding service
CN104054076A (en) Data storage method, database storage node failure processing method and apparatus
CN103365740B (en) A kind of data cold standby method and device
CN107943615B (en) Data processing method and system based on distributed cluster
CN116389233B (en) Container cloud management platform active-standby switching system, method and device and computer equipment
CN115840756B (en) Data updating method of main and standby modulation system, equipment and medium
CN115955488B (en) Distributed storage copy cross-machine room placement method and device based on copy redundancy
KR20130038517A (en) System and method for managing data using distributed containers
CN111752892B (en) Distributed file system and implementation method, management system, equipment and medium thereof
CN108829798B (en) Data storage method and system based on distributed database
JP6744272B2 (en) Migration management device and migration management method
CN116303789A (en) Parallel synchronization method and device for multi-fragment multi-copy database and readable medium
CN112527561B (en) Data backup method and device based on Internet of things cloud storage
CN114579364A (en) Cloud native database backup method based on hybrid cloud
CN112084156A (en) Hybrid storage system and self-adaptive backup method of file
JP5941494B2 (en) In-memory management system and in-memory management 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
GR01 Patent grant
GR01 Patent grant