Production management system flow processing method and device, computer equipment and storage medium
By monitoring the data traffic and carrying indicators of the production management system, automatically closing low business value data and performing capacity expansion, the problem of storage layer resource bottlenecks is solved and system stability is improved.
Patent Information
- Application Number
- CN202410685317.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-08-23
AI Technical Summary
When resource bottlenecks occur in the storage layer, the existing production management system cannot quickly resolve them, resulting in increased system pressure and service jitter, affecting stability.
By monitoring data traffic and carrying indicators, it automatically obtains target data with low business value from the storage layer, performs shutdown processing, and performs circuit breaker and capacity expansion processing when necessary to ensure system stability.
It effectively reduces system pressure, prevents service jitter, and improves the service stability of the production management system.
Smart Images

Figure CN118535337A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a production management system flow processing method, device, computer equipment and storage medium. Background Art
[0002] Explosion-proof lamps are special lamps, mainly used in dangerous places where flammable gases and dust exist. They can prevent the arcs, sparks and high temperatures that may be generated inside the lamps from igniting flammable gases and dust in the surrounding environment, thereby meeting the explosion-proof requirements. With the rapid development of explosion-proof lamp manufacturers, explosion-proof lamps are sold all over the world. In order to realize modern management of the production of explosion-proof lamps, currently, for explosion-proof lamp companies, a production management system for data monitoring and production visualization of explosion-proof lamps in the production process is usually developed. In related technologies, the production management system can collect production information of explosion-proof lamps in the production process in real time, such as production status, production environment, production quantity, production abnormality information, etc., and can analyze and warn the production information of explosion-proof lamps, so as to ensure the safety, efficiency and intelligent production of explosion-proof lamps. In addition, the production management system can also process the business requests received for querying relevant information about explosion-proof lamps and provide corresponding services. In the prior art, the production management system often encounters resource bottlenecks during operation, and the common solution is to add nodes. However, when the resource bottleneck occurs in the storage layer of the production management system, since adding nodes requires synchronization of the full amount of data, when the amount of data is huge, such as more than 1T of data, the full amount of data synchronization cannot be completed in a short time, and the bottleneck period of the storage layer cannot be overcome by adding nodes. If the resource bottleneck of the storage layer of the production management system is not resolved, the production management system will be under great system pressure, and service jitters will easily occur, affecting the service stability of the production management system. Therefore, there is an urgent need to provide a technical means that can effectively solve the resource bottleneck of the storage layer of the production management system. Summary of the invention
[0003] The main purpose of the present invention is to provide a production management system flow processing method, device, computer equipment and storage medium, aiming to solve the problem in the prior art that when the resource bottleneck occurs in the storage layer of the production management system, if the resource bottleneck of the storage layer of the production management system is not solved, it will cause the production management system to have a large system pressure, and it is easy to have service jitter, affecting the service stability of the production management system. Therefore, it is urgent to provide a technical means that can effectively solve the resource bottleneck of the storage layer of the production management system.
[0004] To achieve the above object, the present invention provides a production management system flow processing method, the method comprising:
[0005] Acquire the data flow in the storage layer of the production management system; wherein the production management system is a management system corresponding to the production operation of the explosion-proof lamp;
[0006] Determining whether the data flow is greater than a preset flow threshold;
[0007] If so, collecting the load indicators of the production management system;
[0008] Determining whether the load index is greater than a preset index threshold;
[0009] If so, obtaining target business data of low business value data type from the storage layer;
[0010] The target data traffic corresponding to the target business data is closed.
[0011] Optionally, obtaining target business data of low business value from the storage layer includes:
[0012] Obtaining the business value of all business data included in the storage layer;
[0013] Performing data type classification processing on all the business data based on the business value, so as to classify the business data into first business data with high business value and second business data with low business value;
[0014] The second service data is used as the target service data.
[0015] Optionally, after determining whether the load indicator is greater than a preset indicator threshold, the method further includes:
[0016] If the carrying index is greater than the index threshold, obtaining timeout data corresponding to the service access request of the production management system;
[0017] determining a target response level corresponding to the timeout data;
[0018] Obtain a target fuse policy corresponding to the target response level;
[0019] A fusing process is performed on the production management system based on the target fusing policy.
[0020] Optionally, after determining whether the load indicator is greater than a preset indicator threshold, the method further includes:
[0021] If the load indicator is greater than the indicator threshold, obtaining a newly added processing node;
[0022] Preheating the processing node to obtain a corresponding target processing node;
[0023] The production management system is expanded based on the target processing node.
[0024] Optionally, the preheating the processing node to obtain a corresponding target processing node includes:
[0025] Get the processing strategy for time slice diversion;
[0026] Performing a preheating process on the processing node based on the processing strategy to obtain a preheated processing node;
[0027] The preheated processing node is used as the target data node.
[0028] Optionally, after the capacity expansion processing is performed on the production management system based on the target processing node, the method further includes:
[0029] Acquire a plurality of designated load indicators of the production management system within a preset time period;
[0030] Determining whether all of the specified load indicators are less than the indicator threshold;
[0031] If so, call the preset sleep command;
[0032] After the target processing node completes the data processing flow, a disconnection process is performed on the target processing node based on the sleep instruction.
[0033] Optionally, after closing the target data traffic corresponding to the target service data, the method further includes:
[0034] Determining whether the production management system is in a stable state;
[0035] If so, the target data traffic corresponding to the target business data is restored.
[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a production management system flow processing device, the production management system flow processing device comprising:
[0037] A first acquisition module is used to acquire data flow in a storage layer of a production management system; wherein the production management system is a management system corresponding to the production operation of explosion-proof lamps;
[0038] A first judgment module, used to judge whether the data flow is greater than a preset flow threshold;
[0039] A collection module, for collecting the load indicators of the production management system;
[0040] A second judgment module is used to judge whether the load index is greater than a preset index threshold;
[0041] A second acquisition module is used to acquire target business data with a data type of low business value from the storage layer if the data type is low business value;
[0042] The first processing module is used to close the target data flow corresponding to the target business data.
[0043] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:
[0044] The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the production management system flow processing method described in any one of the embodiments of the present application are implemented.
[0045] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:
[0046] The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the production management system flow processing method described in any one of the embodiments of the present application are implemented.
[0047] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0048] The present invention provides a production management system flow processing method, device, computer equipment and storage medium, the method comprising: obtaining the data flow in the storage layer of the production management system; judging whether the data flow is greater than a preset flow threshold; if so, collecting the carrying index of the production management system; judging whether the carrying index is greater than a preset index threshold; if so, obtaining target business data with a data type of low business value from the storage layer; closing the target data flow corresponding to the target business data. The present application monitors the data flow in the storage layer of the production management system and collects the carrying index of the production management system. When it is detected that the data flow is greater than the preset flow threshold and the carrying index is greater than the preset index threshold, the target business data with a data type of low business value is automatically and intelligently obtained from the storage layer and the target data flow corresponding to the target business data is closed. In this way, the system pressure of the production management system can be quickly reduced, service jitters in the production management system can be prevented, and the service stability of the production management system can be effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0050] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0051] Figure 2 is a flow chart of a production management system flow processing method provided by an embodiment of the present invention;
[0052] Figure 3 is a structural schematic diagram of an embodiment of a flow processing device for a production management system according to the present application;
[0053] Figure 4 This is a basic structural block diagram of the computer device in this embodiment. DETAILED DESCRIPTION
[0054] The production management system flow processing method provided by the embodiment of the present invention is applied to the production management system flow processing device. Unless otherwise defined, all technical and scientific terms used in this document have the same meaning as those generally understood by technicians in the technical field of this application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of this application or the above-mentioned figures are used to distinguish different objects, not to describe a specific order.
[0055] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0056] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0057] like Figure 1As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0058] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social online platform software, etc.
[0059] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, etc.
[0060] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0061] It should be noted that the production management system traffic processing method provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the production management system traffic processing device is generally arranged in the server / terminal device.
[0062] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0063] Explosion-proof lamps are special lamps, mainly used in dangerous places where flammable gases and dust exist. They can prevent the arcs, sparks and high temperatures that may be generated inside the lamps from igniting flammable gases and dust in the surrounding environment, thereby meeting the explosion-proof requirements. With the rapid development of explosion-proof lamp manufacturers, explosion-proof lamps are sold all over the world. In order to realize modern management of the production of explosion-proof lamps, currently, for explosion-proof lamp companies, a production management system for data monitoring and production visualization of explosion-proof lamps in the production process is usually developed. In related technologies, the production management system can collect production information of explosion-proof lamps in the production process in real time, such as production status, production environment, production quantity, production abnormality information, etc., and can analyze and warn the production information of explosion-proof lamps, so as to ensure the safety, efficiency and intelligent production of explosion-proof lamps. In addition, the production management system can also process the business requests received for querying relevant information about explosion-proof lamps and provide corresponding services. In the prior art, the production management system often encounters resource bottlenecks during operation, and the common solution is to add nodes. However, when the resource bottleneck occurs in the storage layer of the production management system, since adding nodes requires synchronization of the full amount of data, when the amount of data is huge, such as more than 1T of data, the full amount of data synchronization cannot be completed in a short time, and the bottleneck period of the storage layer cannot be overcome by adding nodes. If the resource bottleneck of the storage layer of the production management system is not resolved, the production management system will be under great system pressure, and service jitters will easily occur, affecting the service stability of the production management system. Therefore, there is an urgent need to provide a technical means that can effectively solve the resource bottleneck of the storage layer of the production management system.
[0064] Continue to refer Figure 2 , shows a flow chart of an embodiment of a production management system flow processing method proposed in the present application. The embodiment of the present application can acquire and process relevant data based on artificial intelligence technology.
[0065] The production management system flow processing method provided by the embodiment of the present invention comprises the following steps:
[0066] S210, obtaining data flow in a storage layer of a production management system; wherein the production management system is a management system corresponding to the production operation of explosion-proof lamps.
[0067] In this step, the present invention can be applied to business scenarios where the storage layer of a production management system developed by an explosion-proof enterprise of explosion-proof lamps for data monitoring and production visualization of explosion-proof lamps during the production process encounters a resource bottleneck, and the executor of the present invention can specifically be a production management system. During the business operation of the production management system, the data traffic hitting the storage layer of the production management system can be monitored and acquired. Among them, the production management system can collect production information of explosion-proof lamps during the production process in real time, such as production status, production environment, production quantity, production abnormality information, etc., and can analyze and warn the production information of explosion-proof lamps, thereby ensuring the safe, efficient and intelligent production of explosion-proof lamps. In addition, the production management system can also process the received business requests for relevant information inquiries about explosion-proof lamps and provide corresponding services.
[0068] S220, determining whether the data flow is greater than a preset flow threshold.
[0069] In this step, there is no specific limitation on the value of the above-mentioned flow threshold, which can be set according to the evaluation criteria of the stable operation of the actual production management system.
[0070] S230: If yes, collect the load indicators of the production management system.
[0071] In this step, during the business operation of the production management system, the load index of the production management system can also be collected synchronously. There is no specific limitation on the selection of the load index, and one or more of the CPU usage, disk usage, memory usage, system query rate per second, request delay, etc. can be used.
[0072] S240: Determine whether the load indicator is greater than a preset indicator threshold.
[0073] In this step, there is no specific limitation on the values of the above indicator thresholds, which can be set according to the evaluation criteria for the stable operation of the actual production management system, and different types of load indicators correspond to different indicator thresholds. Specifically, the CPU usage rate corresponds to the CPU usage rate threshold, the disk usage rate corresponds to the disk usage rate threshold, the memory usage rate corresponds to the memory usage rate threshold, the system query rate per second corresponds to the system query rate per second threshold, and the request delay corresponds to the request delay threshold.
[0074] S250: If yes, obtain target business data with a data type of low business value from the storage layer.
[0075] In this step, data analysis can be performed on the business value of all business data included in the storage layer to obtain target business data with low business value from the storage layer. The specific implementation process of obtaining the target business data will be further described in detail in the subsequent specific embodiments of this application, and will not be elaborated on here.
[0076] S260, closing the target data traffic corresponding to the target business data.
[0077] In this step, the data identifier of the target business data can be obtained, and the data identifier can be input into the preset closing instruction to obtain a designated closing instruction, and then the designated closing instruction can be executed to close the target data flow corresponding to the target business data. The above-mentioned closing instruction is a pre-constructed instruction for closing the data flow corresponding to the business data.
[0078] In an embodiment of the present invention, the data flow in the storage layer of the production management system is obtained; then it is determined whether the data flow is greater than a preset flow threshold; if so, the carrying index of the production management system is collected; then it is determined whether the carrying index is greater than a preset index threshold; if so, the target business data with a data type of low business value is obtained from the storage layer; finally, the target data flow corresponding to the target business data is closed. This application monitors the data flow in the storage layer of the production management system and collects the carrying index of the production management system. When it is detected that the data flow is greater than the preset flow threshold and the carrying index is greater than the preset index threshold, it will automatically and intelligently obtain the target business data with a data type of low business value from the storage layer and close the target data flow corresponding to the target business data. This can quickly reduce the system pressure of the production management system, prevent service jitters in the production management system, and effectively improve the service stability of the production management system.
[0079] Optionally, obtaining target business data of low business value from the storage layer includes:
[0080] The business value of all business data included in the storage layer is obtained.
[0081] In this step, for all business data included in the storage layer of the production management system, business value scores will be generated in advance for each business data according to the actual use value of each business data, and a business value threshold will be set. If the business value score of the business data is greater than the business value threshold, the business value of the business data is set to high, and if the business value score of the business data is less than the business value threshold, the business value of the business data is set to low. There is no specific limitation on the value of the above-mentioned business value threshold, which can be set according to actual usage requirements.
[0082] Data type classification processing is performed on all the business data based on the business value, so as to classify the business data into first business data with high business value and second business data with low business value.
[0083] In this step, data analysis can be performed on the business values of all the business data to classify the data with high business value in all the business data as first business data with high business value, and classify the data with low business value in all the business data as first business data with low business value.
[0084] The second service data is used as the target service data.
[0085] In this step, after second business data with low business value is screened out from all business data based on business value, the second business data is used as the target business data.
[0086] In this embodiment, the business value of all the business data included in the storage layer is obtained; then, based on the business value, data type classification is performed on all the business data, so that the business data is correspondingly divided into first business data with high business value and second business data with low business value; and the second business data is subsequently used as the target business data. This application uses the business value of all the business data included in the storage layer to perform data type classification on the business data, so that the target business data with a data type of low business value can be quickly and intelligently obtained from the storage layer, thereby ensuring the accuracy of the obtained target business data.
[0087] Optionally, after determining whether the load indicator is greater than a preset indicator threshold, the method further includes:
[0088] If the carrying index is greater than the index threshold, timeout data corresponding to the service access request of the production management system is obtained.
[0089] In this step, the timeout data refers to the ratio of the designated business access requests that timed out and could not be processed on time among all the business access requests received by the production management system to all the business access requests.
[0090] A target response level corresponding to the timeout data is determined.
[0091] In this step, according to the actual system fuse processing mechanism, a fuse data table storing a one-to-one correspondence between the ratio value of the timeout request and the response level is pre-constructed. The fuse data table can be queried by using the timeout data to find the specified ratio value matching the timeout data from the fuse data table, and then find the response level corresponding to the specified ratio value as the above-mentioned target response level. Exemplarily, the response level corresponding to the timeout data of 10%-20% is a first-level response, the response level corresponding to the timeout data of 20%-40% is a second-level response, and the response level corresponding to the timeout data of 40%-60% is a third-level response. Among them, for different response levels, the fuse data table also stores fuse strategies corresponding to various response levels, and the specific content of the fuse strategy can be set according to the actual fuse business. Exemplarily, the fuse strategy corresponding to the first-level response is that the system automatically fuses for 10s, the fuse strategy corresponding to the second-level response is that the system automatically fuses for 30s, and the fuse strategy corresponding to the first-level response is that the system automatically fuses for 60s.
[0092] Obtain a target fuse policy corresponding to the target response level.
[0093] In this step, the target response level may be used to perform a data query on the above-mentioned fuse data table to find out a fuse strategy that has a corresponding relationship with the target response level and use it as the above-mentioned target fuse strategy.
[0094] A fusing process is performed on the production management system based on the target fusing policy.
[0095] In this step, the fuse time value in the target fuse strategy can be obtained, and then the production management system can be automatically blown according to the fuse time value.
[0096] In this embodiment, if it is detected that the carrying index is greater than the index threshold, the timeout data corresponding to the business access request of the production management system is obtained; then the target response level corresponding to the timeout data is determined; then the target fuse policy corresponding to the target response level is obtained; and subsequently, the production management system is subjected to fuse processing based on the target fuse policy. After detecting that the carrying index is greater than the index threshold, the present application will further determine the target response level corresponding to the timeout data of the business access request of the production management system, and perform fuse processing on the production management system according to the target fuse policy corresponding to the target response level, thereby effectively reducing the system pressure of the production management system, reducing the service jitter of the production management system, and improving the service stability of the production management system.
[0097] Optionally, after determining whether the load indicator is greater than a preset indicator threshold, the method further includes:
[0098] If the load indicator is greater than the indicator threshold, a newly added processing node is obtained.
[0099] In this step, the processing nodes are pre-built data nodes with traffic processing functions. There is no limit on the number of processing nodes, which can be set according to actual business expansion needs.
[0100] The processing node is preheated to obtain a corresponding target processing node.
[0101] In this step, the processing node may be preheated by using a time slice splitting processing method, thereby obtaining a corresponding target processing node.
[0102] The production management system is expanded based on the target processing node.
[0103] In this step, the target processing node can be expanded to the storage layer of the production management system to complete the capacity expansion processing of the production management system, so that the production management system can use the target processing node to perform internal traffic processing.
[0104] In this embodiment, if it is detected that the load index is greater than the index threshold, a newly added processing node is obtained; then the processing node is preheated to obtain the corresponding target processing node; and the production management system is subsequently expanded based on the target processing node. After detecting that the load index is greater than the index threshold, the present application will further preheat the acquired newly added processing node to obtain the corresponding target processing node, and expand the production management system based on the target processing node, so that the target processing node can be used to perform internal traffic processing of the production management system later, thereby effectively reducing the system pressure of the production management system, reducing the service jitter of the production management system, and improving the service stability of the production management system.
[0105] Optionally, the preheating the processing node to obtain a corresponding target processing node includes:
[0106] Get the time slice splitting processing strategy.
[0107] In this step, when the existing nodes included in the production management system cannot support the current business access volume, new processing nodes can be added for diversion and pressure dispersion. After the full amount of data on the new node is ready, a small amount of traffic is preheated first. For example, by time slice diversion, 1% of the traffic is first divided to evenly preheat the data of the new processing node to prevent the data from not being read cached by the disk and the traffic from hitting the new processing node, resulting in excessive data processing response time.
[0108] The processing node is preheated based on the processing strategy to obtain a preheated processing node.
[0109] In this step, the processing flow of preheating the processing nodes based on the processing strategy may include: first reducing the flow rate to evenly preheat the newly added processing nodes, then gradually increasing the flow rate, and finally releasing the full flow rate.
[0110] The preheated processing node is used as the target data node.
[0111] In this step, after the preheating of the processing node is completed, the preheated processing node can be directly used as the target data node.
[0112] In this embodiment, a processing strategy of time slice diversion is obtained; then the processing node is preheated based on the processing strategy to obtain a preheated processing node; and the preheated processing node is subsequently used as the target data node. By using the processing strategy of time slice diversion to preheat the processing node, the present application can quickly and accurately obtain the target processing node required for capacity expansion processing of the production management system, thereby improving the construction efficiency and construction intelligence of the target processing node.
[0113] Optionally, after the capacity expansion processing is performed on the production management system based on the target processing node, the method further includes:
[0114] A plurality of designated load indicators of the production management system within a preset time period are obtained.
[0115] In this step, the selection of the value of the preset time period is not specifically limited and can be set according to actual usage requirements. In addition, at multiple time points included in the preset time period, each time point will be collected to obtain the designated load index.
[0116] It is determined whether all the specified load indicators are less than the indicator threshold.
[0117] In this step, each designated load indicator may be numerically compared with the indicator threshold, and then, based on the obtained numerical comparison result, it may be determined whether all the designated load indicators are less than the indicator threshold.
[0118] If so, call the default sleep command.
[0119] In this step, the sleep instruction is a pre-built instruction with the function of controlling the disconnection between the processing node and the business system.
[0120] After the target processing node completes the data processing flow, a disconnection process is performed on the target processing node based on the sleep instruction.
[0121] In this step, after the target processing node completes the data processing flow, the node identifier of the target processing node is obtained, and the node identifier is input into the sleep instruction to obtain a designated sleep instruction, and then the designated sleep instruction is executed to disconnect the target processing node.
[0122] In this embodiment, multiple designated load indicators of the production management system within a preset time period are obtained; then it is determined whether all the designated load indicators are less than the indicator threshold; if so, a preset sleep instruction is called; and subsequently, after the target processing node completes the data processing flow, a disconnection process is performed on the target processing node based on the sleep instruction. When the present application detects that multiple designated load indicators of the production management system within a preset time period are less than the indicator threshold, the sleep instruction will be intelligently called to disconnect the target processing node after the target processing node completes the data processing flow, so as to complete the capacity reduction process of the production management system under the condition of stable system operation, thereby effectively reducing the power consumption brought by the target processing node and ensuring the load balancing of the processing nodes of the production management system.
[0123] Optionally, after closing the target data traffic corresponding to the target service data, the method further includes:
[0124] It is determined whether the production management system is in a stable state.
[0125] In this step, the current data flow and the current load-bearing index in the storage layer of the production management system can be collected. If the current data flow is less than the preset flow threshold and the current load-bearing index is less than the preset index threshold, it is determined that the production management system is in a stable state of normal operation.
[0126] If so, the target data traffic corresponding to the target business data is restored.
[0127] In this step, the recovery processing of the target data traffic corresponding to the target business data means that the target data traffic corresponding to the target business data is no longer closed, that is, the normal processing of the target data traffic corresponding to the target business data is restored.
[0128] In this embodiment, it is determined whether the production management system is in a stable state; if so, the target data flow corresponding to the target business data is restored. When the application detects that the production management system has restored a stable state, it will also intelligently restore the target data flow corresponding to the target business data to restore the normal processing of the target data flow corresponding to the target business data, effectively improving the processing intelligence and processing integrity of the data flow in the storage layer of the production management system.
[0129] Further references Figure 3 , as a response to the above Figure 2 In order to realize the method shown in the figure, the present application provides an embodiment of a flow processing device 300 of a production management system. Figure 2Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0130] An embodiment of the present invention provides a production management system flow processing device 300, and the production management system flow processing device 300 includes:
[0131] The first acquisition module 310 is used to acquire the data flow in the storage layer of the production management system; wherein the production management system is a management system corresponding to the production operation of the explosion-proof lamp;
[0132] A first judgment module 320 is used to judge whether the data flow is greater than a preset flow threshold;
[0133] A collection module 330 is used to collect the load indicators of the production management system;
[0134] A second judgment module 340 is used to judge whether the load index is greater than a preset index threshold;
[0135] A second acquisition module 350 is used to acquire target business data with a data type of low business value from the storage layer if yes;
[0136] The first processing module 360 is used to close the target data traffic corresponding to the target business data.
[0137] Optionally, the second acquisition module 350 includes:
[0138] A first acquisition submodule, used to acquire the business value of all business data included in the storage layer;
[0139] A division submodule, used for performing data type division processing on all the business data based on the business value, so as to divide the business data into first business data with high business value and second business data with low business value;
[0140] The first determining submodule is configured to use the second service data as the target service data.
[0141] Optionally, the production management system flow processing device 300 further includes:
[0142] A third acquisition module, configured to acquire timeout data corresponding to the service access request of the production management system if the carrying indicator is greater than the indicator threshold;
[0143] A determination module, used to determine a target response level corresponding to the timeout data;
[0144] A fourth acquisition module, used to acquire a target fuse strategy corresponding to the target response level;
[0145] The second processing module is used to perform a fusing process on the production management system based on the target fusing strategy.
[0146] Optionally, the production management system flow processing device 300 further includes:
[0147] A fifth acquisition module, configured to acquire a newly added processing node if the load indicator is greater than the indicator threshold;
[0148] A preheating module, used to perform preheating processing on the processing node to obtain a corresponding target processing node;
[0149] A capacity expansion module is used to expand the production management system based on the target processing node.
[0150] Optionally, the preheating module comprises:
[0151] The second acquisition submodule is used to acquire the processing strategy of time slice diversion;
[0152] A processing submodule, configured to perform a preheating process on the processing node based on the processing strategy to obtain a preheated processing node;
[0153] The second determining submodule is used to use the preheated processing node as the target data node.
[0154] Optionally, the production management system flow processing device 300 further includes:
[0155] A sixth acquisition module, used to acquire a plurality of designated load indicators of the production management system within a preset time period;
[0156] A third judgment module is used to judge whether all the specified load indicators are less than the indicator threshold;
[0157] A calling module, used for calling a preset sleep instruction if yes;
[0158] The third processing module is used to perform a disconnection process on the target processing node based on the sleep instruction after the target processing node completes the data processing flow.
[0159] Optionally, the production management system flow processing device 300 further includes:
[0160] A fourth judgment module is used to judge whether the production management system is in a stable state;
[0161] The fourth processing module is used to restore the target data traffic corresponding to the target business data.
[0162] To solve the above technical problems, the present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.
[0163] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components 41-43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0164] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0165] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the computer device 4. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as the program code of the flow processing method of the production management system, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.
[0166] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run the program code stored in the memory 41 or process data, such as running the program code of the production management system flow processing method.
[0167] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.
[0168] The present application also provides another implementation, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores the application crash processing program, and the application crash processing program can be executed by at least one processor to enable the at least one processor to perform the steps of the production management system traffic processing method as described above.
[0169] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware online platform, and of course, by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0170] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0171] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A production management system flow processing method, characterized in that: include: Acquire the data flow in the storage layer of the production management system; wherein the production management system is a management system corresponding to the production operation of the explosion-proof lamp; Determining whether the data flow is greater than a preset flow threshold; If so, collecting the load indicators of the production management system; Determining whether the load index is greater than a preset index threshold; If so, obtaining target business data of low business value data type from the storage layer; The target data traffic corresponding to the target business data is closed.
2. The method according to claim 1, characterized in that The acquiring, from the storage layer, target business data of low business value data type includes: Obtaining the business value of all business data included in the storage layer; Performing data type classification processing on all the business data based on the business value, so as to classify the business data into first business data with high business value and second business data with low business value; The second service data is used as the target service data.
3. The method according to claim 1, characterized in that After determining whether the load indicator is greater than a preset indicator threshold, the method further includes: If the carrying index is greater than the index threshold, obtaining timeout data corresponding to the service access request of the production management system; determining a target response level corresponding to the timeout data; Obtain a target fuse policy corresponding to the target response level; A fusing process is performed on the production management system based on the target fusing policy.
4. The method according to claim 1, characterized in that After determining whether the load indicator is greater than a preset indicator threshold, the method further includes: If the load indicator is greater than the indicator threshold, obtaining a newly added processing node; Preheating the processing node to obtain a corresponding target processing node; The production management system is expanded based on the target processing node.
5. The method according to claim 4, characterized in that The preheating process is performed on the processing node to obtain a corresponding target processing node, including: Get the processing strategy for time slice diversion; Performing a preheating process on the processing node based on the processing strategy to obtain a preheated processing node; The preheated processing node is used as the target data node.
6. The method according to claim 4, characterized in that After the capacity expansion process is performed on the production management system based on the target processing node, the method further includes: Acquire a plurality of designated load indicators of the production management system within a preset time period; Determining whether all of the specified load indicators are less than the indicator threshold; If so, call the preset sleep command; After the target processing node completes the data processing flow, a disconnection process is performed on the target processing node based on the sleep instruction.
7. The method according to claim 1, characterized in that After closing the target data flow corresponding to the target service data, the method further includes: Determining whether the production management system is in a stable state; If so, the target data traffic corresponding to the target business data is restored.
8. A flow processing device for a production management system, characterized in that: include: A first acquisition module is used to acquire data flow in a storage layer of a production management system; wherein the production management system is a management system corresponding to the production operation of explosion-proof lamps; A first judgment module, used to judge whether the data flow is greater than a preset flow threshold; A collection module, for collecting the load indicators of the production management system; A second judgment module is used to judge whether the load index is greater than a preset index threshold; A second acquisition module is used to acquire target business data with a data type of low business value from the storage layer if the data type is low business value; The first processing module is used to close the target data flow corresponding to the target business data.
9. A computer device, characterized in that: It comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the production management system flow processing method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the production management system flow processing method according to any one of claims 1 to 7 are implemented.
