Configuration data issuing method and device, computer equipment and storage medium

By selecting active segments in the configuration terminal dispatch queue and issuing configuration update data according to the configuration demand data, the problem of excessive instantaneous pressure on resource components caused by the large number of configuration terminals in big data scenarios is solved, and resource conservation and reconnection protection are achieved without the need to transform the configuration terminal.

CN119520272AActive Publication Date: 2025-02-25CHINA TELECOM CLOUD TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411644664.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2025-02-25
Estimated Expiration
2044-11-18

AI Technical Summary

Technical Problem

In big data scenarios, the large number of configured terminals leads to excessive instantaneous pressure on resource components and is easily washed out. The existing technology requires the modification of the configured terminal to prevent reconnection impact.

Method used

By obtaining the configuration update data and terminal configuration information of the target configuration terminal, the configuration terminal address is added to the configuration dispatch queue, and the active segment is selected based on the configuration demand data, the issuance time interval is obtained to determine the configuration dispatch time, the configuration update data is sent to the configuration terminal of the active segment, and the active segment is updated before the next configuration dispatch time.

Benefits of technology

There is no need to modify the configuration terminal, which avoids excessive instantaneous pressure on resource components, saves a lot of resources, and prevents all configuration terminals from initiateing reconnections at the same time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520272A_ABST
    Figure CN119520272A_ABST
Patent Text Reader

Abstract

The invention relates to a configuration data issuing method and device for configuring the number of terminals, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: acquiring configuration update data and terminal configuration information of at least one target configuration terminal; wherein the terminal configuration information comprises a configuration terminal address and configuration demand data; adding the configuration terminal addresses of all the target configuration terminals into a configuration issuing queue, and selecting a part of sections in the configuration issuing queue as active sections according to the configuration demand data; obtaining an issuing time interval, and determining a configuration issuing moment according to the issuing time interval; and under the condition that the configuration issuing moment is reached, according to the configuration terminal address, issuing configuration updating data to the target configuration terminal in the active section, and before the next configuration issuing moment is reached, updating the active section. By adopting the method, all configuration terminals can be more conveniently prevented from initiating reconnection at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of big data technology, and in particular to a configuration data distribution method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] At present, in the configuration delivery scenario, the time it takes to deliver the configuration file to each configuration terminal is often similar. However, in the big data scenario, the number of configuration terminals is large. When the new configuration requires the configuration terminal to reconnect to the resource component, it is easy to cause too many instantaneous reconnections. The instantaneous pressure on the resource component is too great and it is easy to be overwhelmed.

[0003] To avoid this situation, related technologies add a yield principle to the configuration terminals to prevent all configuration terminals from initiating reconnections at the same time, thus reducing the instantaneous pressure on resource components. However, this solution requires upgrading and transforming the configuration terminals, which are usually deployed on the user side. The number of configuration terminals to be transformed is huge, which consumes a lot of resources. Summary of the invention

[0004] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product for sending configuration data of the number of configuration terminals without modifying the configuration terminals, which can save a lot of resources and prevent all configuration terminals from initiating reconnection at the same time.

[0005] In a first aspect, the present application provides a method for sending configuration data, comprising:

[0006] Acquire configuration update data and terminal configuration information of at least one target configuration terminal; wherein the terminal configuration information includes a configuration terminal address and configuration requirement data;

[0007] Adding the configuration terminal addresses of all the target configuration terminals to a configuration delivery queue, and selecting some sections in the configuration delivery queue as active sections according to the configuration requirement data;

[0008] Obtaining a time interval for sending the configuration, and determining a configuration sending time according to the time interval for sending the configuration;

[0009] When the configuration sending time is reached, the configuration update data is sent to the target configuration terminal in the active section according to the configuration terminal address, and the active section is updated before the next configuration sending time is reached.

[0010] In one embodiment, the configuration requirement data includes delivery probability data; and selecting some sections in the configuration delivery queue as active sections according to the configuration requirement data includes:

[0011] Determining an active segment range according to the delivery probability data and the number of the target configuration terminals in the configuration delivery queue;

[0012] Selecting a continuous segment in the configuration delivery queue as an active segment according to the active segment range;

[0013] Correspondingly, before reaching the next configuration delivery time, updating the active section includes:

[0014] Before the next configuration delivery time is reached, the next segment continuous with the current active segment is selected as the new active segment according to the active segment range.

[0015] In one embodiment, the configuration requirement data further includes a delay time threshold; and before reaching the next configuration delivery time, selecting a next segment continuous with the current active segment as the new active segment according to the active segment range, includes:

[0016] Before the next configuration delivery time is reached, the interval moving distance is calculated according to the delay time threshold and the delivery time interval;

[0017] The starting point of the next segment continuous with the current active segment is determined according to the interval moving distance, and the new active segment is determined according to the active segment range and the starting point.

[0018] In one of the embodiments, determining the active segment range according to the delivery probability data and the number of the target configuration terminals in the configuration delivery queue includes:

[0019] Calculating an initial segment range according to the delivery probability data and the number of the target configuration terminals in the configuration delivery queue;

[0020] Rounding the initial segment range to obtain an integer segment range;

[0021] When the integer segment range is not 0, the integer segment range is used as the active segment range, and when the integer segment range is 0, the active segment range is set to 1.

[0022] In one embodiment, the configuration delivery queue is a ring queue; the method further includes:

[0023] The step of sending the configuration update data to the target configuration terminal in the active section is continuously and cyclically executed according to the order of the configuration terminal addresses in the ring queue.

[0024] In one embodiment, the method further comprises:

[0025] In response to the configuration terminal change instruction, obtaining configuration requirement data of the new target configuration terminal;

[0026] The active section is updated according to the new configuration requirement data.

[0027] In a second aspect, the present application also provides a configuration data sending device, including:

[0028] An information acquisition module, used to acquire configuration update data and terminal configuration information of at least one target configuration terminal; wherein the terminal configuration information includes a configuration terminal address and configuration requirement data;

[0029] A section processing module, used for adding the configuration terminal addresses of all the target configuration terminals to a configuration delivery queue, and selecting some sections in the configuration delivery queue as active sections according to the configuration requirement data;

[0030] A time determination module, used to obtain a time interval for sending configurations, and determine a configuration sending time according to the time interval for sending configurations;

[0031] The configuration sending module is used to send the configuration update data to the target configuration terminal in the active section according to the configuration terminal address when the configuration sending time is reached, and update the active section before the next configuration sending time is reached.

[0032] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0033] Acquire configuration update data and terminal configuration information of at least one target configuration terminal; wherein the terminal configuration information includes a configuration terminal address and configuration requirement data;

[0034] Adding the configuration terminal addresses of all the target configuration terminals to a configuration delivery queue, and selecting some sections in the configuration delivery queue as active sections according to the configuration requirement data;

[0035] Obtaining a time interval for sending the configuration, and determining a configuration sending time according to the time interval for sending the configuration;

[0036] When the configuration sending time is reached, the configuration update data is sent to the target configuration terminal in the active section according to the configuration terminal address, and the active section is updated before the next configuration sending time is reached.

[0037] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0038] Acquire configuration update data and terminal configuration information of at least one target configuration terminal; wherein the terminal configuration information includes a configuration terminal address and configuration requirement data;

[0039] Adding the configuration terminal addresses of all the target configuration terminals to a configuration delivery queue, and selecting some sections in the configuration delivery queue as active sections according to the configuration requirement data;

[0040] Obtaining a time interval for sending the configuration, and determining a configuration sending time according to the time interval for sending the configuration;

[0041] When the configuration sending time is reached, the configuration update data is sent to the target configuration terminal in the active section according to the configuration terminal address, and the active section is updated before the next configuration sending time is reached.

[0042] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0043] Acquire configuration update data and terminal configuration information of at least one target configuration terminal; wherein the terminal configuration information includes a configuration terminal address and configuration requirement data;

[0044] Adding the configuration terminal addresses of all the target configuration terminals to a configuration delivery queue, and selecting some sections in the configuration delivery queue as active sections according to the configuration requirement data;

[0045] Obtaining a time interval for sending the configuration, and determining a configuration sending time according to the time interval for sending the configuration;

[0046] When the configuration sending time is reached, the configuration update data is sent to the target configuration terminal in the active section according to the configuration terminal address, and the active section is updated before the next configuration sending time is reached.

[0047] The configuration data sending method, apparatus, computer equipment, storage medium and computer program product obtain configuration update data and terminal configuration information of at least one target configuration terminal to obtain configuration terminal addresses and configuration requirement data of each target configuration terminal, add configuration terminal addresses of all target configuration terminals to a configuration sending queue, select some sections in the configuration sending queue as active sections according to the configuration requirement data, obtain the sending time interval, determine the configuration sending time according to the sending time interval, use the configuration terminal address in the active section as the address that needs to execute the configuration sending task when the next configuration sending time arrives, send configuration update data to the target configuration terminal in the active section according to the configuration terminal address when the configuration sending time arrives, and update the active section before the next configuration sending time arrives, so that each section address in the configuration sending queue can complete the configuration sending task at different times without modifying the configuration terminal on the user side, which can save a lot of resources and prevent all configuration terminals from initiating reconnection at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0049] FIG1 is an application environment diagram of a configuration data delivery method in one embodiment;

[0050] FIG2 is a schematic diagram of a flow chart of a method for sending configuration data in an embodiment;

[0051] FIG3 is a schematic diagram of an arrangement of a configuration delivery queue in one embodiment;

[0052] FIG4 is a schematic diagram of an active section of a configuration delivery queue in one embodiment;

[0053] FIG5 is a schematic diagram of a change mode of active sections in one embodiment;

[0054] FIG6 is a flow chart of step S204 of a method for sending configuration data in one embodiment;

[0055] FIG7 is a structural block diagram of a device for sending configuration data in one embodiment;

[0056] FIG8 is a diagram showing the internal structure of a computer device in one embodiment;

[0057] FIG. 9 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0059] The configuration data sending method provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The data storage system can be used to store the configuration update data to be sent and the configuration terminal address and configuration requirement data corresponding to each target configuration terminal. Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0060] In an exemplary embodiment, as shown in FIG2 , a configuration data delivery method is provided, which is described by taking the method applied to the server 104 in FIG1 as an example, and includes the following steps S202 to S208 . Among them:

[0061] Step S202: Acquire configuration update data and terminal configuration information of at least one target configuration terminal.

[0062] The terminal configuration information includes the configuration terminal address and configuration requirement data.

[0063] Exemplarily, the server 104 may periodically obtain new configuration data as configuration update data, store the configuration update data in the data storage system, and wait for the configuration to be issued. For the target configuration terminal to be processed currently, the server 104 may receive the configuration terminal address reported by the target configuration terminal, sort and store all the configuration terminal addresses according to certain rules, ensure that the position of the configuration terminal address in the storage is fixed, and simultaneously receive the configuration requirements reported by the target configuration terminal, thereby generating configuration requirement data accordingly according to the configuration requirements, wherein the configuration requirement data may include the maximum delay time for the target configuration terminal to receive the configuration update data, etc.

[0064] Step S204: adding the configuration terminal addresses of all target configuration terminals to a configuration delivery queue, and selecting some sections in the configuration delivery queue as active sections according to the configuration requirement data.

[0065] Exemplarily, as shown in FIG3 , the server 104 may set the configuration delivery queue as a ring queue, and use the configuration terminal addresses of all target configuration terminals as elements in the ring queue, namely, ipn-ip5 in the figure. The server 104 may arrange these elements randomly or in a specific order. Exemplarily, the arrangement order of these elements may be in order of reporting time, or in order of priority represented by the configuration requirement data, etc.

[0066] Next, as shown in Figure 4, the server 104 can select some segments in the configuration delivery queue as active segments according to the configuration requirement data, namely, the ip2 and ip3 parts in the figure. Furthermore, the server 104 can also respond to the configuration terminal change instruction, obtain the configuration requirement data of the new target configuration terminal, and update the active segment according to the new configuration requirement data.

[0067] Step S206, obtaining the sending time interval, and determining the configuration sending time according to the sending time interval.

[0068] Exemplarily, the server 104 may calculate the next configuration delivery time according to a preset delivery time interval and the current time. Furthermore, the server 104 may also dynamically adjust the delivery time interval according to the number of current target configuration terminals.

[0069] Step S208: When the configuration delivery time is reached, the configuration update data is delivered to the target configuration terminal in the active section according to the configuration terminal address, and the active section is updated before the next configuration delivery time is reached.

[0070] Exemplarily, the server 104 can determine the configuration terminal address contained in the active segment when the configuration delivery time is reached, so as to deliver the configuration update data to the target configuration terminal in the active segment. Further, the server 104 can start to reselect the active segment at the start time or completion time of this configuration delivery, and update the active segment before the next configuration delivery time is reached.

[0071] Further, as shown in FIG5 , the server 104 can also continuously and cyclically execute the step of sending configuration update data to the target configuration terminal in the active segment according to the order of the configuration terminal addresses in the circular queue. Further, the server 104 can also calculate the distance of each movement of the active segment according to the configuration requirement data and the sending time interval, for example, in FIG5 , the active segment is moved from the ip2-ip3 segment to the ip4-ip5 segment, and each movement is the same distance, so that the above configuration sending step can be cyclically and orderly executed in the configuration sending queue.

[0072] When the target configuration terminal requests to pull the configuration, the server 104 determines whether the requested address belongs to the active address segment at the current time. If it does, the latest configuration file is returned; if it does not, the latest configuration is not returned. In this way, the configuration terminal initiates a configuration pull request every time interval, and the server 104 always maintains the changing active address segment and determines whether to return a new configuration file based on the requested address. As time goes by, the active address segment will continue to move, and configuration update data will be continuously sent to the active segment address.

[0073] In the above configuration data sending method, by acquiring configuration update data and terminal configuration information of at least one target configuration terminal, the configuration terminal address and configuration requirement data of each target configuration terminal are obtained, the configuration terminal addresses of all target configuration terminals are added to the configuration sending queue, and according to the configuration requirement data, some sections in the configuration sending queue are selected as active sections, the sending time interval is obtained, and the configuration sending time is determined according to the sending time interval, and the configuration terminal address in the active section is used as the address that needs to execute the configuration sending task when the next configuration sending time arrives. When the configuration sending time arrives, the configuration update data is sent to the target configuration terminal in the active section according to the configuration terminal address, and before the next configuration sending time arrives, the active section is updated, so that each section address in the configuration sending queue can complete the configuration sending task at different times without modifying the configuration terminal on the user side, and more conveniently prevents all configuration terminals from initiating reconnection at the same time.

[0074] In an exemplary embodiment, as shown in FIG6 , step S204 includes steps S302 to S304. In which:

[0075] Step S302: determining the active segment range according to the delivery probability data and the number of target configuration terminals in the configuration delivery queue.

[0076] Exemplarily, when a new configuration file appears, the server 104 may give the probability data P of successfully pulling the new configuration, the time interval S for pulling the configuration, and the delay time threshold T for all target configuration terminals to pull the new configuration. Exemplarily, the server 104 may select a range from the circular configuration delivery queue according to the delivery probability data P and the number of target configuration terminals in the configuration delivery queue. It is worth noting that the active area range needs to be rounded and the range cannot be empty. If the range is empty, it means that the probability is 0 and the configuration cannot be delivered. Therefore, the minimum value of the range is 1 unit.

[0077] Exemplarily, the server 104 can calculate the initial segment range based on the delivery probability data and the number of target configuration terminals in the configuration delivery queue, round the initial segment range to obtain an integer segment range, and when the integer segment range is not 0, use the integer segment range as the active segment range; and when the integer segment range is 0, set the active segment range to 1.

[0078] Step S304: select a continuous segment in the configuration delivery queue as the active segment according to the active segment range.

[0079] For example, the server 104 may select an active segment by taking any point on the active segment as the segment starting point, or may select the starting point of the active segment according to priority information represented by the configuration requirement data.

[0080] Correspondingly, in step S208, before the next configuration delivery time is reached, the step of updating the active segment may include:

[0081] Step S306: before the next configuration delivery time is reached, the next segment continuous with the current active segment is selected as a new active segment according to the active segment range.

[0082] The configuration requirement data may also include a delay time threshold.

[0083] For example, the server 104 can calculate the interval moving distance according to the delay time threshold and the sending time interval before the next configuration sending time is reached; determine the starting point of the next segment continuous with the current active segment according to the interval moving distance, and determine the new active segment according to the active segment range and the starting point. The interval moving distance is used to represent the distance between the starting point of the current active segment and the starting point of the next active segment.

[0084] For example, the server 104 can calculate the moving unit m according to the time interval S and the maximum time T, where m=S / T (needs to be rounded and cannot be 0, which means no movement and cannot be guaranteed to be sent to all configured terminals, so the minimum value is 1). At the next time interval, the active address segment moves m units along the ring.

[0085] In the above embodiment, the active segments corresponding to the two previous configuration delivery moments are continuous, which can ensure that all configuration terminals can be sent updated data, and the delay time threshold is set. When the maximum time T is reached, the active state address segment just moves one circle along the ring, and all addresses will experience the active state, ensuring that the new configuration can be sent to all configuration terminals.

[0086] In an exemplary embodiment, there are 100 target configuration terminals, the time interval for pulling configuration is S=1 minute, the maximum time T=20 minutes for all configuration terminals to pull the new configuration, and the probability of pulling is 20%. Server 104 maintains the address information reported by 100 configuration terminals, so there is an IP address ring of 100 units [1,100]. When a new configuration file appears, server 104 selects a range of 20 units from the address ring according to the specified probability of 20%. Server 104 sets the address of the range to active state. Assume that the selected range is (20,40], and the active address segment is (IP20,IP40].

[0087] At this time, 100 configuration terminals initiate a configuration pull request, and server 104 only returns the new configuration to 20 configuration terminals with addresses (IP20, IP40]. These 20 configuration terminals respond to the new configuration and reconnect to the resource component. The remaining 80 configuration terminals do not pull the new configuration and determine that the configuration has not changed. The status quo is maintained and they will not respond to the new configuration or reconnect to the resource component. At the next time interval, server 104 calculates that the moving unit m=1 / 20 and the selected range moves 1 / 20 of the ring, that is, 100*1 / 20=5 units. At this time, the selected range becomes (25, 45], and the active address segment is (IP25, IP45]. At this time, 100 configuration terminals initiate a configuration pull request, and server 104 only returns the new configuration to 20 configuration terminals with addresses (I P25, IP45] issued a new configuration. Among them, the 15 configuration terminals (IP25, IP40] have already pulled the new configuration in the previous round of pull requests, and will not respond to the new configuration if they judge that the configuration has not changed. Only the 5 configuration terminals (IP40, IP45] will respond to the new configuration and reconnect the resource component. The remaining 80 configuration terminals have not pulled the new configuration, and will not respond to the new configuration if they judge that the configuration has not changed. In this way, as time goes by, when the maximum time is 20 minutes, the selection range has moved 20 times, that is, it has moved 5*20=100 units, and the selection range has become (20, 40], which overlaps with the range of the previous step. All addresses have experienced an active state, so there is no situation where a configuration terminal cannot pull the new configuration.

[0088] In another exemplary embodiment, there are only five configuration terminals, the time interval S=1 minute for the server 104 to pull the configuration, the maximum time T=10 minutes for all configuration terminals to pull the new configuration, and the probability of pulling is 1%. The server 104 maintains the address information reported by the five configuration terminals, so there are five units of address rings [1,5]. When a new configuration file appears, the server 104 calculates the range according to the specified probability of 1%, and rounds it to 0, but the range cannot be empty, so it is set to the minimum value 1. Assume that the selected range is (0,1], and the active state address segment is (IP0,IP1]. At this time, the five configuration terminals initiate a configuration pull request, and the server 104 only returns the new configuration to one configuration terminal with the address (IP0,IP1]. The configuration terminal responds to the new configuration and reconnects to the resource component. The remaining four configuration terminals do not pull the new configuration, and it is determined that the configuration has not changed, and the status quo is maintained. They will not respond to the new configuration and will not reconnect to the resource component.

[0089] At the next time interval, according to the calculation, the moving unit m=1 / 10, the selected range moves 1 / 10 of the ring, that is, it moves 5*1 / 10=0.5 units, which is rounded to 1 unit. At this time, the selected range becomes (1,2], and the active IP address segment is (IP1,IP2]. At this time, 5 configuration terminals initiate a configuration pull request, and the server 104 only sends a new configuration to 1 configuration terminal with an address of (IP1,IP2]. The remaining 4 configuration terminals did not pull the new configuration, and judged that the configuration had not changed and would not respond to the new configuration. In this way, as time goes by, the selected range moves 5 times, that is, it moves 5*1=5 units, and the selected range becomes (0,1], which coincides with the range in step 2. All addresses have experienced an active state. Although the time at this time has not reached the maximum time T=10 minutes for all configuration terminals to pull the new configuration, all configuration terminals have pulled the latest configuration, and there is no situation where the configuration terminal never pulls the new configuration.

[0090] In the case of the second embodiment above, due to the small number of configuration terminals, the actual probability of pulling configuration has deviated from the specified probability. In extreme cases, when there is only one configuration terminal, the actual probability of pulling configuration will become 100%. However, in order to prevent the situation where the configuration terminal cannot pull the new configuration, and when the number of configuration terminals is small, responding to the new configuration at the same time will not cause pressure on the resource component, which meets the requirements.

[0091] Therefore, when there are a large number of configuration terminals, the above method can be used to control the probability of issuing new configurations, which can not only prevent all configuration terminals from reconnecting to resource components at the same time, but also avoid the problem of configuration files not taking effect on all configuration terminals. At the same time, the pull logic of the configuration terminal does not need to be changed. When there are a small number of configuration terminals, although the accuracy of the configuration probability is lost, the function of configuration issuance still exists, and the resource components will not be overwhelmed by the issuance of new configurations.

[0092] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0093] Based on the same inventive concept, the embodiment of the present application also provides a configuration data sending device for implementing the configuration data sending method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more configuration data sending device embodiments provided below can refer to the limitations of the configuration data sending method above, and will not be repeated here.

[0094] In an exemplary embodiment, as shown in FIG. 7 , a configuration data delivery device is provided, comprising: an information acquisition module 402 , a segment processing module 404 , a time determination module 406 and a configuration delivery module 408 , wherein:

[0095] The information acquisition module 402 is used to acquire configuration update data and terminal configuration information of at least one target configuration terminal; wherein the terminal configuration information includes a configuration terminal address and configuration requirement data;

[0096] The segment processing module 404 is used to add the configuration terminal addresses of all target configuration terminals to the configuration delivery queue, and select some segments in the configuration delivery queue as active segments according to the configuration requirement data;

[0097] The time determination module 406 is used to obtain the sending time interval and determine the configuration sending time according to the sending time interval;

[0098] The configuration sending module 408 is used to send configuration update data to the target configuration terminal in the active section according to the configuration terminal address when the configuration sending time is reached, and update the active section before the next configuration sending time is reached.

[0099] In one embodiment, the configuration requirement data includes the probability data of sending; the segment processing module 404 includes:

[0100] A range determination unit, configured to determine an active segment range according to the delivery probability data and the number of target configuration terminals in the configuration delivery queue;

[0101] A segment determination unit, configured to select a continuous segment in the configuration delivery queue as an active segment according to the active segment range;

[0102] Correspondingly, the configuration delivery module 408 includes:

[0103] The segment updating unit is used to select a next segment continuous with the current active segment as a new active segment according to the active segment range before the next configuration delivery time is reached.

[0104] In one of the embodiments, the configuration requirement data also includes a delay time threshold; the segment update unit is specifically used to: calculate the interval movement distance according to the delay time threshold and the issuance time interval before the next configuration is issued; determine the starting point of the next segment continuous with the current active segment according to the interval movement distance, and determine the new active segment according to the active segment range and the starting point.

[0105] In one of the embodiments, the range determination unit is specifically used to: calculate an initial segment range based on the delivery probability data and the number of target configuration terminals in the configuration delivery queue; round the initial segment range to obtain an integer segment range; when the integer segment range is not 0, use the integer segment range as an active segment range, and when the integer segment range is 0, set the active segment range to 1.

[0106] In one of the embodiments, the configuration sending queue is a ring queue; the device is also used to: continuously and cyclically execute the step of sending configuration update data to the target configuration terminal in the active section according to the order of the configuration terminal addresses in the ring queue.

[0107] In one embodiment, the device further comprises:

[0108] The data update module is used to obtain the configuration requirement data of the new target configuration terminal in response to the configuration terminal change instruction; and update the active section according to the new configuration requirement data.

[0109] Each module in the above configuration data sending device can be implemented in whole or in part by software, hardware and a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0110] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG8. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store configuration update data to be issued and the configuration terminal address and configuration requirement data corresponding to each target configuration terminal. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a configuration data issuing method is implemented.

[0111] In an exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG9. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a configuration data sending method is implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0112] Those skilled in the art will understand that the structure shown in FIG. 9 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0113] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: obtaining configuration update data and terminal configuration information of at least one target configuration terminal; wherein the terminal configuration information includes a configuration terminal address and configuration requirement data; adding the configuration terminal addresses of all target configuration terminals to a configuration delivery queue, and selecting some segments in the configuration delivery queue as active segments according to the configuration requirement data; obtaining a delivery time interval, and determining a configuration delivery time according to the delivery time interval; when the configuration delivery time arrives, delivering configuration update data to the target configuration terminal in the active segment according to the configuration terminal address, and updating the active segment before the next configuration delivery time arrives.

[0114] In one embodiment, when the processor executes the computer program, the following steps are also implemented: determining the active segment range according to the delivery probability data and the number of target configuration terminals in the configuration delivery queue; selecting a continuous segment in the configuration delivery queue as the active segment according to the active segment range; and before reaching the next configuration delivery time, selecting the next segment continuous with the current active segment as the new active segment according to the active segment range.

[0115] In one embodiment, when the processor executes the computer program, the following steps are also implemented: before the next configuration is sent, the interval movement distance is calculated according to the delay time threshold and the sending time interval; the starting point of the next segment continuous with the current active segment is determined according to the interval movement distance, and the new active segment is determined according to the active segment range and the starting point.

[0116] In one embodiment, when the processor executes the computer program, the following steps are also implemented: according to the sending probability data and the number of target configuration terminals in the configuration sending queue, an initial segment range is calculated; the initial segment range is rounded to obtain an integer segment range; when the integer segment range is not 0, the integer segment range is used as the active segment range, and when the integer segment range is 0, the active segment range is set to 1.

[0117] In one embodiment, when the processor executes the computer program, the following steps are further implemented: according to the order of the configuration terminal addresses in the ring queue, the step of sending configuration update data to the target configuration terminal in the active section is continuously and cyclically executed.

[0118] In one embodiment, when the processor executes the computer program, the following steps are further implemented: in response to the configuration terminal change instruction, obtaining configuration requirement data of a new target configuration terminal; and updating the active section according to the new configuration requirement data.

[0119] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: obtaining configuration update data and terminal configuration information of at least one target configuration terminal; wherein the terminal configuration information includes a configuration terminal address and configuration requirement data; adding the configuration terminal addresses of all target configuration terminals to a configuration delivery queue, and selecting some segments in the configuration delivery queue as active segments according to the configuration requirement data; obtaining a delivery time interval, and determining a configuration delivery time according to the delivery time interval; when the configuration delivery time arrives, delivering configuration update data to the target configuration terminal in the active segment according to the configuration terminal address, and updating the active segment before the next configuration delivery time arrives.

[0120] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining the active segment range based on the delivery probability data and the number of target configuration terminals in the configuration delivery queue; selecting a continuous segment in the configuration delivery queue as the active segment based on the active segment range; and before reaching the next configuration delivery time, selecting the next segment continuous with the current active segment as the new active segment based on the active segment range.

[0121] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: before the next configuration is sent, the interval movement distance is calculated according to the delay time threshold and the sending time interval; the starting point of the next segment continuous with the current active segment is determined according to the interval movement distance, and the new active segment is determined according to the active segment range and the starting point.

[0122] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: based on the delivery probability data and the number of target configuration terminals in the configuration delivery queue, an initial segment range is calculated; the initial segment range is rounded to obtain an integer segment range; when the integer segment range is not 0, the integer segment range is used as the active segment range, and when the integer segment range is 0, the active segment range is set to 1.

[0123] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: according to the order of the configuration terminal addresses in the ring queue, the step of sending configuration update data to the target configuration terminal in the active section is continuously and cyclically executed.

[0124] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: in response to the configuration terminal change instruction, obtaining configuration requirement data of the new target configuration terminal; and updating the active section according to the new configuration requirement data.

[0125] In one embodiment, a computer program product is provided, including a computer program, which implements the following steps when executed by a processor: obtaining configuration update data and terminal configuration information of at least one target configuration terminal; wherein the terminal configuration information includes a configuration terminal address and configuration requirement data; adding the configuration terminal addresses of all target configuration terminals to a configuration delivery queue, and selecting some segments in the configuration delivery queue as active segments according to the configuration requirement data; obtaining a delivery time interval, and determining a configuration delivery time according to the delivery time interval; when the configuration delivery time arrives, delivering configuration update data to the target configuration terminal in the active segment according to the configuration terminal address, and updating the active segment before the next configuration delivery time arrives.

[0126] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining the active segment range based on the delivery probability data and the number of target configuration terminals in the configuration delivery queue; selecting a continuous segment in the configuration delivery queue as the active segment based on the active segment range; and before reaching the next configuration delivery time, selecting the next segment continuous with the current active segment as the new active segment based on the active segment range.

[0127] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: before the next configuration is sent, the interval movement distance is calculated according to the delay time threshold and the sending time interval; the starting point of the next segment continuous with the current active segment is determined according to the interval movement distance, and the new active segment is determined according to the active segment range and the starting point.

[0128] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: based on the delivery probability data and the number of target configuration terminals in the configuration delivery queue, an initial segment range is calculated; the initial segment range is rounded to obtain an integer segment range; when the integer segment range is not 0, the integer segment range is used as the active segment range, and when the integer segment range is 0, the active segment range is set to 1.

[0129] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: according to the order of the configuration terminal addresses in the ring queue, the step of sending configuration update data to the target configuration terminal in the active section is continuously and cyclically executed.

[0130] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: in response to the configuration terminal change instruction, obtaining configuration requirement data of the new target configuration terminal; and updating the active section according to the new configuration requirement data.

[0131] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0132] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0133] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0134] The above-described 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 the present application. 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 protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for sending configuration data, characterized in that: The method comprises: Acquire configuration update data and terminal configuration information of at least one target configuration terminal; wherein the terminal configuration information includes a configuration terminal address and configuration requirement data; Adding the configuration terminal addresses of all the target configuration terminals to a configuration delivery queue, and selecting some sections in the configuration delivery queue as active sections according to the configuration requirement data; Obtaining a time interval for sending the configuration, and determining a configuration sending time according to the time interval for sending the configuration; When the configuration sending time is reached, the configuration update data is sent to the target configuration terminal in the active section according to the configuration terminal address, and the active section is updated before the next configuration sending time is reached.

2. The method according to claim 1, characterized in that The configuration requirement data includes delivery probability data; and selecting some sections in the configuration delivery queue as active sections according to the configuration requirement data includes: Determining an active segment range according to the delivery probability data and the number of the target configuration terminals in the configuration delivery queue; Selecting a continuous segment in the configuration delivery queue as an active segment according to the active segment range; Correspondingly, before reaching the next configuration delivery time, updating the active section includes: Before the next configuration delivery time is reached, the next segment continuous with the current active segment is selected as the new active segment according to the active segment range.

3. The method according to claim 2, characterized in that The configuration requirement data also includes a delay time threshold; before reaching the next configuration delivery time, selecting the next segment continuous with the current active segment as the new active segment according to the active segment range, including: Before the next configuration delivery time is reached, the interval moving distance is calculated according to the delay time threshold and the delivery time interval; The starting point of the next segment continuous with the current active segment is determined according to the interval moving distance, and the new active segment is determined according to the active segment range and the starting point.

4. The method according to claim 2, characterized in that: The determining the active segment range according to the delivery probability data and the number of the target configuration terminals in the configuration delivery queue includes: Calculating an initial segment range according to the delivery probability data and the number of the target configuration terminals in the configuration delivery queue; Rounding the initial segment range to obtain an integer segment range; When the integer segment range is not 0, the integer segment range is used as the active segment range, and when the integer segment range is 0, the active segment range is set to 1.

5. The method according to any one of claims 1 to 4, characterized in that: The configuration delivery queue is a ring queue; the method further includes: The step of sending the configuration update data to the target configuration terminal in the active section is continuously and cyclically executed according to the order of the configuration terminal addresses in the ring queue.

6. The method according to claim 5, characterized in that The method further comprises: In response to the configuration terminal change instruction, obtaining configuration requirement data of the new target configuration terminal; The active section is updated according to the new configuration requirement data.

7. A configuration data sending device, characterized in that: The device comprises: An information acquisition module, used to acquire configuration update data and terminal configuration information of at least one target configuration terminal; wherein the terminal configuration information includes a configuration terminal address and configuration requirement data; A section processing module, used for adding the configuration terminal addresses of all the target configuration terminals to a configuration delivery queue, and selecting some sections in the configuration delivery queue as active sections according to the configuration requirement data; A time determination module, used to obtain a time interval for sending configurations, and determine a configuration sending time according to the time interval for sending configurations; The configuration sending module is used to send the configuration update data to the target configuration terminal in the active section according to the configuration terminal address when the configuration sending time is reached, and update the active section before the next configuration sending time is reached.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. 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 method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Data configuration method and device for application updating, computer equipment and storage medium

    CN113342381A

  • Distributed method for predicting active IPv6 address and related equipment

    CN114297941A

  • Cache queue limit value configuration method and device, storage medium and electronic equipment

    CN118802674A

  • Event-based task processing system and method based on a stateful distributed streaming queue

    US11853815B1

  • Apparatus and method for providing information of terminal for session mobility between terminals

    US20110154211A1