Equipment management method and device, electronic device and storage medium

By initiating a device status acquisition request at the management terminal, determining the online service node connected to the central cache area, and obtaining device status information from multiple online service nodes, the problem that the existing technology cannot meet the needs of large-scale device status management is solved and realized Accurate status management and monitoring of large-scale equipment clusters.

CN118713976AActive Publication Date: 2024-09-27E SURFING VISION TECHNOLOGY CO LTD

Patent Information

Application Number
CN202411172393.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-09-27
Estimated Expiration
2044-08-26

AI Technical Summary

Technical Problem

Existing device management methods cannot meet the needs of large-scale device status management. Especially after the scale of the Internet of Things expands, higher requirements are put forward for device status management and monitoring, and there is a delay when a gateway node fails or shrinks. and state errors.

Method used

By initiating a device status acquisition request at the management terminal, the online service node connected to the central cache is determined, device status information is obtained from multiple online service nodes, and the device status acquisition request is distributed to avoid obtaining devices from multiple nodes through the central cache. status information to meet the needs of large-scale equipment status management.

Benefits of technology

It achieves accurate statistics of the device status of each service node in a large-scale device cluster, avoids the problem of being unable to manage multiple device status when there are large-scale devices, and improves the efficiency and reliability of device status management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118713976A
    Figure CN118713976A
Patent Text Reader

Abstract

The invention relates to an equipment management method and device, an electronic device and a storage medium, and the equipment management method comprises the steps: responding to an equipment state obtaining request initiated by a management terminal, and determining a first service node; the first service node is an online service node in the central cache region; determining first equipment state information of the first service node, and distributing an equipment state acquisition request to a second service node; the second service node is determined by the first service node; acquiring second equipment state information of a second service node; and returning target equipment state information including the first equipment state information and the second equipment state information to the management terminal. According to the invention, the requirement of large-scale equipment state management is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a device management method, device, electronic device and storage medium. Background Art

[0002] In the device access gateway system, device status monitoring is crucial, especially in the distributed mode, it is of great significance to accurately count the online and offline status of the device. The statistical method of device status in the distributed mode involves technical content in many aspects, such as the total number of offline devices, the number of device accesses per node, the number of accesses of different device types, and the update of device status when the gateway node is abnormal. It is one of the important technologies to ensure the stable operation of the device access gateway system.

[0003] However, in the existing device management process, a maximum device access limit is generally set for each node. Before the gateway cluster, a management service is added to manage the number of devices connected to each gateway node and the gateway node information to which the newly added devices are connected. With the expansion of the scale of the Internet of Things, the number of devices has increased dramatically, which has put forward higher requirements for device status management and monitoring. Existing methods may not be able to meet the needs of large-scale device management.

[0004] There is currently no effective solution to the problem that related technologies cannot meet the needs of large-scale device status management. Summary of the invention

[0005] In this embodiment, a device management method, apparatus, electronic device and storage medium are provided to solve the problem that the related art cannot meet the demand for large-scale device status management.

[0006] In a first aspect, a device management method is provided in this embodiment, the method comprising: In response to a device status acquisition request initiated by a management terminal, a first service node is determined; the first service node is an online service node connected to a central cache area; Determine first device status information of the first service node, and distribute the device status acquisition request to a second service node; the second service node is determined by the first service node; Acquire second device status information of a second service node; and return target device status information including the first device status information and the second device status information to the management terminal.

[0007] In some of the embodiments, the central cache is connected to a plurality of service nodes; The step of determining the first service node in response to the device status acquisition request includes: Synchronizing node states of multiple service nodes to the central cache area; In response to the device status acquisition request, acquiring the online service node connected to the central cache area, According to a preset request strategy, a first service node among the online service nodes is determined.

[0008] In some embodiments, the distributing the device status acquisition request to the second service node includes: Determining an online service node other than the first service node as a first to-be-requested node; Determine whether the first node to be requested has responded to the device status acquisition request; According to a preset request strategy, determining an online service node among the first nodes to be requested that has not responded to the device status request as the second service node; Distribute the device status acquisition request to the second service node.

[0009] In some embodiments, the determining whether the first node to be requested has responded to the device status acquisition request includes: Obtaining the link identifier carried in the device status acquisition request; The cache data in the node to be requested is obtained, and it is determined according to the cache data whether the first node to be requested has received the link identifier.

[0010] In some embodiments, after obtaining the second device status information of the second service node, the method further includes: Determining a second node to be requested, where the second node to be requested includes an online service node other than the first service node and the second service node; According to a preset request strategy, determining a third service node from the second to-be-requested nodes that have not responded to the device status acquisition request; Distribute the device status acquisition request to the third service node.

[0011] In some embodiments, the method further comprises: The device status acquisition request carries target device status information; the target device status information includes status information of the online service node that has completed the request.

[0012] In some embodiments, the method further comprises: When the number of nodes of the second service node is zero, stop responding to the device status acquisition request.

[0013] In a second aspect, a device management apparatus is provided in this embodiment, the apparatus comprising: a service node determination module and a device information acquisition module; The service node determination module is used to determine a first service node in response to a device status acquisition request initiated by a management terminal; the first service node is an online service node connected to a central cache area; and is also used to determine first device status information of the first service node, and distribute the device status acquisition request to a second service node; the second service node is determined by the first service node; The device information acquisition module is used to acquire second device status information of a second service node; and return target device status information including the first device status information and the second device status information to the management terminal.

[0014] In a third aspect, an electronic device is provided in this embodiment, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the device management method described in the first aspect when executing the computer program.

[0015] In a fourth aspect, a storage medium is provided in this embodiment, on which a computer program is stored, and when the program is executed by a processor, the device management method described in the first aspect is implemented.

[0016] Compared with the related art, a device management method, device, electronic device and storage medium provided in this embodiment respond to a device status acquisition request initiated by a management terminal, determine a first service node, and obtain the device status information of the first service node; then obtain the online service node connected in the central cache area according to the first service node, and obtain the second service node from multiple online service nodes, and then obtain the device status information of the second service node, and return the device status information to the management terminal, thereby avoiding obtaining the device status information of multiple nodes through the server in the central cache area, and thus avoiding the problem of being unable to manage the status of multiple devices when there are large-scale devices. This application determines other online service nodes through service nodes, and then determines the device status information of the service nodes, which meets the needs of large-scale device status management.

[0017] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings: Figure 1 It is a hardware structure block diagram of a terminal of the device management method provided in an embodiment of the present application; Figure 2 is a flow chart of a device management method provided in an embodiment of the present application; Figure 3 is a system schematic diagram of the device status statistics method provided in this specific embodiment; Figure 4 is a flow chart of a method for counting device status in a distributed mode provided by this specific embodiment; Figure 5 It is a structural block diagram of the equipment management device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0019] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0020] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with general skills in the technical field to which this application belongs. The words "one", "a", "the", "these" and the like in this application do not indicate a quantitative limitation, and they may be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" may mean: A exists alone, A and B exist at the same time, and B exists alone. Generally, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0021] The method embodiment provided in this embodiment can be executed in a terminal, a computer or a similar computing device. For example, running on a terminal, Figure 1 : is a hardware structure block diagram of a terminal of the device management method provided in the embodiment of the present application. Figure 1 As shown, the terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 and a memory 104 for storing data, wherein the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA. The above terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0022] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the device management method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0023] The transmission device 106 is used to receive or send data via a network. The above network includes a wireless network provided by a communication provider of the terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0024] In the device access gateway system, device status monitoring is crucial, especially in the distributed mode, it is of great significance to accurately count the online and offline status of the device. It mainly includes the following aspects: Number of devices online and offline: Accurate total number of connected devices and total number of online devices is crucial for device management within the service cluster.

[0025] Number of online devices connected to each node: After an actively registered device is registered at a service node, subsequent device operations will need to communicate with the service node. However, there is an upper limit on the number of devices that can be connected to each service node, and it is necessary to perceive the real-time number of devices connected to each service node to achieve load balancing when devices are connected between service clusters. Among them, the actively registered device actively initiates registration with the service. After successful registration, a handle belonging to the device will exist inside the service, and the device will interact with the service through the handle for various subsequent functions.

[0026] Number of accesses of different types of devices: There are many types of devices, and the number of accesses of different types of devices needs to be counted. For example, video surveillance devices are mainly divided into IPC (IP Camera) and NVR (Network Video Recorder), among which multiple channel devices can be mounted under the NVR device. IPC is composed of a network coding module and an analog camera. It is a new generation of camera produced by combining traditional cameras with network technology; NVR is the storage and forwarding part of the network video surveillance system. NVR works with video encoders or network cameras to complete the video recording, storage and forwarding functions. There are differences in the resource usage of service nodes by different types of devices. Therefore, each service node must not only perceive the number of devices connected to the current node, but also the number of IPCs and NVRs connected to the current node.

[0027] Device status update when the gateway node is abnormal: When a service node is abnormal, the device connected to the service node will re-register and establish a connection with other nodes. At this time, the device offline notification sent by the device to the abnormal service node cannot be perceived by the service cluster. In addition, in some cases, the device will not re-register with other service nodes, resulting in the device connection being abnormal. In this scenario, it is necessary to accurately count the real-time number of device accesses to each service node in order to monitor service node abnormalities.

[0028] In summary, the statistical method of device status in distributed mode involves technical content in many aspects, such as the total number of offline devices, the number of device accesses to each node, the number of accesses of different device types, and the update of device status when the gateway node is abnormal. It is one of the important technologies to ensure the stable operation of the device access gateway system.

[0029] At present, actively registered devices access the gateway, and generally each node sets a maximum device access limit; before the gateway cluster, a management service is added to manage the number of devices connected to each gateway node, and the information of the gateway nodes connected when new devices are allocated. However, with the expansion of the scale of the Internet of Things, the number of devices has increased dramatically, and higher requirements have been placed on device status management and monitoring. Existing methods may not be able to meet the needs of large-scale device management. In addition, when a gateway node fails, crashes, or shrinks, the current common central cache solution needs to process the data in the cache of the abnormal node when a node abnormality is detected, which results in delays and status errors.

[0030] Therefore, in this embodiment, a device management method is provided to achieve accurate statistics of the device status of each service node when the gateway service node is down or downsized in large-scale device cluster management. Figure 2 is a flow chart of the device management method provided in the embodiment of the present application, such as Figure 2 As shown, the process includes the following steps: Step S210, in response to a device status acquisition request initiated by a management terminal, determining a first service node; the first service node is an online service node connected to the central cache area.

[0031] Among them, when the management terminal initiates a device status acquisition request to the processor, the processor obtains the device status acquisition request initiated by the management terminal. The management terminal here can be a client that needs to manage the device, or it can be a server that obtains the device management status, which is not specifically limited here; the processor includes the aforementioned gateway system. The central cache area is connected to multiple service nodes, and the status of multiple service nodes can be online or offline. The status of the service node is determined according to the actual processing situation. Afterwards, the processor first determines the online service node connected to the central cache area according to the device status acquisition request; then randomly requests any node in the online service node, that is, the first service node. Each online service node maintains its own online service node information in the central cache area through the node heartbeat. At the same time, each online service node can obtain the information of other current online service nodes from the central cache area.

[0032] Step S220, determining first device status information of the first service node, and distributing a device status acquisition request to a second service node; the second service node is determined by the first service node.

[0033] Among them, after determining the first service node, the processor obtains the first device status information connected to the first service node; the first device status information includes the status information of all devices connected to the first service node. The device accesses the corresponding service node through the device access module, and the device will continue to interact with the service node later. When the device accesses the corresponding service node, the device status is updated in real time to the device status data maintained by the service node, that is, the device status information is synchronized to the service node in real time. After the first service node is determined, the first service node is controlled to distribute the device status acquisition request to the second service node. Specifically, unrequested service nodes are determined among all online service nodes, and multiple second service nodes are randomly selected from the unrequested service nodes. Further, the above distribution process is recursively performed until the device status acquisition request is distributed to all unrequested online service nodes. When the device status acquisition request is distributed to the second service node, it carries the first device status information of the first service node.

[0034] Step S230, obtaining second device status information of the second service node; returning target device status information including the first device status information and the second device status information to the management terminal.

[0035] The processor obtains second device status information of the device connected to the second service node, and returns target device status information including the first device status information and the second device status information to the management terminal to obtain device status information of all devices connected to the online service node.

[0036] Through the above steps, the first service node is determined according to the device status acquisition request, and the device status information of the first service node is obtained; then the online service node connected in the central cache area is obtained according to the first service node, and the second service node is obtained from multiple online service nodes, and then the device status information of the second service node is obtained, and the device status information is returned to the management terminal, so as to avoid obtaining the device status information of multiple nodes through the server in the central cache area, and thus avoid the problem of being unable to manage the status of multiple devices when there are large-scale devices. This application determines other online service nodes through service nodes, and then determines the device status information connected to the service nodes, which meets the needs of large-scale device status management.

[0037] In some of the embodiments, a central cache area is connected to multiple service nodes; in step S210, in response to a device status acquisition request, a first service node is determined, including: synchronizing the node status of multiple service nodes to the central cache area; in response to the device status acquisition request, obtaining online service nodes connected to the central cache area, and determining the first service node among the online service nodes according to a preset request strategy.

[0038] Among them, the central cache area is connected to multiple service nodes, and the multiple service nodes are connected to multiple devices; the node status of the multiple service nodes is synchronized to the central cache area. Specifically, the node status includes online and offline; when the service node is online, the online status is synchronized to the central cache area, and when the service node is offline, the offline status is synchronized to the central cache area. After receiving the device status acquisition request, according to the device status acquisition request, the online service node connected to the central cache area is obtained, and the first service node is determined among the online service nodes. When there is only one online service node, the online service node is directly determined as the first service node; when there are multiple online service nodes, the first service node among the online service nodes is determined according to the preset request strategy. Furthermore, the preset request strategy can be simple random sampling, random number table method, stratified sampling method, random number decision method, etc., which are not specifically limited here. Preferably, the number of the first service node is set to one.

[0039] The central cache area provided in the above embodiment is connected to multiple service nodes, and the multiple service nodes are connected to multiple devices. By obtaining the online service nodes connected to the central cache area, the first service node among the online service nodes is determined, which is conducive to the subsequent distribution of device status acquisition requests to other online service nodes according to the first service node, and directly obtaining the status information of the connected devices from the service nodes, without the need to synchronize the device status information to the central cache area, thereby improving the efficiency and reliability of large-scale device management.

[0040] In some embodiments, distributing the device status acquisition request to the second service node in step S220 includes: Step S221: determine an online service node other than the first service node as a first node to be requested; and determine whether the first node to be requested has responded to a device status acquisition request.

[0041] Further, determining whether the first node to be requested has responded to the device status acquisition request includes: obtaining a link identifier carried in the device status acquisition request; obtaining cached data in the node to be requested, and determining whether the first node to be requested has received the link identifier based on the cached data.

[0042] Among them, after determining the first service node, the online service node other than the first service node connected to the central cache area is determined as the first waiting-for-request node, and then the second service node for distributing the device status acquisition request is determined in the first waiting-for-request node. Afterwards, it is determined whether the first waiting-for-request node has received the device status acquisition request, that is, the link identifier carried in the device status acquisition request is obtained, and it is determined whether the cache data in the requesting node includes the link identifier, and then it is determined whether the first waiting-for-request node has responded to the device status acquisition request.

[0043] Step S222: according to a preset request strategy, determine the online service node in the first node to be requested that has not responded to the device status request as the second service node; and distribute the device status acquisition request to the second service node.

[0044] According to a preset request strategy, ie, the random selection method in the aforementioned embodiment, the second service node is determined from the first node to be requested, and the device status acquisition request is distributed to the second service node.

[0045] Through the above steps, the processor randomly determines multiple second service nodes from the unrequested first request nodes, and then distributes the device status acquisition request to the second service nodes, thereby avoiding repeated distribution of the device status acquisition request to multiple service nodes, which is beneficial to improving the efficiency of obtaining the device status.

[0046] In some of the embodiments, after obtaining the second device status information of the second service node in step S230, it also includes: determining a second node to be requested, the second node to be requested includes an online service node other than the first service node and the second service node; according to a preset request strategy, determining a third service node from the second node to be requested that has not responded to the device status acquisition request; and distributing the device status acquisition request to the third service node.

[0047] Among them, when the number of the first service node and the second service node is less than the number of online service nodes, it is necessary to distribute the request again; obtain the second node to be requested from the online service node, that is, the node that needs to distribute the request from the second service node, and then determine the third service node in the second request node according to the preset request strategy, and distribute the device status acquisition request to the third service node to obtain the device status information of the third service node.

[0048] Through the above solution, the device status acquisition request is distributed to all online service nodes connected to the central cache area, which is conducive to improving the integrity of the acquired device status.

[0049] In some of the embodiments, the device status acquisition request carries target device status information; the target device status information includes status information of an online service node that has completed the request.

[0050] In the process of distributing the device status acquisition request, the device status acquisition request carries all device status information of the completed request, thereby avoiding obtaining the device status information from the central buffer area and reducing the processing burden of the central buffer area.

[0051] In some of the embodiments, the device management method further includes: when the number of nodes of the second service node is zero, stopping responding to the device status acquisition request.

[0052] Among them, when the number of nodes of the second service node is zero, that is, when the total number of nodes of the first service node and the second service node is equal to the number of online service nodes, it means that the device status information of all online service nodes has been obtained. At this time, there is no need to respond to the device status acquisition request, saving processing resources.

[0053] The present embodiment is described and illustrated by means of specific examples below.

[0054] In this embodiment, each service node maintains its own device access information; each service node maintains a heartbeat with the central cache or central management service, and the service node goes offline when the heartbeat is lost. Each service node can obtain information about all current online nodes. When a device status acquisition request is sent to any service node, the service node not only obtains the service node's own device status information, but also obtains the device status information of multiple other online service nodes at the same time. Each service node recursively repeats the above process until all online service node data is obtained.

[0055] Figure 3 Schematic diagram of the device status statistics method provided by this specific embodiment. Figure 3 The system includes: a central cache, multiple service nodes and multiple devices; wherein the service node includes a device status statistics module, a node status maintenance module and a device access module, and the node status maintenance modules of multiple service nodes are connected to the central cache. Multiple devices access the service node through the device access module. The device here is set as a camera, and can also be other devices that require status monitoring. When the device status statistics module in service node 1 receives the device status statistics request sent by the management terminal, it obtains the node status data of service node 1 and distributes the request to service node n. Service node 1 has multiple devices such as device 1, device 2...device n; service node n has multiple devices such as device 4, device 5...device n.

[0056] Furthermore, the device accesses a service node through the device access module, and will continue to interact with the node in the future. After the device is accessed, the device status is updated to the device status data maintained by the service node. Each service node maintains its own node status information in the central cache through the node heartbeat. Each service node can obtain the information of all currently online service nodes from the central cache. When a device status statistics request is received, a service node is randomly requested, and the service node obtains its own device status data, and requests to distribute it to other online service nodes to obtain the device status data of other online nodes. Finally, the device status data of all online nodes are summarized and returned. When request distribution is performed, all currently unrequested node information is obtained, and multiple nodes are randomly selected from them for request, and their respective request results are obtained. The central cache here is the central cache area in the aforementioned embodiment; the service node 1 here is the first service node in the aforementioned embodiment, and the service node n is the second service node in the aforementioned embodiment.

[0057] Figure 4 FIG. 1 is a flow chart of a method for counting device status in a distributed mode provided by this specific embodiment. Figure 4 As shown, the statistical method of the device status includes the following steps: S101, when the management terminal requests to obtain device status statistics, it will request to any gateway service node. Specifically, the device status statistics request will carry or generate a globally unique link id. A service node receives the device status statistics request. Specifically, the link id here is the link identifier in the aforementioned embodiment. The device status statistics request is the device status acquisition request in the aforementioned embodiment.

[0058] S102, after receiving the request, each service node will determine whether the link ID of this request has been requested before through the local cache, that is, filter repeated requests. If it is a repeated request, the current request will be terminated directly. If it is the first request to the node, the link ID will be placed in the local cache of the service node, and the cache time is equal to the request timeout time by default.

[0059] S103, the service node obtains the device status data in the node's own cache, specifically, the total number of devices of each manufacturer and model connected to each node, the number of online devices, etc., and distributes the request at the same time.

[0060] S104, perform request distribution. Before distribution, obtain all currently surviving service nodes and the requested node information carried in the device status statistics request from the central cache, and then obtain the surviving nodes that have not been requested, that is, the first node to be requested and the second node to be requested in the aforementioned embodiment. Randomly obtain multiple nodes to be requested, that is, the second service node in the aforementioned embodiment (the node to be requested can be adjusted by configuration). If the number of nodes to be requested is 0, stop distribution; if the number of nodes to be requested is greater than 0, assemble the request data and distribute the request, that is, request the device status data of other service nodes, and obtain the device status data results.

[0061] S105, summarizing and returning the device status statistical information obtained by executing step S103 and the device status statistical information obtained by executing step S104, where the summarizing device status statistical information is the target device status information in the aforementioned embodiment.

[0062] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0063] In this embodiment, a device management device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. The terms "module", "unit", "subunit", etc. used below can implement a combination of software and / or hardware of predetermined functions. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0064] Figure 5 is a structural block diagram of the device management device provided in the embodiment of the present application, such as Figure 5 As shown, the apparatus includes: a service node determination module 10 and a device information acquisition module 20.

[0065] The service node determination module 10 is used to determine the first service node in response to the device status acquisition request initiated by the management terminal; the first service node is an online service node in the central cache area; it is also used to determine the first device status information of the first service node and distribute the device status acquisition request to the second service node; the second service node is determined by the first service node.

[0066] The device information acquisition module 20 is used to acquire the second device status information of the second service node; and return the target device status information including the first device status information and the second device status information to the management terminal.

[0067] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0068] In this embodiment, an electronic device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0069] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0070] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program: S1, in response to a device status acquisition request initiated by a management terminal, determining a first service node; the first service node is an online service node in a central cache area.

[0071] S2, determining first device status information of the first service node, and distributing a device status acquisition request to a second service node; the second service node is determined by the first service node.

[0072] S3, obtaining second device status information of the second service node; and returning target device status information including the first device status information and the second device status information to the management terminal.

[0073] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and will not be repeated in this embodiment.

[0074] In addition, in combination with the device management method provided in the above embodiments, a storage medium may be provided in this embodiment to implement the device management method. The storage medium stores a computer program, and when the computer program is executed by a processor, any device management method in the above embodiments is implemented.

[0075] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.

[0076] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.

[0077] The term "embodiment" in this application refers to a specific feature, structure or characteristic described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.

[0078] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.

Claims

1. A device management method, characterized in that: The method comprises: In response to a device status acquisition request initiated by a management terminal, a first service node is determined; the first service node is an online service node connected to a central cache area; Determine first device status information of the first service node, and distribute the device status acquisition request to a second service node; the second service node is determined by the first service node; Acquire second device status information of a second service node; and return target device status information including the first device status information and the second device status information to the management terminal.

2. The device management method according to claim 1, characterized in that: The central cache area is connected to a plurality of service nodes; The step of determining the first service node in response to the device status acquisition request includes: Synchronizing node states of multiple service nodes to the central cache area; In response to the device status acquisition request, acquiring the online service node connected to the central cache area, According to a preset request strategy, a first service node among the online service nodes is determined.

3. The device management method according to claim 1, characterized in that: The distributing the device status acquisition request to the second service node includes: Determining an online service node other than the first service node as a first to-be-requested node; Determine whether the first node to be requested has responded to the device status acquisition request; According to a preset request strategy, determining an online service node among the first nodes to be requested that has not responded to the device status request as the second service node; Distribute the device status acquisition request to the second service node.

4. The device management method according to claim 3, characterized in that: The determining whether the first node to be requested has responded to the device status acquisition request includes: Obtaining the link identifier carried in the device status acquisition request; The cache data in the node to be requested is obtained, and it is determined according to the cache data whether the first node to be requested has received the link identifier.

5. The device management method according to claim 1, characterized in that: After obtaining the second device status information of the second service node, the method further includes: Determining a second node to be requested, where the second node to be requested includes an online service node other than the first service node and the second service node; According to a preset request strategy, determining a third service node from the second to-be-requested nodes that have not responded to the device status acquisition request; Distribute the device status acquisition request to the third service node.

6. The device management method according to claim 1, characterized in that: The method further comprises: The device status acquisition request carries target device status information; the target device status information includes status information of the online service node that has completed the request.

7. The device management method according to claim 1, characterized in that: The method further comprises: When the number of nodes of the second service node is zero, stop responding to the device status acquisition request.

8. A device management device, characterized in that: The device comprises: a service node determination module and a device information acquisition module; The service node determination module is used to determine a first service node in response to a device status acquisition request initiated by a management terminal; the first service node is an online service node connected to a central cache area; and is also used to determine first device status information of the first service node, and distribute the device status acquisition request to a second service node; the second service node is determined by the first service node; The device information acquisition module is used to acquire second device status information of a second service node; and return target device status information including the first device status information and the second device status information to the management terminal.

9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the device management method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the device management method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Monitoring method of application service, load balancing device and monitoring device

    CN106790723A

  • Information processing method and device

    CN108881407A

  • Server cluster communication method, communication device and computer storage medium

    CN111343237A

  • Access control method and device, electronic equipment and storage medium

    CN115037518A

  • Distributed load balancing system, health check method, and service node

    US20180167453A1

Cited By

  • Device management method and apparatus, electronic apparatus, and storage medium

    WO2026044967A1