A method, system and storage medium for concurrent data processing of online monitoring of pollution sources

By allocating electricity consumption data and environmental quality monitoring data according to the usage rate of sub-servers in the online pollution monitoring system of heavy pollution enterprises, the problem of insufficient system concurrency capabilities is solved, data processing speed and stability are improved, and sub-servers are avoided full load crash.

CN112596899BActive Publication Date: 2025-01-07JIANGSU SULI ENVIRONMENTAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011504886.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-18
Publication Date
2025-01-07
Estimated Expiration
2040-12-18

AI Technical Summary

Technical Problem

The existing online pollution monitoring systems of heavy pollution enterprises have problems with insufficient concurrency capabilities when processing high-frequency electricity consumption data and environmental quality monitoring data, resulting in slow data processing speed and sub-servers are prone to crash due to full load usage.

Method used

By obtaining the usage rates of multiple subservers, forming a scale table, and allocating the power consumption data and environmental quality monitoring data according to the preset correspondence relationship, sending it to the corresponding subserver for processing, ensuring that the usage rates of each subserver are evenly distributed. , avoid full load.

Benefits of technology

The pollution monitoring data processing speed of key polluting enterprises has been improved, the concurrency capability of the system has been enhanced, the risk of crashing the sub-server has been reduced, and the stability of data processing has been improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112596899B_ABST
    Figure CN112596899B_ABST
Patent Text Reader

Abstract

The present application relates to a method, system and storage medium for concurrent data processing of online monitoring of pollution sources, wherein the method includes obtaining a ratio table of multiple sub-servers and a monitoring data packet of a current key polluting enterprise, and detecting the data in the monitoring data packet; if it is detected that the pollution source monitoring data contains environmental quality monitoring data, the power consumption data and the environmental quality monitoring data are allocated according to the ratio table, the first corresponding relationship and the second corresponding relationship, and sent to the corresponding sub-server; if it is detected that the pollution source monitoring data does not contain environmental quality monitoring data, the power consumption data in the monitoring data packet is allocated according to the ratio table and the first corresponding relationship, and sent to the corresponding sub-server. The present application has the effect of facilitating the concurrent processing of pollution monitoring data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of pollution detection, and in particular to a method, system and storage medium for concurrent data processing of online monitoring of pollution sources. Background Art

[0002] With the rapid development of industrialization and urbanization, environmental pollution has also come along. When environmental pollution occurs, if the polluted area cannot be dealt with in time, it will endanger the safety of people, livestock and crops in the polluted area. Therefore, pollution monitoring of heavily polluting enterprises is particularly important.

[0003] Existing online pollution monitoring for heavily polluting enterprises generally monitors the environmental quality monitoring data of their production areas and the electricity consumption data of multiple environmental protection equipment. The environmental quality monitoring data is generally uploaded and tested according to a preset number of minutes or hours. The pollutants generated by heavily polluting enterprises in their production processes need to be processed by multiple environmental protection equipment. The monitoring frequency of the electricity consumption data of environmental protection equipment is at the second level, which makes the amount of pollution monitoring data obtained for key polluting enterprises at a certain time point large. Therefore, it is necessary to improve the concurrency capability of pollution monitoring. Summary of the invention

[0004] In order to improve the concurrent capability of pollution monitoring, the present application provides a method, system and storage medium for concurrent data processing of online monitoring of pollution sources.

[0005] In the first aspect, the present application provides a method for concurrent data processing of online monitoring of pollution sources, which adopts the following technical solution:

[0006] A method for processing concurrent data of online monitoring of pollution sources, comprising:

[0007] Obtain a ratio table of multiple preset sub-servers, wherein the ratio table contains information of multiple sub-servers at different time nodes and corresponding usage ratio relationships;

[0008] Obtaining a monitoring data packet of a current key polluting enterprise, wherein the monitoring data packet may include electricity consumption data and environmental quality monitoring data of the current key polluting enterprise at a first time node, or may only include electricity consumption data of the current key polluting enterprise at a first time node;

[0009] Detecting the data in the monitoring data packet,

[0010] If it is detected that the pollution source monitoring data contains environmental quality monitoring data, the power consumption data and environmental quality monitoring data in the monitoring data packet are allocated according to the proportion table, the preset first corresponding relationship and the preset second corresponding relationship, and the data items in the allocated monitoring data packet are sent to the corresponding sub-server, so that the corresponding sub-server can process the part of the monitoring data packet it has received; the power consumption data includes the power consumption data information of different environmental protection equipment of the current key polluting enterprise at the first time node, and the environmental quality monitoring data includes the pollution monitoring information of different pollution areas of the current key polluting enterprise at the first time node;

[0011] If it is detected that the pollution source monitoring data does not contain environmental quality monitoring data, the electricity consumption data in the monitoring data packet is allocated according to the proportion table and the preset first correspondence, and the data items in the allocated electricity consumption data are sent to the corresponding sub-server for the corresponding sub-server to process the part of the monitoring data packet it has received.

[0012] By adopting the above technical solution, according to the utilization rate of multiple sub-servers, the data items in the electricity consumption data of key polluting enterprises and the data items in the environmental quality monitoring data are allocated to the corresponding sub-servers according to a specific correspondence, which helps the corresponding sub-servers to carry out targeted processing of part of the electricity consumption data or part of the environmental quality monitoring data, and helps to improve the processing speed of the pollution monitoring data of key polluting enterprises, thereby facilitating the improvement of the concurrent capability of processing pollution monitoring data.

[0013] Optionally, each of the sub-servers is preset with the same maximum usage rate, the full load usage rate of each of the sub-servers is the same, and the maximum usage rate is less than the full load usage rate.

[0014] By adopting the above technical solution, the preset maximum utilization rate of the sub-server is lower than the full load utilization rate, which can reduce the phenomenon of sub-server crashing under full load utilization rate, thereby helping to improve the processing speed of pollution monitoring data of key polluting enterprises.

[0015] Optionally, the obtaining of a ratio table of multiple preset sub-servers specifically includes:

[0016] Obtaining usage rates of the plurality of sub-servers;

[0017] Calculating multiple usage rates according to a preset calculation formula to form corresponding allocation ratios, and storing them in a preset ratio table;

[0018] The preset calculation formula is: , where a is the maximum utilization rate, n is the number of sub-servers, is the usage rate of the corresponding sub-server at different time nodes, All ≤ a, when the utilization rate of each sub-server is the same, the classification ratio is 1:1:1.....1.

[0019] By adopting the above technical solution, since the sub-server has poor data processing capability after reaching full load utilization, calculating the corresponding allocation ratio based on the maximum utilization rate of the sub-server helps to improve the data processing speed of the sub-server, thereby helping to improve the data concurrency capability.

[0020] Optionally, allocating the power consumption data and the environmental quality monitoring data in the monitoring data packet according to the ratio table, the preset first corresponding relationship and the preset second corresponding relationship, and sending the data items in the allocated monitoring data packet to the corresponding sub-server, specifically includes:

[0021] Allocating data items in the power usage data according to the proportion table and the preset first corresponding relationship, and sending the allocated power usage data to the corresponding sub-server, so that the corresponding sub-server processes part of the power usage data received;

[0022] The data items in the environmental quality monitoring data are allocated according to a preset second corresponding relationship, and the data items in the allocated environmental quality monitoring data are sent to corresponding sub-servers so that the corresponding sub-servers can process part of the environmental quality monitoring data they have received.

[0023] By adopting the above technical solution, since the electricity consumption data is allocated according to the preset first correspondence and the allocation ratio of the total corresponding ratio table, the usage rate of each sub-server is approximately equal, and the environmental quality monitoring data only needs to be allocated according to the preset second correspondence.

[0024] Optionally, the plurality of sub-servers are pre-divided into a first server group and a second server group;

[0025] The first corresponding relationship is to averagely distribute the multiple environmental protection devices according to the number of sub-servers in the first server group, and select the same number of sub-servers in the first server group for average distribution according to the number of environmental protection devices remaining after the average distribution, and form multiple detection device groups; the multiple servers in the first server group correspond one-to-one to the multiple monitoring device groups, and each of the monitoring device groups contains a corresponding number of environmental protection devices.

[0026] By adopting the above technical solution, the first corresponding relationship allocates multiple environmental protection devices, so that the corresponding sub-server can give priority to processing the power consumption data information of several environmental protection devices in the corresponding monitoring device group, thereby helping to improve the processing speed of the sub-server on the power consumption data.

[0027] Optionally, the data items of the environmental quality monitoring data have two categories;

[0028] The multiple sub-servers are pre-divided into a third server group and a fourth server group according to a preset grouping formula; the second corresponding relationship is that several sub-servers in the third server group only process multiple data items of one category in the environmental quality monitoring data, and several sub-servers in the fourth server group only process multiple data items of another category in the environmental quality monitoring data.

[0029] By adopting the above technical solution, since the data items in the environmental monitoring data have two categories, after the second electricity consumption data is allocated, the usage rates of multiple sub-servers are in a relatively equal state, and the data items of the same category in the environmental quality monitoring data can be allocated to the sub-servers in the third server group, and another data item of the same category in the environmental quality monitoring data can be allocated to the sub-servers in the fourth server group, so that the sub-server only processes the data items in one category of the environmental quality monitoring data, thereby helping to improve the processing speed of the sub-server for the environmental quality monitoring data.

[0030] Optionally, the grouping formula is specifically: ,

[0031] Where a is the number of polluted areas of one category, b is the number of polluted areas of another category, and c is the number of sub-servers.

[0032] By adopting the above technical solution, due to As a rounding function, the ratio of the number of sub-servers in the third server group to the number of sub-servers in the fourth server group can be approximately equal to the ratio of the number of pollution areas of different categories, thereby helping to improve the processing speed of the sub-servers for environmental quality monitoring data.

[0033] In the second aspect, the present application provides a pollution source online detection concurrent data processing system, which adopts the following technical solution:

[0034] A pollution source online detection concurrent data processing system, comprising:

[0035] A storage module, used for storing a preset ratio table, a preset first corresponding relationship and a preset second corresponding relationship;

[0036] An acquisition module is used to acquire a preset proportion table of sub-servers and to acquire monitoring data packets of current key polluting enterprises;

[0037] The processing module is used to perform the following processing:

[0038] Detecting the monitoring data packet acquired by the acquisition module;

[0039] If it is detected that the monitoring data packet acquired by the acquisition module contains environmental quality monitoring data, the power consumption data and the environmental quality monitoring data in the monitoring data packet acquired by the acquisition module are allocated according to the ratio table acquired by the acquisition module and the preset first corresponding relationship and the preset second corresponding relationship stored in the storage module;

[0040] If it is detected that the monitoring data packet acquired by the acquisition module does not contain the environmental quality monitoring data, the power consumption data in the monitoring data packet acquired by the acquisition module is allocated according to the ratio table acquired by the acquisition module and the preset first corresponding relationship stored in the storage module;

[0041] A sending module is used to send the power consumption data and environmental quality monitoring data in the monitoring data packet currently assigned and processed by the processing module to the corresponding sub-server, so that the corresponding sub-server can process part of the power consumption data and part of the environmental quality monitoring data received by it, and is used to send the power consumption data in the monitoring data packet currently assigned and processed by the processing module to the corresponding sub-server, so that the corresponding sub-server can process part of the power consumption data received by it.

[0042] By adopting the above technical solution, the system obtains the electricity consumption data and environmental quality monitoring data of the current key polluting enterprises through the acquisition module, and obtains the utilization rate of multiple sub-servers through the acquisition module, so as to use the processing module to allocate the electricity consumption data and environmental quality monitoring data acquired through the acquisition module according to the preset content in the storage module, and send the allocated electricity consumption data and environmental quality monitoring data to the corresponding sub-servers through the sending module.

[0043] In the third aspect, the present application provides a middle platform system, which adopts the following technical solutions:

[0044] A middle platform system includes a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and execute any one of the above methods.

[0045] By adopting the above technical solution, electricity consumption data and environmental quality monitoring data are allocated to corresponding sub-servers according to a preset correspondence, and the sub-servers can perform targeted processing on the corresponding part of electricity consumption data or the corresponding part of environmental quality monitoring data at different time nodes.

[0046] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:

[0047] A computer-readable storage medium stores a computer program that can be loaded by a processor and execute any one of the above methods.

[0048] By adopting the above technical solution, the computer-readable storage medium can store the corresponding program, and the electricity consumption data and environmental quality monitoring data at different time nodes can be specifically allocated and sent to the corresponding sub-servers.

[0049] In summary, the present application includes at least one of the following beneficial technical effects:

[0050] 1. According to the utilization rate of multiple sub-servers, the data items in the electricity consumption data of key polluting enterprises and the data items in the environmental quality monitoring data are allocated to the corresponding sub-servers according to a specific correspondence, which helps the corresponding sub-servers to process part of the electricity consumption data or part of the environmental quality monitoring data, and helps to improve the processing speed of the pollution monitoring data of key polluting enterprises, thereby facilitating the improvement of the concurrent processing capacity of the pollution monitoring data;

[0051] 2. The first allocation principle allocates multiple environmental protection devices so that the corresponding sub-servers give priority to processing the power consumption data information of several environmental protection devices in the corresponding monitoring device group, thereby helping to improve the processing speed of the sub-servers for power consumption data;

[0052] 3. Data items of the same category in the environmental quality monitoring data can be assigned to the sub-servers in the third server group, and another data item of the same category in the environmental quality monitoring data can be assigned to the sub-servers in the fourth server group, so that the sub-server only processes data items in one category of the environmental quality monitoring data, thereby helping to improve the processing speed of the sub-server for the environmental quality monitoring data. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 It is a schematic flowchart of the process of the method for online monitoring and concurrent data processing of pollution sources in an embodiment of the present application.

[0054] Figure 2 It is a flowchart for reflecting the distribution process of electricity consumption data according to an embodiment of the present application.

[0055] Figure 3 It is a structural block diagram of the pollution source online monitoring and concurrent data processing system of an embodiment of the present application.

[0056] Explanation of the accompanying drawings: 1. Storage module; 2. Acquisition module; 3. Processing module; 4. Sending module. DETAILED DESCRIPTION

[0057] The following is combined with Figure 1-3 This application is described in further detail.

[0058] The embodiment of the present application discloses a method for processing pollution source online monitoring concurrent data, which processes environmental monitoring data based on multiple preset sub-servers. Figure 1 ,The concurrent data processing method for online monitoring of pollution sources includes:

[0059] S100: Obtain a ratio table of multiple sub-servers.

[0060] The specific processing steps of S100 are as follows:

[0061] S110: Obtain usage rates of multiple sub-servers.

[0062] Each first usage rate is the usage rate of the corresponding sub-server at different time points.

[0063] S120: Calculate multiple usage rates according to a preset calculation formula to form corresponding allocation ratios, and store them in a preset ratio table.

[0064] Specifically, the ratio table contains information about sub-servers at different time nodes and the corresponding allocation ratios. Each sub-server has the same processing capacity, and the full load utilization rate of each sub-server is the same. Each sub-server has the same preset maximum utilization rate, and the full load utilization rate is greater than the maximum utilization rate. The calculation formula for the classification ratio is: , where a is the maximum utilization rate, n is the number of sub-servers, is the usage rate of the corresponding sub-server at different time nodes, All ≤ a. When the usage rate of each sub-server at a certain time node is the same, the classification ratio of the time node is 1:1:1....1.

[0065] Based on the ratio table generated in S100, each time a monitoring data packet of a corresponding key polluting enterprise is received, the latest allocation ratio in the ratio table is obtained, and the data in the monitoring data packet is allocated to the sub-server according to the latest allocation ratio. Specifically, the method for processing the monitoring data packet includes the following steps:

[0066] S200: Obtain monitoring data packets of current key polluting enterprises.

[0067] Specifically, the monitoring data package may contain the electricity consumption data and environmental quality monitoring data of the current key polluting enterprises, or only the electricity consumption data of the current key polluting enterprises. The electricity consumption data includes the electricity consumption data information of different environmental protection equipment of the current key polluting enterprises. The environmental protection equipment is the equipment that processes the pollution sources generated by the current key polluting enterprises in their production process; the environmental quality monitoring data includes the pollution monitoring information of different pollution areas of the current key polluting enterprises. The pollution area is the area where the current key polluting enterprises generate pollutants in their production process. The time unit of the acquisition frequency of electricity consumption data is seconds, and the time unit of the acquisition frequency of environmental quality monitoring data is minutes or hours.

[0068] S300: Detect the monitoring data packet. If it is detected that the monitoring data packet contains environmental quality monitoring data, the monitoring data packet is divided into electricity consumption data and environmental quality monitoring data, and jump to S410; if it is detected that the pollution source monitoring data does not contain environmental quality monitoring data, the pollution source monitoring data only contains electricity consumption data, and jump to S500.

[0069] S410: allocating data items of the power usage data in the monitoring data packet according to the preset first corresponding relationship and the obtained allocation ratio, and sending the data items in the allocated power usage data to the corresponding sub-server, so that the corresponding sub-server processes part of the power usage data it receives.

[0070] Among them, multiple sub-servers are pre-divided into a first server group and a second server group, and the number of servers in the first server group is less than the number of environmental protection devices. The first corresponding relationship is: the multiple environmental protection devices are first averaged and rounded according to the number of sub-servers in the first server group, and the same number of sub-servers in the first server group are selected according to the number of environmental protection devices remaining after the average rounding distribution for average distribution, and multiple detection device groups are formed. The multiple environmental protection devices in each monitoring device group are associated with the allocated sub-servers, and the power consumption data information of the multiple environmental protection devices in the corresponding monitoring device group is preferentially allocated to the corresponding sub-servers in the first server group. For example, the number of sub-servers in the first server is 4 and they are A, B, C and D respectively, and the number of environmental protection devices is 14, then the 14 environmental protection devices are evenly divided according to the number of 4 sub-servers, and A, B, C and D are first evenly allocated 3 environmental protection devices; after the average rounding allocation, the remaining environmental protection devices are 2, then select two sub-servers in the first server, for example: one of the combinations of A and B, A and C, A and D, B and C, B and D, C and D, and evenly distribute the remaining 2 environmental protection devices to the selected two sub-servers.

[0071] Based on the above first corresponding relationship, the specific processing steps of S410 are:

[0072] S411: Prioritize the data items in the power consumption data according to the preset first corresponding relationship and the obtained allocation ratio, and send them to the corresponding sub-servers in the preset first server group, so that the corresponding sub-servers can process the received part of the power consumption data.

[0073] When one or more sub-servers in the first server group have reached the maximum usage rate, the power consumption data information of the multiple environmental protection devices in the corresponding monitoring device group is stopped from being sent to the sub-server.

[0074] S412: distribute the data items in the power consumption data that are not sent to the corresponding sub-servers according to the obtained distribution ratio, and send them to multiple sub-servers in the second server group and the sub-servers in the first server group that are not allocated to the maximum usage rate, so that the corresponding sub-servers can process the received part of the power consumption data.

[0075] S420: Allocate data items of the environmental quality monitoring data in the monitoring data packet according to a preset second corresponding relationship, and send the allocated data items of the environmental quality monitoring data to corresponding sub-servers so that the corresponding sub-servers can process part of the environmental quality monitoring data they have received.

[0076] Specifically, since the pollutants generated by the multiple pollution areas have two categories, including air pollution and water pollution, the multiple pollution areas have two categories, and thus the data items of the environmental quality monitoring data also have two categories. The multiple sub-servers are pre-divided into the third server group and the fourth server group according to the preset grouping formula, and each sub-server is in the two server groups. The grouping formula is ,in is a rounding function, a is the number of polluted areas of the air pollution class, b is the number of polluted areas of the water pollution class, and c is the number of sub-servers. The second corresponding relationship is that several sub-servers in the third server group only process the environmental monitoring information of polluted areas of the air pollution class, and several sub-servers in the fourth server group only process the environmental monitoring information of polluted areas of the water pollution class.

[0077] S500: only the power consumption data items in the monitoring data packet are allocated according to the acquired allocation ratio and the preset first corresponding relationship, and the data items in the allocated power consumption data are sent to the corresponding sub-server for the corresponding sub-server to process the data items in the received part of the power consumption data.

[0078] The processing process in S500 is the same as that in S410.

[0079] The present application also discloses a pollution source online detection concurrent data processing system. Figure 3,The pollution source online detection concurrent data processing system includes:

[0080] The storage module 1 is used to store a preset ratio table, a preset calculation formula, a preset first corresponding relationship, a preset second corresponding relationship and a preset grouping formula.

[0081] The acquisition module 2 is used to acquire the usage rates of multiple sub-servers and to acquire the monitoring data packets of the current key polluting enterprises.

[0082] Processing module 3 is used to perform the following processing:

[0083] Calculating the usage rates of the multiple sub-servers obtained by the obtaining module 2 according to the preset calculation formula stored in the storage module 1 to form corresponding allocation ratios, and storing them in the preset ratio table stored in the storage module 1;

[0084] Detect the monitoring data packet obtained by the acquisition module 2,

[0085] If it is detected that the pollution source monitoring data contains environmental quality monitoring data, the monitoring data packet is divided into electricity consumption data and environmental quality monitoring data;

[0086] Allocating data items in the power consumption data according to a preset ratio table and a preset first corresponding relationship stored in the storage module 1;

[0087] Allocating data items of the environmental quality monitoring data according to a preset second corresponding relationship stored in the storage module 1;

[0088] The sending module 4 is used to send the data items in the electricity consumption data currently assigned to be processed by the processing module 3 to the corresponding sub-server, so that the corresponding sub-server can process the part of the electricity consumption data it has received, and is used to send the data items of the environmental quality monitoring data currently assigned to be processed by the processing module 3 to the corresponding sub-server, so that the corresponding sub-server can process the part of the environmental quality monitoring data it has received.

[0089] An embodiment of the present application also discloses a middleware system, including a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and execute the above-mentioned method for concurrent data processing of online monitoring of pollution sources.

[0090] An embodiment of the present application also discloses a computer-readable storage medium, which stores a computer program that can be loaded by a processor and executes the above-mentioned method for online monitoring of pollution sources and concurrent data processing. The computer-readable storage medium includes, for example: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0091] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit the protection scope of the application. Obviously, the described embodiments are only some embodiments of the present application, rather than all embodiments. Based on these embodiments, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.

Claims

1. A method for concurrent data processing of online monitoring of pollution sources, characterized in that: include: Obtain a ratio table of multiple preset sub-servers, wherein the ratio table contains information of multiple sub-servers at different time nodes and corresponding usage ratio relationships; Each of the sub-servers is preset with the same maximum usage rate, the full load usage rate of each of the sub-servers is the same, and the maximum usage rate is less than the full load usage rate; The step of obtaining a ratio table of a plurality of preset sub-servers specifically includes: Obtaining usage rates of the plurality of sub-servers; Calculating multiple usage rates according to a preset calculation formula to form corresponding allocation ratios, and storing them in a preset ratio table; The preset calculation formula is: , where a is the maximum utilization rate, n is the number of sub-servers, is the usage rate of the corresponding sub-server at different time nodes, All ≤ a, when the usage rate of each sub-server at a certain time node is the same, the allocation ratio of the time node is 1:1:1 .....1; Acquire a monitoring data packet of a current key polluting enterprise, wherein the monitoring data packet includes electricity consumption data and environmental quality monitoring data of the current key polluting enterprise at a first time node or only includes electricity consumption data of the current key polluting enterprise at the first time node; Detecting data in the monitoring data packet; If it is detected that the pollution source monitoring data contains environmental quality monitoring data, the power consumption data and environmental quality monitoring data in the monitoring data packet are allocated according to the proportion table, the preset first corresponding relationship and the preset second corresponding relationship, and the data items in the allocated monitoring data packet are sent to the corresponding sub-server, so that the corresponding sub-server can process the part of the monitoring data packet it has received; the power consumption data includes the power consumption data information of different environmental protection equipment of the current key polluting enterprise at the first time node, and the environmental quality monitoring data includes the pollution monitoring information of different pollution areas of the current key polluting enterprise at the first time node; If it is detected that the pollution source monitoring data does not contain the environmental quality monitoring data, the power consumption data in the monitoring data packet is allocated according to the proportion table and the preset first corresponding relationship, and the data items in the allocated power consumption data are sent to the corresponding sub-server, so that the corresponding sub-server processes the received part of the monitoring data packet; Allocating the power consumption data and the environmental quality monitoring data in the monitoring data packet according to the ratio table, the preset first corresponding relationship, and the preset second corresponding relationship, and sending the data items in the allocated monitoring data packet to the corresponding sub-server, specifically comprising: Allocating data items in the power consumption data according to the ratio table and the preset first corresponding relationship, and sending the allocated power consumption data to corresponding sub-servers so that the corresponding sub-servers can process the received part of the power consumption data, including: pre-dividing a plurality of the sub-servers into a first server group and a second server group; The first corresponding relationship is to average and round up the multiple environmental protection devices according to the number of sub-servers in the first server group, and select the same number of sub-servers in the first server group for average distribution according to the number of environmental protection devices remaining after the average rounding distribution, and form multiple monitoring device groups; the multiple servers in the first server group correspond to the multiple monitoring device groups one by one, and each of the monitoring device groups contains a corresponding number of environmental protection devices; when one or more sub-servers in the first server group have reached the maximum utilization rate, stop sending the power consumption data information of the multiple environmental protection devices in the corresponding monitoring device group to the sub-server; distribute the data items in the power consumption data that have not been sent to the corresponding sub-server according to the obtained distribution ratio, and send them to the multiple sub-servers in the second server group and the sub-servers in the first server group that are not allocated to the maximum utilization rate; Allocating data items in the environmental quality monitoring data according to a preset second corresponding relationship, and sending the allocated data items in the environmental quality monitoring data to corresponding sub-servers so that the corresponding sub-servers process part of the environmental quality monitoring data received, including: The data items of the environmental quality monitoring data have two categories; The plurality of sub-servers are pre-divided into a third server group and a fourth server group according to a preset grouping formula; the second corresponding relationship is that the plurality of sub-servers in the third server group only process the plurality of data items of one category in the environmental quality monitoring data, and the plurality of sub-servers in the fourth server group only process the plurality of data items of another category in the environmental quality monitoring data; The grouping formula is specifically: Where a is the number of polluted areas of one category, b is the number of polluted areas of another category, and c is the number of sub-servers.

2. A pollution source online detection concurrent data processing system, characterized in that: include, A storage module (1) is used to store a preset ratio table, a preset first corresponding relationship and a preset second corresponding relationship; An acquisition module (2) is used to acquire a ratio table of a plurality of preset sub-servers, and to acquire a monitoring data packet of a current key polluting enterprise, wherein the monitoring data packet includes the power consumption data and environmental quality monitoring data of the current key polluting enterprise at a first time node, or only includes the power consumption data of the current key polluting enterprise at the first time node; each of the sub-servers is preset with the same maximum usage rate, and the full load usage rate of each of the sub-servers is the same, and the maximum usage rate is less than the full load usage rate; The step of obtaining a ratio table of a plurality of preset sub-servers specifically includes: obtaining usage rates of a plurality of the sub-servers; calculating the plurality of usage rates according to a preset calculation formula to form corresponding allocation ratios, and storing the corresponding allocation ratios in the preset ratio table; The preset calculation formula is: , where a is the maximum utilization rate, n is the number of sub-servers, is the usage rate of the corresponding sub-server at different time nodes, All ≤ a, when the usage rate of each sub-server at a certain time node is the same, the allocation ratio of the time node is 1:1:1 .....1; The processing module (3) is used to perform the following processing: Detecting the monitoring data packet acquired by the acquisition module (2); If it is detected that the monitoring data packet acquired by the acquisition module (2) contains environmental quality monitoring data, the power consumption data and environmental quality monitoring data in the monitoring data packet acquired by the acquisition module (2) are allocated according to the ratio table acquired by the acquisition module (2) and the preset first corresponding relationship and the preset second corresponding relationship stored in the storage module (1); the power consumption data includes power consumption data information of different environmental protection equipment of the current key polluting enterprise at the first time node, and the environmental quality monitoring data includes pollution monitoring information of different pollution areas of the current key polluting enterprise at the first time node; If it is detected that the monitoring data packet acquired by the acquisition module (2) does not contain environmental quality monitoring data, the power consumption data in the monitoring data packet acquired by the acquisition module (2) is allocated according to the ratio table acquired by the acquisition module (2) and the preset first corresponding relationship stored in the storage module (1); According to the ratio table, the preset first correspondence and the preset second correspondence, the power consumption data and the environmental quality monitoring data in the monitoring data packet are allocated, and the data items in the allocated monitoring data packet are sent to the corresponding sub-servers, specifically including: according to the ratio table and the preset first correspondence, the data items in the power consumption data are allocated, and the allocated power consumption data are sent to the corresponding sub-servers, so that the corresponding sub-servers can process part of the power consumption data received; including: the plurality of sub-servers are pre-divided into a first server group and a second server group; the first correspondence is to average and round up the plurality of environmental protection devices according to the number of sub-servers in the first server group , according to the number of environmental protection devices remaining after the average rounding distribution, select the same number of sub-servers in the first server group for average distribution, and form multiple monitoring device groups; the multiple servers in the first server group correspond to the multiple monitoring device groups one by one, and each of the monitoring device groups contains a corresponding number of environmental protection devices; when one or more sub-servers in the first server group have reached the maximum utilization rate, stop sending the power consumption data information of the multiple environmental protection devices in the corresponding monitoring device group to the sub-server; distribute the data items in the power consumption data that are not sent to the corresponding sub-server according to the obtained distribution ratio, and send them to the multiple sub-servers in the second server group and the sub-servers in the first server group that are not allocated to the maximum utilization rate; The data items in the environmental quality monitoring data are allocated according to a preset second corresponding relationship, and the data items in the allocated environmental quality monitoring data are sent to corresponding sub-servers so that the corresponding sub-servers can process part of the environmental quality monitoring data received; including: the data items of the environmental quality monitoring data have two categories; a plurality of the sub-servers are pre-divided into a third server group and a fourth server group according to a preset grouping formula; the second corresponding relationship is that a plurality of sub-servers in the third server group only process a plurality of data items of one category in the environmental quality monitoring data, and a plurality of sub-servers in the fourth server group only process a plurality of data items of another category in the environmental quality monitoring data; The grouping formula is specifically: Where a is the number of polluted areas of one category, b is the number of polluted areas of another category, and c is the number of sub-servers; The sending module (4) is used to send the power consumption data and environmental quality monitoring data in the monitoring data packet currently allocated and processed by the processing module (3) to the corresponding sub-server, so that the corresponding sub-server can process part of the power consumption data and part of the environmental quality monitoring data received by it, and is used to send the power consumption data in the monitoring data packet currently allocated and processed by the processing module (3) to the corresponding sub-server, so that the corresponding sub-server can process part of the power consumption data received by it.

3. A middle platform system, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and execute the method as claimed in claim 1.

4. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute the method as claimed in claim 1.

Citation Information

Patent Citations

  • Vehicle service response method and system

    CN111064772A

  • Database load balancing method and device, electronic equipment and storage medium

    CN111949736A