Disclosure of Invention
The technical problem to be solved by the invention is to provide the ammeter data collecting and receiving shunting processing system and method based on the big data, which can improve the meter reading efficiency and shorten the overall time for collecting and receiving ammeter data.
In order to solve the above technical problems, an aspect of the present invention provides a method for shunting data received by an electric meter core based on big data, which includes the following steps:
step S10, periodically collecting the operation data of the related equipment of various electric meters through the front-end processor;
step S11, preprocessing the collected operation data and standardizing each operation data; the pre-treatment at least comprises: repairing defective data, deleting useless data, and removing messy codes and repeated parts contained in the data;
step S12, determining the data type of each preprocessed data, dividing all the preprocessed data according to the data type, and respectively importing the data into a plurality of data processing channels; each data processing channel corresponds to one category of data respectively;
step S13, determining whether the data of each data processing channel needs to be distributed according to the real-time response rate of the system;
step S14, if the judgment result is that the data needs to be distributed, distributing the data of the data processing channel needing to be distributed to one of a plurality of parallel servers connected with the main server; otherwise, transmitting the data of the data processing channel to a main server;
step S15, after receiving the data of the data processing channel, the main server or the parallel server carries out integration analysis and check processing on the data to form a user data packet of each user; and pushing the user data packet to a corresponding user side.
Preferably, further comprising: the method comprises the steps of configuring the corresponding relation between parallel servers and data categories in advance, wherein each parallel server corresponds to one data category.
Preferably, the step S13 further includes:
comparing the real-time response rate of the system with a preset response rate threshold, and if the real-time response rate of the system is smaller than the response threshold, determining that shunting processing is required; otherwise, determining that the shunting processing is not needed;
if the data needs to be distributed, inquiring a corresponding table of response rate and distribution quantity according to the real-time response rate, determining the quantity of the data processing channels needing to be distributed, and obtaining the parallel server information corresponding to each data processing channel so as to distribute the data of each data processing channel needing to be distributed to the corresponding parallel server.
Correspondingly, in another aspect of the present invention, a big data based electric meter nuclear receiving data shunting processing system is further provided, which includes:
the data acquisition unit is used for periodically acquiring the operation data of various types of electric meter related equipment through the front-end processor;
the preprocessing unit is used for preprocessing the acquired operation data and standardizing each operation data; the pre-treatment at least comprises: repairing defective data, deleting useless data, and removing messy codes and repeated parts contained in the data;
the data dividing unit is used for determining the data type of each preprocessed data, dividing all the preprocessed data according to the data type and respectively importing the data into a plurality of data processing channels; each data processing channel corresponds to one category of data respectively;
the shunt judgment unit is used for determining whether the data of each data processing channel needs to be shunted or not according to the real-time response rate of the system;
the distribution processing unit is used for distributing the data of the data processing channel needing distribution to one of a plurality of parallel servers connected with the main server if the judgment result of the distribution judging unit is that the distribution is needed; otherwise, transmitting the data of the data processing channel to a main server;
the checking processing unit is used for performing integration analysis and checking processing on the data after the main server or the parallel server receives the data of the data processing channel to form a user data packet of each user; and pushing the user data packet to a corresponding user side.
Preferably, further comprising:
the configuration unit is used for configuring the corresponding relation between the parallel servers and the data categories in advance, wherein each parallel server corresponds to one data category.
Preferably, the shunt judgment unit further includes:
the comparison unit is used for comparing the real-time response rate of the system with a preset response rate threshold value, and if the real-time response rate of the system is smaller than the response threshold value, the shunt processing is determined to be required; otherwise, determining that the shunting processing is not needed;
and the flow dividing channel number determining unit is used for inquiring a corresponding table of response rate and flow dividing number according to the real-time response rate when the comparing unit determines that flow dividing processing is needed, determining the number of the data processing channels needing flow dividing, and acquiring the parallel server information corresponding to each data processing channel.
The embodiment of the invention has the following beneficial effects:
the invention provides a big data-based ammeter nuclear receiving data shunting processing system and method, which can enable different servers to process different types of ammeter data in parallel by shunting the collected massive ammeter data, thereby being capable of rapidly performing nuclear receiving processing on the ammeter data and greatly improving the overall data processing efficiency; the whole time for collecting and checking the ammeter data is greatly shortened.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings.
Fig. 1 is a main flow diagram illustrating an embodiment of a method for shunting data received by an electric meter based on big data according to the present invention; in the present embodiment, it is preferred that,
in order to solve the above technical problems, an aspect of the present invention provides a method for shunting data received by an electric meter core based on big data, which includes the following steps:
step S10, periodically collecting the operation data of the related equipment of various electric meters through the front-end processor; it can be understood that, due to different types of the related devices of the electric meter, the data formats acquired by the electric meter are different;
step S11, preprocessing the collected operation data and standardizing each operation data; the pre-treatment at least comprises: repairing defective data, deleting useless data, and removing messy codes and repeated parts contained in the data; and controlling the length of the acquired data to realize data standardization. To facilitate processing in subsequent steps;
step S12, determining the data type of each preprocessed data, dividing all the preprocessed data according to the data type, and respectively importing the data into a plurality of data processing channels; each data processing channel corresponds to one category of data respectively;
step S13, determining whether the data of each data processing channel needs to be distributed according to the real-time response rate of the system;
specifically, in a specific example, preferably, the step S13 further includes:
comparing the real-time response rate of the system with a preset response rate threshold, and if the real-time response rate of the system is smaller than the response threshold (such as 50%), determining that shunting processing is required; otherwise, determining that the shunting processing is not needed;
if the data needs to be distributed, inquiring a corresponding table of response rate and distribution quantity according to the real-time response rate, determining the quantity of the data processing channels needing to be distributed, and obtaining the parallel server information corresponding to each data processing channel so as to distribute the data of each data processing channel needing to be distributed to the corresponding parallel server. Specifically, the lower the real-time response rate is, which indicates that the real-time processing efficiency of the existing system is lower, the more data of the data processing channels need to be distributed to the parallel server for processing; the relationship (including specific channels) between the real-time response rate and the shunt number in the response rate and shunt number correspondence table can be calibrated or configured in advance.
It can be understood that, in the method of the present invention, the correspondence between the parallel servers and the data categories needs to be configured in advance, wherein each parallel server corresponds to one data category.
Step S14, if the judgment result is that the data needs to be distributed, distributing the data of the data processing channel needing to be distributed to one of a plurality of parallel servers connected with the main server; otherwise, transmitting the data of the data processing channel to a main server;
step S15, after receiving the data of the data processing channel, the main server or the parallel server carries out integration analysis and check processing on the data to form a user data packet of each user; and pushing the user data packet to a corresponding user side. Specifically, in this step, at least the resources in the database may be configured and integrated according to a preset distribution scheme to obtain a data packet, and the data packet is distributed and pushed to the user side.
Fig. 2 is a schematic structural diagram illustrating an embodiment of a big data-based electric meter core data distribution processing system according to the present invention. Referring to fig. 3 together, in this embodiment, the system 1 at least includes:
the data acquisition unit 10 is used for periodically acquiring the operation data of various electric meter related devices through the front-end processor;
the preprocessing unit 11 is used for preprocessing the acquired operation data and standardizing each operation data; the pre-treatment at least comprises: repairing defective data, deleting useless data, and removing messy codes and repeated parts contained in the data;
the data dividing unit 12 is configured to determine a data type of each preprocessed data, divide all the preprocessed data according to the data type, and import the divided data into a plurality of data processing channels; each data processing channel corresponds to one category of data respectively;
the shunt judgment unit 13 is configured to determine whether data of each data processing channel needs to be shunted according to the system real-time response rate;
the distribution processing unit 14 is configured to distribute data of the data processing channel to be distributed to one of the multiple parallel servers connected to the main server if the determination result of the distribution determining unit is that distribution is required; otherwise, transmitting the data of the data processing channel to a main server;
a checking processing unit 15, configured to perform, after the main server or the parallel server receives data of the data processing channel, integration analysis and checking processing on the data to form a user data packet of each user; pushing the user data packet to a corresponding user side;
the configuration unit 16 is configured to pre-configure a corresponding relationship between parallel servers and data categories, where each parallel server corresponds to one data category.
As shown in fig. 3, the shunt determination unit 14 further includes:
the comparing unit 140 is configured to compare the system real-time response rate with a preset response rate threshold, and if the system real-time response rate is smaller than the response threshold, determine that the shunting processing is required; otherwise, determining that the shunting processing is not needed;
the shunting channel number determining unit 141 is configured to, when the comparing unit determines that shunting processing is required, query a response rate and shunting number correspondence table according to the real-time response rate, determine the number of data processing channels that need to be shunted, and obtain parallel server information corresponding to each data processing channel.
For more details, reference may be made to and combined with the foregoing description of fig. 1, which is not repeated herein.
The embodiment of the invention has the following beneficial effects:
the invention provides a big data-based ammeter nuclear receiving data shunting processing system and method, which can enable different servers to process different types of ammeter data in parallel by shunting the collected massive ammeter data, thereby being capable of rapidly performing nuclear receiving processing on the ammeter data and greatly improving the overall data processing efficiency; the whole time for collecting and checking the ammeter data is greatly shortened.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention 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 invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. 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.
While the invention has been described in connection with what is presently considered to be the most practical and preferred embodiment, it is to be understood that the invention is not to be limited to the disclosed embodiment, but on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.