Device coming-online control method and apparatus, and device

By dynamically judging the resource consumption and available resources during the device go-live process, the problem of low resource utilization of DBS devices is solved, and the efficiency of device go-live and system stability are improved.

WO2026009066A1PCT designated stage Publication Date: 2026-01-08CLOUD INTELLIGENCE ASSETS HOLDING (SINGAPORE) PTE LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
PCT/IB2025/056065
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-07-05
Filing Date
2025-06-13
Publication Date
2026-01-08

AI Technical Summary

Technical Problem

The existing Device Negotiation Service (DBS) has low resource utilization when a large number of devices are brought online at the same time, resulting in inefficient device deployment and the risk of incidents.

Method used

By determining the resource consumption required for the target device to go online and the available resources of the DBS device, the system dynamically judges whether the device can go online, and allows or denies the online request, so as to maximize the utilization of resources.

Benefits of technology

It improves device deployment efficiency, supports more devices going online concurrently, and avoids resource idleness and risk events.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure IB2025056065_08012026_PF_FP_ABST
    Figure IB2025056065_08012026_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present disclosure are a device coming-online control method and apparatus, and a device. The method comprises: when a target device requests to come online, a DBS device determining first resource consumption required for a coming-online process of the target device and the current available resource amount of the DBS device; and on the basis of the first resource consumption and the available resource amount, determining whether the target device can come online currently. By means of the solution, on the basis of the current available resource amount of a DBS device, whether a device can come online can be dynamically determined, thereby maximizing the use of resources of the DBS device. Moreover, such method can support more devices to come online concurrently, thereby improving the coming-online efficiency of devices to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The device online control method, device and apparatus of the present disclosure require the priority of Chinese patent application No. 202410906202.6, which was filed with the Chinese Patent Office on July 5, 2024, and has the title of "Device Online Control Method, Device and Apparatus", the entire content of which is incorporated herein by reference. TECHNICAL FIELD The present disclosure relates to the field of computer technology, and particularly relates to a device online control method, device and apparatus. BACKGROUND A device broker service (DBS) device can manage a large number of devices, and when a large number of devices have online needs at the same time, it will generate a large pressure on the DBS device, and in severe cases, it will generate an online risk event. Currently, the DBS device can perform online flow control on the device, specifically, if the number of online devices currently processed by the DBS device exceeds a threshold value, the device online request is rejected to ensure the running performance of the system. However, this method can effectively avoid online risks, but there is a problem of low resource utilization rate of the DBS device. INVENTION The present disclosure provides a device online control method, device and apparatus to solve the problem of low resource utilization rate of the DBS device, and maximize the resource utilization rate of the network controller system. In a first aspect, the present disclosure provides a device online control method applied to a device broker service (DBS) device, the method comprising: in response to receiving an online request of a target device, determining a first resource consumption amount consumed by an online process of the target device, the target device comprising heterogeneous machines in a cluster corresponding to the DBS device; determining a current available resource amount of the DBS device; if the first resource consumption amount is less than or equal to the current available resource amount, allowing the target device to be online; and if the first resource consumption amount is greater than the current available resource amount, rejecting the online request of the target device. In a second aspect, the present disclosure also provides a device online control device applied to the DBS device, the device comprising: a determination module configured to, in response to receiving an online request of a target device, determine a first resource consumption amount consumed by an online process of the target device, the target device comprising heterogeneous machines in a cluster corresponding to the DBS device; a processing module configured to determine a current available resource amount of the DBS device; and, if the first resource consumption amount is less than or equal to the current available resource amount, allow the target device to be online; or, if the first resource consumption amount is greater than the current available resource amount, reject the online request of the target device.In a third aspect, the embodiments of the present disclosure further provide a DBS device, comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executed by the at least one processor, and the instructions are executed by the at least one processor to enable the electronic device to perform the device online control method provided in any one of the first aspect. In a fourth aspect, the embodiments of the present disclosure provide a device online control system, comprising: a DBS device and at least one target device, the target device comprising heterogeneous machines in a cluster corresponding to the DBS device, and the DBS device is configured to control the online of the target device according to the device online control method in any one of the first aspect. In a fifth aspect, the embodiments of the present disclosure further provide a computer-readable storage medium, having stored thereon a computer program, and the computer program is executed by a processor to perform the device online control method provided in any one of the first aspect. In a sixth aspect, the embodiments of the present disclosure further provide a computer program product, comprising a computer program, and the computer program is executed by a processor to implement the device online control method provided in any one of the first aspect. In the device online control method, device, and device provided by the embodiments of the present disclosure, when a target device requests to be online, the first resource consumption required by the target device in the online process is determined, and the available resource amount of the DBS device is determined, and whether the target device can be online currently is determined according to the first resource consumption of the device and the available resource amount. Through the present solution, whether the device can be online is determined dynamically according to the available resource amount of the DBS device, so that the resources of the DBS device are utilized to the maximum extent, and meanwhile, more devices can be supported to be online simultaneously, and the online efficiency of the device can be improved to a certain extent. The accompanying drawings explained herein are used to provide further understanding of the present disclosure, and form a part of the present disclosure. The schematic embodiments of the present disclosure and the explanations thereof are used to explain the present disclosure, and do not constitute an improper limitation on the present disclosure. In the drawings: Fig. 1 is a scene schematic diagram of a device online control method provided by an embodiment of the present disclosure; Fig. 2 is a flow schematic diagram one of a device online control method provided by an embodiment of the present disclosure; Fig. 3 is a flow schematic diagram two of a device online control method provided by an embodiment of the present disclosure; Fig. 4 is a principle schematic diagram of a device online control method provided by an embodiment of the present disclosure; Fig. 5 is a flow schematic diagram three of a device online control method provided by an embodiment of the present disclosure; Fig. 6 is a structure schematic diagram of a device online control apparatus provided by an embodiment of the present disclosure; and Fig. 7 is a structure schematic diagram of a DBS device provided by an embodiment of the present disclosure.To make the purposes, technical solutions and advantages of the present disclosure clearer, the technical solutions of the present disclosure will be described clearly and completely below in combination with specific embodiments of the present disclosure and corresponding drawings. Obviously, the described embodiments are only some of the embodiments of the present disclosure, but not all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present disclosure. First, the meanings of some words appearing in the embodiments of the present disclosure are described.

[0002] 1. The "device" provided in the embodiments of the present disclosure, for example, a target device, an online device, etc., all refer to a carrier object of a specific effective configuration, a device has a universal network agent (UNA), and one device can belong to one or more device tags (DeviceTag).

[0003] 3. DBS: device negotiation service, responsible for managing device connection, receiving northward configuration distribution request, and pushing configuration to southward device, processing corresponding messages of device, and processing operation and maintenance management commands, etc.

[0004] 4. Full online of device: no configuration content on the device, during the device online process, DBS is responsible for obtaining the DeviceTag subscribed by the device from Redis, and distributing all configurations bound by the DeviceTag to the device in a certain order.

[0005] 5、 Device incremental online: there is part of configuration content on the device, and during the device online process, the DBS device is responsible for calculating the configuration difference between the device and Redis, and all the difference configurations are issued to the device in a certain order. The technical scheme provided by the embodiments of the present disclosure will be described in detail in combination with the drawings. Please refer to FIG. 1, which is a scene schematic diagram of a device online control method provided by an embodiment of the present disclosure. As shown in FIG. 1, the scene includes a plurality of devices (device 1, device 2, …, device n) and a DBS device. It should be noted that the type of device and the type of DBS device are not particularly limited in the embodiments of the present disclosure. For example, the device can be a gateway device, such as a virtual gateway (Virtual Private Cloud Gateway, XGW), an Internet gateway (Internet Gateway, IGW), a cross-region gateway (Cross Region Peer Gateway, CGW), a cloud service gateway (Serving Gateway, SGW); or the device can also be a switch device, such as an Apsara Virtual Switch (AVS) and the like; or the device can also be a network element device, such as an Application Load Balancer (ALB) network element, a Network Load Balancer (NLB) network element, and the like.

[0006] The DBS device may be, for example, a terminal device or a server. In the related art, a network controller system is used to manage a large number of devices, and the network controller system is configured with at least one DBS device for managing device connections, receiving device messages, and pushing configurations, operation and maintenance commands to the devices through the DBS device. However, when a large number of devices need to be online at the same time, the DBS device will be under great pressure, and in severe cases, risk events will occur. Specifically, when a device needs to be online, it will send an online request to the DBS device. Correspondingly, after receiving the online request of a device, the DBS device will determine whether to allow the device to be online, and when the device is allowed to be online, the DBS device will push configurations to the device, so that the device can provide services corresponding to the device after being online. If multiple devices request to be online to the DBS device at the same time, the DBS device will be under great processing pressure, and risk events such as some devices failing to be online or configuration push failing will occur. At present, the DBS device mostly uses a global fixed threshold value to control the online flow of devices, thereby avoiding risk events. That is, a fixed threshold value can be defined for the DBS device, and the number of devices concurrently online is limited according to the threshold value. However, the inventors have found that for a single DBS device, when a device requests to be online, if the number of devices currently online exceeds the threshold value, the online request of the device is rejected to ensure the operation performance of the DBS device; if the number of devices currently online does not exceed the threshold value corresponding to the DBS device, the online request of the device is allowed. Although this method can effectively avoid online risks, because different specifications of DBS devices have different abilities to handle device concurrent online, and different types of devices consume different resources when being online, this flow control method will have the problem of low resource utilization of the DBS device. For example, if the number of devices currently online has reached the threshold value, but the resources of the DBS device can still support the resources consumed by some devices when being online, if the devices are rejected to be online at this time, the resources of the DBS device will be idle, and the resource utilization of the DBS device will be reduced. Therefore, the embodiments of the present disclosure provide a device online control method, device and apparatus. When a target device requests to be online, a first resource consumption amount consumed by the target device in an online process is determined, and a current available resource amount of the DBS device is determined, and whether the target device can be online currently is determined according to the first resource consumption amount of the device and the current available resource amount of the DBS device.By the scheme, whether the device can be online can be dynamically judged according to the current available resource amount of the DBS device, so that the resources of the DBS device are maximally utilized, meanwhile, the scheme can support more devices to be concurrently online, and can improve the online efficiency of the device to a certain extent. It should be noted that the above description of the device, the DBS device and the network controller system is only for example and illustration, and does not limit the application scope of the embodiments of the present disclosure, and for those skilled in the art, the device and the network controller system can be variously modified and changed under the guidance of one or more embodiments of the present disclosure. Of course, these modifications and changes are within the scope of the present disclosure. Next, the technical scheme of the present disclosure is described in detail through specific embodiments in combination with the application scenario shown in the above Fig. 1. It should be noted that the following several specific embodiments can be combined with each other, and the same or similar concepts or processes can not be repeated in some embodiments. Referring to Fig. 2, Fig. 2 is a flowchart of a device online control method provided by an embodiment of the present disclosure. As shown in Fig. 2, the device online control method comprises the following steps.

[0007] 5201、 In response to receiving the online request of the target device, a first resource consumption amount consumed by the target device online process is determined.

[0008] 5202、 determine the current available resource amount of the network controller system. The first resource consumption amount can be understood as: the resource amount consumed by the DBS device when processing the online of the target device (or, the first resource consumption amount can also be understood as the actual resource amount consumed when the device is online). The current available resource amount of the DBS device can be understood as: the resource amount remaining in the DBS device that can be used for the online of the device (that is, the actual available resource amount of the DBS device). The representation of the first resource consumption amount and the available resource amount is not particularly limited in the embodiments of the present disclosure. Exemplarily, on the one hand, the first resource consumption amount can be the actual resource amount consumed when the device is online, and correspondingly, the current available resource amount can be the actual available resource amount of the DBS device. Exemplarily, the first resource consumption amount is, for example, the CPU (Central Processing Unit) occupation amount of the DBS device required when the device is online, or the memory occupation amount of the DBS device required when the device is online, etc. Correspondingly, the available resource amount is, for example, the CPU size available in the DBS device, or the memory size available in the DBS device, etc. On the other hand, the first resource consumption amount and the available resource amount can also be represented in the form of points, scores, etc. For example, the points required when device 1 is online is m points, the points required when device 2 is online is x points, and the points available in the DBS device is M points. Other representation methods of the first resource consumption amount and the available resource amount similar to the above are all within the protection scope of the embodiments of the present disclosure, and will not be described here. It needs to be explained that the way of obtaining the current available resource amount of the DBS device is not particularly limited in the embodiments of the present disclosure. For example, on the one hand, a timing task can be set to calculate or measure the current available resource amount of the DBS device in real time according to the timing task. On the other hand, the available resource amount of the DBS device obtained last time can also be updated in real time when the device is online or offline. Exemplarily, if the current online devices are device 1, device 2 and device 3 when the current available resource amount of the DBS device is obtained for the s-th time, if device 3 has been offline, the resource consumption corresponding to device 3 needs to be released, so as to update the current available resource amount of the DBS device.

[0009] 5203、 determine whether the first resource consumption amount is greater than the current available resource amount. It needs to be explained that it can also be determined whether the first resource consumption amount is less than or equal to the current available resource amount.

[0010] 5204、 If the first resource consumption is greater than the current available resource amount, the online request of the target device is rejected.

[0011] 5205、 If the first resource consumption is less than or equal to the current available resource amount, the online of the target device is allowed. It should be noted that if the first resource consumption is greater than the current available resource amount, it indicates that the resource remaining amount of the DBS device is difficult to support the online of the target device, at this time, the online request of the target device is rejected. Correspondingly, if the first resource consumption is less than or equal to the current available resource amount, it indicates that the resource remaining amount of the DBS device can support the online of the target device, at this time, the online request of the target device is allowed. In some optional embodiments, the DBS device is further configured to send an online response to the target device, for indicating that the online of the target device is allowed, or the online of the target device is rejected. In the embodiment of the present disclosure, whether the device can be online can be dynamically determined according to the current available resource amount of the DBS device, so as to maximize the utilization of the resources of the DBS device, at the same time, this kind of mode can support more devices to be online at the same time, and can improve the online efficiency of the device to a certain extent. Referring to FIG. 3, FIG. 3 is a flowchart of a device online control method provided by an embodiment of the present disclosure. As shown in FIG. 3, the device online control method comprises the following steps:

[0012] 5301、 In response to receiving the online request of the target device, the resource consumption factor of the target device is acquired. The resource consumption factor includes the device type and / or the online mode. The device type and the online mode are not particularly limited in the embodiment of the present disclosure. For example, the device type is, for example, XGW device, IGW device, CGW device, AVS device, SGW device, network element device (such as ALB, NLB, Cstar, etc.) and the like. The online mode can include: conventional full online, conventional incremental online, batch reload mode full online and sequence mode incremental online and the like.

[0013] 5302、 According to the resource consumption factor, a first resource consumption amount of the target device is obtained. In some embodiments, the first resource consumption amount corresponding to the resource consumption factor of the target device can be determined according to a preset correspondence between the resource consumption factor and the resource consumption amount, that is, different device types correspond to different resource consumption amounts, and different online modes correspond to different resource consumption amounts. For example, for a target device considering only the "device type" as the "resource consumption factor", the first resource consumption amount of the target device is determined according to the device type of the target device. For example, taking the first resource consumption amount as a point, for an XGW device, the corresponding first resource consumption amount is nine points, for an IGW device, the corresponding resource consumption amount is twelve points, and so on. For a target device considering only the "online mode" as the "resource consumption factor", the first resource consumption amount of the target device is determined according to the online mode of the target device. For example, for a device with a conventional full-amount online mode, the corresponding first resource consumption amount is eight points, and for a device with a conventional incremental online mode, the corresponding first resource consumption amount is six points. It should be noted that for a target device considering both the device type and the online mode as the "resource consumption factor", on the one hand, the first resource consumption amount can be calculated according to the above correspondence. For example, the first resource consumption amount can be the sum of the resource consumption amount corresponding to the device type and the resource consumption amount corresponding to the online mode. For example, for an XGW device with a conventional full-amount online mode, the corresponding first resource consumption amount is (eight + twelve) points. On the other hand, the first resource consumption amount corresponding to the target device can also be determined according to the correspondence between the "device type and online mode" and the resource consumption amount. For example, for an XGW device with a conventional incremental online mode, the corresponding resource consumption amount is six points, and for an IGW device with a conventional incremental online mode, the corresponding resource consumption amount is four points.

[0014] J6,•- In the embodiments of the present disclosure, the preset correspondence between the resource consumption factor and the resource consumption amount is used to obtain the first resource consumption amount without real-time calculation of the resource consumption amount of the target device, which is more efficient and helps to improve the online efficiency of the target device, while reducing the calculation pressure of the DBS device, so that more resources can be decoupled for processing device online, and the response speed of device online is improved. In some other embodiments, the first resource consumption amount of the target device can also be calculated in real time, and step S302 specifically includes steps S3021-S3022:

[0015] S3021, obtaining, according to a resource consumption factor, a total resource configuration amount that needs to be issued by the DBS device to the target device when the target device is online. It should be understood that different types of devices provide different services, so that the configuration amount required by each type of device is different, and the embodiments of the present disclosure do not repeat the same. For devices of different online modes, the total resource configuration amount required is also different. For example, for a device that is online in a regular full amount, the device is not configured with any content, therefore, the DBS device needs to obtain all DeviceTags subscribed by the device from the Redis, and issue all configurations bound by the DeviceTag to the device in a certain order, that is, the total resource configuration amount TConfig is the configuration amount corresponding to all DeviceTags of the device. For a device that is online in a regular incremental amount, the device is configured with part of the content, and in the online process of the device, the DBS device only needs to obtain the configuration difference between the device and the Redis, and issue the configuration of all difference parts to the device, that is, the total resource configuration amount TConfig is the configuration amount of the difference part. For a device that is online in a sequence mode incremental amount, at this time, the device is configured with all the content, and in the online process of the device, the DBS device does not need to configure any content for this type of device, that is, the total resource configuration amount TConfig is 0.

[0016] S3022, obtaining, according to the total resource configuration amount and a unit consumption amount of the DBS device when issuing the preset configuration amount, a first resource consumption amount corresponding to the target device. It should be noted that the size of the preset configuration amount is not limited in the embodiments of the present disclosure. For example, in this step, taking 10,000 as an example, the CPU consumed by the DBS device when issuing 10,000 configuration amounts is the unit CPU consumption amount, the heap memory consumption amount consumed by the DBS device when issuing 10,000 configuration amounts is the unit heap memory consumption amount, and the RedisCPU consumption amount consumed by the DBS device when issuing 10,000 configurations is the unit RedisCPU consumption amount. In some embodiments, the first resource consumption amount (denoted as RC) corresponding to the target device can be obtained according to at least one of the following formulas: RC =TConfig or RC = The first resource consumption RC can also be the sum of any two of the above, or the sum of the above three, that is, RC = r C C + r C M + r C R. Compared with the above method of obtaining the first resource consumption by the preset correspondence between the resource consumption factor and the resource consumption amount, in this embodiment, the accuracy of calculating the first resource consumption required by the target device in real time is higher, so that the online risk of the device is smaller.

[0017] S303, obtain the current available resource amount of the DBS device. It should be noted that in addition to the method of obtaining the current available resource amount of the DBS device in the embodiment shown in FIG. 2, the current available resource amount of the DBS device can also be calculated in real time. Specifically, in the calculation, step S303 specifically includes the following steps:

[0018] S3031, obtain the unit consumption amount of the DBS device when the preset configuration amount is issued. The unit consumption amount includes at least one of the unit CPU consumption amount (denoted as PCC), the unit heap memory consumption amount (denoted as PCM), and the unit Redis CPU consumption amount (denoted as PCR). It should be understood that the method of obtaining the unit consumption amount is similar to the method of obtaining the unit consumption amount in step S302, which will not be described here.

[0019] S3032, obtain the second resource consumption corresponding to the device currently online through the DBS device. The second resource consumption (denoted as CC) is the total amount of resources consumed by the device currently online and processed by the DBS device. For example, the DBS device is processing the online request of device 1 and device 2, at this time, the target device "device 3" requests online to the DBS device, and the DBS device needs to obtain the resource consumption required by device 1 and device 2 to be online The remaining CPU, the remaining heap memory, and the remaining Redis CPU are respectively the current unused CPU size, the current unused heap memory size, and the current unused Redis CPU size of the DBS device. When the resources are represented by the integral, the remaining CPU, the remaining heap memory, and the remaining Redis CPU are respectively the current unused CPU integral value, the current unused memory integral value, and the current unused Redis CPU integral value of the DBS device. In some embodiments, the DBS device is provided with a safety threshold (denoted as MaxThreshold), where the safety threshold is used to indicate the maximum value of the consumable resources of the target system of the DBS device. By setting the safety threshold, it can be prevented that the resources of the DBS device are excessively utilized when the device is online, thereby guaranteeing the running safety of the DBS device. Optionally, in some embodiments, the device online control method provided by the embodiments of the present disclosure further includes: obtaining the safety threshold corresponding to the target system of the DBS device and the current resource utilization. According to the safety threshold and the resource utilization, an attenuation factor is obtained, and the attenuation factor includes at least one of a CPU attenuation factor, a heap memory attenuation factor, and a memory database attenuation factor. Specifically, the CPU attenuation factor (CPU-Decay, CD) is obtained by the following formula: (1 - current CPU utilization) * (1 - MaxThreshold); the heap memory attenuation factor (Memeory-Decay, MD) is obtained by the following formula: MD = (1 - current CPU utilization) * (1 - MaxThreshold); and the memory database attenuation factor (Redis-Decay, RD) is obtained by the following formula: RD = (1 - current Redis CPU utilization) * (1 - MaxThreshold). In the embodiment, the step S3033 is specifically: according to the attenuation factor, the unit consumption, and the second resource consumption, the current available resource of the DBS device is obtained. Specifically, the current available resource amount (denoted as TC) of the DBS device can be obtained according to the following formula:

[0020] TC = CD X remaining CPU - CC, or TC = MD X remaining heap memory - CC, or TC = RD X PCC remaining RedisCPU

[0021] - CL,

[0022] PCR or, the current available resource amount TC, can also be the difference between the sum of any two of the above resources and the second resource consumption amount, for example, TC = CD X remaining CPU + MD remaining heap memory _ CC;

[0023] PCC PCM or, the first resource consumption amount can also be the difference between the sum of the above three resources and the second resource consumption amount, that is, TC = CD X remaining CPU + MD X remaining heap memory + RD X remaining Rediscpu C C o

[0024] PCC PCM PCR It should be noted that by providing the above different calculation methods, the differences in the concurrent online processing capabilities of different DBS devices and the differences in the resources consumed by different devices using different online modes are fully considered, so that the present scheme can be flexibly applied to various types of DBS devices and target devices.

[0025] 5304、 Determine whether the first resource consumption amount is greater than the current available resource amount.

[0026] 5305、 If the first resource consumption amount is greater than the current available resource amount, reject the online request of the target device.

[0027] 5306、 If the first resource consumption amount is less than or equal to the current available resource amount, allow the target device to be online. It should be noted that steps S30rS306 are similar to steps S203~S205 in the embodiment shown in FIG. 2, and will not be described here. In one specific example, taking the resource amount and consumption amount as integral form as an example, referring to FIG. 4, FIG. 4 is a principle schematic diagram of a device online control method provided by an embodiment of the present disclosure. As shown in FIG. 4: comprising the following steps:

[0028] ① The DBS device regularly obtains the load capacity of the DBS device, that is, the current remaining CPU, the remaining heap memory and the remaining Redis CPU in the above embodiment;

[0029] ② Obtain the current total consumption integral CC of the DBS device (that is, the second resource consumption amount in the above embodiment) ;

[0030] ③ Based on the load capacity and the current total consumption integral CC, calculate the integral pool size TC (that is, the current available resource amount in the above embodiment) ;

[0031] IV. When the device sends an online request to the DBS device, the DBS device locks the device to ensure the uniqueness of the device online, that is, to ensure that the device is currently online only through the DBS device;

[0032] V. Determine the device type of the device;

[0033] VI. Determine the online type of the device; VII. According to the device type and the online type, determine the integral RC consumed by the device online (i.e., the first resource consumption in the above embodiment);

[0034] VIII. According to the current integral pool size of the DBS device and the integral RC consumed by the device online, determine whether to allow the device to online.

[0035] IX. When ROTC, reject the online request of the device;

[0036] X. When RCWTC, allow the online request of the device. Further, after the judgment is completed, the lock of the device needs to be released, and an online response is sent to the device. It should be noted that the way of obtaining each item of data in this embodiment is similar to the foregoing embodiment, which will not be repeated here. Referring to FIG. 5, FIG. 5 is a flowchart of a device online control method provided by an embodiment of the present disclosure. As shown in FIG. 5, the device online control method includes the following steps:

[0037] 5501. In response to receiving the online request of the target device, obtain the first resource consumption required by the target device online.

[0038] 5502. Determine the current available resource amount of the DBS device.

[0039] 5503. Judge whether the first resource consumption is greater than the current available resource amount.

[0040] 5504. If the first resource consumption is greater than the current available resource amount, reject the online request of the target device.

[0041] 5505、 If the first resource consumption is less than or equal to the current available resource amount, the target device is allowed to be online. It should be noted that the specific implementation of steps S501 and S502 can refer to the embodiments shown in FIG. 2 and FIG. 3, which will not be described here. In some optional embodiments, after the target device is allowed to be online, the current available resource amount of the target device DBS device and / or the second resource consumption can also be obtained according to the first resource consumption. For example, if the devices currently online through the DBS device are device 1 and device 2, before allowing the target device "device 3" to be online, the second resource consumption CC is the total amount of resources consumed by device 1 and device 2, and the current available resource amount TC of the DBS device is the difference between "the total amount of resources currently not used by the DBS device" and "the total amount of resources consumed by device 1 and device 2". When device 3 is allowed to be online, the second resource consumption CC is the total amount of resources consumed by device 1, device 2 and device 3, and the current available resource amount TC of the DBS device is the difference between "the total amount of resources currently not used by the DBS device" and "the total amount of resources consumed by device 1, device 2 and device 3". In this embodiment, device 1 and device 2 can also be understood as devices allowed to be online by the DBS device. In the embodiment of the present disclosure, since other devices can also request to be online during the process of processing the online of the target device, when it is determined to allow the target device to be online, if the current available resource of the DBS device cannot be updated in real time, when other devices are online, the situation of judgment error can occur, and further, the online risk event can be caused. For example, if device 3 is allowed to be online, but the current available resource of the DBS device is not updated in time, at this time, device 4 requests to be online, according to the current available resource which is not updated, it is determined that device 4 can also be online. However, in fact, after device 3 is online, it will occupy a part of resources, and further, device 4 cannot be normally online, or device 4 occupies a part of resources after being online in advance, and further, device 3 cannot be normally online. In summary, by the method provided by the embodiment of the present disclosure, the current available resource amount and / or the second resource consumption of the network controller system are updated in real time, and the occurrence of the online risk event of the device can be prevented.

[0042] 5506、 The configuration corresponding to the target device is pushed to the target device, triggering the target device to go online. S507, Obtain the online result of the target device. The online result is used to indicate that the target device is successfully online or fails to go online. In some embodiments, the current available resource amount and / or the second resource consumption amount of the DBS device can also be obtained according to the online result. Based on the above example, after the device 3 is successfully online or fails to go online, the device 3 does not need to use the resources of the DBS device to perform the online operation. Therefore, whether the device 3 is successfully online or fails to go online (assuming that the device 1 and the device 2 have not gone online), the second resource consumption amount CC is updated to the total resource consumption amount of the device 1 and the device 2, and the current available resource amount TC of the DBS device is updated to the difference between the total amount of resources currently not used by the DBS device and the total amount of resources consumed by the device 1 and the device 2. Similar to the above step S506, by using the method provided in the embodiments of the present disclosure, the current available resource amount and / or the second resource consumption amount of the DBS device are updated in real time, which can prevent the occurrence of the online risk event of the device. Referring to FIG. 6, FIG. 6 is a structural schematic diagram of a device online control apparatus provided in an embodiment of the present disclosure. It should be noted that the device online control apparatus provided in the embodiments of the present disclosure is applied to a DBS device for device negotiation service. As shown in FIG. 6, the device online control apparatus 600 includes: a determination module 601, configured to determine, in response to receiving an online request of a target device, a first resource consumption amount consumed by the target device in a target device online process, the target device including heterogeneous machines in a cluster corresponding to the DBS device; a processing module 602, configured to determine a current available resource amount of the DBS device; and allow the target device to go online when the first resource consumption amount is less than or equal to the current available resource amount, or reject the online request of the target device when the first resource consumption amount is greater than the current available resource amount. In some optional embodiments, the determination module 601 is specifically configured to: obtain a resource consumption factor of the target device, the resource consumption factor including a device type and / or an online manner; and obtain the first resource consumption amount of the target device according to the resource consumption factor.In some optional embodiments, the processing module 602 is specifically configured to: obtain, according to a resource consumption factor, a total amount of resource configuration that needs to be pushed by the DBS device to the target device when the target device is online, different resource consumption factors corresponding to different total amounts of resource configuration; and obtain a first resource consumption amount corresponding to the target device according to the total amount of resource configuration and a unit consumption amount of the DBS device when the preset configuration amount of configuration is pushed. The unit consumption amount includes at least one of a unit central processing unit (CPU) consumption amount, a unit heap memory consumption amount, and a unit in-memory database CPU consumption amount. In some optional embodiments, the processing module 602 is specifically configured to: obtain the unit consumption amount of the DBS device when the preset configuration amount of configuration is pushed; obtain a second resource consumption amount corresponding to a device that is currently online through the DBS device; and obtain a current available resource amount of the DBS device according to the unit consumption amount and the second resource consumption amount. In some optional embodiments, the determination module 601 is further configured to: obtain a security threshold corresponding to the DBS device and a current resource usage rate, the security threshold being used to indicate a maximum value of consumable resources of the DBS device; obtain a decay factor according to the security threshold and the resource usage rate, the decay factor including at least one of a CPU decay factor, a heap memory decay factor, and an in-memory database decay factor; and obtain the current available resource amount of the DBS device according to the unit consumption amount and the second resource consumption amount, including: obtaining the current available resource amount of the DBS device according to the decay factor, the unit consumption amount, and the second resource consumption amount. In some optional embodiments, the processing module 602 is further configured to: in response to allowing the target device to be online, obtain the current available resource amount of the DBS device for the target device according to the first resource consumption amount. In some optional embodiments, the processing module 602 is further configured to: in response to allowing the target device to be online, push, to the target device, configuration corresponding to the target device, and trigger the target device to be online; and the determination module 601 is further configured to: obtain an online result of the target device, the online result being used to indicate that the target device is successfully online or fails to be online; and obtain the current available resource amount of the DBS device according to the online result. It should be noted that the device online control apparatus 600 provided in the embodiments of the present disclosure is used to execute the steps of the device online control method in the corresponding method embodiments, and has similar implementation principles and technical effects, which will not be described here again. Referring to FIG. 7, FIG. 7 is a structural schematic diagram of a DBS device according to an embodiment of the present disclosure.As shown in FIG. 7, the DBS device 700 includes at least one processor 701 (only one processor is shown in FIG. 7); and a memory 702 connected with the at least one processor in communication, wherein the memory 702 stores instructions executable by the at least one processor 701, and the instructions are executed by the at least one processor 701 to enable the DBS device 700 to perform the technical solutions in any of the preceding method embodiments. Optionally, the memory 702 can be independent or integrated with the processor 701. The memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic storage, a flash memory, a magnetic disk or an optical disk. The processor 701 is coupled with the memory 702 and used to execute the computer program in the memory 702 to perform the technical solutions of any of the device online control method embodiments in the preceding method embodiments. It should be understood that the processor 701 can be a processing unit (English: Central Processing Unit, CPU for short), and can also be other general-purpose processors, digital signal processors (English: Digital Signal Processor, DSP for short), application specific integrated circuits (English: Application Specific Integrated Circuit, ASIC for short), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the application can be directly embodied as execution completed by a hardware processor, or executed by a combination of hardware and software modules in the processor. Optionally, when the memory 702 is a device independent of the processor 701, the DBS device 700 further includes a bus 703 for connecting the memory 702 and the processor 701. Wherein, the bus 703 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc.The bus can be divided into address bus, data bus, control bus, etc. For the convenience of representation, the bus in the drawings of the present disclosure does not limit only one bus or one type of bus. It should be noted that only part of the components are schematically shown in FIG. 7, which does not mean that the DBS device 700 only includes the components shown in FIG. 7. In some embodiments, the DBS device 700 also includes a firewall, a load balancer, a communication component, a power supply component, and other components. Optionally, the DBS device 700 can be a mobile terminal, a server, and the like. The above-mentioned communication component is configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G / LTE, 5G, and the like mobile communication network, or a combination thereof. In one embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In one embodiment, the communication component also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies. It should be noted that the DBS device 700 provided by the embodiments of the present disclosure can perform the technical solutions of any one of the foregoing device online control method embodiments, and the implementation principles and technical effects are similar, which will not be repeated here. Those skilled in the art should understand that the embodiments of the present disclosure can be provided as a method, a system, or a computer program product. Therefore, the present disclosure can be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure can be in the form of a computer program product implemented on one or more computer usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer usable program code. Accordingly, the embodiments of the present disclosure also provide a device online control system, including: a DBS device and at least one target device, the target device including heterogeneous machines within a cluster corresponding to the DBS device, the DBS device being configured to implement any one of the foregoing device online control methods to control the online of the target device. It should be noted that the architecture diagram of the online control system provided by the embodiments of the present disclosure is described with reference to FIG. 1, which will not be repeated here. Among them, the way the DBS performs the online control method to control the online of the target device is described with reference to the foregoing method embodiments, which will not be repeated here.Accordingly, the embodiments of the present disclosure further provide a computer-readable storage medium, which stores computer-executable instructions. When a processor executes the computer-executable instructions, the technical solutions of any of the preceding device online control method embodiments are implemented. In an example, the storage medium is coupled to the processor, so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic device. Accordingly, the embodiments of the present disclosure provide a computer program product, which includes a computer program. When the computer program is executed by a processor, the technical solutions of any of the preceding device online control method embodiments are implemented. Accordingly, the embodiments of the present disclosure further provide a chip, which includes: a processing module and a communication interface. The processing module can execute the technical solutions of any of the preceding device online control method embodiments. Further, the chip further includes a storage module (for example, a memory). The storage module is used to store instructions. The processing module is used to execute the instructions stored in the storage module. The execution of the instructions stored in the storage module causes the processing module to execute the technical solutions in the preceding method embodiments. Those skilled in the art can appreciate 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 computer software and electronic hardware. Whether the functions are implemented in hardware or software depends on the specific application and design constraints of the technical solutions. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present disclosure. If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. For such understanding, the technical solutions of the present disclosure or the part of the technical solutions that make essential contributions can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the embodiments of the present disclosure.The storage medium described above includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various storage media that can store program codes. It should be noted that the terms "comprising", "including", or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article, or device. Without more limitations, the element limited by the statement "including a ……" does not exclude the presence of another same element in the process, method, article, or device including the element. It should be noted that some of the processes described in the above embodiments and drawings include a plurality of operations appearing in a specific order, but it should be clearly understood that these operations can be executed or performed in parallel without the order appearing in this text. The serial numbers of the operations, such as S20K S202, are only used to distinguish different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes can include more or fewer operations, and the operations can be executed in sequence or in parallel. It should be noted that the "first", "second", and the like in this text are used to distinguish different messages, devices, modules, etc., and do not represent the order of precedence, nor do they limit the "first" and "second" to be different types.

Claims

CLAIM 1. An on-device line control method, wherein, The method applied to a device negotiation service DBS device, the method comprises: in response to receiving an online request of a target device, determining a first resource consumption required by an online process of the target device, the target device comprising heterogeneous machines in a cluster corresponding to the DBS device; determining a current available resource amount of the DBS device; if the first resource consumption is less than or equal to the current available resource amount, allowing the target device to be online; if the first resource consumption is greater than the current available resource amount, rejecting the online request of the target device.

2. The device on-line control method according to claim 1, wherein The determination of the first resource consumption required by the online process of the target device comprises: obtaining a resource consumption factor of the target device, the resource consumption factor comprising a device type and / or an online mode; and obtaining the first resource consumption of the target device according to the resource consumption factor.

3. The on-device provisioning method of claim 2, wherein, The obtaining of the first resource consumption of the target device according to the resource consumption factor comprises: obtaining a total resource configuration amount required by the DBS device to issue to the target device when the target device is online according to the resource consumption factor, different resource consumption factors corresponding to different total resource configuration amounts; and obtaining the first resource consumption corresponding to the target device according to the total resource configuration amount and a unit consumption amount of the DBS device when issuing a preset configuration amount of configuration, wherein the unit consumption amount comprises at least one of a unit central processing unit (CPU) consumption amount, a unit heap memory consumption amount and a unit memory database CPU consumption amount.

4. The on-device provisioning method according to any one of claims 1 to 3, wherein, The determination of the current available resource amount of the DBS device comprises: obtaining a unit consumption amount of the DBS device when issuing a preset configuration amount of configuration; obtaining a second resource consumption amount corresponding to devices online through the DBS device; and obtaining the current available resource amount of the DBS device according to the unit consumption amount and the second resource consumption amount.

5. The device on-line control method according to claim 4, wherein Further comprising: obtaining a security threshold corresponding to the DBS device and a current resource usage rate, the security threshold being used to indicate a maximum value of consumable resources of the DBS device; obtaining a decay factor according to the security threshold and the resource usage rate, the decay factor comprising at least one of a CPU decay factor, a heap memory decay factor and a memory database decay factor; The obtaining of the current available resource amount of the DBS device according to the unit consumption amount and the second resource consumption amount comprises: obtaining the current available resource amount of the DBS device according to the decay factor, the unit consumption amount and the second resource consumption amount.

6. The device on-line control method according to claim 4 or 5, wherein, Further comprising: in response to allowing the target device to be online, obtaining the current available resource amount and / or a current second resource consumption amount of the DBS device according to the first resource consumption.

7. The on-device provisioning method according to any one of claims 1 to 6, wherein, The method further comprises: in response to allowing the target device to go online, issuing the configuration corresponding to the target device to the target device, and triggering the target device to go online; obtaining an online result of the target device, the online result being used to indicate whether the target device goes online successfully or fails to go online; and obtaining a current available resource amount of the DBS device according to the online result.

8. An apparatus for controlling the on-line of a device, wherein, The method is applied to a DBS device, and the DBS device comprises: a determination module, configured to determine a first resource consumption amount consumed by a target device in a target device online process in response to receiving an online request of the target device, the target device comprising heterogeneous machines in a cluster corresponding to the DBS device; a processing module, configured to determine a current available resource amount of the DBS device; and when the first resource consumption amount is less than or equal to the current available resource amount, allowing the target device to go online; or when the first resource consumption amount is greater than the current available resource amount, rejecting the online request of the target device.

9. A DBS apparatus, wherein, The method comprises: at least one processor; and a memory connected with the at least one processor; wherein the memory stores instructions executed by the at least one processor, the instructions are executed by the at least one processor to enable the DBS device to perform the method in any one of claims 1 to 7.

10. An on-device presence control system, wherein, The method comprises: a DBS device and at least one target device, the target device comprising heterogeneous machines in a cluster corresponding to the DBS device, and the DBS device being configured to control online of the target device according to the device online control method in any one of claims 1 to 7.

11. A computer readable storage medium, wherein, The computer readable storage medium stores computer executable instructions, when a processor executes the computer executable instructions, a device online control method as claimed in any one of claims 1 to 7 is implemented.

12. A computer program product, comprising a computer program, the computer program being executed by a processor to implement the device online control method in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Service adaptive access method and device, storage medium and electronic device

    CN110855741A

  • Algorithm deploying and scheduling method and algorithm deploying and scheduling device

    CN114168331A