CN111275289B - Consistency checking method and device for main scheduling system and standby scheduling system - Google Patents
Consistency checking method and device for main scheduling system and standby scheduling system Download PDFInfo
- Publication number
- CN111275289B CN111275289B CN202010009374.5A CN202010009374A CN111275289B CN 111275289 B CN111275289 B CN 111275289B CN 202010009374 A CN202010009374 A CN 202010009374A CN 111275289 B CN111275289 B CN 111275289B
- Authority
- CN
- China
- Prior art keywords
- configuration file
- standby
- comparison configuration
- main
- power supply
- 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 23
- 238000012544 monitoring process Methods 0.000 claims abstract description 16
- 238000012795 verification Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 10
- 238000004590 computer program Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 6
- 230000001276 controlling effect Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000012423 maintenance Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000010248 power generation Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0637—Strategic management or analysis, e.g. setting a goal or target of an organisation; Planning actions based on goals; Analysis or evaluation of effectiveness of goals
-
- 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/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/202—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
- G06F11/2023—Failover techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2282—Tablespace storage structures; Management thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/242—Query formulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J3/00—Circuit arrangements for ac mains or ac distribution networks
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Human Resources & Organizations (AREA)
- General Physics & Mathematics (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- General Engineering & Computer Science (AREA)
- Educational Administration (AREA)
- General Business, Economics & Management (AREA)
- Databases & Information Systems (AREA)
- Quality & Reliability (AREA)
- Entrepreneurship & Innovation (AREA)
- Health & Medical Sciences (AREA)
- Data Mining & Analysis (AREA)
- Marketing (AREA)
- Tourism & Hospitality (AREA)
- Game Theory and Decision Science (AREA)
- Primary Health Care (AREA)
- General Health & Medical Sciences (AREA)
- Mathematical Physics (AREA)
- Development Economics (AREA)
- Water Supply & Treatment (AREA)
- Computational Linguistics (AREA)
- Operations Research (AREA)
- Public Health (AREA)
- Software Systems (AREA)
- Power Engineering (AREA)
- Supply And Distribution Of Alternating Current (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a method and a device for checking consistency of a main scheduling system and a standby scheduling system, wherein the method comprises the following steps: establishing a main comparison configuration file on a first host for operating a main scheduling system, and establishing a standby comparison configuration file on a second host for operating a standby scheduling system; calling a master model related to a real-time monitoring power grid in a master scheduling system in real time by the master comparison configuration file, and calling a standby model related to the real-time monitoring power grid in a standby scheduling system in real time by the standby comparison configuration file; comparing the main comparison configuration file with the standby comparison configuration file; and if the main comparison configuration file is inconsistent with the standby comparison configuration file, verifying the to-be-used operation system through the current operation system. By adopting the scheme, the real-time synchronization between the main scheduling system and the standby scheduling system can be realized.
Description
Technical Field
The invention relates to the field of data processing of a power grid power supply system, in particular to a method and a device for checking consistency of a main dispatching system and a standby dispatching system.
Background
With the continuous expansion of the scale of the power grid, the target and difficulty of power grid power supply parameter Control are continuously increased, and in order to ensure safety, the deviation Control of the power grid power supply parameter is required to be within a certain range, so that an Automatic power Generation Control application is deployed in a power grid dispatching system in China, and the power supply parameter of a generator set is controlled to keep the balance of the actual power Generation and load of the power grid based on an AGC (Automatic Generation Control) power supply Control model formulated according to the actual condition of each power grid dispatching based on a power grid self-defined Control model.
In actual operation practice, when power supply parameter control of a power grid is implemented through a power supply control model, in order to ensure that the power supply control model can operate continuously for 24 hours, a master-slave scheduling control system is established, and when the master scheduling system operates abnormally, the slave scheduling system is automatically started to ensure that power grid scheduling can not be influenced.
In the real-time control process in the prior art, power grid maintenance personnel need to frequently add, delete and modify power supply parameters of a power supply control model of a scheduling system according to the running condition of a power grid, so as to realize synchronization between a main scheduling system and a standby scheduling system. However, the manual synchronization operation is limited by factors such as experience of maintenance personnel, modification of a power supply control model, network abnormality, untimely maintenance and the like, and is also challenged by frequent changes of the operation condition of the power grid. Synchronization between the main scheduling system and the standby scheduling system cannot be maintained at any time, and great risk is easily generated when the scheduling systems are switched.
Disclosure of Invention
The purpose of the invention is as follows: the invention aims to provide a method and a device for checking consistency of a main scheduling system and a standby scheduling system, which are used for realizing real-time synchronization between the main scheduling system and the standby scheduling system.
The technical scheme is as follows: the embodiment of the invention provides a method for checking consistency of a main scheduling system and a standby scheduling system, which comprises the following steps: establishing a main comparison configuration file on a first host for operating a main scheduling system, and establishing a standby comparison configuration file on a second host for operating a standby scheduling system; using the main comparison configuration file to call a main model related to a real-time monitoring power grid in a main scheduling system in real time, and using the standby comparison configuration file to call a standby model related to the real-time monitoring power grid in a standby scheduling system in real time; the master model and the standby model respectively comprise a plurality of power supply model tables, each power supply model table comprises a plurality of records, and each record comprises a keyword and a plurality of data fields corresponding to the keyword; comparing the main comparison configuration file based on the main model with the standby comparison configuration file based on the standby model; if the main comparison configuration file is inconsistent with the standby comparison configuration file, the standby operation system is verified through the current operation system; if the main scheduling system is running, the main scheduling system is a current running system, and the standby scheduling system is a standby running system; and if the standby scheduling system is running, the standby scheduling system is a current running system, and the main scheduling system is a standby running system.
Specifically, the table structure of the power supply model table of the main comparison configuration file is compared with the table structure of the power supply model table of the standby comparison configuration file; comparing the record of the main comparison configuration file with the record of the standby comparison configuration file; and comparing the domain value of the data domain of the main comparison configuration file with the domain value of the data domain of the standby comparison configuration file.
Specifically, according to the table name of the power supply model table, the number, the domain name and the data type of the data fields in the power supply model table in the main comparison configuration file are compared with the number, the domain name and the data type of the data fields in the power supply model table corresponding to the standby comparison configuration file.
Specifically, the number of records and the keywords in the main comparison configuration file are compared with the number of corresponding records and the keywords in the backup comparison configuration file according to the table name of the power supply model table.
Specifically, if the table structure and record of the power supply model table in the main comparison configuration file are consistent with the table structure and record of the corresponding power supply model table in the standby comparison configuration file; and comparing the domain value of the data domain in the main comparison configuration file with the domain value of the corresponding data domain in the standby comparison configuration file according to the table name of the power supply model table and the integer type or floating point type of the data domain.
Specifically, if the number type of the data fields is an integer type, when the domain value of the data field in the main comparison configuration file is the same as the domain value of the corresponding data field in the backup comparison configuration file, the main comparison configuration file is consistent with the backup comparison configuration file.
Specifically, if the number type of the data field is a floating point number type, when the domain value V of the data field in the master comparison configuration file is greater than the floating point number type, the master comparison configuration file is updated to the floating point number type a The domain value V of the corresponding data domain in the configuration file is compared with the backup comparison b When the following formula is met, the main comparison configuration file is consistent with the backup comparison configuration file:
wherein α is a tolerance factor.
The embodiment of the invention also provides a device for checking the consistency of the master scheduling system and the standby scheduling system, which comprises the following steps: the system comprises an establishing unit, a comparing unit and a comparing unit, wherein the establishing unit is used for establishing a main comparison configuration file on a first host used for operating a main scheduling system and establishing a standby comparison configuration file on a second host used for operating a standby scheduling system; the calling unit is used for calling a main model related to a real-time monitoring power grid in a main dispatching system in real time by using the main comparison configuration file and calling a standby model related to the real-time monitoring power grid in a standby dispatching system in real time by using the standby comparison configuration file; the master model and the standby model respectively comprise a plurality of power supply model tables, each power supply model table comprises a plurality of records, and each record comprises a keyword and a plurality of data fields corresponding to the keyword; the comparison unit is used for comparing the main comparison configuration file based on the main model with the standby comparison configuration file based on the standby model; the verification unit is used for verifying the comparison configuration file of the to-be-used operation system through the comparison configuration file of the current operation system if the main comparison configuration file is inconsistent with the standby comparison configuration file; if the main scheduling system is running, the main scheduling system is a current running system, and the standby scheduling system is a standby running system; and if the standby dispatching system is running, the standby dispatching system is the current running system, and the main dispatching system is the standby running system.
Specifically, the comparison unit is further configured to compare a table structure of the power supply model table of the main comparison configuration file with a table structure of the power supply model table of the standby comparison configuration file; comparing the record of the main comparison configuration file with the record of the standby comparison configuration file; and comparing the domain value of the data domain of the main comparison configuration file with the domain value of the data domain of the standby comparison configuration file.
Specifically, the comparison unit is further configured to compare the number of data fields, domain names, and data types in the power supply model table in the main comparison configuration file with the number of data fields, domain names, and data types in the power supply model table corresponding to the standby comparison configuration file according to the table name of the power supply model table.
Has the advantages that: compared with the prior art, the invention has the following remarkable advantages: by establishing a comparison configuration file, a model related to a real-time monitoring power grid in a scheduling system is called, and inconsistent parts in a main scheduling system and a standby scheduling system are determined, so that real-time synchronization between the main scheduling system and the standby scheduling system is realized, and the safe operation of the power grid is ensured.
Drawings
Fig. 1 is a schematic flowchart of a method for checking consistency between a master scheduling system and a slave scheduling system according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a consistency check device for a master scheduling system and a slave scheduling system according to an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further explained by combining the attached drawings.
Referring to fig. 1, a schematic flowchart of a consistency check method for a master scheduling system and a slave scheduling system provided in an embodiment of the present invention includes specific steps, which are described in detail below with reference to the accompanying drawings.
Step S101, a main comparison configuration file is established on a first host computer for operating a main scheduling system, and a standby comparison configuration file is established on a second host computer for operating a standby scheduling system.
In specific implementation, one or more first hosts can be used for configuring and operating the main comparison configuration file; one or more second hosts can be used for configuring and running the backup comparison configuration file.
In the embodiment of the invention, the main dispatching system and the standby dispatching system are used for collecting power grid information and controlling power supply parameters in a power grid. In specific implementation, the main scheduling system and the standby scheduling system are AGC (Automatic Generation Control) power supply Control models which are set according to actual conditions of power grid scheduling. The method is used for collecting related information such as load and power supply in the power grid coverage area in real time, regulating and controlling power supply parameters in the power grid according to the related information, and realizing the balance of the load and the supply in the power grid area. The power supply parameters comprise frequency, voltage and power.
And S102, calling a main model related to the real-time monitoring power grid in a main dispatching system in real time by using the main comparison configuration file, and calling a standby model related to the real-time monitoring power grid in a standby dispatching system in real time by using the standby comparison configuration file.
In the embodiment of the invention, the master model and the standby model both comprise a plurality of power supply model tables, each power supply model table comprises a plurality of records, and each record comprises a keyword and a plurality of data fields corresponding to the keyword.
In specific implementation, the dispatching system implements power supply control in the dispatching area range, and is a relational table structure composed of a plurality of tables, each table has a plurality of records, and each record has a keyword and a plurality of data fields corresponding to the keyword. The master model and the backup model are related to monitoring the power grid in real time in the dispatching system and are used for collecting related information such as load and power supply in the power grid in real time, and other control models in the dispatching system can correspondingly control power supply parameters according to the related information. And the power supply model table and records in the master model and the backup model, the key words corresponding to the records, and the data fields corresponding to the key words, wherein the data reflect and record the related information such as load, power supply and the like in the real-time state of the power grid, and the data change along with the change of the related information.
In the specific implementation, the configuration file realizes the real-time synchronization of the master scheduling system and the standby scheduling system by calling the master model and the standby model in the scheduling system in real time.
Step S103, comparing the main comparison configuration file based on the main model with the standby comparison configuration file based on the standby model.
In specific implementation, through comparison between the main comparison configuration file and the standby comparison configuration file, the inconsistent part between the main scheduling system and the standby scheduling system is determined. The main dispatching system and the standby dispatching system are compared through the new configuration file, and therefore the normal operation of the dispatching system can be prevented from being hindered. The efficiency and the security of electric wire netting control are promoted.
In the embodiment of the present invention, the comparison between the main comparison configuration file and the backup comparison configuration file specifically includes: comparing the table structure of the power supply model table of the main comparison configuration file with the table structure of the power supply model table of the standby comparison configuration file; comparing the record of the main comparison configuration file with the record of the standby comparison configuration file; and comparing the domain value of the data domain of the main comparison configuration file with the domain value of the data domain of the standby comparison configuration file.
In the specific implementation, the table structure, the records and the domain values of the data fields are related information such as reaction, load and power supply in the real-time state of the power grid. Therefore, through the table structure, the records and the domain values of the data fields, the inconsistent parts between the main comparison configuration file and the standby comparison configuration file can be quickly determined.
In the embodiment of the present invention, the comparison between the table structures specifically includes: and comparing the number, the domain name and the data type of the data fields in the power supply model table in the main comparison configuration file with the number, the domain name and the data type of the data fields in the power supply model table corresponding to the standby comparison configuration file according to the table name of the power supply model table.
In specific implementation, each power supply model table has a corresponding table name, and the corresponding relationship between the power supply model table in the main comparison configuration file and the power supply model table in the standby comparison configuration file can be determined through the table names, so that comparison is performed between the corresponding power supply model tables. And comparing the table structures, which is mainly carried out through the number of data fields, the domain name and the data type in the power supply model table. The domain name of the data domain reflects the type, the category and the attribute of the data domain, and the data type of the data domain reflects the storage, the record form and the format of the data domain. If the number of the data fields in the two power supply model tables is different, corresponding table name and data field number information are output; if the domain names of the data domains in the two power supply model tables are different, the corresponding table name and the domain name information of the data domains are output; and if the data types of the data fields in the two power supply model tables are different, outputting the corresponding table name and the data type information of the data fields. And if the number, the domain name and the data type of the data domains in the power supply model table are the same, the table structures of the power supply model table are consistent.
In the embodiment of the present invention, the comparison between the records specifically includes comparing the number of records and the keywords in the main comparison configuration file with the number of corresponding records and the keywords in the backup comparison configuration file according to the table name of the power supply model table.
In the specific implementation, the comparison between records is also carried out between corresponding power supply model tables. If the recorded number is different, outputting corresponding keyword information; if the keywords are different, outputting corresponding keyword information. And if the number of the records and the keywords are the same, the records are consistent.
In the embodiment of the invention, if the table structure and record of the power supply model table in the main comparison configuration file are consistent with the table structure and record of the corresponding power supply model table in the standby comparison configuration file, the comparison between the domain values of the data domains is carried out.
In the specific implementation, the comparison between the domain values of the data fields is also performed between the corresponding power supply model tables.
In the embodiment of the present invention, if the number type of the data fields is an integer type, when the domain value of the data field in the main comparison configuration file is the same as the domain value of the corresponding data field in the backup comparison configuration file, the main comparison configuration file is consistent with the backup comparison configuration file.
In specific implementation, the integer type includes integer, unsigned integer and long integer data fields, the data are required to be completely equal during comparison, and if the data are not equal, the domain name of the data field, and corresponding keywords and records are output.
In the embodiment of the invention, if the number type of the data fields is a floating point number type, when the domain value V of the data fields in the master comparison configuration file a The domain value V of the corresponding data domain in the backup comparison configuration file b When the following formula is met, the main comparison configuration file is consistent with the standby comparison configuration file:
Wherein α is a tolerance factor.
In specific implementation, the floating point number type includes a floating point number type and a double-floating point number type, two domain values are required to be within a reasonable range during comparison, alpha is a tolerance coefficient and is generally 2%, the extent range representing the two domain values can be regarded as consistent, and a specific value can be set by a user in practical application. And if the data fields are not consistent with the keywords, outputting the domain name of the data field and corresponding keywords and records.
And step S104, if the main comparison configuration file is inconsistent with the standby comparison configuration file, verifying the to-be-used operation system through the current operation system.
In the embodiment of the invention, if the main scheduling system is running, the main scheduling system is a current running system, and the standby scheduling system is a standby running system; and if the standby dispatching system is running, the standby dispatching system is the current running system, and the main dispatching system is the standby running system.
In specific implementation, the scheduling system currently controlling the power grid is a current operating system, and the scheduling system not controlling the power grid is a standby operating system. And (3) taking the power supply parameter of the current operating system as a standard, and verifying and correcting the parameter in the standby operating system. In specific implementation, the table name of the power supply model table in the configuration file is compared with the domain name of the data domain corresponding to the keyword, and the power supply control models in the current operating system and the standby operating system can be respectively read through a model reading interface provided by the scheduling system operating platform, corrected and corresponding data synchronized. In the correction and synchronization process, a worker can intervene to perform certain processing and adjustment. Therefore, real-time synchronization between the main dispatching system and the standby dispatching system can be realized, and the safe operation of the power grid is ensured.
In specific implementation, after the verification process is finished, the main scheduling system and the standby scheduling system can be compared again, and if the main scheduling system and the standby scheduling system are inconsistent, the main scheduling system and the standby scheduling system are verified again until the main scheduling system and the standby scheduling system are synchronized in real time.
Fig. 2 is a schematic structural diagram of a consistency check apparatus for a master scheduling system and a standby scheduling system according to an embodiment of the present invention.
In the embodiment of the present invention, a device 20 for checking consistency between a master scheduling system and a slave scheduling system is further provided, including: an establishing unit 201, configured to establish a main comparison configuration file on a first host for operating a main scheduling system, and establish a standby comparison configuration file on a second host for operating a standby scheduling system; the calling unit 202 is configured to use the master comparison configuration file to call a master model related to a real-time monitoring power grid in a master scheduling system in real time, and use the backup comparison configuration file to call a backup model related to the real-time monitoring power grid in a backup scheduling system in real time; the master model and the standby model respectively comprise a plurality of power supply model tables, each power supply model table comprises a plurality of records, and each record comprises a keyword and a plurality of data fields corresponding to the keyword; a comparison unit 203, configured to compare a master comparison configuration file based on the master model with a backup comparison configuration file based on the backup model; a verification unit 204, configured to verify, if the main comparison configuration file is inconsistent with the standby comparison configuration file, the comparison configuration file of the to-be-used operating system through the comparison configuration file of the current operating system; if the main scheduling system is running, the main scheduling system is a current running system, and the standby scheduling system is a standby running system; and if the standby dispatching system is running, the standby dispatching system is the current running system, and the main dispatching system is the standby running system.
In this embodiment of the present invention, the comparing unit 203 is further configured to compare the table structure of the power supply model table of the main comparison configuration file with the table structure of the power supply model table of the standby comparison configuration file; comparing the record of the main comparison configuration file with the record of the standby comparison configuration file; and comparing the domain value of the data domain of the main comparison configuration file with the domain value of the data domain of the standby comparison configuration file.
In this embodiment of the present invention, the comparing unit 203 is further configured to compare the number, domain name, and data type of the data fields in the power supply model table in the main comparison configuration file with the number, domain name, and data type of the data fields in the power supply model table corresponding to the backup comparison configuration file according to the table name of the power supply model table.
In this embodiment of the present invention, the comparing unit 203 is further configured to compare the number of records and the keywords in the main comparison configuration file with the number of records and the keywords corresponding to the backup comparison configuration file according to the table name of the power supply model table.
In this embodiment of the present invention, the comparing unit 203 is further configured to compare the table structure and record of the power supply model table in the main comparison configuration file with the table structure and record of the corresponding power supply model table in the backup comparison configuration file; and comparing the domain value of the data domain in the main comparison configuration file with the domain value of the corresponding data domain in the standby comparison configuration file according to the table name of the power supply model table and the integer type or floating point type of the data domain.
In this embodiment of the present invention, the comparing unit 203 is further configured to, if the number type of the data fields is an integer type, when the field value of the data field in the main comparison configuration file is the same as the field value of the corresponding data field in the backup comparison configuration file, make the main comparison configuration file consistent with the backup comparison configuration file.
In this embodiment of the present invention, the comparing unit 203 is further configured to, if the number type of the data fields is a floating point number type, compare the domain value V of the data field in the configuration file with the main comparison value V a The domain value V of the corresponding data domain in the configuration file is compared with the backup comparison b When the following formula is met, the main comparison configuration file is consistent with the backup comparison configuration file:
wherein α is a tolerance factor.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: although the present invention has been described in detail with reference to the above embodiments, it should be understood by those skilled in the art that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.
Claims (10)
1. A consistency check method for a master scheduling system and a standby scheduling system is characterized by comprising the following steps:
establishing a main comparison configuration file on a first host running a main scheduling system, and establishing a standby comparison configuration file on a second host running a standby scheduling system;
using the main comparison configuration file to call a main model related to a real-time monitoring power grid in a main scheduling system in real time, and using the standby comparison configuration file to call a standby model related to the real-time monitoring power grid in a standby scheduling system in real time; the master model and the standby model respectively comprise a plurality of power supply model tables, each power supply model table comprises a plurality of records, and each record comprises a keyword and a plurality of data fields corresponding to the keyword;
comparing a main comparison configuration file based on the main model with a standby comparison configuration file based on the standby model;
if the main comparison configuration file is inconsistent with the standby comparison configuration file, the standby operation system is verified through the current operation system; if the main scheduling system is running, the main scheduling system is a current running system, and the standby scheduling system is a standby running system; and if the standby dispatching system is running, the standby dispatching system is the current running system, and the main dispatching system is the standby running system.
2. The method of claim 1, wherein comparing the master comparison configuration file based on the master model with the backup comparison configuration file based on the backup model comprises at least one of:
comparing the table structure of the power supply model table of the main comparison configuration file with the table structure of the power supply model table of the standby comparison configuration file;
comparing the record of the main comparison configuration file with the record of the standby comparison configuration file;
and comparing the domain value of the data domain of the main comparison configuration file with the domain value of the data domain of the standby comparison configuration file.
3. The method according to claim 2, wherein comparing the table structure of the power supply model table of the master comparison configuration file with the table structure of the power supply model table of the backup comparison configuration file comprises:
and comparing the number, the domain name and the data type of the data fields in the power supply model table in the main comparison configuration file with the number, the domain name and the data type of the data fields in the power supply model table corresponding to the standby comparison configuration file according to the table name of the power supply model table.
4. The method according to claim 3, wherein comparing the record of the master comparison configuration file with the record of the backup comparison configuration file comprises:
and comparing the number of records and the keywords in the main comparison configuration file with the number of corresponding records and the keywords in the standby comparison configuration file according to the table name of the power supply model table.
5. The method according to claim 4, wherein the comparing the domain value of the data field of the master-to-slave configuration file with the domain value of the data field of the slave-to-slave configuration file comprises:
if the table structure and record of the power supply model table in the main comparison configuration file are consistent with the table structure and record of the corresponding power supply model table in the standby comparison configuration file;
and comparing the domain value of the data domain in the main comparison configuration file with the domain value of the corresponding data domain in the standby comparison configuration file according to the table name of the power supply model table and the integer type or floating point type of the data domain.
6. The method according to claim 5, wherein the comparing the domain value of the data field in the master comparison configuration file with the domain value of the corresponding data field in the backup comparison configuration file according to the integer type or floating point type of the data field comprises:
if the number type of the data fields is an integer type, when the field value of the data field in the main comparison configuration file is the same as the field value of the corresponding data field in the backup comparison configuration file, the main comparison configuration file is consistent with the backup comparison configuration file.
7. The method according to claim 5, wherein the comparing the domain value of the data field in the master comparison configuration file with the domain value of the corresponding data field in the backup comparison configuration file according to the integer type or floating point type of the data field comprises:
if the number type of the data fields is a floating point number type, when the domain value V of the data fields in the master comparison configuration file a The domain value V of the corresponding data domain in the backup comparison configuration file b When the formula is in accordance with the following formula, the main comparison configuration file is consistent with the standby comparison configuration file:
wherein α is a tolerance factor.
8. A master scheduling system and a standby scheduling system consistency checking device is characterized by comprising:
the system comprises an establishing unit, a comparing unit and a comparing unit, wherein the establishing unit is used for establishing a main comparison configuration file on a first host running a main scheduling system and establishing a standby comparison configuration file on a second host running a standby scheduling system;
the calling unit is used for calling a main model related to a real-time monitoring power grid in a main dispatching system in real time by using the main comparison configuration file and calling a standby model related to the real-time monitoring power grid in a standby dispatching system in real time by using the standby comparison configuration file; the master model and the backup model respectively comprise a plurality of power supply model tables, each power supply model table comprises a plurality of records, and each record comprises a keyword and a plurality of data fields corresponding to the keyword;
the comparison unit is used for comparing the main comparison configuration file with the standby comparison configuration file;
the verification unit is used for verifying the comparison configuration file of the to-be-used operation system through the comparison configuration file of the current operation system if the main comparison configuration file is inconsistent with the standby comparison configuration file; if the main scheduling system is running, the main scheduling system is the current running system; and if the standby scheduling system is running, the standby scheduling system is the current running system.
9. The device of claim 8, wherein the comparing unit is further configured to compare the master comparison configuration file based on the master model with the backup comparison configuration file based on the backup model by at least one of: comparing the table structure of the power supply model table of the main comparison configuration file with the table structure of the power supply model table of the standby comparison configuration file; comparing the record of the main comparison configuration file with the record of the standby comparison configuration file; and comparing the domain value of the data domain of the main comparison configuration file with the domain value of the data domain of the standby comparison configuration file.
10. The device for verifying consistency of a master scheduling system and a slave scheduling system according to claim 9, wherein the comparison unit is further configured to compare the number of data fields, domain names, and data types in the power supply model table in the master comparison configuration file with the number of data fields, domain names, and data types in the power supply model table corresponding to the slave comparison configuration file according to the table name of the power supply model table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010009374.5A CN111275289B (en) | 2020-01-06 | 2020-01-06 | Consistency checking method and device for main scheduling system and standby scheduling system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010009374.5A CN111275289B (en) | 2020-01-06 | 2020-01-06 | Consistency checking method and device for main scheduling system and standby scheduling system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111275289A CN111275289A (en) | 2020-06-12 |
CN111275289B true CN111275289B (en) | 2022-09-16 |
Family
ID=71000091
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010009374.5A Active CN111275289B (en) | 2020-01-06 | 2020-01-06 | Consistency checking method and device for main scheduling system and standby scheduling system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111275289B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112085339A (en) * | 2020-08-14 | 2020-12-15 | 国电南瑞科技股份有限公司 | SOA (service oriented architecture) -based master and standby system real-time data checking device and method |
CN112613626B (en) * | 2020-12-28 | 2023-01-20 | 南方电网数字电网研究院有限公司 | Method and device for monitoring running state of standby system and computer equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106991532A (en) * | 2017-03-31 | 2017-07-28 | 广东电网有限责任公司电力调度控制中心 | AGC information synchronization methods and system between isomery dispatching automation main preparation system |
-
2020
- 2020-01-06 CN CN202010009374.5A patent/CN111275289B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN111275289A (en) | 2020-06-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111275289B (en) | Consistency checking method and device for main scheduling system and standby scheduling system | |
CN113595761B (en) | Micro-service component optimization method and medium of power system information communication integrated scheduling platform | |
CN111798330B (en) | Power spot market monitoring data management method, device and equipment | |
CN103581231A (en) | UGC primary standby data synchronization method and system thereof | |
CN105279568A (en) | Electric power system over frequency generator tripping strategy setting method | |
WO2014040488A1 (en) | Method and device for guaranteeing consistency of planning data | |
CN111665816A (en) | DCS (distributed control system) engineering configuration verification method based on nuclear power simulation technology | |
CN110601245A (en) | Method and system for checking transient overvoltage after extra-high voltage direct current fault | |
CN103984309A (en) | Cigarette production system with disaster tolerance function and disaster tolerance exercise method thereof | |
CN116011026B (en) | Database configuration security rapid verification method, system, equipment and storage medium | |
CN113253643A (en) | Master-slave mode control method and management system based on D5000 master-slave mode control system | |
CN102185381B (en) | Method for processing SCD (substation configuration description) iteration of SCD model during automatic switching | |
CN116860882B (en) | Cloud storage resource management and control method and system based on blockchain | |
CN116683532A (en) | Automatic start-stop method based on power station computer monitoring system | |
US9997956B1 (en) | Systems, apparatus, and methods for automatic generation control islanded operation | |
KR102617906B1 (en) | Test automation framework system for medical software and method of test automation | |
CN110784353B (en) | Network element equipment configuration data migration method and device | |
CN111752592A (en) | Power system secondary equipment version control method, client and system | |
CN110176761B (en) | Power grid partition rotation reserve capacity optimal configuration method and system | |
CN107070730B (en) | CTDB starting method and device | |
CN115268785A (en) | Management method and device applied to distributed storage system and storage medium | |
CN111798199A (en) | Power grid multi-state graph closed-loop management method and system | |
CN112580942A (en) | Substation operation ticket library configuration method and sequence control operation task generation method | |
Van Der Beken et al. | Level 1 software at JET: a global tool for physics operation | |
CN117891694A (en) | MySQL database master-slave synchronization monitoring management method, system, terminal and medium |
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 |