CN117395453A - Dynamic control method, device, equipment and storage medium for issuing program data - Google Patents

Dynamic control method, device, equipment and storage medium for issuing program data Download PDF

Info

Publication number
CN117395453A
CN117395453A CN202311322182.XA CN202311322182A CN117395453A CN 117395453 A CN117395453 A CN 117395453A CN 202311322182 A CN202311322182 A CN 202311322182A CN 117395453 A CN117395453 A CN 117395453A
Authority
CN
China
Prior art keywords
queue
equipment
release
devices
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311322182.XA
Other languages
Chinese (zh)
Inventor
周和伟
韩丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Novastar Electronic Technology Co Ltd
Original Assignee
Xian Novastar Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN202311322182.XA priority Critical patent/CN117395453A/en
Publication of CN117395453A publication Critical patent/CN117395453A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/232Content retrieval operation locally within server, e.g. reading video streams from disk arrays
    • H04N21/2326Scheduling disk or memory reading operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a dynamic control method, a device, equipment and a storage medium for issuing program data, wherein the method comprises the following steps: acquiring current system running condition data; determining a current equipment storage quantity threshold value of a release queue according to system running condition data; judging whether the number of the first type of devices stored in the release queue reaches a current device storage number threshold; if the number of the first type of devices stored in the release queue does not reach the current device storage number threshold, determining target devices in a plurality of second type of devices waiting for the queue to be cached, adding the target devices into the release queue, and converting the target devices into the first type of devices, so that the number of the first type of devices stored in the release queue is equal to the current device storage number threshold of the release queue. Based on the method, system resources can be fully utilized, so that release efficiency is improved, and the effect of optimal release efficiency can be achieved in various different application scenes.

Description

Dynamic control method, device, equipment and storage medium for issuing program data
Technical Field
The present invention relates to the field of display technologies, and in particular, to a method, an apparatus, a device, and a storage medium for dynamically controlling distribution of program data.
Background
With the development of internet technology, new media services are rapidly developed. The new media refers to media forms appearing under the new technical support system, such as digital magazines, digital newspapers, digital radio, mobile phone short messages, mobile televisions, networks, desktop windows, digital televisions, digital movies, touch media, and the like. The release of new media mainly depends on digital technology and network technology, and provides information and entertainment services for users through channels such as the Internet, broadband local area network, wireless communication network, satellite and other terminals such as computers, mobile phones, digital televisions and the like. Currently, in the technical fields of LED display, liquid crystal display and the like, a data distribution system for distributing data such as program files, media materials and the like is used for distributing data in batches by setting a distribution queue with a fixed size. However, since the size of the issue queue is fixed, the application scenario is limited, the equipment system with low configuration is easy to get stuck and issue errors, the equipment system with high configuration cannot fully utilize resources, and the data processing efficiency is low.
Disclosure of Invention
In view of this, the embodiments of the present application provide a dynamic control method, apparatus, device, and storage medium for publishing program data, which can solve the problem that when a system publishes multiple devices in batches, the system resources cannot be fully utilized, so that the device utilization rate is low, and improve the system publishing rate.
A first aspect of an embodiment of the present application provides a dynamic control method for publishing program class data, including: acquiring current system running condition data; determining a current equipment storage quantity threshold value of a release queue according to the system running condition data; judging whether the number of the first type of devices stored in the release queue reaches the threshold value of the storage number of the current device, wherein the first type of devices are devices which are releasing program data; if the number of the first type of devices stored in the release queue does not reach the current device storage number threshold, determining target devices in a plurality of second type of devices cached in the waiting queue, adding the target devices into the release queue, and converting the target devices into the first type of devices so that the number of the first type of devices stored in the release queue is equal to the current device storage number threshold of the release queue, wherein the second type of devices are devices in a state of waiting to execute program data release operation.
In one possible implementation manner, the system operation condition data includes a resource occupancy rate and a network rate, and the step of determining a current device storage quantity threshold value of the issue queue according to the system operation condition data includes: judging whether the first type of equipment in the release queue is in a preset performance state or not according to the resource occupancy rate and the network rate; and if the first type of equipment is not in the preset performance state, adjusting the original equipment storage quantity threshold value of the release queue to determine the current equipment storage quantity threshold value of the release queue.
In one possible implementation manner, the step of determining, according to the resource occupancy rate and the network rate, whether the first class of devices in the issue queue are in a preset performance state includes: acquiring a resource occupancy rate threshold range and a network rate threshold range of a system; judging whether the resource occupancy rate falls within the resource occupancy rate threshold range or not, and judging whether the network rate falls within the network rate threshold range or not; and if the resource occupancy rate does not fall into the resource occupancy rate threshold range and/or the network rate does not fall into the network rate threshold range, determining that the first-class equipment in the release queue is not in a preset performance state.
In one possible implementation manner, the step of adjusting the original device storage number threshold of the issue queue to determine the current device storage number threshold of the issue queue if the first device is not in the preset performance state includes: if the resource occupancy rate is smaller than the lower limit value of the resource occupancy rate threshold range and/or the network rate is larger than the upper limit value of the network rate threshold range, increasing the original equipment storage quantity threshold of the release queue according to the resource occupancy rate and the network rate to determine the current equipment storage quantity threshold of the release queue, so that the resource occupancy rate falls into the resource occupancy rate threshold range and the network rate falls into the network rate threshold range; and if the resource occupancy rate is greater than the upper limit value of the resource occupancy rate threshold range and/or the network rate is less than the lower limit value of the network rate threshold range, reducing the original equipment storage quantity threshold of the release queue according to the resource occupancy rate and the network rate so as to determine the current equipment storage quantity threshold of the release queue, so that the resource occupancy rate falls into the resource occupancy rate threshold range and the network rate falls into the network rate threshold range.
In one possible implementation manner, the step of determining whether the number of the first type of devices stored in the issue queue reaches the current device storage number threshold of the issue queue includes: judging whether the data release operation of any device in the release queue is completed or not, if so, deleting any device from the release queue, and judging that the number of the first type devices stored in the release queue does not reach the current device storage number threshold of the release queue.
In one possible implementation manner, the step of determining whether the number of the first type of devices stored in the issue queue reaches the current device storage number threshold of the issue queue includes: monitoring whether the current equipment storage quantity threshold value of the release queue changes or not, if so, judging whether the current equipment storage quantity threshold value of the release queue is larger than the equipment storage quantity threshold value before changing or not; if the current equipment storage quantity threshold value of the release queue is larger than the equipment storage quantity threshold value before the change, judging that the quantity of the first type of equipment stored in the release queue does not reach the current equipment storage quantity threshold value of the release queue.
In one possible implementation manner, after the step of determining whether the current device storage number threshold of the issue queue is greater than the device storage number threshold before the change, the method further includes: if the current equipment storage quantity threshold value of the release queue is smaller than the equipment storage quantity threshold value before the change, calculating a quantity difference value between the equipment storage quantity threshold value before the change of the release queue and the current equipment storage quantity threshold value; and determining target equipment in a plurality of first equipment stored in the release queue according to the quantity difference value, returning the target equipment to the waiting queue, and converting the target equipment into second equipment so that the quantity of the first equipment stored in the release queue is equal to the current equipment storage quantity threshold value of the release queue.
A second aspect of the embodiments of the present application provides a dynamic control device for publishing program class data, including: the acquisition module is used for acquiring current system running condition data; the determining module is used for determining the current equipment storage quantity threshold value of the release queue according to the system running condition data; the judging module is used for judging whether the number of the first type of equipment stored in the release queue reaches the current equipment storage number threshold value of the release queue, wherein the first type of equipment is equipment which is executing program data release operation; and the adding module is used for tracking and determining target equipment in a plurality of second equipment cached in the waiting queue if the number of the first equipment stored in the release queue does not reach the current equipment storage number threshold, adding the target equipment into the release queue and converting the target equipment into the first equipment so that the number of the first equipment stored in the release queue is equal to the current equipment storage number threshold of the release queue, wherein the second equipment is equipment in a state of waiting to execute program data release operation.
A third aspect of the embodiments of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the electronic device, where the processor implements the steps of the dynamic control method for publishing program class data provided in the first aspect when the computer program is executed.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the dynamic control method for publishing program class data provided in the first aspect.
A fifth aspect of the embodiments of the present application provides a computer program product which, when run on an electronic device, causes the electronic device to perform the steps of the method for dynamically controlling distribution of program class data provided in the first aspect.
The dynamic control method, the device, the electronic equipment and the storage medium for issuing the program data have the following beneficial effects:
the method comprises the steps of obtaining current system running state data; determining a current equipment storage quantity threshold value of a release queue according to system running condition data; judging whether the number of the first type of devices stored in the release queue reaches a current device storage number threshold; if the number of the first type of devices stored in the release queue does not reach the current device storage number threshold, determining target devices in a plurality of second type of devices waiting for the queue to be cached, adding the target devices into the release queue, and converting the target devices into the first type of devices, so that the number of the first type of devices stored in the release queue is equal to the current device storage number threshold of the release queue. Based on the method, the current equipment storage quantity threshold value of the release queue can be dynamically adjusted according to the running condition of the system, so that the system resources can be fully utilized, the release state of the whole system is always in the best state, the release efficiency is improved, the effect of the best release efficiency can be achieved in various different application scenes, and the problem that the equipment utilization rate is low due to the fact that the system resources cannot be fully utilized when the system releases multiple pieces of equipment in batches is solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required for the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an implementation of a dynamic control method for publishing program class data according to an embodiment of the present application;
fig. 2 is a flowchart of one implementation of adjusting a current device storage number threshold of a release queue in the dynamic control method for releasing program data according to the embodiment of the present application;
fig. 3 is a flowchart of one implementation of determining whether a first type of device in a release queue is in a preset performance state in the dynamic control method for releasing program data according to the embodiment of the present application;
fig. 4 is a flowchart of one implementation of determining whether the number of first-class devices stored in a release queue reaches a current device storage number threshold of the release queue in the dynamic control method for release program data according to the embodiment of the present application;
Fig. 5 is a flowchart of an implementation of implementing dynamic control in the method for dynamically controlling publishing program class data according to the embodiment of the present application;
fig. 6 is a basic structure block diagram of a dynamic control device for distributing program class data according to an embodiment of the present application;
fig. 7 is a basic structural block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise. "plurality" means "two or more".
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The dynamic control method for issuing program data provided by the embodiment of the invention is intended to be applied to a program data issuing system, so that the system dynamically adjusts the number of devices issuing program data in an issuing queue according to the running condition of the system, thereby fully utilizing system resources, enabling the issuing state of the whole system to be always optimal, improving the issuing efficiency, achieving the effect of optimal issuing efficiency under various different application scenes, and solving the problem of low device utilization rate caused by the fact that the system resources cannot be fully utilized when the system issues multiple devices in batches.
Referring to fig. 1, fig. 1 is a flowchart illustrating an implementation of a dynamic control method for publishing program class data according to an embodiment of the present application. As shown in fig. 1, steps S11 to S14 may be specifically included.
S11: current system operating condition data is obtained.
In this embodiment, the current system running status data is detected in real time by a detection tool pre-configured in the program distribution system. The detection tools may be developed using QT, which refers to a cross-platform c++ graphical user interface application development framework developed by QT Company. In this embodiment, the current system operation status data includes, but is not limited to, the current resource occupancy and network rate of the program class data distribution system. It will be appreciated that the resource occupancy rate may be represented as CPU (Central Processing Unit ) utilization rate, memory occupancy rate, etc., or may be other program development framework, by way of example only and not by way of limitation.
S12: and determining the current equipment storage quantity threshold value of the release queue according to the system running condition data.
In this embodiment, a distribution queue is provided in the program-like data distribution system, and devices that are distributing program data are stored through the distribution queue and the number of devices that are distributing program data is controlled. Specifically, a device storage number threshold is set for the distribution queue, and when a multi-device batch distribution operation is performed, the program class data distribution system determines the number of devices simultaneously performing the program class data distribution operation based on the device storage number threshold. In an alternative embodiment, the program distribution system may be a display program distribution system comprising a plurality of LED playing devices for controlling the display of the LED display screen, or may be a display program distribution system comprising a plurality of LCD playing devices for controlling the display of the liquid crystal display screen.
In this embodiment, the threshold value of the storage number of the devices may be dynamically adjusted according to the real-time system running condition of the program data distribution system, so as to reduce the number of devices that execute program data distribution operations simultaneously when the CPU usage rate of the program data distribution system is high and/or the network rate is low, and increase the number of devices that execute program data distribution operations simultaneously when the CPU usage rate of the program data distribution system is low and/or the network rate is high, so that the program data distribution system is always in an optimal distribution state, thereby efficiently utilizing system resources and improving distribution efficiency. Thus, the current device deposit number threshold of the distribution queue may be determined based on current system operating condition data of the program class data distribution system.
S13: and judging whether the number of the first type of devices stored in the release queue reaches the threshold value of the storage number of the current devices, wherein the first type of devices are devices which are releasing program data.
In this embodiment, when the program data publishing system starts to execute the multi-device batch publishing operation, devices that need to execute the program data publishing operation may be added to the publishing queue first, until the number of devices reaches the initial device storage number threshold, and then a publishing task may be started. After the program data release system starts the release task, a certain number of first type devices are stored in the release queue, and the first type devices are devices which are releasing program data. In this embodiment, the program class data distribution system may determine, according to current system running status data, a current device storage number threshold of the distribution queue, and at this time, determine whether the program class data distribution system is in an optimal distribution state by comparing the number of the first class devices currently stored in the distribution queue with the current device storage number threshold. It will be appreciated that the program class data distribution system is in an optimal distribution state only when the number of first class devices currently stored in the distribution queue is equal to the current device storage number threshold.
S14: if the number of the first type of devices stored in the release queue does not reach the current device storage number threshold, determining target devices in a plurality of second type of devices cached in the waiting queue, adding the target devices into the release queue, and converting the target devices into the first type of devices so that the number of the first type of devices stored in the release queue is equal to the current device storage number threshold of the release queue, wherein the second type of devices are devices in a state of waiting to execute program data release operation.
In this embodiment, a waiting queue is further provided in the program data publishing system, and the device in a state of waiting for executing program data publishing operation is cached through the waiting queue. Specifically, the program class data publishing system can continuously publish programs, and devices corresponding to the programs are used as second class devices to be added into the waiting queue for caching and queuing. The second type of device is a device in a state of waiting to execute program class data distribution operation. In this embodiment, the number of the first type devices stored in the issue queue is compared with the current device storage number threshold by comparing the number of the first type devices stored in the issue queue with the current device storage number threshold, and if the number of the first type devices stored in the issue queue is smaller than the current device storage number threshold, it is indicated that the number of the first type devices stored in the issue queue does not reach the current device storage number threshold. At this time, the target device may be determined in the plurality of second devices cached in the waiting queue according to the queuing order, and the target device is added to the publishing queue and converted into the first device, so that the number of the first devices stored in the publishing queue is equal to the current device storage number threshold of the publishing queue, thereby enabling the program data publishing system to be in an optimal publishing state. For example, assuming that the number of the first type devices currently stored in the issue queue is 5 and the threshold of the number of the current devices stored is 7, at this time, the 1 st and 2 nd second type devices queued at the head of the queue in the waiting queue may be added as target devices to the issue queue, so that the number of the first type devices currently stored in the issue queue is equal to the threshold of the number of the current devices stored.
As can be seen from the above, in the method for dynamically controlling the publishing program data provided in the embodiment of the present application, since the current device storage number threshold of the publishing queue can be dynamically adjusted according to the system running condition, the number of the first devices stored in the publishing queue is equal to the current device storage number threshold of the publishing queue, so that the system resource can be fully utilized, the publishing state of the program data publishing system is always in the best state, and the publishing efficiency is improved. In addition, the threshold value of the storage quantity of the current equipment of the release queue can be dynamically adjusted according to the running condition of the system, so that the method can be applied to various different application scenes, the optimal release efficiency effect can be achieved in the different application scenes at present, and the problem that the equipment utilization rate is low due to the fact that the system cannot fully utilize system resources when the multiple equipment are released in batches is solved.
In some embodiments of the present application, referring to fig. 2, fig. 2 is a flowchart of one implementation of adjusting a current device storage number threshold of a distribution queue in a dynamic control method for distributing program class data according to an embodiment of the present application. As shown in fig. 2, steps S21 to S22 may be specifically included.
S21: judging whether the first type of equipment in the release queue is in a preset performance state or not according to the resource occupancy rate and the network rate;
S22: and if the first type of equipment is not in the preset performance state, adjusting the original equipment storage quantity threshold value of the release queue to determine the current equipment storage quantity threshold value of the release queue.
In this embodiment, based on the CPU hardware performance and bandwidth of the program class data distribution system, the program class data distribution system has a resource occupancy rate and a network rate, and the optimal performance of the device can be exerted under the resource occupancy rate and the network rate, so that the system is not blocked due to too full occupancy rate, and the system resource is not wasted due to too low occupancy rate. In this embodiment, whether each first type device in the release queue is in a preset performance state is determined according to the resource occupancy rate and the network rate that are currently detected by the program data release system. The preset performance state is an optimal performance state of the first type of equipment, and the optimal performance state can be obtained by calculation through an algorithm according to hardware performance of the equipment. In this embodiment, if it is determined that the first type of device is not in the preset performance state, it is indicated that the program data distribution system may have a jam or the system resources may not be fully utilized. At this time, the purpose of avoiding system blocking by reducing the number of devices which are distributing program class data and the purpose of fully utilizing system resources by increasing the number of devices which are distributing program class data can be achieved by adjusting the current device storage number threshold of the distribution queue. It should be noted that, in this embodiment, as long as any one of the first-class devices in the issue queue is not in the preset performance state, it is determined that the first-class devices in the issue queue are not in the preset performance state.
In some embodiments of the present application, referring to fig. 3, fig. 3 is a flowchart of an implementation of determining whether a first type of device in a release queue is in a preset performance state in a dynamic control method for releasing program class data according to an embodiment of the present application. As shown in fig. 3, steps S31 to S33 may be specifically included.
S31: acquiring a resource occupancy rate threshold range and a network rate threshold range of a system;
s32: judging whether the resource occupancy rate falls within the resource occupancy rate threshold range or not, and judging whether the network rate falls within the network rate threshold range or not;
s33: and if the resource occupancy rate does not fall into the resource occupancy rate threshold range and/or the network rate does not fall into the network rate threshold range, determining that the first-class equipment in the release queue is not in a preset performance state.
In this embodiment, the resource occupancy rate threshold range and the network rate threshold range of the system are calculated according to the CPU hardware performance and the bandwidth of the program class data distribution system through an algorithm, and are stored in the program class data distribution system. In this embodiment, when determining whether the first class device in the issue queue is in the preset performance state, the determination may be made by determining whether the resource occupancy falls within the resource occupancy threshold range and determining whether the network rate falls within the network rate threshold range. Specifically, when the resource occupancy rate does not fall within the resource occupancy rate threshold range and/or the network rate does not fall within the network rate threshold range, it may be determined that the first type of device in the issue queue is not in the preset performance state.
In some embodiments of the present application, after determining that the first type of device in the issue queue is not in the preset performance state, the device storage number threshold of the issue queue may be dynamically adjusted according to the current resource occupancy rate and the network rate, to determine the current device storage number threshold of the issue queue. In order to fully utilize system resources, specifically, when the resource occupancy rate is smaller than the lower limit value of the resource occupancy rate threshold range and/or the network rate is greater than the upper limit value of the network rate threshold range, a difference value between the resource occupancy rate and the lower limit value of the resource occupancy rate threshold range or a difference value between the upper limit value of the network rate threshold range is calculated according to the resource occupancy rate, and then the number of devices which can be increased by the issue queue is determined according to the difference value, so that the current device storage number threshold of the issue queue is determined based on the number of devices which can be increased by the issue queue. It will be appreciated that the current device deposit number threshold for the issue queue is equal to the original device deposit number threshold for the issue queue plus the number of devices that the issue queue can increase. In order to avoid system blocking, specifically, when the resource occupancy rate is greater than the upper limit value of the resource occupancy rate threshold range and/or the network rate is less than the lower limit value of the network rate threshold range, a difference value between the resource occupancy rate and the upper limit value of the resource occupancy rate threshold range or a difference value between the lower limit value of the network rate threshold range is calculated according to the resource occupancy rate, and then the number of devices to be reduced in the issue queue is determined according to the difference value, so that the current device storage number threshold of the issue queue is determined based on the number of devices to be reduced in the issue queue. It will be appreciated that the current device deposit number threshold for the issue queue is equal to the original device deposit number threshold for the issue queue minus the number of devices the issue queue needs to reduce.
In some embodiments of the present application, the program class data publishing system may monitor any device of the plurality of first devices stored in the publishing queue to determine whether any device data publishing operation has been performed, and if so, delete any device from the publishing queue. In this embodiment, if a device performs a data publishing operation and deletes the data publishing operation from the publishing queue, in this case, even if the current device storage number threshold of the publishing queue does not change, the number of devices of the first type stored in the publishing queue does not reach the current device storage number threshold of the publishing queue. Therefore, in this embodiment, it may be determined whether the data publishing operation of any device in the publishing queue is completed by determining whether the data publishing operation has been performed, and if so, deleting any device in the publishing queue, and at the same time, determining that the number of first-class devices stored in the publishing queue does not reach the current device storage number threshold of the publishing queue.
In some embodiments of the present application, referring to fig. 4, fig. 4 is a flowchart of one implementation of determining whether the number of first-class devices stored in a release queue reaches a current device storage number threshold of the release queue in the dynamic control method for release program class data provided in the embodiments of the present application. As shown in fig. 4, steps S41 to S42 may be specifically included.
S41: monitoring whether the current equipment storage quantity threshold value of the release queue changes or not, if so, judging whether the current equipment storage quantity threshold value of the release queue is larger than the equipment storage quantity threshold value before changing or not;
s42: if the current equipment storage quantity threshold value of the release queue is larger than the equipment storage quantity threshold value before the change, judging that the quantity of the first type of equipment stored in the release queue does not reach the current equipment storage quantity threshold value of the release queue.
In this embodiment, since the current device storage number threshold of the issue queue is dynamically adjusted according to the running condition data of the system, if the dynamic adjustment is an adjustment of increasing the threshold, in this case, the number of the first type devices stored in the issue queue may not reach the current device storage number threshold of the issue queue. Therefore, the program data issuing system can judge whether the current equipment storage quantity threshold of the issuing queue is larger than the equipment storage quantity threshold before the variation by monitoring whether the current equipment storage quantity threshold of the issuing queue varies, if yes, the current equipment storage quantity threshold of the issuing queue is compared with the equipment storage quantity threshold before the variation, and if yes, the quantity of the first equipment stored in the issuing queue does not reach the current equipment storage quantity threshold of the issuing queue.
In some embodiments of the present application, referring to fig. 5, fig. 5 is a flowchart of an implementation of dynamic control in a dynamic control method for publishing program class data according to an embodiment of the present application. As shown in fig. 5, steps S51 to S52 may be specifically included.
S51: if the current equipment storage quantity threshold value of the release queue is smaller than the equipment storage quantity threshold value before the change, calculating a quantity difference value between the equipment storage quantity threshold value before the change of the release queue and the current equipment storage quantity threshold value;
s52: and determining target equipment in a plurality of first equipment stored in the release queue according to the quantity difference value, returning the target equipment to the waiting queue, and converting the target equipment into second equipment so that the quantity of the first equipment stored in the release queue is equal to the current equipment storage quantity threshold value of the release queue.
In this embodiment, since the current device storage number threshold of the issue queue is dynamically adjusted according to the running status data of the system, if the dynamic adjustment is an adjustment with reduced threshold, that is, if the current device storage number threshold of the issue queue is smaller than the device storage number threshold before the change, in this case, if none of the first type devices stored in the issue queue perform the data issue operation, the number of the first type devices stored in the issue queue will exceed the current device storage number threshold of the issue queue. And the number of the first type of devices stored in the release queue exceeds the current device storage number threshold of the release queue, which indicates that the program data release system has a blocking risk. In this embodiment, in order to avoid system blocking, the program class data publishing system may determine, by calculating a number difference between a device storage number threshold before a publish queue changes and a current device storage number threshold, a target device from a plurality of first class devices stored in the publish queue according to the number difference, return the target device to a waiting queue, and convert the target device to a second class device, so that the number of the first class devices stored in the publish queue is equal to the current device storage number threshold of the publish queue. For example, assuming that the number of first type devices currently stored in the issue queue is 7 and the threshold of the number of stored first type devices is 5, at this time, two first type devices, which are arranged at the end of the queue in the issue queue, may be returned to the waiting queue as target devices and converted into second type devices, so that the number of first type devices currently stored in the issue queue is equal to the threshold of the number of stored first type devices. It should be noted that, when two first devices in the issue queue, which are arranged at the end of the queue, are used as target devices and are returned to the waiting queue, the first device in the issue queue, which is arranged at the last of the queue, is returned to the waiting queue first, so that the first device is located at the second position of the queue head in the waiting queue, and the first device in the issue queue, which is arranged at the last of the queue, is returned to the waiting queue first, so that the first device is located at the first position of the queue head in the waiting queue.
It should be understood that, the sequence number of each step in the foregoing embodiment does not mean the execution sequence, and the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
In some embodiments of the present application, referring to fig. 6, fig. 6 is a block diagram of an infrastructure of a dynamic control device for distributing program class data according to an embodiment of the present application. The apparatus in this embodiment includes units for performing the steps in the method embodiments described above. Refer to the related description in the above method embodiment. For convenience of explanation, only the portions related to the present embodiment are shown. As shown in fig. 6, the dynamic control device for distributing program class data includes: an acquisition module 61, a determination module 62, a judgment module 63 and an addition module 64. Wherein: the acquiring module 61 is configured to acquire current system operation status data. The determining module 62 is configured to determine a current device storage number threshold of the issue queue according to the system operating status data. The determining module 63 is configured to determine whether the number of first type devices stored in the distribution queue reaches a current device storage number threshold of the distribution queue, where the first type devices are devices that are executing a program data distribution operation. The adding module 64 is configured to track and determine a target device in a plurality of second devices cached in the waiting queue if the number of the first devices stored in the distribution queue does not reach the current device storage number threshold, and add the target device to the distribution queue and convert the target device into the first devices, so that the number of the first devices stored in the distribution queue is equal to the current device storage number threshold of the distribution queue, where the second devices are devices in a state of waiting to execute program data distribution operation.
It should be understood that the dynamic control device for distributing the program data corresponds to the dynamic control method for distributing the program data one by one, which is not described herein.
In some embodiments of the present application, referring to fig. 7, fig. 7 is a basic block diagram of an electronic device according to an embodiment of the present application. As shown in fig. 7, the electronic device 7 of this embodiment includes: a processor 71, a memory 72 and a computer program 73 stored in said memory 72 and executable on said processor 71, for example a program for issuing a dynamic control method of program class data. The processor 71, when executing the computer program 73, implements the steps of the embodiments of the dynamic control method for each distribution program class data described above. Alternatively, the processor 71 may implement the functions of each module in the embodiment corresponding to the dynamic control device for distributing program class data when executing the computer program 73. Please refer to the related description in the embodiments, which is not repeated here.
By way of example, the computer program 73 may be divided into one or more modules (units) that are stored in the memory 72 and executed by the processor 71 to complete the present application. The one or more modules may be a series of computer program instruction segments capable of performing the specified functions for describing the execution of the computer program 73 in the electronic device 7. For example, the computer program 73 may be divided into an acquisition module, a determination module, a judgment module, and an addition module, each module having the specific functions as described above.
The electronic device may include, but is not limited to, a processor 71, a memory 72. It will be appreciated by those skilled in the art that fig. 7 is merely an example of the electronic device 7 and is not meant to be limiting as the electronic device 7 may include more or fewer components than shown, or may combine certain components, or different components, e.g., the electronic device may further include an input-output device, a network access device, a bus, etc.
The processor 71 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 72 may be an internal storage unit of the electronic device 7, such as a hard disk or a memory of the electronic device 7. The memory 72 may be an external storage device of the electronic device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device 7. Further, the memory 72 may also include both an internal storage unit and an external storage device of the electronic device 7. The memory 72 is used to store the computer program as well as other programs and data required by the electronic device. The memory 72 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
Embodiments of the present application also provide a computer readable storage medium storing a computer program, which when executed by a processor, may implement the steps in the above-described method embodiments. In this embodiment, the computer-readable storage medium may be nonvolatile or may be volatile.
The present embodiments provide a computer program product which, when run on a mobile terminal, causes the mobile terminal to perform the steps of the method embodiments described above.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above device may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each method embodiment described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. A dynamic control method for issuing program data is characterized by comprising the following steps of
Acquiring current system running condition data;
determining a current equipment storage quantity threshold value of a release queue according to the system running condition data;
judging whether the number of the first type of devices stored in the release queue reaches the threshold value of the storage number of the current device, wherein the first type of devices are devices which are releasing program data;
If the number of the first type of devices stored in the release queue does not reach the current device storage number threshold, determining target devices in a plurality of second type of devices cached in the waiting queue, adding the target devices into the release queue, and converting the target devices into the first type of devices so that the number of the first type of devices stored in the release queue is equal to the current device storage number threshold of the release queue, wherein the second type of devices are devices in a state of waiting to execute program data release operation.
2. The method for dynamically controlling the distribution of program class data according to claim 1, wherein the system operation status data includes a resource occupancy rate and a network rate, and the step of determining the current device storage number threshold of the distribution queue according to the system operation status data includes:
judging whether the first type of equipment in the release queue is in a preset performance state or not according to the resource occupancy rate and the network rate;
and if the first type of equipment is not in the preset performance state, adjusting the original equipment storage quantity threshold value of the release queue to determine the current equipment storage quantity threshold value of the release queue.
3. The method for dynamically controlling the distribution of program class data according to claim 2, wherein the step of determining whether the first class of devices in the distribution queue are in a preset performance state according to the resource occupancy and the network rate comprises:
acquiring a resource occupancy rate threshold range and a network rate threshold range of a system;
judging whether the resource occupancy rate falls within the resource occupancy rate threshold range or not, and judging whether the network rate falls within the network rate threshold range or not;
and if the resource occupancy rate does not fall into the resource occupancy rate threshold range and/or the network rate does not fall into the network rate threshold range, determining that the first-class equipment in the release queue is not in a preset performance state.
4. The method for dynamically controlling distribution of program class data according to claim 3, wherein the step of adjusting the device storage number threshold of the distribution queue script to determine the current device storage number threshold of the distribution queue if the first class device is not in the preset performance state comprises:
if the resource occupancy rate is smaller than the lower limit value of the resource occupancy rate threshold range and/or the network rate is larger than the upper limit value of the network rate threshold range, increasing the original equipment storage quantity threshold of the release queue according to the resource occupancy rate and the network rate to determine the current equipment storage quantity threshold of the release queue, so that the resource occupancy rate falls into the resource occupancy rate threshold range and the network rate falls into the network rate threshold range;
And if the resource occupancy rate is greater than the upper limit value of the resource occupancy rate threshold range and/or the network rate is less than the lower limit value of the network rate threshold range, reducing the original equipment storage quantity threshold of the release queue according to the resource occupancy rate and the network rate so as to determine the current equipment storage quantity threshold of the release queue, so that the resource occupancy rate falls into the resource occupancy rate threshold range and the network rate falls into the network rate threshold range.
5. The dynamic control method for distribution program class data according to any one of claims 1 to 4, wherein the step of determining whether the number of first class devices stored in the distribution queue reaches a current device storage number threshold of the distribution queue includes:
judging whether the data release operation of any device in the release queue is completed or not, if so, deleting any device from the release queue, and judging that the number of the first type devices stored in the release queue does not reach the current device storage number threshold of the release queue.
6. The dynamic control method for distribution program class data according to any one of claims 1 to 4, wherein the step of determining whether the number of first class devices stored in the distribution queue reaches a current device storage number threshold of the distribution queue includes:
Monitoring whether the current equipment storage quantity threshold value of the release queue changes or not, if so, judging whether the current equipment storage quantity threshold value of the release queue is larger than the equipment storage quantity threshold value before changing or not;
if the current equipment storage quantity threshold value of the release queue is larger than the equipment storage quantity threshold value before the change, judging that the quantity of the first type of equipment stored in the release queue does not reach the current equipment storage quantity threshold value of the release queue.
7. The method for dynamically controlling the distribution of program class data according to claim 6, wherein after the step of determining whether the current device storage number threshold of the distribution queue is greater than the device storage number threshold before the change, further comprising:
if the current equipment storage quantity threshold value of the release queue is smaller than the equipment storage quantity threshold value before the change, calculating a quantity difference value between the equipment storage quantity threshold value before the change of the release queue and the current equipment storage quantity threshold value;
and determining target equipment in a plurality of first equipment stored in the release queue according to the quantity difference value, returning the target equipment to the waiting queue, and converting the target equipment into second equipment so that the quantity of the first equipment stored in the release queue is equal to the current equipment storage quantity threshold value of the release queue.
8. A dynamic control device for distributing program-like data, characterized in that the dynamic control device for distributing program-like data comprises:
the acquisition module is used for acquiring current system running condition data;
the determining module is used for determining the current equipment storage quantity threshold value of the release queue according to the system running condition data;
the judging module is used for judging whether the number of the first type of equipment stored in the release queue reaches the current equipment storage number threshold value of the release queue, wherein the first type of equipment is equipment which is executing program data release operation;
and the adding module is used for tracking and determining target equipment in a plurality of second equipment cached in the waiting queue if the number of the first equipment stored in the release queue does not reach the current equipment storage number threshold, adding the target equipment into the release queue and converting the target equipment into the first equipment so that the number of the first equipment stored in the release queue is equal to the current equipment storage number threshold of the release queue, wherein the second equipment is equipment in a state of waiting to execute program data release operation.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 7.
CN202311322182.XA 2023-10-12 2023-10-12 Dynamic control method, device, equipment and storage medium for issuing program data Pending CN117395453A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311322182.XA CN117395453A (en) 2023-10-12 2023-10-12 Dynamic control method, device, equipment and storage medium for issuing program data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311322182.XA CN117395453A (en) 2023-10-12 2023-10-12 Dynamic control method, device, equipment and storage medium for issuing program data

Publications (1)

Publication Number Publication Date
CN117395453A true CN117395453A (en) 2024-01-12

Family

ID=89436929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311322182.XA Pending CN117395453A (en) 2023-10-12 2023-10-12 Dynamic control method, device, equipment and storage medium for issuing program data

Country Status (1)

Country Link
CN (1) CN117395453A (en)

Similar Documents

Publication Publication Date Title
WO2022057391A1 (en) Cache memory adjustment method, apparatus, and computer device
US10534425B2 (en) Processing method and device for saving power, mobile terminal and cloud server
CN109257758B (en) Network capacity expansion method and device
CN110620681B (en) Network connection timeout time setting method, device, equipment and medium
CN112445857A (en) Resource quota management method and device based on database
US20150134846A1 (en) Method and apparatus for media segment request retry control
US8666793B2 (en) Distributing reauthorization time in the event of tariff time change
WO2016184048A1 (en) Method and device for frequency management for multi-core processor cpu
US11487629B2 (en) Method, device and computer program product for managing data backup
CN107864044B (en) Information processing method and device, terminal and readable storage medium
CN112506619A (en) Job processing method, apparatus, electronic device, storage medium, and program product
US20220004524A1 (en) Chunking method and apparatus
CN113742389A (en) Service processing method and device
CN117395453A (en) Dynamic control method, device, equipment and storage medium for issuing program data
CN112667368A (en) Task data processing method and device
CN114048059A (en) Method and device for adjusting timeout time of interface, computer equipment and storage medium
US11507396B2 (en) Method, device and computer program product for storage management
CN114374657A (en) Data processing method and device
CN114095907A (en) Bluetooth connection control method, device and equipment
CN110119364B (en) Method and system for input/output batch submission
CN113873026A (en) Dynamic timeout response method, device, terminal equipment and storage medium
CN113761433A (en) Service processing method and device
CN110019671B (en) Method and system for processing real-time message
CN117493048B (en) Message dynamic processing method, device, equipment and medium
US11431349B2 (en) Method, electronic device and computer program product for processing data

Legal Events

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