CN117914788A - Message current limiting processing method and device for intelligent household equipment - Google Patents

Message current limiting processing method and device for intelligent household equipment Download PDF

Info

Publication number
CN117914788A
CN117914788A CN202311823242.6A CN202311823242A CN117914788A CN 117914788 A CN117914788 A CN 117914788A CN 202311823242 A CN202311823242 A CN 202311823242A CN 117914788 A CN117914788 A CN 117914788A
Authority
CN
China
Prior art keywords
current limiting
monitoring index
monitoring
index
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311823242.6A
Other languages
Chinese (zh)
Inventor
柳鹏伟
尹飞
邓邱伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202311823242.6A priority Critical patent/CN117914788A/en
Publication of CN117914788A publication Critical patent/CN117914788A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to the technical field of intelligent appliances, and provides a message current limiting processing method and device for intelligent household equipment, wherein the method comprises the following steps: acquiring production information uploaded by intelligent household equipment, acquiring load monitoring data of multiple dimensions in the process of consuming the production information, and determining monitoring indexes according to the load monitoring data; judging whether an abnormal monitoring index exists or not based on the monitoring index and a pre-configured current limiting strategy, and triggering and executing corresponding current limiting operation based on the current limiting strategy under the condition that the abnormal monitoring index exists. The message current limiting processing method for the intelligent household equipment can rapidly limit the message consumption speed of the intelligent household equipment, and control the message consumption speed of the intelligent household equipment within a corresponding range, so that the load of a server where an application is located is effectively reduced, and the response efficiency of the server is improved.

Description

Message current limiting processing method and device for intelligent household equipment
Technical Field
The invention relates to the technical field of intelligent appliances, in particular to a message current limiting processing method and device for intelligent household equipment, and further relates to an electronic device and a non-transitory computer readable storage medium.
Background
In recent years, with the rapid development of economy and society, various intelligent home devices are increasingly widely used in daily life of people, and many intelligent home devices support interactive control with a remote server. The remote server provides the API service to the outside, and the message consumption is used as business logic, after the production of the message is increased suddenly, the message consumption speed is also increased randomly, so that the load of the server where the application is located is increased, and the response speed of the API service provided to the outside is further influenced. In addition, some smart home devices do not require real-time consumption of messages, allowing for extrusion at a proper time. Based on this, in order to provide a stable API service capability to the outside, how to dynamically limit the message consumption speed, providing a faster message current limiting processing scheme for the smart home device becomes a challenge to be solved.
Disclosure of Invention
The invention provides a message current limiting processing method for intelligent household equipment, which is used for solving the defects that the message current limiting processing scheme for the intelligent household equipment in the prior art has limitation, so that the load of a server is higher, and the response speed of the server is further influenced.
The invention provides a message current limiting processing method for intelligent household equipment, which comprises the following steps:
Acquiring production information uploaded by intelligent household equipment, acquiring load monitoring data of multiple dimensions in the process of consuming the production information, and determining monitoring indexes according to the load monitoring data;
Judging whether an abnormal monitoring index exists or not based on the monitoring index and a pre-configured current limiting strategy, and triggering and executing corresponding current limiting operation based on the current limiting strategy under the condition that the abnormal monitoring index exists.
Further, the obtaining load monitoring data of multiple dimensions during the production information consumption process specifically includes:
Acquiring corresponding message processing events, time-consuming events of the read-write dependent components and current utilization rate of the processor in the production information consumption process; obtaining a message processing rate of the production message based on the message processing event, and obtaining a read-write time consuming time of an application corresponding dependent component receiving the production message based on the read-write dependent component time consuming event;
And determining the message processing rate, the time consuming for reading and writing the application corresponding dependent component as load monitoring data with multiple dimensions.
Further, the determining a monitoring index according to the load monitoring data includes:
Carrying out weighted average processing on the message processing rate to obtain a first monitoring index; performing weighted average processing on the time consuming time of reading and writing of the application corresponding dependent component to obtain a second monitoring index; and carrying out weighted average processing on the current utilization rate of the processor to obtain a third monitoring index.
Further, the determining whether an abnormal monitoring index exists based on the monitoring index and a pre-configured current limiting policy specifically includes:
Comparing the first monitoring index with a first monitoring index threshold value in a first current limiting strategy which is obtained through pre-configuration, judging that the first monitoring index is an abnormal index when the first monitoring index is larger than or equal to the first monitoring index threshold value, and judging that the first monitoring index is a non-abnormal index when the first monitoring index is smaller than the first monitoring index threshold value; or alternatively
Comparing the second monitoring index with a second monitoring index threshold value in a second current limiting strategy which is obtained in advance, judging that the second monitoring index is an abnormal index when the second monitoring index is larger than or equal to the second monitoring index threshold value, and judging that the second monitoring index is a non-abnormal index when the second monitoring index is smaller than the second monitoring index threshold value; or alternatively
Comparing the third monitoring index with a third monitoring index threshold value in a third current limiting strategy which is obtained in advance, judging that the third monitoring index is an abnormal index when the third monitoring index is larger than or equal to the third monitoring index threshold value, and judging that the third monitoring index is a non-abnormal index when the third monitoring index is smaller than the third monitoring index threshold value.
Further, under the condition that it is determined that the abnormality monitoring index exists, triggering to execute corresponding current limiting operation based on the current limiting strategy specifically includes:
Under the condition that the first monitoring index is judged to be an abnormal index, triggering and executing corresponding current limiting operation based on a first monitoring index threshold value in the first current limiting strategy, so that the first monitoring index is reduced to be below the first monitoring index threshold value; or alternatively
Under the condition that the second monitoring index is judged to be an abnormal index, triggering and executing corresponding current limiting operation based on a first amplitude reduction ratio preset in the second current limiting strategy, so that the second monitoring index is reduced below the second monitoring index threshold; or alternatively
And under the condition that the third monitoring index is judged to be an abnormal index, triggering and executing corresponding current limiting operation based on a second amplitude reduction ratio preset in the third current limiting strategy, so that the third monitoring index is reduced below the third monitoring index threshold value.
Further, before the load monitoring data of multiple dimensions is obtained in the production information consumption process, the method further comprises: and storing the acquired production information uploaded by the intelligent home equipment, and storing the production information into a message queue middleware so as to read the production information from the message queue middleware for consumption operation.
Further, before triggering to execute the corresponding current limiting operation based on the current limiting strategy, the method further comprises: and determining a target period for executing the current limiting operation, and determining to trigger to execute the corresponding current limiting operation based on the current limiting strategy under the condition that the current time meets the target period.
The invention also provides a message current limiting processing device for the intelligent household equipment, which comprises the following steps:
The monitoring data acquisition unit is used for acquiring production information uploaded by the intelligent household equipment, acquiring load monitoring data of multiple dimensions in the process of consuming the production information, and determining monitoring indexes according to the load monitoring data;
And the current limiting execution unit is used for judging whether an abnormal monitoring index exists or not based on the monitoring index and a current limiting strategy which is obtained through pre-configuration, and triggering and executing corresponding current limiting operation based on the current limiting strategy under the condition that the abnormal monitoring index exists.
Further, the monitoring data acquisition unit is specifically configured to:
Acquiring corresponding message processing events, time-consuming events of the read-write dependent components and current utilization rate of the processor in the production information consumption process; obtaining a message processing rate of the production message based on the message processing event, and obtaining a read-write time consuming time of an application corresponding dependent component receiving the production message based on the read-write dependent component time consuming event;
And determining the message processing rate, the time consuming for reading and writing the application corresponding dependent component as load monitoring data with multiple dimensions.
Further, the monitoring data acquisition unit is specifically configured to:
Carrying out weighted average processing on the message processing rate to obtain a first monitoring index; performing weighted average processing on the time consuming time of reading and writing of the application corresponding dependent component to obtain a second monitoring index; and carrying out weighted average processing on the current utilization rate of the processor to obtain a third monitoring index.
Further, the current limiting execution unit is specifically configured to:
Comparing the first monitoring index with a first monitoring index threshold value in a first current limiting strategy which is obtained through pre-configuration, judging that the first monitoring index is an abnormal index when the first monitoring index is larger than or equal to the first monitoring index threshold value, and judging that the first monitoring index is a non-abnormal index when the first monitoring index is smaller than the first monitoring index threshold value; or alternatively
Comparing the second monitoring index with a second monitoring index threshold value in a second current limiting strategy which is obtained in advance, judging that the second monitoring index is an abnormal index when the second monitoring index is larger than or equal to the second monitoring index threshold value, and judging that the second monitoring index is a non-abnormal index when the second monitoring index is smaller than the second monitoring index threshold value; or alternatively
Comparing the third monitoring index with a third monitoring index threshold value in a third current limiting strategy which is obtained in advance, judging that the third monitoring index is an abnormal index when the third monitoring index is larger than or equal to the third monitoring index threshold value, and judging that the third monitoring index is a non-abnormal index when the third monitoring index is smaller than the third monitoring index threshold value.
Further, the current limiting execution unit is specifically configured to:
Under the condition that the first monitoring index is judged to be an abnormal index, triggering and executing corresponding current limiting operation based on a first monitoring index threshold value in the first current limiting strategy, so that the first monitoring index is reduced to be below the first monitoring index threshold value; or alternatively
Under the condition that the second monitoring index is judged to be an abnormal index, triggering and executing corresponding current limiting operation based on a first amplitude reduction ratio preset in the second current limiting strategy, so that the second monitoring index is reduced below the second monitoring index threshold; or alternatively
And under the condition that the third monitoring index is judged to be an abnormal index, triggering and executing corresponding current limiting operation based on a second amplitude reduction ratio preset in the third current limiting strategy, so that the third monitoring index is reduced below the third monitoring index threshold value.
Further, before the load monitoring data of multiple dimensions is obtained in the production information consumption process, the method further comprises: and the message storage unit is used for storing the acquired production information uploaded by the intelligent home equipment, and storing the production information into the message queue middleware so as to read the production information from the message queue middleware for consumption operation.
Further, before triggering to execute the corresponding current limiting operation based on the current limiting strategy, the method further comprises: and the target period determining unit is used for determining a target period for executing the current limiting operation, and determining to trigger to execute the corresponding current limiting operation based on the current limiting strategy under the condition that the current time meets the target period.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the steps of the message current limiting processing method for the intelligent household equipment according to any one of the above steps when executing the program.
The invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the message flow restriction processing method for smart home devices as described in any of the above.
According to the message current limiting processing method for the intelligent household equipment, the production information uploaded by the intelligent household equipment is obtained, the load monitoring data of multiple dimensions are obtained in the consumption process of the production information, the monitoring index is determined according to the load monitoring data, whether the abnormal monitoring index exists or not is judged based on the monitoring index and the current limiting strategy which is obtained through pre-configuration, and under the condition that the abnormal monitoring index exists is determined, the corresponding current limiting operation is triggered and executed based on the current limiting strategy, so that the consumption speed of the production information is reduced, the message consumption speed of the intelligent household equipment can be limited rapidly, and the message consumption speed of the intelligent household equipment is controlled within a corresponding range, so that the load of a server where the application is located is effectively reduced, and the response efficiency of the server is improved.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a hardware environment of a message current limiting processing method for an intelligent home device according to an embodiment of the present application;
fig. 2 is a flow chart of a message flow limiting processing method for intelligent home equipment provided by the invention;
Fig. 3 is a specific schematic diagram of a message current limiting processing method for intelligent home equipment provided by the invention;
fig. 4 is a schematic structural diagram of a message current limiting processing device for intelligent home equipment provided by the invention;
Fig. 5 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiment of the application, a message current limiting processing method for intelligent household equipment is provided. The message current limiting processing method for the intelligent household equipment is widely applied to full-house intelligent digital control application scenes such as intelligent Home (Smart Home), intelligent Home, intelligent household equipment ecology, intelligent Home (INTELLIGENCE HOUSE) ecology and the like. Alternatively, in this embodiment, the message flow limiting processing method for the smart home device described above may be applied to a hardware environment formed by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data computing services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (WIRELESS FIDELITY ), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
The following describes embodiments of the message current limiting processing method for intelligent home equipment based on the method. As shown in fig. 2, which is a flow chart of the message current limiting processing method for intelligent home equipment provided by the invention, a specific implementation process includes the following steps:
Step 110: and acquiring production information uploaded by the intelligent household equipment, acquiring load monitoring data of multiple dimensions in the production information consumption process, and determining monitoring indexes according to the load monitoring data.
The intelligent household equipment comprises, but is not limited to, terminal equipment such as an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent stove, an intelligent washing machine, an intelligent water heater and the like. For example, the production information may refer to status information reported by the intelligent refrigerator or usage log information reported by the intelligent refrigerator, etc., which is not limited herein. The load monitoring data includes, but is not limited to, the current usage rate and message processing rate of the processor in the server and the read-write time of the corresponding dependent component of the server-side application. The dependency component may be a component having a dependency relationship such as a database at the back end of the application.
In the embodiment of the invention, after the production information uploaded by the intelligent home equipment is acquired, the acquired production information uploaded by the intelligent home equipment is required to be stored at a server side, and the production information is stored in a Message Queue Middleware (MQ) so as to read the production information from the Message Queue middleware for consumption. The message queue middleware can provide functions such as subscription, storage, release and the like of messages, such as Kafka, rocketMQ. Existing message queue middleware, such as Kafka, rocketMQ, does not provide message flow limiting capabilities for consuming clients. The invention provides a unified and configurable current limiting method, which can control the message consumption speed within a proper range according to a configured current limiting strategy.
Corresponding message processing events, read-write dependent component time consuming events and current utilization rate of the processor can be obtained in the production information consumption process. And obtaining the message processing rate of the production message based on the message processing event, and obtaining the time consuming time of reading and writing of the application corresponding to the dependent component for receiving the production message based on the time consuming event of the reading and writing dependent component. And determining the message processing rate, the time consuming for reading and writing the application corresponding dependent component as load monitoring data with multiple dimensions. The data format in the message processing event is as follows, and each time a message is processed, a message processing event is reported, and the message processing event records the time when the message is processed and is used for calculating the throughput of message processing, namely how many messages are processed per second. In an implementation, the number of messages processed per 100 seconds may be collected. The current usage of the processor is by using a timed task to collect CPU usage, such as to preserve data collected for the last 100 seconds. The time-consuming event of the read-write dependent component is that a Spring Boot section mechanism is used for collecting the time-consuming of the read-write dependent component, and the time-consuming event of the read-write dependent component is reported to a monitoring data collection center.
Further, a weighted average process can be performed on the message processing rate to obtain a first monitoring index; performing weighted average processing on the time consuming time of reading and writing of the application corresponding dependent component to obtain a second monitoring index; and carrying out weighted average processing on the current utilization rate of the processor to obtain a third monitoring index. The first monitoring index, the second monitoring index and the third monitoring index are final indexes obtained by clustering processing of a plurality of message processing rates, read-write time consuming time of the application corresponding dependent components and a plurality of current utilization rates respectively. The current utilization rate of the processor is the utilization rate of the CPU in the server.
Step 120: judging whether an abnormal monitoring index exists or not based on the monitoring index and a pre-configured current limiting strategy, and triggering and executing corresponding current limiting operation based on the current limiting strategy under the condition that the abnormal monitoring index exists, so as to reduce the consumption speed of production information.
In the embodiment of the present invention, the pre-configured current limiting policy may include a monitoring indicator threshold corresponding to different monitoring indicators and a corresponding current limiting operation policy.
Specifically, the first monitoring index may be compared with a first monitoring index threshold value in a first current limiting policy which is configured in advance, and if the first monitoring index is greater than or equal to the first monitoring index threshold value, the first monitoring index is determined to be an abnormal index, and if the first monitoring index is less than the first monitoring index threshold value, the first monitoring index is determined to be a non-abnormal index; or comparing the second monitoring index with a second monitoring index threshold value in a second current limiting strategy which is obtained in advance, judging that the second monitoring index is an abnormal index when the second monitoring index is larger than or equal to the second monitoring index threshold value, and judging that the second monitoring index is a non-abnormal index when the second monitoring index is smaller than the second monitoring index threshold value; or comparing the third monitoring index with a third monitoring index threshold value in a third current limiting strategy which is obtained in advance, judging that the third monitoring index is an abnormal index when the third monitoring index is larger than or equal to the third monitoring index threshold value, and judging that the third monitoring index is a non-abnormal index when the third monitoring index is smaller than the third monitoring index threshold value. Under the condition that the first monitoring index is judged to be an abnormal index, triggering and executing corresponding current limiting operation based on a first monitoring index threshold value in the first current limiting strategy, so that the first monitoring index is reduced to be below the first monitoring index threshold value; or under the condition that the second monitoring index is judged to be an abnormal index, triggering and executing corresponding current limiting operation based on a first amplitude reduction ratio preset in the second current limiting strategy, so that the second monitoring index is reduced below the second monitoring index threshold value; or under the condition that the third monitoring index is judged to be an abnormal index, triggering and executing corresponding current limiting operation based on a second amplitude reduction proportion preset in the third current limiting strategy, so that the third monitoring index is reduced to be below the third monitoring index threshold value. The first amplitude reduction ratio may be 10%, 20% or 30% of each current limit, and is not specifically limited herein. Similarly, the second amplitude reduction ratio may be 10%, 20% or 30% of each current limit, and may be specifically determined according to practical situations. In addition, it should be noted that, in the embodiment of the present invention, before the execution of the corresponding current limiting operation is triggered based on the current limiting policy, a target period for executing the current limiting operation needs to be determined, so that in a case that the current time meets the target period, the execution of the corresponding current limiting operation is determined to be triggered based on the current limiting policy. The current limiting strategy comprises the first current limiting strategy, the second current limiting strategy, the third current limiting strategy and the like. The current limiting strategy is configurable, and the configuration format is as follows, and comprises dimensions of message processing speed (Consumer rate), CPU utilization rate (Cpu use percentage) of a server where an application is located and a dependent component (component Access Cost); wherein the restriction dimensions are selectable, and suitable restriction dimensions are selected as desired. And receiving the load monitoring data and the corresponding events in the monitoring data acquisition center, and calculating final indexes (namely monitoring indexes) of the load monitoring data with different dimensions. The current limiting executor can execute the current limiting operation according to a preset target period (such as every 5 seconds), and judges whether the current limiting operation needs to be executed or not according to the configured current limiting strategy, and performs current limiting.
As shown in fig. 3, the overall scheme of the message current limiting processing method for intelligent home equipment according to the present invention may include 5 modules: the system comprises a server load module, a read-write dependent component time consuming module, a monitoring data acquisition center module, a current limiting strategy configuration module and a current limiting execution module (current limiting executor). The monitoring data acquired by the monitoring data acquisition center module comprises data such as interface message consumption events, time consumption of reading and writing of the acquisition dependent storage component, utilization rate of a server CPU and the like. The current limiting strategy configuration module is used for configuring a current limiting strategy. The current limiting executor is used for reading the load monitoring data in real time, judging whether to trigger current limiting according to a current limiting strategy, and carrying out current limiting. The message current limiting processing method for the intelligent home equipment supports various current limiting strategies. Based on the CPU utilization rate of the server where the service is located, the message consumption speed and the time consumption of reading and writing depending on the three-party components, different current limiting strategies can be selected according to the service scene, and the current limiting purpose is achieved. In addition, the method can access various message queue middleware, and has stronger expansibility.
According to the message current limiting processing method for the intelligent household equipment, the production information uploaded by the intelligent household equipment is obtained, the load monitoring data of multiple dimensions are obtained in the consumption process of the production information, the monitoring index is determined according to the load monitoring data, whether the abnormal monitoring index exists or not is judged based on the monitoring index and the current limiting strategy which is obtained through pre-configuration, and under the condition that the abnormal monitoring index exists is determined, the corresponding current limiting operation is triggered and executed based on the current limiting strategy, so that the consumption speed of the production information is reduced, the message consumption speed of the intelligent household equipment can be limited rapidly, and the message consumption speed of the intelligent household equipment is controlled within a corresponding range, so that the load of a server where the application is located is effectively reduced, and the response efficiency of the server is improved.
The message current limiting processing device for the intelligent home equipment provided by the invention is described below, and the message current limiting processing device for the intelligent home equipment and the message current limiting processing method for the intelligent home equipment described below can be correspondingly referred to each other. Referring to fig. 4, a schematic structural diagram of a message current limiting processing device for smart home devices according to the present invention is shown. The invention relates to a message current limiting processing device for intelligent household equipment, which specifically comprises the following parts:
the monitoring data acquisition unit 401 is configured to acquire production information uploaded by the smart home device, acquire load monitoring data of multiple dimensions in the process of consuming the production information, and determine a monitoring index according to the load monitoring data;
The current limiting execution unit 402 is configured to determine whether an abnormal monitoring indicator exists based on the monitoring indicator and a current limiting policy that is configured in advance, and trigger to execute a corresponding current limiting operation based on the current limiting policy when it is determined that the abnormal monitoring indicator exists.
Further, the monitoring data acquisition unit is specifically configured to:
Acquiring corresponding message processing events, time-consuming events of the read-write dependent components and current utilization rate of the processor in the production information consumption process; obtaining a message processing rate of the production message based on the message processing event, and obtaining a read-write time consuming time of an application corresponding dependent component receiving the production message based on the read-write dependent component time consuming event;
And determining the message processing rate, the time consuming for reading and writing the application corresponding dependent component as load monitoring data with multiple dimensions.
Further, the monitoring data acquisition unit is specifically configured to:
Carrying out weighted average processing on the message processing rate to obtain a first monitoring index; performing weighted average processing on the time consuming time of reading and writing of the application corresponding dependent component to obtain a second monitoring index; and carrying out weighted average processing on the current utilization rate of the processor to obtain a third monitoring index.
Further, the current limiting execution unit is specifically configured to:
Comparing the first monitoring index with a first monitoring index threshold value in a first current limiting strategy which is obtained through pre-configuration, judging that the first monitoring index is an abnormal index when the first monitoring index is larger than or equal to the first monitoring index threshold value, and judging that the first monitoring index is a non-abnormal index when the first monitoring index is smaller than the first monitoring index threshold value; or alternatively
Comparing the second monitoring index with a second monitoring index threshold value in a second current limiting strategy which is obtained in advance, judging that the second monitoring index is an abnormal index when the second monitoring index is larger than or equal to the second monitoring index threshold value, and judging that the second monitoring index is a non-abnormal index when the second monitoring index is smaller than the second monitoring index threshold value; or alternatively
Comparing the third monitoring index with a third monitoring index threshold value in a third current limiting strategy which is obtained in advance, judging that the third monitoring index is an abnormal index when the third monitoring index is larger than or equal to the third monitoring index threshold value, and judging that the third monitoring index is a non-abnormal index when the third monitoring index is smaller than the third monitoring index threshold value.
Further, the current limiting execution unit is specifically configured to:
Under the condition that the first monitoring index is judged to be an abnormal index, triggering and executing corresponding current limiting operation based on a first monitoring index threshold value in the first current limiting strategy, so that the first monitoring index is reduced to be below the first monitoring index threshold value; or alternatively
Under the condition that the second monitoring index is judged to be an abnormal index, triggering and executing corresponding current limiting operation based on a first amplitude reduction ratio preset in the second current limiting strategy, so that the second monitoring index is reduced below the second monitoring index threshold; or alternatively
And under the condition that the third monitoring index is judged to be an abnormal index, triggering and executing corresponding current limiting operation based on a second amplitude reduction ratio preset in the third current limiting strategy, so that the third monitoring index is reduced below the third monitoring index threshold value.
Further, before the load monitoring data of multiple dimensions is obtained in the production information consumption process, the method further comprises: and the message storage unit is used for storing the acquired production information uploaded by the intelligent home equipment, and storing the production information into the message queue middleware so as to read the production information from the message queue middleware for consumption operation.
Further, before triggering to execute the corresponding current limiting operation based on the current limiting strategy, the method further comprises: and the target period determining unit is used for determining a target period for executing the current limiting operation, and determining to trigger to execute the corresponding current limiting operation based on the current limiting strategy under the condition that the current time meets the target period.
According to the message current limiting processing device for the intelligent household equipment, the production information uploaded by the intelligent household equipment is obtained, the load monitoring data of multiple dimensions are obtained in the consumption process of the production information, the monitoring index is determined according to the load monitoring data, whether the abnormal monitoring index exists or not is judged based on the monitoring index and the current limiting strategy which is obtained through pre-configuration, and under the condition that the abnormal monitoring index exists is determined, the corresponding current limiting operation is triggered and executed based on the current limiting strategy, so that the consumption speed of the production information is reduced, the message consumption speed of the intelligent household equipment can be limited rapidly, and the message consumption speed of the intelligent household equipment is controlled within a corresponding range, so that the load of a server where the application is located is effectively reduced, and the response efficiency of the server is improved.
Fig. 5 illustrates a physical schematic diagram of an electronic device, and as shown in fig. 5, the electronic device (i.e. electronic equipment) may include: processor (processor) 501, communication interface (Communications Interface) 504, memory (memory) 502, and communication bus 503, wherein processor 501, communication interface 504, memory 502 complete communication with each other through communication bus 503. The processor 501 may invoke logic instructions in the memory 502 to perform a message flow restriction processing method for a smart home device, the method comprising: acquiring production information uploaded by intelligent household equipment, acquiring load monitoring data of multiple dimensions in the process of consuming the production information, and determining monitoring indexes according to the load monitoring data; judging whether an abnormal monitoring index exists or not based on the monitoring index and a pre-configured current limiting strategy, and triggering and executing corresponding current limiting operation based on the current limiting strategy under the condition that the abnormal monitoring index exists.
Further, the logic instructions in the memory 502 described above may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand alone product. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present application further provides a computer program product, where the computer program product includes a computer program, where the computer program may be stored on a computer readable storage medium, and when the computer program is executed by a processor, the computer is capable of executing a message flow limiting processing method for a smart home device provided by the foregoing methods, and the method includes: acquiring production information uploaded by intelligent household equipment, acquiring load monitoring data of multiple dimensions in the process of consuming the production information, and determining monitoring indexes according to the load monitoring data; judging whether an abnormal monitoring index exists or not based on the monitoring index and a pre-configured current limiting strategy, and triggering and executing corresponding current limiting operation based on the current limiting strategy under the condition that the abnormal monitoring index exists.
In still another aspect, the present application further provides a computer readable storage medium, where the computer readable storage medium includes a stored program, where the program executes a message flow limiting processing method for smart home devices provided by the foregoing methods, where the method includes: acquiring production information uploaded by intelligent household equipment, acquiring load monitoring data of multiple dimensions in the process of consuming the production information, and determining monitoring indexes according to the load monitoring data; judging whether an abnormal monitoring index exists or not based on the monitoring index and a pre-configured current limiting strategy, and triggering and executing corresponding current limiting operation based on the current limiting strategy under the condition that the abnormal monitoring index exists.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. The message current limiting processing method for the intelligent home equipment is characterized by comprising the following steps of:
Acquiring production information uploaded by intelligent household equipment, acquiring load monitoring data of multiple dimensions in the process of consuming the production information, and determining monitoring indexes according to the load monitoring data;
Judging whether an abnormal monitoring index exists or not based on the monitoring index and a pre-configured current limiting strategy, and triggering and executing corresponding current limiting operation based on the current limiting strategy under the condition that the abnormal monitoring index exists.
2. The method for message current limiting processing for smart home devices according to claim 1, wherein the obtaining load monitoring data of multiple dimensions during the production information consumption process specifically comprises:
Acquiring corresponding message processing events, time-consuming events of the read-write dependent components and current utilization rate of the processor in the production information consumption process; obtaining a message processing rate of the production message based on the message processing event, and obtaining a read-write time consuming time of an application corresponding dependent component receiving the production message based on the read-write dependent component time consuming event;
And determining the message processing rate, the time consuming for reading and writing the application corresponding dependent component as load monitoring data with multiple dimensions.
3. The method for message current limiting processing for smart home devices according to claim 2, wherein the determining a monitoring index according to the load monitoring data comprises:
Carrying out weighted average processing on the message processing rate to obtain a first monitoring index; performing weighted average processing on the time consuming time of reading and writing of the application corresponding dependent component to obtain a second monitoring index; and carrying out weighted average processing on the current utilization rate of the processor to obtain a third monitoring index.
4. The method for message current limiting processing for smart home devices according to claim 3, wherein the determining whether an abnormal monitoring indicator exists based on the monitoring indicator and a current limiting policy obtained by pre-configuration specifically comprises:
Comparing the first monitoring index with a first monitoring index threshold value in a first current limiting strategy which is obtained through pre-configuration, judging that the first monitoring index is an abnormal index when the first monitoring index is larger than or equal to the first monitoring index threshold value, and judging that the first monitoring index is a non-abnormal index when the first monitoring index is smaller than the first monitoring index threshold value; or alternatively
Comparing the second monitoring index with a second monitoring index threshold value in a second current limiting strategy which is obtained in advance, judging that the second monitoring index is an abnormal index when the second monitoring index is larger than or equal to the second monitoring index threshold value, and judging that the second monitoring index is a non-abnormal index when the second monitoring index is smaller than the second monitoring index threshold value; or alternatively
Comparing the third monitoring index with a third monitoring index threshold value in a third current limiting strategy which is obtained in advance, judging that the third monitoring index is an abnormal index when the third monitoring index is larger than or equal to the third monitoring index threshold value, and judging that the third monitoring index is a non-abnormal index when the third monitoring index is smaller than the third monitoring index threshold value.
5. The method for message current limiting processing for smart home devices according to claim 4, wherein, in the case that it is determined that an abnormality monitoring indicator exists, triggering execution of a corresponding current limiting operation based on the current limiting policy specifically includes:
Under the condition that the first monitoring index is judged to be an abnormal index, triggering and executing corresponding current limiting operation based on a first monitoring index threshold value in the first current limiting strategy, so that the first monitoring index is reduced to be below the first monitoring index threshold value; or alternatively
Under the condition that the second monitoring index is judged to be an abnormal index, triggering and executing corresponding current limiting operation based on a first amplitude reduction ratio preset in the second current limiting strategy, so that the second monitoring index is reduced below the second monitoring index threshold; or alternatively
And under the condition that the third monitoring index is judged to be an abnormal index, triggering and executing corresponding current limiting operation based on a second amplitude reduction ratio preset in the third current limiting strategy, so that the third monitoring index is reduced below the third monitoring index threshold value.
6. The method for message current limiting processing for smart home devices according to claim 1, further comprising, before acquiring the load monitoring data of multiple dimensions in the production information consumption process: and storing the acquired production information uploaded by the intelligent home equipment, and storing the production information into a message queue middleware so as to read the production information from the message queue middleware for consumption operation.
7. The message flow restriction processing method for smart home devices according to claim 1, further comprising, before triggering execution of the corresponding flow restriction operation based on the flow restriction policy: and determining a target period for executing the current limiting operation, and determining to trigger to execute the corresponding current limiting operation based on the current limiting strategy under the condition that the current time meets the target period.
8. A message current limiting processing apparatus for an intelligent home device, comprising:
The monitoring data acquisition unit is used for acquiring production information uploaded by the intelligent household equipment, acquiring load monitoring data of multiple dimensions in the process of consuming the production information, and determining monitoring indexes according to the load monitoring data;
And the current limiting execution unit is used for judging whether an abnormal monitoring index exists or not based on the monitoring index and a current limiting strategy which is obtained through pre-configuration, and triggering and executing corresponding current limiting operation based on the current limiting strategy under the condition that the abnormal monitoring index exists.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the message flow restriction processing method for smart home devices according to any of claims 1 to 7 when executing the program.
10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of the message flow restriction processing method for a smart home device according to any of claims 1 to 7.
CN202311823242.6A 2023-12-27 2023-12-27 Message current limiting processing method and device for intelligent household equipment Pending CN117914788A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311823242.6A CN117914788A (en) 2023-12-27 2023-12-27 Message current limiting processing method and device for intelligent household equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311823242.6A CN117914788A (en) 2023-12-27 2023-12-27 Message current limiting processing method and device for intelligent household equipment

Publications (1)

Publication Number Publication Date
CN117914788A true CN117914788A (en) 2024-04-19

Family

ID=90693665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311823242.6A Pending CN117914788A (en) 2023-12-27 2023-12-27 Message current limiting processing method and device for intelligent household equipment

Country Status (1)

Country Link
CN (1) CN117914788A (en)

Similar Documents

Publication Publication Date Title
CN115460153B (en) Dynamic adjustment method and device for token bucket capacity, storage medium and electronic device
CN114697150B (en) Command issuing method and device, storage medium and electronic device
CN112653604B (en) Scene migration method and system, electronic device and storage medium
CN110736224B (en) Control method and device of intelligent household equipment, storage medium and processor
CN117914788A (en) Message current limiting processing method and device for intelligent household equipment
CN116383172A (en) Data backtracking method, storage medium and electronic device
CN114915514B (en) Method and device for processing intention, storage medium and electronic device
CN116107975A (en) Control method and device of equipment, storage medium and electronic device
CN115345225A (en) Method and device for determining recommended scene, storage medium and electronic device
CN116225834A (en) Alarm information sending method and device, storage medium and electronic device
CN116033006A (en) Data processing method, system, storage medium and electronic device
CN114992970A (en) Method and device for sending cleaning command, storage medium and electronic device
CN114691731A (en) Usage preference determination method and apparatus, storage medium, and electronic apparatus
CN115296986B (en) Event recording method and device, storage medium and electronic device
CN117542355A (en) Distributed voice awakening method and device, storage medium and electronic device
CN117879984A (en) Message receiving disturbance-free processing method and device applied to intelligent household equipment
CN115314245B (en) Authority management method, system, storage medium and electronic device
WO2024040824A1 (en) Behavioral habit recognition method and apparatus, and storage medium and electronic apparatus
CN116483449A (en) Equipment awakening method and device, storage medium and electronic device
CN117542356A (en) Voice wake-up method of intelligent equipment, storage medium and electronic device
CN116501698A (en) Timing task processing method and device, storage medium and electronic device
CN116578618A (en) Method and device for generating target reflow instance, storage medium and electronic device
CN115296950A (en) Prompting method for self-cleaning of equipment, storage medium and electronic device
CN116184012A (en) Method for determining power consumption of equipment, storage medium and electronic device
CN117591346A (en) Method and device for determining log current limiting value, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination