A data monitoring system, method, and readable storage medium
By designing a data monitoring system, using service gateways, collection service clusters and preset storage systems, the server-side pressure problem caused by long connection between large-screen devices and small-screen devices in online teaching is solved, and more efficient data processing and better user experience is achieved.
Patent Information
- Application Number
- CN202210716097.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-23
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2042-06-23
AI Technical Summary
In online teaching, the long connection between large-screen devices and small-screen devices leads to excessive pressure on the server side, affecting the user experience.
A data monitoring system is designed to collect and store reported data of large-screen devices through service gateways, collection service clusters and preset storage systems, and provide status information through small-screen data interfaces, avoiding long connections between large-screen devices and small-screen devices.
By dispersing the data processing of large-screen devices, the system reduces the data processing volume of each collection service node, alleviates the pressure on the server, and improves the scalability and user experience of the system.
Smart Images

Figure CN115086339B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data monitoring, and particularly to a data monitoring system, method and readable storage medium. Background Art
[0002] In the field of online teaching, usually students watch learning content through large-screen devices such as tablet computers and TVs, and parents obtain learning status through small-screen devices such as mobile phones.
[0003] Among them, the large-screen device sends behavior data to the server in real time, and the small-screen device determines the learning status of the large-screen device by obtaining the data from the server. This requires a long connection between the large-screen device and the small-screen device to realize the acquisition of the status of the large-screen device by the small-screen device. If a large number of large-screen devices and small-screen devices establish connections, it will cause great pressure on the server's services. Summary of the Invention
[0004] In view of this, this application provides a data monitoring system, method and readable storage medium, and its specific solutions are as follows:
[0005] A data monitoring system includes:
[0006] A service gateway, configured to obtain reporting data of not less than one large-screen device, and forward the reporting data to a collection service cluster;
[0007] A collection service cluster, including not less than one collection service node, configured to respectively obtain the reporting data forwarded by the service gateway, and store the reporting data in a preset storage system;
[0008] A preset storage system, including not less than one preset storage node, configured to respectively store the reporting data of the large-screen device;
[0009] A small-screen data interface, connected to the service gateway, configured to obtain a data request of a small-screen device, and based on the data request, obtain, through the service gateway, status information of a large-screen device corresponding to the small-screen device stored in a preset storage node through the collection service cluster, where the status information is determined based on the reporting data.
[0010] Further, the collection service cluster is further configured to:
[0011] After obtaining the reporting data forwarded by the large-screen device through the service gateway, determine the status information of the large-screen device based on the reporting data.
[0012] Further, the collection service cluster determining the status information of the large-screen device based on the reporting data includes:
[0013] The collection service cluster obtains the reported data of the large-screen device forwarded by the service gateway, and determines that the status of the large-screen device is the online status; if the collection service cluster does not obtain the reported data of the large-screen device forwarded by the service gateway within a preset period, it determines that the status of the large-screen device is the abnormal status;
[0014] Or,
[0015] The collection service cluster obtains the reported data of the large-screen device forwarded by the service gateway, analyzes the reported data, and determines that the status of the large-screen device is the online status or the abnormal status based on the analysis result obtained from the analysis of the reported data.
[0016] Further, the collection service cluster is also used for:
[0017] Each collection service node in the collection service cluster is respectively connected to a preset storage node. If the collection service node determines that the preset storage node connected to it has not received the reported data sent by the first large-screen device within the first preset duration, it determines that the status of the first large-screen device is the offline status, where the first large-screen device is at least one of the at least one large-screen device.
[0018] Further, the "if the collection service node determines that the preset storage node connected to it has not received the reported data sent by the first large-screen device within the first preset duration, it determines that the status of the first large-screen device is the offline status" includes:
[0019] If the collection service node determines that the preset storage node connected to it has not received the reported data sent by the first large-screen device within the second preset duration, it determines a compensation duration, and the compensation duration is used to extend the preset duration for the first large-screen device to send the reported data, where the second preset duration is less than the first preset duration;
[0020] If it is determined that the reported data sent by the first large-screen device has not been received within the compensation duration, it determines that the status of the first large-screen device is the offline status;
[0021] If it is determined that the reported data sent by the first large-screen device has been received within the compensation duration, it stores the reported data in the preset storage node.
[0022] Further, it also includes:
[0023] The small-screen service cluster includes at least one small-screen service node, which is respectively connected to the small-screen data interface, and is used to obtain the data request of the small-screen device, and determine the small-screen service node corresponding to the data request based on the small-screen device that sends the data request, so that the small-screen service node can output a large-screen data request to the service gateway based on the data request, thereby obtaining the status data of the large-screen device corresponding to the large-screen data request.
[0024] A data monitoring method includes:
[0025] Obtaining the reported data of at least one large-screen device;
[0026] Determining the collection service node corresponding to the obtained reported data, and forwarding the reported data through the corresponding collection service node;
[0027] Storing the reported data in a preset storage node corresponding to the collection service node, so that when a data request of a small-screen device is obtained, the status information of the large-screen device corresponding to the small-screen device can be obtained from the preset storage node through the corresponding collection service node, where the status information is determined based on the reported data.
[0028] Further, it further includes:
[0029] After obtaining the reported data sent by the large-screen device, determining the status information of the large-screen device based on the reported data, and storing the status information and the reported data in a corresponding manner.
[0030] Further, the determining the status information of the large-screen device based on the reported data includes:
[0031] After obtaining the reported data sent by the large-screen device, determining that the status of the large-screen device is the online status; if the reported data of the large-screen device is not obtained within a preset time period, determining that the status of the large-screen device is the abnormal status;
[0032] Or,
[0033] After obtaining the reported data sent by the large-screen device, analyzing the reported data, and determining that the status of the large-screen device is the online status or the abnormal status based on the analysis result obtained from the analysis of the reported data.
[0034] A readable storage medium is used to store at least one set of instruction sets;
[0035] The instruction set is used to be called and at least execute the data monitoring method as described in any one of the above.
[0036] As can be seen from the above technical solution, the data monitoring system and method disclosed in this application include: a service gateway for obtaining the reported data of not less than one large-screen device and forwarding the reported data to a collection service cluster; the collection service cluster includes not less than one collection service node for respectively obtaining the reported data forwarded by the service gateway and storing the reported data in a preset storage system; the preset storage system includes not less than one preset storage node for respectively storing the reported data of different large-screen devices; a small-screen data interface is connected to the service gateway for obtaining a data request of the small-screen device, and based on the data request, obtaining, through the service gateway, the status information of the large-screen device corresponding to the small-screen device stored in the preset storage node by the collection service cluster, where the status information is determined based on the reported data. This solution realizes the separate storage of the data of multiple large-screen devices obtained through the collection service cluster, and when the small-screen device needs to obtain the status data of the corresponding large-screen device, it can access the preset storage node storing the corresponding reported data through the collection service cluster, avoiding the long connection between the large-screen device and the small-screen device and alleviating the pressure on the server side. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0038] Figure 1 It is a schematic structural diagram of a data monitoring system disclosed in an embodiment of the present application;
[0039] Figure 2 It is a schematic diagram of a large-screen device sending reported data disclosed in an embodiment of the present application;
[0040] Figure 3 It is a schematic structural diagram of a data monitoring system disclosed in an embodiment of the present application;
[0041] Figure 4 It is a schematic diagram of a small-screen device sending a large-screen data request disclosed in an embodiment of the present application;
[0042] Figure 5 It is a flowchart of a data monitoring method disclosed in an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0043] The following will clearly and completely describe the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0044] The present application discloses a data monitoring system, and its structural schematic diagram is as Figure 1 shown, including:
[0045] A service gateway 11, a collection service cluster 12, a preset storage system 13, and a small screen data interface 14.
[0046] Among them, the service gateway is used to obtain the reported data of no less than one large screen device and forward the reported data to the collection service cluster;
[0047] The collection service cluster includes no less than one collection service node, which is used to respectively obtain the reported data forwarded by the service gateway and store the reported data in the preset storage system;
[0048] The preset storage system includes no less than one preset storage node, which is used to respectively store the reported data to the device;
[0049] The small screen data interface is connected to the service gateway and is used to obtain the data request of the small screen device, and based on the data request, obtain the status information of the large screen device corresponding to the small screen device stored in the preset storage node through the collection service cluster via the service gateway, where the status information is determined based on the reported data.
[0050] During the online teaching process, students learn through large screen devices. In order to enable parents to obtain the learning status of students in real time, determine whether they are currently learning, or determine whether the large screen device is operating normally, the small screen devices held by parents can be bound to the large screen devices, so that when parents need to obtain the learning status of students, they can obtain the current operating status of the large screen device through the small screen device, thereby determining the learning progress of students through the large screen device or whether they are currently learning.
[0051] If the large screen device and the small screen device are directly bound through a server, when a large number of large screen devices and small screen devices are online at the same time, it will have a certain impact on the operation of the server and reduce the user experience.
[0052] To avoid this problem, in this solution, data of multiple large-screen devices is obtained through a collection service cluster with at least one collection service node. By obtaining the data of multiple large-screen devices through multiple collection service nodes respectively, the data processing volume of each collection service node is reduced, avoiding the problem that the data processing volume of a single collection service node is too large when a large number of large and small-screen devices are online simultaneously.
[0053] The data monitoring system disclosed in this embodiment includes a service gateway, which is used to obtain the reported data of at least one large-screen device and can forward the reported data to the collection service cluster.
[0054] The service gateway is specifically a microservice gateway. Among them, microservice is an architecture, and a large and complex software application consists of one or more microservices. In the microservice architecture, different microservices can have different network addresses, and each microservice completes user requests through mutual calls. A microservice gateway is added between the client and the server. The microservice gateway obtains the requests of the client and calls each microservice.
[0055] The data of all devices accessing the system is obtained through the service gateway, and the received data is forwarded. Specifically, the service gateway can obtain the reported data sent by all large-screen devices accessing the system to facilitate the forwarding of all reported data for storage. In addition, the service gateway can also obtain the data requests sent by all small-screen devices accessing the system to facilitate the forwarding of all data requests. After obtaining the requested data, the requested data is sent to the corresponding small-screen device.
[0056] After the service gateway obtains the reported data of the large-screen device, it forwards the reported data to the collection service cluster. The collection service cluster is composed of multiple collection service nodes. Each collection service node is respectively used to obtain the reported data forwarded by the service gateway and store the reported data in a preset storage system.
[0057] Each collection service node in the collection service cluster is used to obtain the data forwarded by the service gateway. Only different collection service nodes are used to obtain different data forwarded by the service gateway, and each collection service node can obtain the data sent by different devices to the service gateway.
[0058] If the service gateway obtains the reported data of the large-screen device, the service gateway will send the reported data of the large-screen device to a specific collection service node in the collection service cluster. This collection service node is used to receive the reported data sent by specific large-screen devices. Then, the reported data sent by these specific large-screen devices will all be sent to this specific collection service node through the service gateway. That is, the collection service node and the large-screen device are in a corresponding relationship, which can specifically be a one-to-many relationship, that is, one collection service node can correspond to multiple large-screen devices. Among them, when the service gateway forwards the reported data of the large-screen device it obtains to the collection service cluster, the service gateway directly forwards the reported data to the collection service node in a load balancing manner.
[0059] The collection service cluster includes multiple collection service nodes, and each collection service node can correspond to multiple large-screen devices. This enables the collection service cluster to obtain data from more large-screen devices and process and forward the obtained data through the collection service nodes respectively, so as to process the data of more large-screen devices through different collection service nodes, thereby improving the speed of data processing.
[0060] The collection service node stores the reported data forwarded by the service gateway in a preset storage system. The preset storage system includes at least one preset storage node, and each preset storage node is respectively used to store the reported data of different large-screen devices.
[0061] The preset storage system can be a redis cluster. The redis cluster is a high-performance key-value storage system, and the preset storage node is a redis node.
[0062] The reported data obtained by the collection service cluster can be evenly stored in different redis nodes so that the data volumes stored in different redis nodes are the same or approximately the same.
[0063] The collection service node and the preset storage node can be in a one-to-one corresponding relationship, or in a one-to-many or many-to-one relationship. That is, the data to be stored received by one collection service node can be stored in one preset storage node, or can be stored in different preset storage nodes respectively. Or, the data to be stored received by multiple collection service nodes can be stored in one preset storage node, or can be stored in multiple preset storage nodes respectively.
[0064] Taking the one-to-one correspondence between the collection service node and the preset storage node as an example, that is, there are a preset number of collection service nodes in the collection service cluster, then there are a preset number of preset storage nodes in the preset storage system. Each collection service node has a corresponding preset storage node. The reported data forwarded through the service gateway will pass through the collection service node and will be stored in the preset storage node corresponding to this collection service node.
[0065] Specifically, the block diagram of the reported data stored by the large-screen device is as follows Figure 2 shown, including: large-screen device 21, service gateway 22, collection service cluster 23, and preset storage system 24. Among them, the large-screen device 21 includes: the first large-screen device 211, the second large-screen device 212, and the third large-screen device 213; the collection service cluster 23 includes multiple collection service nodes 231, and the preset storage system 24 includes multiple preset storage nodes 241. Moreover, the preset storage nodes and the collection service nodes are in a one-to-one correspondence relationship. The storage process of its reported data can be: different large-screen devices respectively send reported data to the service gateway, the service gateway forwards the received more reported data to different collection service nodes respectively, and the collection service nodes respectively send the reported data they receive to the corresponding preset storage nodes for storage.
[0066] Among them, the first large-screen device, the second large-screen device, and the third large-screen device are different large-screen devices respectively.
[0067] Correspondingly, if the data request sent by the small-screen device is obtained by the service gateway, the service gateway obtains the data request sent by the small-screen device through the small-screen data interface, and the service gateway can also obtain the data requests sent by different small-screen devices.
[0068] Specifically, the small-screen device and the large-screen device are associated in advance, so that when the small-screen device sends a data request, relevant data of the large-screen device associated with the small-screen device can be directly searched from the preset storage system for feedback; or, it can also be that after obtaining the data request sent by the small-screen device, based on the data request, the specified large-screen device is determined, and the relevant data of this large-screen device is searched from the preset storage system for feedback.
[0069] The data monitoring system disclosed in this embodiment includes: a service gateway, which is used to obtain the reported data of not less than one large-screen device and forward the reported data to the collection service cluster; the collection service cluster, which includes not less than one collection service node, and is used to obtain the reported data forwarded by the service gateway respectively and store the reported data in a preset storage system; the preset storage system, which includes not less than one preset storage node and is used to store the reported data of different large-screen devices respectively; a small-screen data interface, which is connected to the service gateway and is used to obtain the data request of the small-screen device, and based on the data request, obtain the status information of the large-screen device corresponding to the small-screen device stored in the preset storage node through the collection service cluster via the service gateway, where the status information is determined based on the reported data. This solution realizes the separate storage of the data of multiple large-screen devices obtained through the collection service cluster, and when the small-screen device needs to obtain the status data of the corresponding large-screen device, it can access the preset storage node storing the corresponding reported data through the collection service cluster, avoiding the long connection between the large-screen device and the small-screen device and alleviating the pressure on the server side.
[0070] This embodiment discloses a data monitoring system, and its structural schematic diagram is as Figure 1 shown, including:
[0071] A service gateway 11, a collection service cluster 12, a preset storage system 13 and a small-screen data interface 14.
[0072] In addition to the same structure as the previous embodiment, the collection service cluster in this embodiment can also be used to: after obtaining the reported data forwarded by the large-screen device through the service gateway, determine the status information of the large-screen device based on the reported data.
[0073] The large-screen device sends the reported data to the service gateway for storage. The reported data can be: data indicating that the large-screen device is currently in the process of online teaching, such as: there is a transmission of interaction signals between the large-screen device and the online teaching system, or the online teaching system on the large-screen device is in the state of online teaching, or the large-screen device takes photos or short videos of the users learning on the large-screen device, etc.
[0074] After the collection service cluster obtains the reported data sent by the large-screen device, it analyzes the reported data, determines the status information of the large-screen device, and determines whether the large-screen device is currently in an online state or an abnormal state based on the reported data.
[0075] If it is determined that the status of the large-screen device is the online status, while storing the reported data of the large-screen device through the corresponding preset storage node, its status information is also stored; if it is determined that the status of the large-screen device is the abnormal status, while storing the reported data of the large-screen device through the corresponding preset storage node, the memory status information is stored, and at the same time, a prompt message of the abnormal status can also be sent to the small-screen device.
[0076] Further, the collection service cluster determines the status information of the large-screen device based on the reported data, which can be:
[0077] If the collection service cluster obtains the reported data of the large-screen device forwarded by the service gateway, it directly determines that the status of the large-screen device is the online status; if the collection service cluster does not obtain the reported data of the large-screen device forwarded by the service gateway within the preset time period, it determines that the status of the large-screen device is the abnormal status.
[0078] That is, as long as the collection service cluster receives the reported data of the large-screen device forwarded by the service gateway, without analyzing the reported data, it can directly determine that the large-screen device is currently in the online status. If the status of the large-screen device is the abnormal status, the reported data will not be sent to the service gateway. That is, only when the large-screen device is in the online teaching status, the large-screen device will send the reported data to the service gateway.
[0079] Specifically, when the large-screen device is in the online status, a preset time interval is set. Starting from the moment when the large-screen device switches to the online status, once every interval of the preset time interval, a reported data is sent to the service gateway, so that the collection service cluster can monitor the status of the large-screen device; as long as the reported data sent by the large-screen device is not received after an interval of the preset time interval, it is considered that the large-screen device is in the abnormal status.
[0080] Or, the collection service cluster obtains the reported data of the large-screen device forwarded by the service gateway, analyzes the reported data, and determines the status of the large-screen device as the online status or the abnormal status based on the analysis result obtained from the analysis of the reported data.
[0081] Specifically, regardless of the status of the large-screen device, the large-screen device will send a reported data at a certain time interval. After the collection service cluster obtains the reported data of the large-screen device, it cannot directly determine whether the large-screen device is currently in the online status based on the reported data and needs to analyze it. When the large-screen device is in the online status and when it is in the abnormal status, the content in its reported data is different. Therefore, the current status of the large-screen device can be determined based on the analysis of the reported data.
[0082] When it is determined that the status of the large-screen device is the online status, the collection service cluster renews the status for the large-screen device, so that when the small-screen device obtains the status of the large-screen device through the collection service cluster, it can determine in which time period the large-screen device is continuously online and in which time period it is in an abnormal state.
[0083] Furthermore, each collection service node in the collection service cluster is respectively connected to a preset storage node. If the collection service node determines that the preset storage node connected to it has not received the reported data sent by the first large-screen device within the first preset duration, it determines that the status of the first large-screen device is the offline status.
[0084] The collection service cluster can not only determine the status of the large-screen device by whether it receives the reported data of the large-screen device forwarded by the service gateway, but also determine which preset storage node has not received the reported data for a long time, or which preset storage node has not received the reported data meeting the preset data volume by analyzing the preset storage nodes.
[0085] Each preset storage node can store a certain amount of reported data at regular intervals. The reported data of a certain amount can be the reported data of one large-screen device or the reported data of several preset large-screen devices. The certain duration can be the first preset duration. When no reported data is received within the certain duration, or no reported data meeting the preset data volume is received, it can be determined that the status of the large-screen device is the offline status.
[0086] If it is determined that the status of a certain large-screen device is the offline status, the identification information of the large-screen device can be deleted from the online list for easy record storage. The online list can be the list in the preset storage node for storing the large-screen device, and the list includes the identification information of the large-screen devices in the online status in the reported data stored by the preset storage node.
[0087] Among them, the abnormal status includes the offline status and other statuses, such as: the normal offline status, etc.
[0088] Furthermore, if the collection service node determines that the preset storage node connected to it has not received the reported data sent by the first large-screen device within the second preset duration, the compensation duration is determined. The compensation duration is used to extend the preset duration for the large-screen device to send the reported data, where the second preset duration is less than the first preset duration; if it is determined that no reported data sent by the first large-screen device is received within the compensation duration, it is determined that the status of the first large-screen device is the offline status; if it is determined that the reported data sent by the first large-screen device is received within the compensation duration, the reported data is stored in the preset storage node.
[0089] The process of determining that the large-screen device is in an offline state can be specifically as follows: First, the collection service node determines that the preset storage node has not received the reported data sent by the first large-screen device within the second preset duration. The second preset duration can be the preset time interval for the first large-screen device to send the reported data in advance. If the preset storage node does not receive the reported data to be stored within this preset time interval, in order to avoid task lag caused by network latency or problems with the collection service node, a compensation duration is set. As long as the reported data sent by the first large-screen device can be received and stored within this compensation duration, it can be determined that the first large-screen device is in an online state. The reason that it has not received the reported data within the second preset duration may be task lag caused by network latency or problems with the collection service node. If the reported data sent by the first large-screen device is still not received within the compensation duration, it can be determined that the first large-screen device is in an offline state, rather than being caused by task lag, thus ensuring that the large-screen device is confirmed to be in an online state as long as it sends the reported data within this compensation duration and avoiding the occurrence of misdeletion situations.
[0090] Furthermore, if the preset storage node receives the reported data sent by the first large-screen device within the compensation duration, the time node for the first large-screen device to send the reported data is readjusted. Starting from the moment when the preset storage node receives the reported data sent by the first large-screen device, the first large-screen device sends the reported data once every preset time interval to ensure the accuracy of determining the state of the first large-screen device.
[0091] The data monitoring system disclosed in this embodiment includes: a service gateway for obtaining the reported data of not less than one large-screen device and forwarding the reported data to the collection service cluster; the collection service cluster includes not less than one collection service node for respectively obtaining the reported data forwarded by the service gateway and storing the reported data in the preset storage system; the preset storage system includes not less than one preset storage node for respectively storing the reported data of different large-screen devices; a small-screen data interface connected to the service gateway for obtaining the data request of the small-screen device and obtaining, based on the data request through the service gateway, the status information of the large-screen device corresponding to the small-screen device stored in the preset storage node through the collection service cluster, where the status information is determined based on the reported data. This solution realizes the separate storage of the data of multiple large-screen devices obtained through the collection service cluster, and when the small-screen device needs to obtain the status data of the corresponding large-screen device, it can access the preset storage node storing the corresponding reported data through the collection service cluster, avoiding long connections between the large-screen device and the small-screen device and alleviating the pressure on the server side.
[0092] This embodiment discloses a data monitoring system, and its structural schematic diagram is as Figure 3 shown, including:
[0093] Service gateway 31, collection service cluster 32, preset storage system 33, small-screen data interface 34, and small-screen service cluster 35.
[0094] In addition to the same structure as the previous embodiment, the data monitoring system disclosed in this embodiment may further include: a small-screen service cluster.
[0095] Among them, the small-screen service cluster includes at least one small-screen service node, which is respectively connected to the small-screen data interface, and is used to obtain the data requests of small-screen devices, and determine the small-screen service node corresponding to the data request based on the small-screen device that sends the data request, so that the small-screen service node can output a large-screen data request to the service gateway for the data request, thereby obtaining the status data of the large-screen device corresponding to the large-screen data request.
[0096] The small-screen service cluster includes multiple small-screen service nodes, and the functions of the multiple small-screen service nodes are the same. They are respectively used to obtain the data requests of different small-screen devices. Each small-screen service node can obtain the data requests of multiple small-screen devices, and the sources of the data requests obtained by different small-screen service nodes are different.
[0097] The function of setting multiple small-screen service nodes in the small-screen service cluster is the same as the function of setting multiple collection service nodes in the collection service cluster, which is to enable the service nodes to obtain more data and be able to process it simultaneously, so as to improve the data processing speed and reduce the data processing volume of each service node.
[0098] Specifically, the block diagram of the small-screen device sending a large-screen data request is as Figure 4 shown, including: small-screen service cluster 41, multiple small-screen service nodes 411 included in the small-screen service cluster, service gateway 42, collection service cluster 43, and multiple collection service nodes 431 included in the collection service cluster.
[0099] When a small-screen service node in the small-screen service cluster receives a large-screen data request, that is, a certain small-screen device requests to obtain the status information of the large-screen device, the user will send a data request through the small-screen device, and then the small-screen server node receives this data request. Based on this data request, the small-screen service node can determine that this data request is a large-screen device request for obtaining the status information of the large-screen device. Then, the small-screen service node forwards this large-screen data request through the service gateway to the collection service node corresponding to the large-screen data in the collection service cluster. Through this collection service node, the status information of the large-screen device corresponding to this large-screen data request is retrieved from the corresponding preset storage node. The collection service node forwards this status information through the service gateway to the small-screen service node, and the small-screen service node sends this status information to the small-screen device that sent the large-screen data request, so that parents can determine the online learning situation of students on the large-screen device at any time through the small-screen device, improving the interaction efficiency of determining the status of large-screen devices when a large number of large-screen devices and small-screen devices in the system are online at the same time.
[0100] The data monitoring system disclosed in this embodiment includes: a service gateway, which is used to obtain the reported data of not less than one large-screen device and forward the reported data to the collection service cluster; the collection service cluster includes not less than one collection service node, which is used to obtain the reported data forwarded by the service gateway respectively and store the reported data in the preset storage system; the preset storage system includes not less than one preset storage node, which is used to store the reported data of different large-screen devices respectively; the small-screen data interface is connected to the service gateway and is used to obtain the data request of the small-screen device, and based on the data request, obtain through the service gateway the status information of the large-screen device corresponding to the small-screen device stored in the preset storage node through the collection service cluster, where the status information is determined based on the reported data. This solution realizes the separate storage of the data of multiple large-screen devices obtained through the collection service cluster, and when the small-screen device needs to obtain the status data of the corresponding large-screen device, it can access the preset storage node storing the corresponding reported data through the collection service cluster, avoiding the long connection between the large-screen device and the small-screen device and alleviating the pressure on the server side.
[0101] This embodiment discloses a data monitoring method, and its flowchart is as Figure 5 shown, including:
[0102] Step S51, obtain the reported data of not less than one large-screen device;
[0103] Step S52, determine the collection service node corresponding to the obtained reported data, and forward the reported data through the corresponding collection service node;
[0104] Step S53: Store the reported data in a preset storage node corresponding to the collection service node, so that when a data request from a small-screen device is obtained, the status information of the large-screen device corresponding to the small-screen device can be obtained from the preset storage node through the corresponding collection service node, and the status information is determined based on the reported data.
[0105] Further, it further includes:
[0106] After obtaining the reported data sent by the large-screen device, determine the status information of the large-screen device based on the reported data, and store the status information and the reported data in a corresponding manner.
[0107] Further, determining the status information of the large-screen device based on the reported data includes:
[0108] After obtaining the reported data sent by the large-screen device, determine that the status of the large-screen device is the online status; if the reported data of the large-screen device is not obtained within a preset time period, determine that the status of the large-screen device is the abnormal status;
[0109] Or,
[0110] After obtaining the reported data sent by the large-screen device, analyze the reported data, and determine that the status of the large-screen device is the online status or the abnormal status based on the analysis result obtained from the analysis of the reported data.
[0111] Further, each collection service node in the collection service cluster is respectively connected to a said preset storage node. If the collection service node determines that the preset storage node connected to it has not received the reported data sent by the first large-screen device within the first preset time period, determine that the status of the first large-screen device is the offline status.
[0112] Further, if the collection service node determines that the preset storage node connected to it has not received the reported data sent by the first large-screen device within the first preset time period, determining that the status of the first large-screen device is the offline status includes:
[0113] If the collection service node determines that the preset storage node connected to it has not received the reported data sent by the first large-screen device within the second preset time period, determine the compensation time period, where the compensation time period is used to extend the preset time period for the large-screen device to send the reported data, and the second preset time period is less than the first preset time period; if it is determined that the reported data sent by the first large-screen device is not received within the compensation time period, determine that the status of the first large-screen device is the offline status; if it is determined that the reported data sent by the first large-screen device is received within the compensation time period, store the reported data in the preset storage node.
[0114] The data monitoring method disclosed in this embodiment is implemented based on the data monitoring system disclosed in the above embodiment, and will not be elaborated here.
[0115] The data monitoring method disclosed in this embodiment is applied to a data monitoring system. The data monitoring system includes: a service gateway, which is used to obtain the reported data of at least one large-screen device and forward the reported data to a collection service cluster; the collection service cluster, which includes at least one collection service node, is used to obtain the reported data forwarded by the service gateway respectively and store the reported data in a preset storage system; the preset storage system, which includes at least one preset storage node, is respectively used to store the reported data of different large-screen devices; a small-screen data interface, which is connected to the service gateway, is used to obtain the data request of the small-screen device, and based on the data request, obtain the status information of the large-screen device corresponding to the small-screen device stored in the preset storage node through the collection service cluster via the service gateway, where the status information is determined based on the reported data. This solution realizes the separate storage of the data of multiple large-screen devices obtained through the collection service cluster, and when the small-screen device needs to obtain the status data of the corresponding large-screen device, it can access the preset storage node storing the corresponding reported data through the collection service cluster, avoiding the long connection between the large-screen device and the small-screen device and alleviating the pressure on the server side.
[0116] An embodiment of the present application also provides a readable storage medium, on which a computer program is stored. The computer program is loaded and executed by a processor to implement the steps of the above data monitoring method. The specific implementation process can refer to the description of the corresponding part of the above embodiment, and this embodiment will not be elaborated.
[0117] The present application also proposes a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the methods provided in various optional implementation manners in terms of the above data monitoring method or data monitoring system. The specific implementation process can refer to the description of the corresponding embodiment above and will not be elaborated.
[0118] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The same or similar parts among the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method part.
[0119] Those skilled in the art may further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of this application.
[0120] The steps of the methods or algorithms described in combination with the embodiments disclosed herein can be directly implemented by hardware, software modules executed by a processor, or a combination of the two. The software modules can be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium well-known in the technical field.
[0121] The above description of the disclosed embodiments enables those skilled in the art to implement or use this application. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application will not be limited to these embodiments shown herein, but rather to the broadest scope consistent with the principles and novel features disclosed herein.
Claims
1. A data monitoring system, characterized in that, Including: A service gateway, configured to obtain the reported data of at least one large-screen device and forward the reported data to a collection service cluster; The service gateway is a microservice gateway; The collection service cluster includes at least one collection service node, and each collection service node is respectively configured to obtain the reported data forwarded by the service gateway and store the reported data into a preset storage system; the collection service nodes correspond to the large-screen devices one by one; The service gateway sends the reported data of the large-screen device to the collection service node corresponding to the large-screen device in the collection service cluster; The preset storage system includes at least one preset storage node, configured to store the reported data of the large-screen device respectively; A small-screen data interface, connected to the service gateway, configured to obtain a data request of a small-screen device and, based on the data request, obtain, through the service gateway, the status information of the large-screen device corresponding to the small-screen device stored in the preset storage node through the collection service cluster, wherein the status information is determined based on the reported data; The collection service cluster is further configured to: Each collection service node in the collection service cluster is respectively connected to a preset storage node. If the collection service node determines that the preset storage node connected to it has not received the reported data sent by a first large-screen device within a first preset duration, it determines that the status of the first large-screen device is an offline status, wherein the first large-screen device is at least one of the at least one large-screen device.
2. The system according to claim 1, wherein The collection service cluster is further configured to: After obtaining the reported data of the large-screen device forwarded by the service gateway, determine the status information of the large-screen device based on the reported data.
3. The system according to claim 2, characterized in that, The collection service cluster determines the status information of the large-screen device based on the reported data, including: The collection service cluster obtains the reported data of the large-screen device forwarded by the service gateway and determines that the status of the large-screen device is an online status; if the collection service cluster does not obtain the reported data of the large-screen device forwarded by the service gateway within a preset period, it determines that the status of the large-screen device is an abnormal status; Or, The collection service cluster obtains the reported data of the large-screen device forwarded by the service gateway, analyzes the reported data, and determines that the status of the large-screen device is an online status or an abnormal status based on the analysis result obtained from the analysis of the reported data.
4. The system according to claim 1, wherein The step that if the collection service node determines that the preset storage node connected to it has not received the reported data sent by a first large-screen device within a first preset duration, it determines that the status of the first large-screen device is an offline status, includes: If the collection service node determines that the preset storage node connected to it has not received the reported data sent by a first large-screen device within a second preset duration, determine a compensation duration, where the compensation duration is used to extend the preset duration for the first large-screen device to send reported data, and the second preset duration is less than the first preset duration; If it is determined that the reported data sent by the first large-screen device has not been received within the compensation duration, it is determined that the status of the first large-screen device is an offline status; If it is determined that the reported data sent by the first large-screen device is received within the compensation duration, store the reported data in the preset storage node.
5. The system according to claim 1, wherein It further includes: A small-screen service cluster, including at least one small-screen service node, which is respectively connected to the small-screen data interface, and is used to obtain the data request of the small-screen device, and determine the small-screen service node corresponding to the data request based on the small-screen device that sends the data request, so that the small-screen service node can forward the large-screen data request to the service gateway based on the data request output by the small-screen device, thereby obtaining the status data of the large-screen device corresponding to the large-screen data request.
6. A data monitoring method, characterized in that, It includes: Obtain the reported data of at least one large-screen device through the service gateway; The service gateway is a microservice gateway; Determine the collection service node corresponding to the obtained reported data, and forward the reported data through the corresponding collection service node; the collection service node corresponds to the large-screen device; The service gateway sends the reported data of the large-screen device to the collection service node corresponding to the large-screen device in the collection service cluster; Store the reported data in the preset storage node corresponding to the collection service node, so that when the data request of the small-screen device is obtained, the status information of the large-screen device corresponding to the small-screen device can be obtained from the preset storage node through the corresponding collection service node, where the status information is determined based on the reported data; each collection service node is respectively connected to a preset storage node. If the collection service node determines that the preset storage node connected to it has not received the reported data sent by the first large-screen device within the first preset duration, it is determined that the status of the first large-screen device is an offline state, where the first large-screen device is at least one of the at least one large-screen device.
7. The method according to claim 6, wherein It further includes: After obtaining the reported data sent by the large-screen device, determine the status information of the large-screen device based on the reported data, and store the status information corresponding to the reported data.
8. The method according to claim 7, wherein The determining the status information of the large-screen device based on the reported data includes: After obtaining the reported data sent by the large-screen device, determine that the status of the large-screen device is an online state; if the reported data of the large-screen device is not obtained within the preset period, determine that the status of the large-screen device is an abnormal state; Or, After obtaining the reported data sent by the large-screen device, analyze the reported data, and determine that the status of the large-screen device is an online state or an abnormal state based on the analysis result obtained from the analysis of the reported data.
9. A readable storage medium for storing at least one set of instruction sets; The instruction set is used to be called and at least execute the data monitoring method described in any one of claims 6-8.
Citation Information
Patent Citations
Information monitoring method and device
CN105187266A