CN114338683A - Scheduling request processing method and device, storage medium and electronic equipment - Google Patents

Scheduling request processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114338683A
CN114338683A CN202111616937.8A CN202111616937A CN114338683A CN 114338683 A CN114338683 A CN 114338683A CN 202111616937 A CN202111616937 A CN 202111616937A CN 114338683 A CN114338683 A CN 114338683A
Authority
CN
China
Prior art keywords
scheduling request
clock
bob
pendulum
parameter
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.)
Granted
Application number
CN202111616937.8A
Other languages
Chinese (zh)
Other versions
CN114338683B (en
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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202111616937.8A priority Critical patent/CN114338683B/en
Publication of CN114338683A publication Critical patent/CN114338683A/en
Application granted granted Critical
Publication of CN114338683B publication Critical patent/CN114338683B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a scheduling request processing method, a scheduling request processing device, a storage medium and electronic equipment. Wherein, the method comprises the following steps: determining a clock bob parameter and a number of swings according to the received scheduling request, wherein the clock bob parameter comprises: the weight of the pendulum bob, the length of the lifting rope, the height of the falling point of the pendulum bob and the initial starting force; calculating to obtain an average swinging value based on the pendulum parameters of the clock and the swinging times; and issuing the scheduling request to a server corresponding to the swing interval to which the average swing value belongs. The invention solves the technical problems of low resource scheduling efficiency and unbalanced scheduling request distribution caused by adopting a fixed routing strategy to schedule resources in the prior art.

Description

Scheduling request processing method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of information technologies, and in particular, to the field of resource scheduling processing technologies, and in particular, to a scheduling request processing method and apparatus, a storage medium, and an electronic device.
Background
With the rapid development of the internet, the user quantity is also larger and larger, high concurrency is one of factors which must be considered in the architecture design of the internet distributed system, and vertical extension (improving single machine processing capacity) and horizontal extension (server cluster deployment) are basically adopted in the industry to deal with the high concurrency data request scene. Thus, a routing technology of the data request is derived, and at present, an algorithm deployed for a server cluster generally adopts: polling, hashing, etc.
However, the conventional request routing distribution methods all adopt fixed scheduling frequency, and when a large amount of data requests are faced, the request distribution methods are too mechanized, which easily causes the situation that part of servers are over stressed and cannot be fully utilized, and the scheduling request distribution is unbalanced, and the resource scheduling efficiency is low; in addition, when a server is added or deleted, configuration modification and restarting are needed, the process is complex, and modification efficiency is low.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
Embodiments of the present invention provide a scheduling request processing method, an apparatus, a storage medium, and an electronic device, so as to at least solve the technical problems of low resource scheduling efficiency and unbalanced scheduling request allocation caused by using a fixed routing policy to perform resource scheduling in the prior art.
According to an aspect of the embodiments of the present invention, a method for processing a scheduling request is provided, including: determining a clock bob parameter and a number of swings according to the received scheduling request, wherein the clock bob parameter comprises: the weight of the pendulum bob, the length of the lifting rope, the height of the falling point of the pendulum bob and the initial starting force; calculating to obtain an average swinging value based on the pendulum parameters of the clock and the swinging times; and issuing the scheduling request to a server corresponding to the swing interval to which the average swing value belongs.
Optionally, before determining the pendulum parameters and the number of swings of the clock according to the received scheduling request, the method further includes: determining a plurality of servers for processing scheduling requests; and randomly generating the corresponding swing interval for each server.
Optionally, determining a clock bob parameter according to the received scheduling request includes: acquiring the clock pendulum bob parameter carried by the scheduling request; checking whether the pendulum parameters of the clock meet parameter requirements or not; and determining to obtain the pendulum bob parameter of the clock under the condition that the calibration result shows that the pendulum bob parameter of the clock meets the parameter requirement.
Optionally, the issuing the scheduling request to a server corresponding to the swing interval to which the average swing value belongs includes: acquiring an average swing value corresponding to the scheduling request; analyzing the distribution information of the scheduling request based on the swing interval to which the average swing value belongs; and issuing the scheduling request to the server corresponding to the swing interval according to the distribution information.
According to another aspect of the embodiments of the present invention, there is also provided a scheduling request processing apparatus, including: a determining module, configured to determine a clock bob parameter and a number of swings according to the received scheduling request, where the clock bob parameter includes: the weight of the pendulum bob, the length of the lifting rope, the height of the falling point of the pendulum bob and the initial starting force; the calculating module is used for calculating to obtain an average swinging value based on the clock pendulum parameters and the swinging times; and the issuing module is used for issuing the scheduling request to a server corresponding to the swing interval to which the average swing value belongs.
Optionally, the apparatus further comprises: a first determining submodule for determining a plurality of servers for processing the scheduling request; and the generation submodule is used for randomly generating the corresponding swing interval for each server.
Optionally, the determining module includes: the first obtaining submodule is used for obtaining the clock pendulum bob parameter carried by the dispatching request; the checking submodule is used for checking whether the pendulum parameters of the clock meet parameter requirements or not; and the second determining submodule is used for determining and obtaining the clock pendulum bob parameter under the condition that the verification result shows that the clock pendulum bob parameter meets the parameter requirement.
Optionally, the issuing module includes: a second obtaining submodule, configured to obtain an average swing value analysis submodule corresponding to the scheduling request, and configured to analyze distribution information of the scheduling request based on a swing interval to which the average swing value belongs; and a first issuing submodule configured to issue the scheduling request to the server corresponding to the swing interval according to the distribution information.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium storing a plurality of instructions, the instructions being adapted to be loaded by a processor and to execute any one of the above scheduling request processing methods.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the computer program to perform any one of the above scheduling request processing methods.
In the embodiment of the present invention, a scheduling request processing manner is adopted, and a clock bob parameter and a swinging frequency are determined according to a received scheduling request, where the clock bob parameter includes: the weight of the pendulum bob, the length of the lifting rope, the height of the falling point of the pendulum bob and the initial starting force; calculating to obtain an average swinging value based on the pendulum parameters of the clock and the swinging times; the scheduling request is sent to the server corresponding to the swing interval to which the average swing value belongs, so that the purpose of selecting a proper server according to the scheduling request is achieved, the technical effects of improving the resource scheduling efficiency, balancing the allocation of the scheduling request and relieving the server pressure are achieved, and the technical problems of low resource scheduling efficiency and unbalanced allocation of the scheduling request due to the fact that a fixed routing strategy is adopted for resource scheduling in the prior art are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart of a scheduling request processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an alternative pendulum model of a timepiece according to an embodiment of the invention;
FIG. 3 is a flow chart of an alternative method of scheduling request processing according to an embodiment of the present invention;
FIG. 4 is a flow diagram of an alternative method of scheduling request processing according to an embodiment of the present invention;
FIG. 5 is a flow diagram of an alternative method of scheduling request processing according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a scheduling request processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of a method of scheduling request processing, it being noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that presented herein.
Fig. 1 is a flowchart of a scheduling request processing method according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, determining pendulum parameters and swinging times of a clock according to a received scheduling request;
step S104, calculating to obtain an average swinging value based on the pendulum parameters of the clock and the swinging times;
and step S106, sending the scheduling request to a server corresponding to the swing interval to which the average swing value belongs.
Optionally, the pendulum parameters of the timepiece include: the weight of the pendulum, the length of the lifting rope, the height of the drop point of the pendulum, the magnitude of the initial starting force.
Alternatively, fig. 2 is a schematic diagram of an alternative pendulum model of a clock according to an embodiment of the present invention, and as shown in fig. 2, according to the motion of the pendulum, pendulum parameters such as weight of the pendulum, length of the lifting rope, height of the falling point of the pendulum, and magnitude of the initial starting force can be determined, and an average swing value of the pendulum can be calculated according to the pendulum parameters and the number of swings.
In the embodiment of the present invention, a scheduling request processing manner is adopted, and a clock bob parameter and a swinging frequency are determined according to a received scheduling request, where the clock bob parameter includes: the weight of the pendulum bob, the length of the lifting rope, the height of the falling point of the pendulum bob and the initial starting force; calculating to obtain an average swinging value based on the pendulum parameters of the clock and the swinging times; the scheduling request is sent to the server corresponding to the swing interval to which the average swing value belongs, so that the purpose of selecting a proper server according to the scheduling request is achieved, the technical effects of improving the resource scheduling efficiency, balancing the allocation of the scheduling request and relieving the server pressure are achieved, and the technical problems of low resource scheduling efficiency and unbalanced allocation of the scheduling request due to the fact that a fixed routing strategy is adopted for resource scheduling in the prior art are solved.
It should be noted that, in the scheduling request processing method in the prior art, all servers adopt fixed scheduling frequency, and the request distribution manner is not mechanized enough, and the embodiment of the present invention can dynamically adjust the interval of the server, and if the resource of a certain server is good, the swing interval of the server can be dynamically changed, so as to achieve the purpose of increasing the server call frequency; that is, the dynamic analysis server is adopted to bear a request threshold (namely a swing interval) to distribute an initial value of a pendulum bob of the clock, so as to deal with a high-concurrency data request scene.
It should be noted that, in the embodiments of the present invention, a user-defined request routing policy is implemented, a swing result obtained through an output clock pendulum parameter is compared with a server swing interval, and a request is distributed to a server in a corresponding interval, so that a distribution condition of the corresponding request can be dynamically adjusted according to server resources, which is more convenient and flexible.
In an alternative embodiment, before determining the clock bob parameter and the number of oscillations based on the received scheduling request, the method further comprises:
step S202, determining a plurality of servers for processing scheduling requests;
step S204, randomly generating the corresponding wobble interval for each server.
Optionally, before scheduling is requested, a swing interval is allocated to a plurality of servers, and if the average swing value of the clock bob falls within a certain interval, the scheduling request is distributed to the server corresponding to the interval.
As an alternative embodiment, fig. 3 is a flowchart of an alternative scheduling request processing method according to an embodiment of the present invention, and as shown in fig. 3, determining a clock bob parameter according to a received scheduling request includes:
step S302, acquiring the clock pendulum bob parameter carried by the scheduling request;
step S304, checking whether the pendulum parameters of the clock meet parameter requirements;
and step S306, determining to obtain the pendulum bob parameters of the clock under the condition that the verification result shows that the pendulum bob parameters of the clock meet the parameter requirements.
It should be noted that, since abnormal swinging may occur during the movement of the clock pendulum, it is necessary to check whether or not parameters such as the weight of the pendulum carried in the scheduling request, the length of the suspension rope, the height of the falling point of the pendulum, the magnitude of the initial starting force, and the number of swings meet the requirements before calculating the average swinging value based on the clock pendulum parameters, and in the case where it is determined that all the parameters meet the requirements, it is determined that the clock pendulum parameters are obtained, and the average swinging value is calculated based on the clock pendulum parameters.
As an alternative embodiment, fig. 4 is a flowchart of another alternative scheduling request processing method according to an embodiment of the present invention, and as shown in fig. 4, issuing the scheduling request to a server corresponding to a swing interval to which the average swing value belongs includes:
step S402, obtaining an average swing value corresponding to the scheduling request;
step S404, analyzing the distribution information of the dispatching request based on the swing interval of the average swing value;
step S406 is to issue the scheduling request to the server corresponding to the wobble interval according to the distribution information.
Optionally, the distribution information includes current distribution conditions of a plurality of servers, for example, which servers are currently fully utilized, which servers are not fully utilized, and the like.
Optionally, under the condition that the clock pendulum parameters carried by the scheduling request meet parameter requirements, calculating an average swing value based on the clock pendulum parameters and the swing times; recording the average swing value and the swing interval to which the average swing value belongs, and analyzing distribution information of the scheduling request based on the swing interval to which the average swing value belongs, such as which servers are fully utilized currently, which servers are not fully utilized, and the like; and issuing the scheduling request to the server corresponding to the swing interval according to the distribution information.
It should be noted that, by obtaining the average swing value corresponding to the scheduling request; analyzing the distribution information of the scheduling request based on the swing interval to which the average swing value belongs; and if the pressure of a certain server is too large, parameters output by a background can be dynamically adjusted to ensure the dynamic distribution of the request, so that the aim of relieving the pressure of the server is fulfilled.
As an alternative embodiment, fig. 5 is a flowchart of another alternative scheduling request processing method according to an embodiment of the present invention, as shown in fig. 5, a server is allocated a swing interval before a request is scheduled, and if the swing value of the clock pendulum is within the interval, a router distributes the request to the server; checking whether the pendulum parameters (namely the weight of the pendulum, the length of a lifting rope, the height of a falling point of the pendulum and the initial starting force) and the swinging times of the clock input by the request meet the requirements or not; if the judgment result is yes, calculating the average value of the pendulum bob of the clock at this time based on the pendulum bob parameters and the swinging times of the clock; recording the final average swing value of the request, and determining the current server distribution condition according to the big data analysis request in the later period; and according to the distribution situation, distributing the scheduling request corresponding to the current swing result (namely the final average swing value) to the server corresponding to the swing interval to which the scheduling request belongs.
It should be noted that, in the scheduling request processing method in the prior art, all servers adopt fixed scheduling frequency, and the request distribution manner is not mechanized enough, and the embodiment of the present invention can dynamically adjust the interval of the server, and if the resource of a certain server is good, the swing interval of the server can be dynamically changed, so as to achieve the purpose of increasing the server call frequency; the embodiment of the invention can also carry out dynamic analysis according to the collected swing records and the server CPU resources, if the pressure of a certain server is overlarge, the parameters output by the background can be dynamically adjusted to ensure the dynamic distribution of the request, so as to achieve the aim of relieving the pressure of the server; in addition, in the scheduling request processing method in the prior art, if servers are added or deleted, configuration modification and restarting are required to be realized, but the embodiment of the invention can achieve the purpose of dynamically increasing or decreasing the servers by changing the swing interval.
It should also be noted that while for simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it should be appreciated by those skilled in the art that the present invention is not limited by the illustrated ordering of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, a scheduling request processing apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted. As used hereinafter, the terms "module" and "apparatus" may refer to a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
According to an embodiment of the present invention, an embodiment of an apparatus for implementing the method for processing a scheduling request is further provided, fig. 6 is a schematic structural diagram of the scheduling request processing apparatus according to the embodiment of the present invention, and as shown in fig. 6, the scheduling request processing apparatus includes: a determination module 50, a calculation module 52, and a distribution module 54, wherein:
the determining module 50 is configured to determine a clock bob parameter and a number of swings according to the received scheduling request, wherein the clock bob parameter includes: the weight of the pendulum bob, the length of the lifting rope, the height of the falling point of the pendulum bob and the initial starting force; the calculating module 52 is configured to calculate an average swing value based on the clock pendulum parameter and the number of swings; the issuing module 54 is configured to issue the scheduling request to a server corresponding to the swing interval to which the average swing value belongs.
In the embodiment of the present invention, a scheduling request processing manner is adopted, and the determining module 50 is configured to determine a clock bob parameter and a number of swings according to a received scheduling request, where the clock bob parameter includes: the weight of the pendulum bob, the length of the lifting rope, the height of the falling point of the pendulum bob and the initial starting force; the calculating module 52 is configured to calculate an average swing value based on the clock pendulum parameter and the number of swings; the issuing module 54 is configured to issue the scheduling request to a server corresponding to the swing interval to which the average swing value belongs, so as to achieve a purpose of selecting a suitable server according to a scheduling request requirement, thereby achieving technical effects of improving resource scheduling efficiency, balancing and allocating the scheduling request, and relieving server pressure, and further solving technical problems of low resource scheduling efficiency and unbalanced scheduling request allocation caused by adopting a fixed routing policy for resource scheduling in the prior art.
It should be noted that the above modules may be implemented by software or hardware, for example, for the latter, the following may be implemented: the modules can be located in the same processor; alternatively, the modules may be located in different processors in any combination.
It should be noted that the determining module 50, the calculating module 52, and the issuing module 54 correspond to steps S102 to S106 in embodiment 1, and the modules are the same as the corresponding steps in the implementation example and the application scenario, but are not limited to the disclosure in embodiment 1. It should be noted that the modules described above may be implemented in a computer terminal as part of an apparatus.
It should be noted that, reference may be made to the relevant description in embodiment 1 for alternative or preferred embodiments of this embodiment, and details are not described here again.
The scheduling request processing apparatus may further include a processor and a memory, where the determining module 50, the calculating module 52, the issuing module 54, and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
In an optional embodiment, the apparatus further comprises: a first determining submodule for determining a plurality of servers for processing the scheduling request; and the generation submodule is used for randomly generating the corresponding swing interval for each server.
In an optional embodiment, the determining module includes: the first obtaining submodule is used for obtaining the clock pendulum bob parameter carried by the dispatching request; the checking submodule is used for checking whether the pendulum parameters of the clock meet parameter requirements or not; and the second determining submodule is used for determining and obtaining the clock pendulum bob parameter under the condition that the verification result shows that the clock pendulum bob parameter meets the parameter requirement.
In an optional embodiment, the issuing module includes: the second obtaining submodule is used for obtaining an average swing value corresponding to the scheduling request; the analysis submodule is used for analyzing the distribution information of the scheduling request based on the swing interval to which the average swing value belongs; and a first issuing submodule configured to issue the scheduling request to the server corresponding to the swing interval according to the distribution information.
The processor comprises a kernel, and the kernel calls a corresponding program unit from the memory, wherein one or more than one kernel can be arranged. The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
According to an embodiment of the present application, there is also provided an embodiment of a non-volatile storage medium. Optionally, in this embodiment, the nonvolatile storage medium includes a stored program, and the apparatus in which the nonvolatile storage medium is located is controlled to execute any one of the scheduling request processing methods when the program runs.
Optionally, in this embodiment, the nonvolatile storage medium may be located in any one of computer terminals in a computer terminal group in a computer network, or in any one of mobile terminals in a mobile terminal group, and the nonvolatile storage medium includes a stored program.
Optionally, the device in which the non-volatile storage medium is controlled to execute the following functions when the program runs: determining a clock bob parameter and a number of swings according to the received scheduling request, wherein the clock bob parameter comprises: the weight of the pendulum bob, the length of the lifting rope, the height of the falling point of the pendulum bob and the initial starting force; calculating to obtain an average swinging value based on the pendulum parameters of the clock and the swinging times; and issuing the scheduling request to a server corresponding to the swing interval to which the average swing value belongs.
Optionally, the device in which the non-volatile storage medium is controlled to execute the following functions when the program runs: determining a plurality of servers for processing scheduling requests; and randomly generating the corresponding swing interval for each server.
Optionally, the device in which the non-volatile storage medium is controlled to execute the following functions when the program runs: acquiring the clock pendulum bob parameter carried by the scheduling request; checking whether the pendulum parameters of the clock meet parameter requirements or not; and determining to obtain the pendulum bob parameter of the clock under the condition that the calibration result shows that the pendulum bob parameter of the clock meets the parameter requirement.
Optionally, the device in which the non-volatile storage medium is controlled to execute the following functions when the program runs: acquiring an average swing value corresponding to the scheduling request; analyzing the distribution information of the scheduling request based on the swing interval to which the average swing value belongs; and issuing the scheduling request to the server corresponding to the swing interval according to the distribution information.
According to an embodiment of the present application, there is also provided an embodiment of a processor. Optionally, in this embodiment, the processor is configured to execute a program, where the program executes any one of the scheduling request processing methods when running.
There is further provided, according to an embodiment of the present application, an embodiment of a computer program product, which is adapted to execute a program, when executed on a data processing device, for initializing the steps of the scheduling request processing method of any of the above.
Optionally, the computer program product is adapted to perform a program for initializing the following method steps when executed on a data processing device: determining a clock bob parameter and a number of swings according to the received scheduling request, wherein the clock bob parameter comprises: the weight of the pendulum bob, the length of the lifting rope, the height of the falling point of the pendulum bob and the initial starting force; calculating to obtain an average swinging value based on the pendulum parameters of the clock and the swinging times; and issuing the scheduling request to a server corresponding to the swing interval to which the average swing value belongs.
According to an embodiment of the present application, there is further provided an embodiment of an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the computer program to perform any one of the scheduling request processing methods.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable non-volatile storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a non-volatile storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned nonvolatile storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A scheduling request processing method, comprising:
determining clock bob parameters and a number of swings according to the received scheduling request, wherein the clock bob parameters include: the weight of the pendulum bob, the length of the lifting rope, the height of the falling point of the pendulum bob and the initial starting force;
calculating to obtain an average swinging value based on the clock pendulum parameters and the swinging times;
and issuing the scheduling request to a server corresponding to the swing interval to which the average swing value belongs.
2. The method of claim 1, wherein prior to determining clock bob parameters and number of swings from the received scheduling request, the method further comprises:
determining a plurality of servers for processing scheduling requests;
and randomly generating the corresponding swing interval for each server.
3. The method of claim 1, wherein determining clock bob parameters from the received scheduling request comprises:
acquiring the clock pendulum bob parameter carried by the scheduling request;
checking whether the pendulum parameters of the clock meet parameter requirements or not;
and determining to obtain the pendulum bob parameter of the clock under the condition that the verification result shows that the pendulum bob parameter of the clock meets the parameter requirement.
4. The method according to claim 1, wherein issuing the scheduling request to a server corresponding to the swing interval to which the average swing value belongs comprises:
acquiring an average swing value corresponding to the scheduling request;
analyzing the distribution information of the scheduling request based on the swing interval to which the average swing value belongs;
and issuing the scheduling request to the server corresponding to the swing interval according to the distribution information.
5. A scheduling request processing apparatus, comprising:
a determining module, configured to determine a clock bob parameter and a number of swings according to the received scheduling request, wherein the clock bob parameter includes: the weight of the pendulum bob, the length of the lifting rope, the height of the falling point of the pendulum bob and the initial starting force;
the calculation module is used for calculating to obtain an average swinging value based on the clock pendulum parameters and the swinging times;
and the issuing module is used for issuing the scheduling request to a server corresponding to the swing interval to which the average swing value belongs.
6. The apparatus of claim 5, further comprising:
a first determining submodule for determining a plurality of servers for processing the scheduling request;
and the generation submodule is used for randomly generating the corresponding swing interval for each server.
7. The apparatus of claim 5, wherein the determining module comprises:
the first obtaining submodule is used for obtaining the clock pendulum bob parameter carried by the scheduling request;
the checking submodule is used for checking whether the pendulum parameters of the clock meet parameter requirements or not;
and the second determining submodule is used for determining and obtaining the clock pendulum bob parameter under the condition that the verification result shows that the clock pendulum bob parameter meets the parameter requirement.
8. The apparatus of claim 5, wherein the issuing module comprises:
the second obtaining submodule is used for obtaining an average swing value corresponding to the scheduling request;
the analysis submodule is used for analyzing the distribution information of the scheduling request based on the swing interval to which the average swing value belongs;
and the first issuing submodule is used for issuing the scheduling request to the server corresponding to the swing interval according to the distribution information.
9. A computer-readable storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the method of processing scheduling requests of any of claims 1 to 4.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is configured to execute the computer program to perform the method of processing a scheduling request of any of claims 1 to 4.
CN202111616937.8A 2021-12-27 2021-12-27 Scheduling request processing method and device, storage medium and electronic equipment Active CN114338683B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111616937.8A CN114338683B (en) 2021-12-27 2021-12-27 Scheduling request processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111616937.8A CN114338683B (en) 2021-12-27 2021-12-27 Scheduling request processing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN114338683A true CN114338683A (en) 2022-04-12
CN114338683B CN114338683B (en) 2024-04-30

Family

ID=81015841

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111616937.8A Active CN114338683B (en) 2021-12-27 2021-12-27 Scheduling request processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114338683B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277861A (en) * 2022-06-14 2022-11-01 中国电信股份有限公司 Request distribution method and device, nonvolatile storage medium and processor

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868650A (en) * 2016-06-03 2016-08-17 腾讯科技(深圳)有限公司 Information processing method and system, server and terminals
CN110324847A (en) * 2018-03-30 2019-10-11 上海华为技术有限公司 A kind of processing method of interface-free resources, base station and server
CN110795203A (en) * 2018-08-03 2020-02-14 阿里巴巴集团控股有限公司 Resource scheduling method, device and system and computing equipment
WO2021088207A1 (en) * 2019-11-04 2021-05-14 深圳先进技术研究院 Mixed deployment-based job scheduling method and apparatus for cloud computing cluster, server and storage device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868650A (en) * 2016-06-03 2016-08-17 腾讯科技(深圳)有限公司 Information processing method and system, server and terminals
CN110324847A (en) * 2018-03-30 2019-10-11 上海华为技术有限公司 A kind of processing method of interface-free resources, base station and server
CN110795203A (en) * 2018-08-03 2020-02-14 阿里巴巴集团控股有限公司 Resource scheduling method, device and system and computing equipment
WO2021088207A1 (en) * 2019-11-04 2021-05-14 深圳先进技术研究院 Mixed deployment-based job scheduling method and apparatus for cloud computing cluster, server and storage device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277861A (en) * 2022-06-14 2022-11-01 中国电信股份有限公司 Request distribution method and device, nonvolatile storage medium and processor

Also Published As

Publication number Publication date
CN114338683B (en) 2024-04-30

Similar Documents

Publication Publication Date Title
CN109218355B (en) Load balancing engine, client, distributed computing system and load balancing method
CN109618002B (en) Micro-service gateway optimization method, device and storage medium
CN110795203B (en) Resource scheduling method, device, system and computing equipment
CN105516347B (en) A kind of method and device of the load balancing allotment of streaming media server
CN108683720A (en) A kind of container cluster service configuration method and device
CN103607424B (en) Server connection method and server system
CN110008206B (en) Data processing method and device based on block chain system
CN111694663A (en) Load balancing method, device and system for server cluster
CN106155763A (en) Dispatching method of virtual machine and device
CN107733805B (en) Service load scheduling method and device
CN112860383A (en) Cluster resource scheduling method, device, equipment and storage medium
CN109902103A (en) Service data management method, device, equipment and computer readable storage medium
CN108664321A (en) System resource allocation method of adjustment and device
CN111381957A (en) Service instance fine scheduling method and system for distributed platform
CN114338683A (en) Scheduling request processing method and device, storage medium and electronic equipment
CN104572298B (en) The resource regulating method and device of video cloud platform
CN113885794A (en) Data access method and device based on multi-cloud storage, computer equipment and medium
CN106487903A (en) A kind of node selection method and system based on virtualized SaaS cloud platform
CN109684084A (en) A kind of distribution method of bus resource, system and associated component
CN111475251A (en) Cluster container scheduling method, system, terminal and storage medium
CN108989387B (en) Method, device and equipment for controlling asynchronous request
CN111124672A (en) Data distribution method based on Redis cluster and related equipment
CN114173396B (en) Method and device for determining terminal networking time, electronic equipment and storage medium
CN104899072A (en) Fine-grained resource dispatching system and fine-grained resource dispatching method based on virtualization platform
CN115580618A (en) Load balancing 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
GR01 Patent grant
GR01 Patent grant