CN112669015A - Power dispatching micro-service construction system and method - Google Patents

Power dispatching micro-service construction system and method Download PDF

Info

Publication number
CN112669015A
CN112669015A CN202011640388.3A CN202011640388A CN112669015A CN 112669015 A CN112669015 A CN 112669015A CN 202011640388 A CN202011640388 A CN 202011640388A CN 112669015 A CN112669015 A CN 112669015A
Authority
CN
China
Prior art keywords
data
model
instance
service component
power scheduling
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.)
Granted
Application number
CN202011640388.3A
Other languages
Chinese (zh)
Other versions
CN112669015B (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.)
Electric Power Dispatch Control Center of Guangdong Power Grid Co Ltd
Original Assignee
Electric Power Dispatch Control Center of Guangdong Power Grid 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 Electric Power Dispatch Control Center of Guangdong Power Grid Co Ltd filed Critical Electric Power Dispatch Control Center of Guangdong Power Grid Co Ltd
Priority to CN202011640388.3A priority Critical patent/CN112669015B/en
Publication of CN112669015A publication Critical patent/CN112669015A/en
Application granted granted Critical
Publication of CN112669015B publication Critical patent/CN112669015B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Abstract

The invention discloses a power dispatching micro-service construction system and a power dispatching micro-service construction method, which are applied to a cloud end, wherein a model processing service component responds to a user instruction to process acquired electric quantity measurement data to construct model data to be written, and a database service component updates a preset example according to the model data to be written so as to create a plurality of micro-services corresponding to the example, so that the technical problems that effective multi-system unified management is lacked, and timely processing of mass data cannot be realized in the prior art are solved, and the use of the example micro-services can be effectively provided.

Description

Power dispatching micro-service construction system and method
Technical Field
The invention relates to the technical field of micro-service calling, in particular to a power dispatching micro-service construction system and method.
Background
With the rapid development of various new energy and electricity spot markets and the increasingly severe network safety pressure, the performance requirement on the electricity dispatching system is higher and higher.
However, the traditional power dispatching system architecture usually realizes the function of a certain aspect independently, and under the condition of large data volume, the traditional power dispatching system architecture is difficult to realize combined calling with other systems in time, is difficult to adapt to the transformation development of future energy ecological service providers, lacks effective multi-system unified management, and cannot realize timely processing of mass data.
Disclosure of Invention
The invention provides a power dispatching micro-service construction system and method, and solves the technical problems that effective multi-system unified management is lacked and mass data cannot be processed in time in the prior art.
The invention provides a power dispatching micro-service construction system which is applied to a cloud end and comprises a database service component and a model processing service component;
the model processing service assembly is used for responding to a user instruction, processing the received power dispatching model data and generating model data to be written;
and the database service component is used for updating a preset example according to the model data to be written and constructing a plurality of micro services according to the preset example.
Optionally, the system further comprises a model import service component and an open storage service OSS;
the model import service component is used for acquiring OSS data files from the OSS;
and the database service component is also used for responding to the user instruction, generating model write-in data according to the OSS data file and writing the model write-in data into the preset example.
Optionally, the OSS data file includes a graphics file and a configuration file.
Optionally, the power scheduling model data includes real-time model data and to-be-processed power scheduling model data, the database service component includes a relational database service RDS and an open structured database service OTS, and the preset instance includes an RDS instance and an OTS instance;
the RDS is used for updating the RDS instance according to the to-be-processed power scheduling model data and creating a plurality of micro services according to the RDS instance;
and the OTS is used for updating the OTS instance according to the real-time model data and creating a plurality of micro services according to the OTS instance.
Optionally, the OTS is further configured to create a private instance in response to the received instance creation request.
Optionally, the private instance is an instance corresponding to a remote dictionary service Redis.
Optionally, the model processing service component is further provided with an access interface, and the access interface is used for providing an access function of the plurality of micro services.
Optionally, a monitoring component is further included;
the monitoring component is used for monitoring the preset example in real time and outputting alarm information when the preset example is abnormal.
Optionally, the access interface is an API access interface.
The invention also provides a power scheduling micro-service construction method, which is applied to any one of the power scheduling micro-service construction systems, wherein the system comprises a model processing service component and a database service component, and the method comprises the following steps:
receiving power measurement data;
responding to a user instruction through the model processing service assembly, processing the power measurement data, and generating model data to be written;
and updating a preset example according to the model data to be written through the database service component, and constructing a plurality of micro services according to the preset example.
According to the technical scheme, the invention has the following advantages:
in the embodiment of the invention, the model processing service component responds to a user instruction to process the acquired electric quantity measurement data, the model data to be written is constructed, and the database service component updates the preset example according to the model data to be written so as to create a plurality of micro services corresponding to the example, so that the technical problems that effective multi-system unified management is lacked and the timely processing of mass data cannot be realized in the prior art are solved, and the use of the example micro services can be effectively provided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a block diagram of a power scheduling microservice construction system according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating steps of a method for constructing a power scheduling microservice according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a system and a method for constructing a power dispatching micro-service, which are used for solving the technical problems that effective multi-system unified management is lacked and mass data cannot be processed in time in the prior art.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a block diagram illustrating a power scheduling microservice constructing system according to an embodiment of the present invention.
The invention provides a power dispatching micro-service construction system which is applied to a cloud end and comprises a database service component 101 and a model processing service component 102;
the model processing service component 101 is configured to respond to a user instruction, process the received power scheduling model data, and generate model data to be written;
in the embodiment of the invention, the model processing service component receives the user instruction and the power scheduling model data, and the power scheduling model data is processed based on the user instruction such as a parameter modification instruction, a data correction instruction and the like to obtain a model required by a user and used as the model data to be written.
The database service component 102 is configured to update a preset instance according to the model data to be written, and construct a plurality of micro services according to the preset instance.
An instance refers to a resource unit in a database, and can be used for configuring different spaces and different memories and different functions.
After the model data to be written is obtained, an instance can be created based on the model data to be written, or the model data in a preset instance is updated based on the data to be written, so that the instance is updated.
After the update of the instance is completed, the corresponding micro-service may be constructed according to the preset instance, for example, the instance service is split into several or even tens of supporting micro-services, so as to extend a single component rather than the entire application stack, thereby satisfying the service level agreement.
Optionally, the system further comprises a model import service component and an open storage service OSS;
the model import service component is used for acquiring OSS data files from the OSS;
the database service component 102 is further configured to respond to the user instruction, generate model write data according to the OSS data file, and write the model write data to the preset instance.
An Open Storage Service (OSS) is a Storage Service supporting any data type, and supports data uploading and downloading at any time and place, and each Storage object (object) in the OSS is composed of a name, a content, and a description.
In the embodiment of the invention, the system further comprises a model import service component and an open storage service OSS, and the database service component can respond to a user instruction, further modify data based on the obtained OSS data file to generate corresponding model write-in data, and write the generated model write-in data into a preset instance for calling of subsequent micro-services.
Further, the OSS data file includes a graphics file and a configuration file.
The image file refers to a file obtained by storing, processing and transmitting digital images, and a certain image format is required, namely, pixels of the images are organized and stored according to a certain mode, and image data is stored.
The configuration file refers to a file for performing different configurations on different objects, and mainly comprises annotations and configuration items, wherein the configuration items comprise configuration targets and contents or values needing configuration, such as user configuration files and system configuration files.
In one example of the present invention, the power scheduling model data includes real-time model data and pending power scheduling model data, the database service component includes a relational database service RDS and an open structured database service OTS, and the preset instance includes an RDS instance and an OTS instance;
the RDS is used for updating the RDS instance according to the to-be-processed power scheduling model data and creating a plurality of micro services according to the RDS instance;
and the OTS is used for updating the OTS instance according to the real-time model data and creating a plurality of micro services according to the OTS instance.
RDS is a short name of Relational Database Service (Relational Database Service), and is an on-line Database Service which is ready to use, stable, reliable and elastically scalable.
Open structured data Service (OTS) is a Service for mass structured and semi-structured data storage and real-time query built on an alisma cloud large-scale distributed computing system. The OTS organizes data in the form of data tables to provide services through an interface in the form of a RESTful API and provides a Web interface to facilitate user management. The OTS service is suitable for applications which need to process structured data and have higher requirements on data scale and concurrent access, such as mailbox storage, mobile phone cloud space and other internet applications taking users as centers.
In the embodiment of the invention, the RDS can respond to the user instruction, the power scheduling model data to be processed is adjusted, so that the update of the RDS example is realized, and a plurality of corresponding micro services are created according to the RDS example; and for the OTS, updating the OTS instance to the received real-time model data, and creating a plurality of corresponding micro services by the updated OTS instance so that a user can call the micro services through an access interface.
Optionally, the OTS is further configured to create a private instance in response to the received instance creation request.
It should be noted that the system may also provide a real-time model data downloading function for downloading the corresponding real-time model data to the OTS instance, thereby implementing the model downloading.
Further, the private instance is an instance corresponding to a remote dictionary service Redis.
In the embodiment of the present invention, the OTS may further store a public model data instance, and at the same time, allow a private instance of the application to be created, create the instance when the application defines the operating environment, set a life cycle of the instance, and store the real-time measurement profile data in the power measurement system in the Redis cluster. And receiving an application request sent by an application, creating a Redis private instance, and realizing a data caching function, wherein HisTSDB stores historical sampling data.
The Time Series Database (TSDB) is used to store Time series data and index with Time (point or interval).
redis is a typical no-sql, i.e. non-relational database, that stores key-value pairs working in memory like the dictionary of python. It is well suited to serve as a 7-tier proxy layer for the 4-tier forwarding layer nginx for caches between levels in the overall internet architecture, such as lvs, especially for lnmp architecture applications such as php-fpm or Tomcat to mysql to relieve the pressure on db because there is a significant portion of data, which is simply a key-value correspondence and which often changes rapidly in real traffic in a short time, if stored in a relational database mysql or the like, which would greatly increase the burden on db due to access to db.
In an optional embodiment of the invention, the model processing service component is further provided with an access interface for providing access functionality of the plurality of microservices.
In this embodiment, the micro-service access refers to making a logical architecture and then making a physical architecture when the architecture design is made, calculating whether a single application server can meet the requirements after the requirements are met and estimation is performed based on the maximum user amount and the concurrency amount, if the user amount is only small applications of hundreds of people, a single application can be determined, that is, all applications are deployed in one application server, and if the user amount is large, some functions are frequently accessed or some functions are calculated in a large amount, the applications are split into a plurality of subsystems, so that the subsystems construct micro-services respectively responsible for the respective functions.
Further, the access interface is an API access interface.
An API (Application Programming Interface) is a predefined Interface (e.g. function, HTTP Interface) or a convention for linking different components of a software system. For providing a set of routines that applications and developers can access based on certain software or hardware without accessing source code or understanding the details of the internal workings.
Furthermore, the power scheduling model data can be accessed and called through an RDS API (remote data service interface), and the real-time model data can be accessed and called through an OTS API/Redis API/TSDB API.
In another example of the present invention, the system further comprises a monitoring component;
the monitoring component is used for monitoring the preset example in real time and outputting alarm information when the preset example is abnormal.
In the embodiment of the invention, the monitoring component can also be used for monitoring the running condition of the preset instance, and when the running condition is abnormal, the alarm information is output to prompt a technician to repair the preset instance.
Further, the monitoring component can also be used for data mining.
In the embodiment of the invention, the model processing service component responds to a user instruction to process the acquired electric quantity measurement data, the model data to be written is constructed, and the database service component updates the preset example according to the model data to be written so as to create a plurality of micro services corresponding to the example, so that the technical problems that effective multi-system unified management is lacked and the timely processing of mass data cannot be realized in the prior art are solved, and the use of the example micro services can be effectively provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating steps of a power scheduling microservice constructing method according to a second embodiment of the present invention.
The invention provides a power dispatching microservice construction method, which is applied to the power dispatching microservice construction system in the first embodiment, wherein the system comprises a model processing service component and a database service component, and the method specifically comprises the following steps:
step 201, receiving power measurement data;
step 202, responding to a user instruction through the model processing service component, processing the power measurement data, and generating model data to be written;
and 203, updating a preset example according to the model data to be written through the database service component, and constructing a plurality of micro services according to the preset example.
Optionally, the system further includes a model import service component and an open storage service OSS, and the method further includes the following steps:
acquiring an OSS data file from the OSS through the model import service component;
and responding to the user instruction through the database service component, generating model write-in data according to the OSS data file, and writing the model write-in data into the preset instance.
Optionally, the OSS data file includes a graphics file and a configuration file.
Optionally, the power scheduling model data includes real-time model data and to-be-processed power scheduling model data, the database service component includes a relational database service RDS and an open structured database service OTS, the preset instance includes an RDS instance and an OTS instance, step 203 includes:
updating the RDS instance according to the to-be-processed power scheduling model data through the RDS, and creating a plurality of micro services according to the RDS instance;
and updating the OTS instance through the OTS according to the real-time model data, and creating a plurality of micro services according to the OTS instance.
Optionally, the method further comprises:
and creating a private instance by responding to the received instance creation request through the OTS.
Optionally, the private instance is an instance corresponding to a remote dictionary service Redis.
Optionally, the model processing service component is further provided with an access interface, and the access interface is used for providing an access function of the plurality of micro services.
Optionally, the system further comprises a monitoring component, and the method further comprises:
and monitoring the preset example in real time through the monitoring component, and outputting alarm information when the preset example is abnormal.
Optionally, the access interface is an API access interface.
In the embodiment of the invention, the model processing service component responds to a user instruction to process the acquired electric quantity measurement data, the model data to be written is constructed, and the database service component updates the preset example according to the model data to be written so as to create a plurality of micro services corresponding to the example, so that the technical problems that effective multi-system unified management is lacked and the timely processing of mass data cannot be realized in the prior art are solved, and the use of the example micro services can be effectively provided.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the method described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. The electric power dispatching micro-service construction system is applied to a cloud end and comprises a database service component and a model processing service component;
the model processing service assembly is used for responding to a user instruction, processing the received power dispatching model data and generating model data to be written;
and the database service component is used for updating a preset example according to the model data to be written and constructing a plurality of micro services according to the preset example.
2. The power scheduling microservice building system of claim 1, further comprising a model import service component and an Open Storage Service (OSS);
the model import service component is used for acquiring OSS data files from the OSS;
and the database service component is also used for responding to the user instruction, generating model write-in data according to the OSS data file and writing the model write-in data into the preset example.
3. The power scheduling microservice building system of claim 2, wherein the OSS data file comprises a graphics file and a configuration file.
4. The power scheduling microservices construction system of claim 1 wherein the power scheduling model data includes real time model data and pending power scheduling model data, the database service components include relational database services RDS and open structured database services OTS, the preset instances include RDS instances and OTS instances;
the RDS is used for updating the RDS instance according to the to-be-processed power scheduling model data and creating a plurality of micro services according to the RDS instance;
and the OTS is used for updating the OTS instance according to the real-time model data and creating a plurality of micro services according to the OTS instance.
5. The power scheduling microservice building system of claim 4, wherein the OTS is further configured to create a private instance in response to a received instance creation request.
6. The power scheduling microservice building system of claim 5, wherein the private instance is an instance corresponding to a remote dictionary service (Redis).
7. The power scheduling microservice building system of claim 1, wherein the model processing service component is further provided with an access interface for providing access functionality to the plurality of microservices.
8. The power scheduling microservice building system according to any one of claims 1-6, further comprising a monitoring component;
the monitoring component is used for monitoring the preset example in real time and outputting alarm information when the preset example is abnormal.
9. The power scheduling microservice building system of claim 7, wherein the access interface is an API access interface.
10. A power scheduling microservice construction method applied to the power scheduling microservice construction system according to any one of claims 1 to 9, the system comprising a model processing service component and a database service component, the method comprising:
receiving power measurement data;
responding to a user instruction through the model processing service assembly, processing the power measurement data, and generating model data to be written;
and updating a preset example according to the model data to be written through the database service component, and constructing a plurality of micro services according to the preset example.
CN202011640388.3A 2020-12-31 2020-12-31 Power dispatching micro-service construction system and method Active CN112669015B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011640388.3A CN112669015B (en) 2020-12-31 2020-12-31 Power dispatching micro-service construction system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011640388.3A CN112669015B (en) 2020-12-31 2020-12-31 Power dispatching micro-service construction system and method

Publications (2)

Publication Number Publication Date
CN112669015A true CN112669015A (en) 2021-04-16
CN112669015B CN112669015B (en) 2023-04-07

Family

ID=75413964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011640388.3A Active CN112669015B (en) 2020-12-31 2020-12-31 Power dispatching micro-service construction system and method

Country Status (1)

Country Link
CN (1) CN112669015B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170011320A1 (en) * 2009-02-20 2017-01-12 Calm Energy Inc. Dynamic contingency avoidance and mitigation system
CN109582717A (en) * 2018-10-16 2019-04-05 中国电力科学研究院有限公司 A kind of database unified platform and its read method towards electric power big data
CN110247981A (en) * 2019-06-26 2019-09-17 南京南瑞继保工程技术有限公司 A kind of electric power scheduling automatization system application micro services remodeling method
CN110618820A (en) * 2019-09-20 2019-12-27 国网浙江省电力有限公司 Power dispatching system
CN111752965A (en) * 2020-05-29 2020-10-09 南京南瑞继保电气有限公司 Real-time database data interaction method and system based on micro-service

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170011320A1 (en) * 2009-02-20 2017-01-12 Calm Energy Inc. Dynamic contingency avoidance and mitigation system
CN109582717A (en) * 2018-10-16 2019-04-05 中国电力科学研究院有限公司 A kind of database unified platform and its read method towards electric power big data
CN110247981A (en) * 2019-06-26 2019-09-17 南京南瑞继保工程技术有限公司 A kind of electric power scheduling automatization system application micro services remodeling method
CN110618820A (en) * 2019-09-20 2019-12-27 国网浙江省电力有限公司 Power dispatching system
CN111752965A (en) * 2020-05-29 2020-10-09 南京南瑞继保电气有限公司 Real-time database data interaction method and system based on micro-service

Also Published As

Publication number Publication date
CN112669015B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
US11277498B2 (en) Method, apparatus and system for processing data
CN103491169A (en) Method and system for uploading and downloading files
CN103853714A (en) Data processing method and device
CN104104719A (en) Demonstration method for power grid real-time flow diagram in power grid dispatching mobile application
CN104144202A (en) Hadoop distributed file system access method, system and device
CN112988770A (en) Method and device for updating serial number, electronic equipment and storage medium
CN116244387A (en) Entity relationship construction method, device, electronic equipment and storage medium
CN113190517B (en) Data integration method and device, electronic equipment and computer readable medium
CN112685115A (en) International cue language generating method, system, computer equipment and storage medium
CN112669015B (en) Power dispatching micro-service construction system and method
CN115934076B (en) Cross-platform client micro-service providing device and method and electronic equipment
CN101582153A (en) Method and system for managing power network resources
CN112699111B (en) Report generation method and device, electronic equipment and computer readable medium
CN115543428A (en) Simulated data generation method and device based on strategy template
CN106991129B (en) Real-time database system based on SOA (service oriented architecture) framework power dispatching system and implementation method
CN115017185A (en) Data processing method, device and storage medium
CN112783960A (en) Data processing system and method, electronic device, computer-readable storage medium
CN106230646B (en) A kind of method and test macro obtaining network management alarm information
CN104202335A (en) XML (extensive markup language) based simplified SAP (service access point) data transmission method
CN112711421B (en) Cross-service Mock data sharing use method, system, equipment and storage medium
CN115481932B (en) ERP system database trigger generation method, storage medium and electronic device
CN115525284A (en) Interface generation method and device
CN115934459A (en) Buried point data processing method and device, computer equipment and storage medium
CN112434068A (en) Caching method and device based on mobile communication product relation table data and computer equipment
CN112948461A (en) Method, apparatus, storage medium, and program product for schedule data processing

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