CN117640522A - Signal distribution method and device, electronic equipment and recording medium - Google Patents

Signal distribution method and device, electronic equipment and recording medium Download PDF

Info

Publication number
CN117640522A
CN117640522A CN202311708774.5A CN202311708774A CN117640522A CN 117640522 A CN117640522 A CN 117640522A CN 202311708774 A CN202311708774 A CN 202311708774A CN 117640522 A CN117640522 A CN 117640522A
Authority
CN
China
Prior art keywords
signal
token
unit
signal unit
tokens
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
CN202311708774.5A
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.)
Beijing Baige Feichi Technology Co ltd
Original Assignee
Beijing Baige Feichi 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 Beijing Baige Feichi Technology Co ltd filed Critical Beijing Baige Feichi Technology Co ltd
Priority to CN202311708774.5A priority Critical patent/CN117640522A/en
Publication of CN117640522A publication Critical patent/CN117640522A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a signal distribution method, a device, electronic equipment and a recording medium, wherein the signal distribution method comprises the following steps: each signal unit respectively establishes a token bucket, and the signal units generate tokens containing signals through the respective token buckets; establishing a total barrel as a signal storage medium, and sequentially storing tokens in token barrels of a plurality of signal units into the total barrel in a queue mode; and configuring a signal information request signal, taking out a corresponding token from a corresponding total barrel, and analyzing signals in the token for use. The signal distribution method can be suitable for load balancing and flow control, token barrels are respectively established for each signal unit, token issuance is controlled through the token barrels of the signal units, and the signal units are regulated to issue tokens; the total barrel is used as a buffer memory, is a data transmission medium for issuing and taking tokens, and regulates the token issuing of the token barrel of the signal unit in real time according to the request condition of the tokens in the total barrel, so as to maintain the relative dynamic balance of the total barrel.

Description

Signal distribution method and device, electronic equipment and recording medium
Technical Field
The invention relates to the technical field of signal distribution, and particularly provides a signal distribution method, a signal distribution device, electronic equipment and a recording medium.
Background
With the rapid development of the internet, network traffic has shown a trend toward explosive growth. The rise of applications such as online video, cloud computing, big data, etc., has placed higher demands on the performance of the network. A single server cannot meet such high load demands and therefore requires load balancing and flow control optimization to achieve the goals of a high performance network.
Load balancing is a technique that spreads network load across multiple servers. By uniformly distributing the flow requests to different servers, the load balancing can improve the utilization rate of the servers, lighten the pressure of a single server and improve the corresponding speed and stability of the network.
Common load balancing techniques include algorithms such as polling, weighted polling, minimum number of connections, etc. The polling algorithm is simple and visual, but cannot be dynamically adjusted according to the performance and load conditions of the server; weighted polling may be distributed according to the processing power of the server, but load balancing effects for long links may be poor; the minimum connection number algorithm may be dynamically adjusted according to server load conditions, but may result in load imbalance between servers.
Flow control refers to limiting and controlling the flow in a network to ensure the stability and reliability of the network. In high load network environments, uncontrolled traffic may cause network congestion and transmission errors, resulting in data loss and degradation of quality of service.
Common flow control techniques include semaphores, token buckets, and the like. The semaphore mechanism limits the sending and receiving of the flow by setting the semaphore or performs the scheduling and control of the flow by the semaphore, but the setting of the flow limit is not accurate enough and the flow cannot be controlled accurately. The token bucket mechanism limits that a sender must have tokens to send data by placing the tokens so as to control the sending rate and the number of data packets, but the rate of the tokens issued by the token bucket is fixed, and the real-time adjustability of flow control cannot be achieved.
In view of this, the present invention is specifically proposed.
Disclosure of Invention
In order to solve the above technical problems, the present invention provides a signal distribution method, a device, an electronic apparatus, and a recording medium, and specifically adopts the following technical scheme:
in a first aspect, the present invention provides a signal allocation method, comprising:
each signal unit respectively establishes a token bucket, and the signal units generate tokens containing signals through the respective token buckets;
establishing a total barrel as a signal storage medium, and sequentially storing tokens in token barrels of a plurality of signal units into the total barrel in a queue mode;
and configuring a signal information request signal, taking out a corresponding token from a corresponding total barrel, and analyzing signals in the token for use.
As an optional embodiment of the present invention, in a signal distribution method of the present invention, each signal unit establishes a token bucket, and generating, by the signal unit, a token containing a signal through the respective token bucket includes:
each signal unit respectively establishes one or more token barrels, and each token barrel can be configured with a signal issuing rate and a queue length;
the signal issuing control of the signal unit is realized by configuring the signal issuing rate and the queue length of the token bucket;
the tokens generated by the signal units through the respective token buckets contain a signal unit ID, state information of the signal units and signal information.
As an optional embodiment of the present invention, in the signal distribution method of the present invention, by configuring a signal issuing rate and a queue length of a token bucket, implementing signal issuing control of a signal unit includes:
the signal issuing rate of the token bucket is in adjustable speed configuration, and the timing acceleration control of signal issuing of the signal unit is realized by configuring that the signal issuing rate of the token bucket in a set time period is greater than the signal issuing rates of other time periods;
and/or, a single signal unit establishes at least two token barrels, and the tidal speed control of signal issuing of the signal unit is realized by configuring the number of the token barrels which are simultaneously opened in a set time period.
As an alternative embodiment of the present invention, a signal allocation method of the present invention includes:
after the signal in the token is used by the service, feeding back a using result of the signal;
and when the result of the use of the feedback signal is a signal request error, analyzing the reason of the signal request error, and performing temporary speed reduction, permanent speed reduction and discarding of the signal unit for the signal unit which issues the token.
As an optional embodiment of the present invention, in the signal allocation method of the present invention, when a result of using the feedback signal is a signal request error, analyzing a cause of the signal request error, and performing operations of temporarily slowing down, permanently slowing down, and discarding the signal unit for the signal unit that issues the token includes:
when the reason of the signal request error is that the signal unit is in the request peak period, performing temporary speed reduction operation on the signal issuing of the signal unit until the request peak period of the signal unit is over, and recovering the signal issuing rate of the signal unit;
when the reason for the signal request error is that the signal unit is in the request continuous overheat, executing permanent speed reducing operation for the signal issuing of the signal unit;
when the reason for the signal request error is that the signal unit is in the request duration failure, the operation of discarding the signal unit is performed for the signal unit.
As an optional embodiment of the present invention, in a signal distribution method of the present invention, the signal unit is a load server, and the signal distribution method is used for implementing load balancing of the load server, and includes:
each load server respectively establishes a token bucket, and the load server generates a token containing a load server ID through the respective token bucket;
the method comprises the steps of establishing a total barrel as a signal storage medium, and sequentially storing tokens in token barrels of a plurality of load servers into the total barrel in a queue mode;
and configuring load request information, taking out the corresponding token from the corresponding total barrel, analyzing the load server ID in the token, and requesting the load to the load server unit corresponding to the server ID.
As an optional embodiment of the present invention, in the signal distribution method of the present invention, the signal unit is an account resource, and the signal distribution method is used for implementing balanced distribution of the account resource, and includes:
each account resource respectively establishes a token bucket, and the account resource generates a token containing account information through the respective token bucket;
establishing a total barrel as a signal storage medium, and sequentially storing tokens in token barrels of a plurality of account resources into the total barrel in a queue mode;
and configuring load request information, taking out the corresponding token from the corresponding total barrel, analyzing account information in the token and using the account information.
In a second aspect, the present invention provides a signal distribution device, comprising:
the token sending module is used for respectively establishing token barrels for each signal unit, and the signal units generate tokens containing signals through the respective token barrels;
the total barrel module is used for establishing a total barrel as a signal storage medium, and tokens in token barrels of a plurality of signal units are sequentially stored in the total barrel in a queue mode;
and the token taking module is used for configuring a signal taking information request signal, taking out a corresponding token from the corresponding total barrel and analyzing signals in the token for use.
In a third aspect, the invention provides an electronic device comprising a processor and a memory for storing a computer executable program, the processor performing the one signal distribution method when the computer program is executed by the processor.
In a fourth aspect, the present invention provides a computer-readable recording medium storing a computer-executable program which, when executed, implements the signal distribution method.
Compared with the prior art, the invention has the beneficial effects that:
the signal distribution method can be suitable for load balancing and flow control, and token barrels are respectively built for each signal unit, so that token issuance can be controlled through the token barrels of the signal units according to the load or flow request conditions of the signal units, and the token issuance of the signal units is regulated in real time, so that load balancing and flow control are realized.
According to the signal distribution method, the total barrel is established for storing tokens generated by each signal unit through the token barrel, and the signal taking end only needs to request to take out the tokens from the corresponding total barrel according to service requirements when taking signals. The total barrel is a cache, the number of stored tokens is small, the token taking end continuously takes out the tokens from the total barrel, the signal unit end continuously generates the tokens and puts the tokens into the total barrel, and the signal unit and the token taking end need to maintain relative dynamic balance because of the small number of the tokens stored in the total barrel, so that the token issuing of the token barrel of the signal unit can be regulated in real time according to the request condition of the tokens in the total barrel.
According to the signal distribution method, the token bucket established by each signal unit can be respectively configured with the signal issuing speed and the queue length, and the token issuing condition of the signal unit can be adjusted by configuring the signal issuing speed and the queue length of the token bucket, so that load balancing and flow control are realized. In addition, the traditional token bucket is mainly used for limiting speed, data information is added in the bucket besides limiting speed, and the token bucket can analyze the information to perform other more free functions when acquiring tokens.
The signal distribution method of the invention not only actively configures the speed limit of the token bucket, but also has an automatic speed regulation function, and the speed limit is automatically regulated by the use result of the feedback signal, so that the signal unit is regulated to issue tokens in real time, and the load balance and the flow control are realized.
Description of the drawings:
FIG. 1 is a flow chart of a signal distribution method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an electronic device according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a computer-readable recording medium of an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. It will be apparent that the described embodiments are some, but not all, embodiments of the invention.
Thus, the following detailed description of the embodiments of the invention is not intended to limit the scope of the invention, as claimed, but is merely representative of some embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, under the condition of no conflict, the embodiments of the present invention and the features and technical solutions in the embodiments may be combined with each other.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
In the description of the present invention, it should be noted that, the terms "upper", "lower", and the like indicate an azimuth or a positional relationship based on the azimuth or the positional relationship shown in the drawings, or an azimuth or a positional relationship conventionally put in use of the inventive product, or an azimuth or a positional relationship conventionally understood by those skilled in the art, such terms are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the apparatus or element to be referred must have a specific azimuth, be constructed and operated in a specific azimuth, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and the like, are used merely to distinguish between descriptions and should not be construed as indicating or implying relative importance.
Referring to fig. 1, a signal distribution method of the present embodiment includes:
each signal unit respectively establishes a token bucket, and the signal units generate tokens containing signals through the respective token buckets;
establishing a total barrel as a signal storage medium, and sequentially storing tokens in token barrels of a plurality of signal units into the total barrel in a queue mode;
and configuring a signal information request signal, taking out a corresponding token from a corresponding total barrel, and analyzing signals in the token for use.
The signal distribution method of the embodiment can be suitable for load balancing and flow control, and token barrels are respectively built for each signal unit, so that token issuance can be controlled through the token barrels of the signal units according to the load or flow request conditions of the signal units, and the token issuance of the signal units is regulated in real time, so that load balancing and flow control are realized.
According to the signal distribution method, the total barrel is established for storing tokens generated by the signal units through the token barrel, and when a signal taking end takes signals, the signal taking end only needs to request to take out the tokens from the corresponding total barrel according to service requirements. The total barrel of the embodiment is specifically a cache, the number of stored tokens is small (generally only 2-3 tokens are stored), the token taking end continuously takes out the tokens from the total barrel, the signal unit end continuously generates the tokens and puts the tokens into the total barrel, and the signal unit and the token taking end need to maintain relative dynamic balance because the tokens stored in the total barrel are small, so that the token issuing of the token barrel of the signal unit can be regulated in real time according to the request condition of the tokens in the total barrel.
As an optional implementation manner of the present embodiment, in a signal distribution method of the present embodiment, each signal unit establishes a token bucket, and generating, by the signal unit, a token including a signal through the respective token bucket includes:
each signal unit respectively establishes one or more token barrels, and each token barrel can be configured with a signal issuing rate and a queue length;
the signal issuing control of the signal unit is realized by configuring the signal issuing rate and the queue length of the token bucket;
the tokens generated by the signal units through the respective token buckets contain a signal unit ID, state information of the signal units and signal information.
The token bucket established by each signal unit in the embodiment can be respectively configured with a signal issuing rate and a queue length, and the token issuing condition of the signal unit can be adjusted by configuring the signal issuing rate and the queue length of the token bucket, so that load balancing and flow control are realized.
In addition, the traditional token bucket is mainly of a speed limiting function, data information can be added in the token bucket except for speed limiting, and the data information can be analyzed when tokens are acquired to make other more free functions.
Further, in the signal distribution method of this embodiment, the implementing signal distribution control of the signal unit by configuring the signal distribution rate and the queue length of the token bucket includes:
the signal issuing rate of the token bucket is in adjustable speed configuration, and the timing acceleration control of signal issuing of the signal unit is realized by configuring that the signal issuing rate of the token bucket in a set time period is greater than the signal issuing rates of other time periods;
and/or, a single signal unit establishes at least two token barrels, and the tidal speed control of signal issuing of the signal unit is realized by configuring the number of the token barrels which are simultaneously opened in a set time period.
According to the signal distribution method, the configurable token bucket is built for each signal unit, and timing acceleration control and tidal speed control of signal issuing of the signal units can be achieved according to the characteristics of load and flow requests, so that load balancing and flow control can be better met.
As an optional implementation manner of the present embodiment, a signal distribution method of the present embodiment includes:
after the signal in the token is used by the service, feeding back a using result of the signal;
and when the result of the use of the feedback signal is a signal request error, analyzing the reason of the signal request error, and performing temporary speed reduction, permanent speed reduction and discarding of the signal unit for the signal unit which issues the token.
The signal distribution method of the embodiment has the function of automatic speed regulation besides the speed limitation of the token bucket through active configuration, and realizes load balancing and flow control by automatically regulating the speed limitation through the use result of the feedback signal and regulating the signal unit to issue tokens in real time.
Further, in the signal distribution method of this embodiment, when the result of using the feedback signal is a signal request error, analyzing the reason of the signal request error, and performing temporary speed reduction, permanent speed reduction, and discarding of the signal unit for the signal unit that issues the token includes:
when the reason of the signal request error is that the signal unit is in the request peak period, performing temporary speed reduction operation on the signal issuing of the signal unit until the request peak period of the signal unit is over, and recovering the signal issuing rate of the signal unit;
when the reason for the signal request error is that the signal unit is in the request continuous overheat, executing permanent speed reducing operation for the signal issuing of the signal unit;
when the reason for the signal request error is that the signal unit is in the request duration failure, the operation of discarding the signal unit is performed for the signal unit.
Specifically, as an optional implementation manner of the present embodiment, a signal distribution method of the present embodiment, where the signal unit is a load server, the signal distribution method is used to implement load balancing of the load server, and includes:
each load server respectively establishes a token bucket, and the load server generates a token containing a load server ID through the respective token bucket;
the method comprises the steps of establishing a total barrel as a signal storage medium, and sequentially storing tokens in token barrels of a plurality of load servers into the total barrel in a queue mode;
and configuring load request information, taking out the corresponding token from the corresponding total barrel, analyzing the load server ID in the token, and requesting the load to the load server unit corresponding to the server ID.
Specifically, as another optional implementation manner of this embodiment, a signal distribution method of this embodiment, where the signal unit is an account resource, and the signal distribution method is used to implement balanced distribution of the account resource, and includes:
each account resource respectively establishes a token bucket, and the account resource generates a token containing account information through the respective token bucket;
establishing a total barrel as a signal storage medium, and sequentially storing tokens in token barrels of a plurality of account resources into the total barrel in a queue mode;
and configuring load request information, taking out the corresponding token from the corresponding total barrel, analyzing account information in the token and using the account information.
The present embodiment also provides a signal distribution device, including:
the token sending module is used for respectively establishing token barrels for each signal unit, and the signal units generate tokens containing signals through the respective token barrels;
the total barrel module is used for establishing a total barrel as a signal storage medium, and tokens in token barrels of a plurality of signal units are sequentially stored in the total barrel in a queue mode;
and the token taking module is used for configuring a signal taking information request signal, taking out a corresponding token from the corresponding total barrel and analyzing signals in the token for use.
The signal distribution device can realize load balancing and flow control, and the token sending module respectively establishes a token bucket for each signal unit, so that the token sending can be controlled through the token bucket of the signal unit according to the load or flow request condition of the signal unit, and the token sending of the signal unit is regulated in real time to realize load balancing and flow control.
According to the signal distribution device, the total barrel module is used for storing tokens generated by each signal unit through the token barrel by establishing the total barrel, and when the token taking module takes signals, the token taking module only needs to request to take out the tokens from the corresponding total barrel according to service requirements. The total barrel of the embodiment is specifically a cache, the number of stored tokens is small (generally only 2-3 tokens are stored), the token taking module continuously takes out the tokens from the total barrel, the token issuing module continuously generates the tokens and puts the tokens into the total barrel, and the token issuing module and the token taking module need to maintain relative dynamic balance because the tokens stored in the total barrel are small, so that the token issuing of the token barrel of the signal unit can be regulated in real time according to the request condition of the tokens in the total barrel.
As an optional implementation manner of this embodiment, the token issuing module of this embodiment establishes a token bucket for each signal unit, and the signal unit generates a token containing a signal through the respective token bucket includes:
the token issuing module respectively establishes one or more token barrels for each signal unit, and each token barrel can be configured with a signal issuing rate and a queue length;
the token issuing module is used for realizing the signal issuing control of the signal unit by configuring the signal issuing speed and the queue length of the token bucket;
the tokens generated by the signal units through the respective token buckets contain a signal unit ID, state information of the signal units and signal information.
The token issuing module in this embodiment can configure the signal issuing rate and the queue length for the token bucket established for each signal unit, and can adjust the token issuing condition of the signal unit by configuring the signal issuing rate and the queue length of the token bucket, so as to implement load balancing and flow control.
In addition, the traditional token bucket is mainly of a speed limiting function, data information can be added in the token bucket except for speed limiting, and the data information can be analyzed when tokens are acquired to make other more free functions.
Further, the token issuing module of this embodiment configures a signal issuing rate and a queue length of a token bucket, so as to implement signal issuing control of a signal unit, including:
the signal issuing rate of the token bucket is in adjustable speed configuration, and the token issuing module achieves timing acceleration control of signal issuing of the signal unit by configuring the signal issuing rate of the token bucket in a set time period to be larger than the signal issuing rates of other time periods;
and/or, the single signal unit establishes at least two token barrels, and the token issuing module realizes the tidal speed control of signal issuing of the signal unit by configuring the number of the token barrels which are simultaneously opened in a set time period.
According to the signal distribution device, the token issuing module establishes the configurable token bucket for each signal unit, and according to the characteristics of the load and the flow request, the timing acceleration control and the tidal speed control of the signal issuing unit can be realized, and the load balance and the flow control can be better met.
As an optional implementation manner of this embodiment, a signal distribution device of this embodiment includes a speed regulation module:
after the signals in the token are used by the service, feeding back the using result of the signals to the speed regulating module;
when the result of the feedback signal is a signal request error, the speed regulating module analyzes the reason of the signal request error and executes the operations of temporary speed reduction, permanent speed reduction and discarding the signal unit aiming at the signal unit which issues the token.
The signal distribution device of the embodiment is provided with a speed regulation module besides actively configuring the speed limit of the token bucket through the token sending module, and automatically adjusts the speed limit through the use result of the feedback signal, and the signal unit is regulated to send out tokens in real time, so that load balance and flow control are realized.
Further, in this embodiment, when the result of using the feedback signal is a signal request error, the speed regulation module analyzes the reason of the signal request error, and performs the operations of temporarily slowing down, permanently slowing down, and discarding the signal unit for the signal unit that issues the token, including:
when the reason of the signal request error is that the signal unit is in the request peak period, performing temporary speed reduction operation on the signal issuing of the signal unit until the request peak period of the signal unit is over, and recovering the signal issuing rate of the signal unit;
when the reason for the signal request error is that the signal unit is in the request continuous overheat, executing permanent speed reducing operation for the signal issuing of the signal unit;
when the reason for the signal request error is that the signal unit is in the request duration failure, the operation of discarding the signal unit is performed for the signal unit.
Specifically, as an optional implementation manner of the present embodiment, a signal distribution device of the present embodiment, where the signal unit is a load server, and the signal distribution device is configured to implement load balancing of the load server, includes:
the token issuing module is used for respectively establishing token barrels for each load server, and the load servers generate tokens containing load server IDs through the respective token barrels;
the total barrel module is used for establishing a total barrel as a signal storage medium, and tokens in token barrels of a plurality of load servers are sequentially stored in the total barrel in a queue mode;
the token taking module is used for configuring load request information, taking out the corresponding token from the corresponding total barrel, analyzing the load server ID in the token, and sending the load request to the load server unit corresponding to the server ID.
Specifically, as another optional implementation manner of this embodiment, a signal distribution device of this embodiment, where the signal unit is an account resource, and the signal distribution device is configured to implement balanced distribution of the account resource, and includes:
the token issuing module is used for respectively establishing a token bucket for each account resource, and the account resource generates a token containing account information through the respective token bucket;
the total barrel module is used for establishing a total barrel as a signal storage medium, and tokens in token barrels of a plurality of account resources are sequentially stored in the total barrel in a queue mode;
and the token taking module is used for configuring load request information, taking out the corresponding token from the corresponding total barrel, analyzing account information in the token and using the account information.
Specifically, a signal distribution device of the present embodiment:
1) The system comprises a token issuing module, a token taking module, a total barrel module, a speed regulating module and an operation page.
2) The total barrel module establishes a total barrel as a signal storage medium, and is a data transmission medium of the token issuing module and the token taking module.
3) The token issuing module establishes a token bucket for each signal unit, can configure the number issuing speed and the queue length, and regularly generates signals to be written into the total bucket.
4) When the token taking module takes tokens, information [ ID, message, state information and date information (account number, password and token) are taken from the corresponding total barrels according to the total barrel ID, and signals in the tokens are analyzed for use.
5) After the service uses the signal, the result can be fed back to the speed regulating module, and the speed regulating module can execute the operations of temporary speed reduction, permanent speed reduction, abandoned signal unit and the like according to the situation (request error).
6) The speed regulating module can perform tidal speed control, timing acceleration and other operations according to the configuration.
7) And (3) making an operation page for the signal unit information, wherein a user can manually configure the signal unit, change the speed limit and the like.
Example two
The following describes an embodiment of an electronic device according to the present invention, which may be regarded as a specific physical implementation of the above-described embodiment of the method and apparatus according to the present invention. Details described in relation to the embodiments of the electronic device of the present invention should be considered as additions to the embodiments of the method or apparatus described above; for details not disclosed in the embodiments of the electronic device of the present invention, reference may be made to the above-described method or apparatus embodiments.
Fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, the electronic device including a processor and a memory, the memory being configured to store a computer-executable program, and the processor executing a near-line model self-iteration method according to the first embodiment when the computer program is executed by the processor.
As shown in fig. 2, the electronic device is in the form of a general purpose computing device. The processor may be one or a plurality of processors and work cooperatively. The invention does not exclude that the distributed processing is performed, i.e. the processor may be distributed among different physical devices. The electronic device of the present invention is not limited to a single entity, but may be a sum of a plurality of entity devices.
The memory stores a computer executable program, typically machine readable code. The computer readable program may be executable by the processor to enable an electronic device to perform the method, or at least some of the steps of the method, of the present invention.
The memory includes volatile memory, such as Random Access Memory (RAM) and/or cache memory, and may be non-volatile memory, such as Read Only Memory (ROM).
Optionally, in this embodiment, the electronic device further includes an I/O interface, which is used for exchanging data between the electronic device and an external device. The I/O interface may be a bus representing one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
It should be understood that the electronic device shown in fig. 2 is only one example of the present invention, and the electronic device of the present invention may further include elements or components not shown in the above examples. For example, some electronic devices further include a display unit such as a display screen, and some electronic devices further include a man-machine interaction element such as a button, a keyboard, and the like. The electronic device may be considered as covered by the invention as long as the electronic device is capable of executing a computer readable program in a memory for carrying out the method or at least part of the steps of the method.
Fig. 3 is a schematic diagram of a computer-readable recording medium of an embodiment of the present invention. As shown in fig. 3, a computer-readable recording medium stores a computer-executable program that, when executed, implements a near-line model self-iteration method according to the first embodiment of the present invention. The computer readable recording medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. The readable recording medium can also be any readable medium that can communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. The program code embodied on the readable recording medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
From the above description of embodiments, those skilled in the art will readily appreciate that the present invention may be implemented by hardware capable of executing a specific computer program, such as the system of the present invention, as well as electronic processing units, servers, clients, handsets, control units, processors, etc. included in the system. The invention may also be implemented by computer software executing the method of the invention, e.g. by control software executed by a microprocessor, an electronic control unit, a client, a server, etc. It should be noted, however, that the computer software for performing the method of the present invention is not limited to being executed by one or a specific hardware entity, but may also be implemented in a distributed manner by unspecified specific hardware. For computer software, the software product may be stored on a computer readable recording medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.), or may be stored distributed over a network, as long as it enables the electronic device to perform the method according to the invention.
The above embodiments are only for illustrating the present invention and not for limiting the technical solutions described in the present invention, and although the present invention has been described in detail in the present specification with reference to the above embodiments, the present invention is not limited to the above specific embodiments, and thus any modifications or equivalent substitutions are made to the present invention; all technical solutions and modifications thereof that do not depart from the spirit and scope of the invention are intended to be included in the scope of the appended claims.

Claims (10)

1. A method of signal distribution, comprising:
each signal unit respectively establishes a token bucket, and the signal units generate tokens containing signals through the respective token buckets;
establishing a total barrel as a signal storage medium, and sequentially storing tokens in token barrels of a plurality of signal units into the total barrel in a queue mode;
and configuring a signal information request signal, taking out a corresponding token from a corresponding total barrel, and analyzing signals in the token for use.
2. The method of claim 1, wherein each signal unit establishes a token bucket, and wherein generating tokens containing signals by the signal units through the respective token buckets comprises:
each signal unit respectively establishes one or more token barrels, and each token barrel can be configured with a signal issuing rate and a queue length;
the signal issuing control of the signal unit is realized by configuring the signal issuing rate and the queue length of the token bucket;
the tokens generated by the signal units through the respective token buckets contain a signal unit ID, state information of the signal units and signal information.
3. The signal distribution method according to claim 2, wherein said implementing signal distribution control of the signal unit by configuring the signal distribution rate and the queue length of the token bucket comprises:
the signal issuing rate of the token bucket is in adjustable speed configuration, and the timing acceleration control of signal issuing of the signal unit is realized by configuring that the signal issuing rate of the token bucket in a set time period is greater than the signal issuing rates of other time periods;
and/or, a single signal unit establishes at least two token barrels, and the tidal speed control of signal issuing of the signal unit is realized by configuring the number of the token barrels which are simultaneously opened in a set time period.
4. A signal distribution method according to claim 1, comprising:
after the signal in the token is used by the service, feeding back a using result of the signal;
and when the result of the use of the feedback signal is a signal request error, analyzing the reason of the signal request error, and performing temporary speed reduction, permanent speed reduction and discarding of the signal unit for the signal unit which issues the token.
5. The signal distribution method according to claim 4, wherein when the result of the feedback signal is a signal request error, analyzing the cause of the signal request error, and performing temporary speed reduction, permanent speed reduction, and discarding of the signal unit for the signal unit that issued the token comprises:
when the reason of the signal request error is that the signal unit is in the request peak period, performing temporary speed reduction operation on the signal issuing of the signal unit until the request peak period of the signal unit is over, and recovering the signal issuing rate of the signal unit;
when the reason for the signal request error is that the signal unit is in the request continuous overheat, executing permanent speed reducing operation for the signal issuing of the signal unit;
when the reason for the signal request error is that the signal unit is in the request duration failure, the operation of discarding the signal unit is performed for the signal unit.
6. The signal distribution method according to any one of claims 1 to 5, wherein the signal unit is a load server, and the signal distribution method is used for implementing load balancing of the load server, and includes:
each load server respectively establishes a token bucket, and the load server generates a token containing a load server ID through the respective token bucket;
the method comprises the steps of establishing a total barrel as a signal storage medium, and sequentially storing tokens in token barrels of a plurality of load servers into the total barrel in a queue mode;
and configuring load request information, taking out the corresponding token from the corresponding total barrel, analyzing the load server ID in the token, and requesting the load to the load server unit corresponding to the server ID.
7. The method for distributing signals according to any one of claims 1 to 5, wherein the signal unit is an account resource, and the method for distributing signals is used for realizing balanced distribution of the account resource, and includes:
each account resource respectively establishes a token bucket, and the account resource generates a token containing account information through the respective token bucket;
establishing a total barrel as a signal storage medium, and sequentially storing tokens in token barrels of a plurality of account resources into the total barrel in a queue mode;
and configuring load request information, taking out the corresponding token from the corresponding total barrel, analyzing account information in the token and using the account information.
8. A signal distribution device, comprising:
the token sending module is used for respectively establishing token barrels for each signal unit, and the signal units generate tokens containing signals through the respective token barrels;
the total barrel module is used for establishing a total barrel as a signal storage medium, and tokens in token barrels of a plurality of signal units are sequentially stored in the total barrel in a queue mode;
and the token taking module is used for configuring a signal taking information request signal, taking out a corresponding token from the corresponding total barrel and analyzing signals in the token for use.
9. Electronic device comprising a processor and a memory for storing a computer executable program, characterized in that the processor performs a signal distribution method according to any of claims 1-7 when the computer program is executed by the processor.
10. A computer-readable recording medium, characterized in that a computer-executable program is stored, which, when executed, implements a signal distribution method according to any one of claims 1-7.
CN202311708774.5A 2023-12-13 2023-12-13 Signal distribution method and device, electronic equipment and recording medium Pending CN117640522A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311708774.5A CN117640522A (en) 2023-12-13 2023-12-13 Signal distribution method and device, electronic equipment and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311708774.5A CN117640522A (en) 2023-12-13 2023-12-13 Signal distribution method and device, electronic equipment and recording medium

Publications (1)

Publication Number Publication Date
CN117640522A true CN117640522A (en) 2024-03-01

Family

ID=90037530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311708774.5A Pending CN117640522A (en) 2023-12-13 2023-12-13 Signal distribution method and device, electronic equipment and recording medium

Country Status (1)

Country Link
CN (1) CN117640522A (en)

Similar Documents

Publication Publication Date Title
US10908950B1 (en) Robotic process automation system with queue orchestration and task prioritization
US8898674B2 (en) Memory databus utilization management system and computer program product
US7644213B2 (en) Resource access manager for controlling access to a limited-access resource
US7500080B2 (en) Facilitating non-contiguous allocation of a large object within a java heap
CN102307133A (en) Virtual machine scheduling method for public cloud platform
CN109857542A (en) Calculate power resource adjustments method, system and device
CN111078745A (en) Data uplink method and device based on block chain technology
CN109726004A (en) A kind of data processing method and device
US20190171489A1 (en) Method of managing dedicated processing resources, server system and computer program product
US20160019089A1 (en) Method and system for scheduling computing
Li et al. Endpoint-flexible coflow scheduling across geo-distributed datacenters
Li et al. Hone: Mitigating stragglers in distributed stream processing with tuple scheduling
US20220413906A1 (en) Method, device, and program product for managing multiple computing tasks based on batch
US11762685B2 (en) Method and apparatus for scaling resources of graphics processing unit in cloud computing system
JP2023526747A (en) Communication optimization in distributed computing networks
CN110716809B (en) Method and device for scheduling cloud resources
JP2023505544A (en) Controlling transaction requests between applications and servers
CN117640522A (en) Signal distribution method and device, electronic equipment and recording medium
WO2023088462A1 (en) Method and apparatus for processing data, device, and storage medium
Jiang et al. AMS: Adaptive multiget scheduling algorithm for distributed key-value stores
CN114647499A (en) Asynchronous job task concurrency control method and device, electronic equipment and storage medium
US20190004876A1 (en) Technologies for managing web notifications in client-server systems
CN109842665A (en) Task processing method and device for task distribution server
US20210271520A1 (en) Application aware resource allocation for deep learning job scheduling
CN114385351A (en) Cloud management platform load balancing performance optimization method, device, equipment and medium

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