[go: up one dir, main page]

CN119759586B - A resource allocation method based on event response - Google Patents

A resource allocation method based on event response Download PDF

Info

Publication number
CN119759586B
CN119759586B CN202510258592.5A CN202510258592A CN119759586B CN 119759586 B CN119759586 B CN 119759586B CN 202510258592 A CN202510258592 A CN 202510258592A CN 119759586 B CN119759586 B CN 119759586B
Authority
CN
China
Prior art keywords
event
resource allocation
request
preset
request event
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.)
Active
Application number
CN202510258592.5A
Other languages
Chinese (zh)
Other versions
CN119759586A (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.)
Zhonghe Yunke Information Technology Group Co ltd
Original Assignee
Zhonghe Yunke Information Technology Group 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 Zhonghe Yunke Information Technology Group Co ltd filed Critical Zhonghe Yunke Information Technology Group Co ltd
Priority to CN202510258592.5A priority Critical patent/CN119759586B/en
Publication of CN119759586A publication Critical patent/CN119759586A/en
Application granted granted Critical
Publication of CN119759586B publication Critical patent/CN119759586B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Debugging And Monitoring (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The invention relates to the technical field of data processing, in particular to a resource allocation method based on event response, which comprises the steps of responding to a user to send request events, detecting the number of the request events and the historical central processing unit utilization rate of each request event in a first preset time period, determining the initial resource allocation type of the request events based on event request triggering characteristic parameters, wherein the initial resource allocation type comprises a first type resource allocation mode and a second type resource allocation mode, determining a resource allocation optimization strategy corresponding to the request events when the resource allocation of the request events is judged to be not in accordance with preset standards according to load power in the first type resource allocation mode, and reducing the corresponding memory occupation ratio of the request events to a corresponding value when the resource allocation of the request events is judged to be not in accordance with the preset standards according to average katon time periods in the second type resource allocation mode, so that the resource utilization rate is improved.

Description

Resource allocation method based on event response
Technical Field
The invention relates to the technical field of data processing, in particular to a resource allocation method based on event response.
Background
Event responses generally refer to the preparation of an organization to deal with unexpected events such as cyber security threats, security vulnerabilities, or cyber attacks, and the actions taken after the event occurs. The method aims at preventing the occurrence of network attacks, reducing the cost and service interruption caused by the network attacks as much as possible, and ensuring that organizations have enough restoring force to avoid persistent damage caused by the attacks.
Resource allocation refers to the process of reasonably allocating computing resources (e.g., CPU, GPU, memory, etc.) in a server or computing cluster to different tasks, users, or applications. The process aims at improving the overall calculation efficiency and performance, ensuring that resources are efficiently utilized, and meeting the requirements of different tasks and users. By comprehensively considering the priority of tasks, the resource demand, the system load and the specific requirements of users and adopting the technical means such as a dynamic scheduling strategy, a load balancing algorithm and the like, reasonable allocation and efficient utilization of resources can be realized.
CN112101727a discloses a method, a device, equipment and a storage medium for resource allocation, which relate to the technical field of data processing, and can realize uniform allocation of resources and improve the accuracy of resource allocation. The method comprises the steps of responding to a resource allocation request sent by a client for a target event, obtaining target behavior data of a target user related to the resource allocation granularity of the target event, analyzing each target behavior data according to a preset weight analysis model to obtain an influence weight value of each target behavior data on the resource allocation of the target event, and carrying out the resource allocation of the target event on the target user according to the influence weight value of each target behavior data on the resource allocation of the target event. It can be seen that, in the prior art, although the resource allocation is performed based on the target behavior data of the target user and the preset weight analysis model, the situations of too high system load, too many request events and the like cannot be monitored in real time, and thus the resource allocation cannot be dynamically adjusted, so that the resource utilization rate is low.
Disclosure of Invention
Therefore, the invention provides a resource allocation method based on event response, which is used for solving the problems that the resource utilization rate is low because the dynamic adjustment of the resource allocation cannot be carried out due to the situations of the prior art that the system load is too high, the number of the request events is too large and the like cannot be monitored in real time.
In order to achieve the above object, the present invention provides a resource allocation method based on event response, including:
responding to a user to send request events, detecting the number of the request events and the historical central processing unit utilization rate of each request event in a first preset time period, and determining event request triggering characteristic parameters according to the historical central processing unit utilization rate of each request event;
determining the type of initial resource allocation of the request event based on the event request triggering characteristic parameter, wherein the type of initial resource allocation comprises a type resource allocation mode and a type resource allocation mode;
under a first type of resource allocation mode, detecting the load power of the system within a second preset time period, and determining that the resource allocation of the request event does not meet a preset standard according to the load power, and determining a corresponding resource allocation optimization strategy according to the number of the request event, wherein the resource allocation optimization strategy comprises the steps of reducing the resource allocation duty ratio corresponding to each request event to a corresponding value or re-allocating the resources after sequencing the request event;
And under a second-class resource allocation mode, acquiring the average cartoon duration of the request event in a second preset duration, and increasing the corresponding memory duty ratio of the request event to a corresponding value when the resource allocation of the request event is judged to not meet the preset standard according to the average cartoon duration.
Further, a process for calculating an event request trigger feature parameter includes:
solving the product of the historical CPU utilization rate of the request event and each calculation force influence factor to obtain a request triggering characteristic component;
Solving the average value of the request triggering characteristic components corresponding to each request event to obtain the event request triggering characteristic parameters;
the trigger influence factors comprise the core number of the central processing unit, the single-core main frequency of the central processing unit and the floating point operand of the central processing unit.
Further, a process for determining a type of initial resource allocation based on the event request triggering characteristic parameter includes:
Comparing the event request triggering characteristic parameter with a preset event request triggering threshold value;
If the event request triggering characteristic parameter is smaller than the preset event request triggering threshold, performing resource allocation on the request event by using a second-class resource allocation mode;
if the event request triggering characteristic parameter is greater than or equal to the preset event request triggering threshold, performing resource allocation on the request event by using a resource allocation mode;
The resource allocation method comprises the steps of carrying out resource allocation according to the requirement of a request event before the request event is operated, wherein the resource allocation method does not change in the operation process of the request event;
the second-class resource allocation mode is a resource allocation mode for dynamically allocating resources according to the current resource allocation condition and the requirements of the request event when the request event needs resources in the operation process.
Further, in the resource allocation mode, determining whether the resource allocation of the request event meets a preset standard according to the load power, wherein,
If the load power is smaller than the preset load power, judging that the resource allocation of the request event meets the preset standard;
If the load power is greater than or equal to the preset load power, judging that the resource allocation of the request event does not accord with a preset standard, and determining a corresponding resource allocation optimization strategy according to the number of the request event.
Further, a corresponding resource allocation optimization strategy is determined according to the number of the request events, wherein,
If the number of the request events is smaller than the preset number, reducing the resource allocation ratio corresponding to each request event to a corresponding value according to the difference value between the number of the request events and the preset number;
And if the number of the request events is greater than or equal to the preset number, the request events are sequenced and then resources are allocated again.
Further, the ordering mode of the request events includes:
re-allocating resources for each request event according to the priority of each request event;
Under the condition that the priority of each request event is the same, re-distributing resources according to the load power of each request event;
The priority is ordered based on the importance of each of the request events.
Further, a plurality of resource adjustment modes are set for the reduction of the resource allocation duty ratio corresponding to the request event, wherein,
If the number difference is smaller than the first preset number difference, reducing the resource allocation duty ratio corresponding to the request event to a corresponding value by using a first preset resource adjustment coefficient;
if the number difference value is larger than or equal to the first preset number difference value and smaller than the second preset number difference value, reducing the resource allocation duty ratio corresponding to the request event to a corresponding value by using a second preset resource adjustment coefficient;
if the number difference value is larger than or equal to the second preset number difference value, reducing the resource allocation duty ratio corresponding to the request event to a corresponding value by using a third preset resource adjustment coefficient;
The number difference is a difference between the number of the request events and a preset number.
Further, the correction of the resource allocation duty ratio corresponding to the request event is set with a plurality of resource correction modes under the first preset condition, wherein,
If the execution duration difference value is smaller than the first preset event execution difference value, correcting the resource corresponding to the request event to a corresponding value by using a first preset correction coefficient;
if the execution duration difference value is greater than or equal to the first preset event execution difference value and less than the second preset event execution difference value, correcting the resource corresponding to the request event to a corresponding value by using a second preset correction coefficient;
If the execution duration difference value is greater than or equal to the second preset event execution difference value, correcting the resource corresponding to the request event to a corresponding value by using a third preset correction coefficient;
The first preset condition is that the resource allocation proportion corresponding to the request event is adjusted, the average execution duration of the event after adjustment exceeds the preset average execution duration, and the execution duration difference value is the difference value between the average execution duration of the event after adjustment and the preset average execution duration.
Further, in the second-class resource allocation mode, determining whether the resource allocation of the request event meets a preset standard according to the average katen duration of the request event within a second preset duration,
If the average blocking duration is smaller than the preset average blocking duration, judging that the resource allocation of the request event meets the preset standard;
if the average length of the blocking period is greater than or equal to the preset average length of the blocking period, determining that the resource allocation of the request event does not meet the preset standard, and increasing the corresponding memory duty ratio of the request event to a corresponding value according to the difference between the average length of the blocking period and the preset average length of the blocking period.
Further, the increasing amplitude of the corresponding memory duty ratio of the request event is positively correlated with the difference value of the length of the pause, wherein the difference value of the length of the pause is the difference value between the average pause time length and the preset average pause time length.
Compared with the prior art, the method has the advantages that the method responds to the request event of the user in real time, the resource allocation mode of the request event is determined according to the event request triggering characteristic parameters, the resource allocation mode of the request event comprises a first class resource allocation mode and a second class resource allocation mode, the adaptability of the resource allocation method is improved, the rationality of the allocation of the resources corresponding to each request event is checked according to the load power and the number of the request event in the first class resource allocation mode, the excessive allocation of the resources is avoided, and whether the resource allocation reaches the standard or not is judged by detecting the average blocking duration of the request event in the second class resource allocation mode, so that the fine management of the resource allocation is realized, and the utilization rate of the resources is improved.
Furthermore, the invention determines the type of initial resource allocation according to the triggering characteristic parameters of the event request, evaluates the resource requirement of the request event in real time, and flexibly selects one type of resource allocation mode or two types of resource allocation mode, thereby improving the flexibility of resource allocation.
Further, the invention judges whether the resource allocation of the request event accords with the preset standard according to the load power, and avoids excessive or insufficient allocation of the resources corresponding to the request event, thereby ensuring effective utilization of the resources.
Furthermore, the invention intelligently evaluates the resource requirement of the request event by setting the event request triggering characteristic parameter, thereby improving the accuracy of resource allocation.
Further, the invention determines the corresponding resource allocation optimization strategy according to the number of the request events, thereby realizing the fine management of the resource allocation.
Furthermore, the invention sets a plurality of resource adjusting modes aiming at the reduction of the resources corresponding to the request event, and each adjusting mode has different reduction amplitude of the resource allocation proportion corresponding to the request event, thereby realizing the accurate control of the reduction amplitude of the resource allocation proportion corresponding to the request event.
Further, according to the invention, whether the resource allocation of the request event accords with the preset standard is judged by setting the average katon time length of the request event within the second preset time length, wherein the katon time length generally refers to a time period of response delay or interface unsmooth in the process of executing the task by the computer, and the katon time length is reduced by increasing the corresponding memory duty ratio of the request event, so that the user experience is optimized.
Furthermore, the invention realizes the accurate control of the increasing amplitude of the corresponding memory duty ratio of the request event by setting the increasing amplitude of the corresponding memory duty ratio of the request event to be in positive correlation with the difference value of the length of the pause.
Drawings
FIG. 1 is a flow chart of a resource allocation method based on event response according to an embodiment of the present invention;
FIG. 2 is a flow chart of determining the type of initial resource allocation according to an embodiment of the present invention;
FIG. 3 is a flowchart of determining whether the resource allocation of the request event meets the preset criteria according to the load power according to the embodiment of the present invention;
Fig. 4 is a flowchart of determining whether the resource allocation of the request event meets the preset standard according to the average katen duration of the request event within the second preset duration according to the embodiment of the present invention.
Detailed Description
The invention will be further described with reference to examples for the purpose of making the objects and advantages of the invention more apparent, it being understood that the specific examples described herein are given by way of illustration only and are not intended to be limiting.
Preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are merely for explaining the technical principles of the present invention, and are not intended to limit the scope of the present invention.
Fig. 1, fig. 2, fig. 3, and fig. 4 show flowcharts of a resource allocation method based on an event response according to an embodiment of the present invention, a flowchart of determining a type of initial resource allocation according to an embodiment of the present invention, a flowchart of determining whether the resource allocation of a request event meets a preset standard according to a load power, and a flowchart of determining whether the resource allocation of a request event meets the preset standard according to an average katon time length of the request event within a second preset time length according to an embodiment of the present invention.
The embodiment of the invention discloses a resource allocation method based on event response, which comprises the following steps:
Step S1, responding to a user to send request events, detecting the number of the request events and the historical central processing unit utilization rate of each request event within a first preset time length of 1min, and determining event request triggering characteristic parameters according to the historical central processing unit utilization rate of each request event;
Step S2, determining the type of initial resource allocation of the request event based on the event request triggering characteristic parameter, wherein the type of initial resource allocation comprises a type resource allocation mode and a type resource allocation mode;
step S3, under a type of resource allocation mode, detecting the load power of the system within a second preset time period, and determining that the resource allocation of the request event does not meet a preset standard according to the load power, determining a corresponding resource allocation optimization strategy according to the number of the request event, wherein the method comprises the steps of reducing the resource allocation duty ratio corresponding to each request event to a corresponding value or re-allocating the resources after sequencing the request event;
and S4, under a second-class resource allocation mode, acquiring the average cartoon duration of the request event in a second preset duration, and increasing the corresponding memory occupation ratio of the request event to a corresponding value when the resource allocation of the request event is judged to be not in accordance with the preset standard according to the average cartoon duration.
In this embodiment, the value range of the first preset duration is (30 s,2 min), and preferably, the first preset duration is selected to be 1min.
In particular, the event request triggering characteristic is determined by the following formula,
In the formula, F is an event request triggering characteristic parameter, N is the core number of a central processing unit, F is the single-core main frequency of the central processing unit, O is the floating point operand of the central processing unit, eta i is the historical central processing unit utilization rate of the ith request event, N is the total number of the request events, and i=1, 2, 3.
It will be appreciated that the process of calculating the event request triggering characteristic parameter includes:
Solving the product of the historical central processing unit utilization rate of the request event and each calculation force influence factor to obtain an event request triggering characteristic component;
Solving the average value of the request triggering characteristic components corresponding to each request event to obtain the event request triggering characteristic parameters;
the trigger influence factors comprise the core number of the central processing unit, the single-core main frequency of the central processing unit and the floating point operand of the central processing unit.
Specifically, the process of determining the type of initial resource allocation based on the event request triggering characteristic parameters includes:
Comparing the event request triggering characteristic parameter with a preset event request triggering threshold value;
if the event request triggering characteristic parameter is smaller than the preset event request triggering threshold 2TFLOPS, performing resource allocation on the request event by using a second-class resource allocation mode;
if the event request triggering characteristic parameter is greater than or equal to the preset event request triggering threshold, performing resource allocation on the request event by using a resource allocation mode;
The resource allocation method comprises the steps of carrying out resource allocation according to the requirement of a request event before the request event is operated, wherein the resource allocation method does not change in the operation process of the request event;
the second-class resource allocation mode is a resource allocation mode for dynamically allocating resources according to the current resource allocation condition and the requirements of the request event when the request event needs resources in the operation process.
In this embodiment, the preset event request triggering threshold is obtained by ensuring that the system can keep the average value of the event request triggering characteristic parameters running efficiently and stably when processing a large number of request events, but the above value is not limited thereto, and the value can be adjusted by those skilled in the art according to actual needs.
In this embodiment, the resource allocation refers to allocating computing resources such as CPU, GPU and memory to each request event to satisfy the requirements of different request events on the computing resources
Specifically, in the resource allocation mode, whether the resource allocation of the request event meets a preset standard is determined according to the load power, wherein,
If the load power is smaller than the preset load power 320W, judging that the resource allocation of the request event meets the preset standard;
If the load power is greater than or equal to the preset load power, judging that the resource allocation of the request event does not accord with a preset standard, and determining a corresponding resource allocation optimization strategy according to the number of the request event.
The load power in this embodiment is the total power consumed by the CPU, GPU, hard disk and memory.
And in particular, determining a corresponding resource allocation optimization strategy according to the number of the request events, wherein,
If the number of the request events is smaller than 30, reducing the resource allocation ratio corresponding to each request event to a corresponding value according to the difference value between the number of the request events and the preset number;
And if the number of the request events is greater than or equal to the preset number, the request events are sequenced and then resources are allocated again.
Specifically, the ordering mode of the request events includes:
re-allocating resources for each request event according to the priority of each request event;
Under the condition that the priority of each request event is the same, re-distributing resources according to the load power of each request event;
The priority is ordered based on the importance of each of the request events.
In this embodiment, the importance degree of the request event may be ranked according to whether sensitive information, such as personal privacy and financial information, is related to the information, and the importance degree of the request event may be ranked according to whether the request event is related to the information, such as a timing report, a real-time data analysis, etc., and the evaluation criterion of the importance degree of the request event is not limited, and only needs to meet the priority ranking requirement of the request event.
Specifically, a plurality of resource adjustment modes are set for the reduction of the resource allocation duty ratio corresponding to the request event, wherein,
If the number difference is smaller than the first preset number difference by 5, reducing the resource allocation duty ratio corresponding to the request event to a corresponding value by using a first preset resource adjustment coefficient of 0.98;
If the number difference is greater than or equal to the first preset number difference and less than the second preset number difference, reducing the resource allocation duty ratio corresponding to the request event to a corresponding value by using a second preset resource adjustment coefficient of 0.96;
if the number difference is greater than or equal to the second preset number difference, reducing the resource allocation duty ratio corresponding to the request event to a corresponding value by using a third preset resource adjustment coefficient of 0.94;
The number difference is a difference between the number of the request events and a preset number.
Specifically, the correction of the resource allocation duty ratio corresponding to the request event is set to a plurality of resource correction modes under the first preset condition, wherein,
If the execution duration difference value is smaller than the first preset event execution difference value for 4.3 seconds, correcting the resource corresponding to the request event to a corresponding value by using a first preset correction coefficient 1.02;
If the execution duration difference value is greater than or equal to the first preset event execution difference value and less than the second preset event execution difference value for 6 seconds, correcting the resource corresponding to the request event to a corresponding value by using a second preset correction coefficient 1.04;
If the execution duration difference value is greater than or equal to the second preset event execution difference value, correcting the resource corresponding to the request event to a corresponding value by using a third preset correction coefficient 1.06;
The first preset condition is that the resource allocation proportion corresponding to the request event is adjusted, the average execution duration of the adjusted event exceeds the preset average execution duration for 8.5 seconds, and the execution duration difference value is the difference value between the average execution duration of the adjusted event and the preset average execution duration.
In this embodiment, the execution duration refers to the total duration taken from the start to the end of the request event.
Specifically, in the second-class resource allocation mode, determining whether the resource allocation of the request event meets a preset standard according to the average katon time length of the request event within a second preset time length, wherein,
If the average blocking duration is less than the preset average blocking duration by 0.77 seconds, judging that the resource allocation of the request event meets the preset standard;
if the average length of the blocking period is greater than or equal to the preset average length of the blocking period, determining that the resource allocation of the request event does not meet the preset standard, and increasing the corresponding memory duty ratio of the request event to a corresponding value according to the difference between the average length of the blocking period and the preset average length of the blocking period.
In this embodiment, the length of the click refers to the length of time that a response delay or pause occurs during the execution of a request event.
Specifically, the increasing amplitude of the corresponding memory duty ratio of the request event and the difference value of the katon time length form a positive correlation, wherein the positive correlation is, for example, a linear positive correlation or a nonlinear positive correlation, and the linear slope of the linear positive correlation is not specifically limited.
The method comprises the steps that a user sends 5 request events, the historical central processing unit utilization rate of each request event is obtained and is 23%, 35%, 34%, 20% and 45%, an event request triggering characteristic parameter F=2.512 TFLOPS is obtained, the obtained event request triggering characteristic parameter is larger than a preset event request triggering threshold 2TFLOPS, and then resource allocation is carried out on the request events by using a type of resource allocation mode;
And under the first type of resource allocation mode, obtaining the load power 300W, wherein the obtained load power is smaller than the preset load power 320W, and judging that the resource allocation of the request event meets the preset standard.
Thus far, the technical solution of the present invention has been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of protection of the present invention is not limited to these specific embodiments. Equivalent modifications and substitutions for related technical features may be made by those skilled in the art without departing from the principles of the present invention, and such modifications and substitutions will be within the scope of the present invention.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, and various modifications and variations of the present invention will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method for event response based resource allocation, comprising:
responding to a user to send request events, detecting the number of the request events and the historical central processing unit utilization rate of each request event in a first preset time period, and determining event request triggering characteristic parameters according to the historical central processing unit utilization rate of each request event;
determining the type of initial resource allocation of the request event based on the event request triggering characteristic parameter, wherein the type of initial resource allocation comprises a type resource allocation mode and a type resource allocation mode;
under a first type of resource allocation mode, detecting the load power of the system within a second preset time period, and determining that the resource allocation of the request event does not meet a preset standard according to the load power, and determining a corresponding resource allocation optimization strategy according to the number of the request event, wherein the resource allocation optimization strategy comprises the steps of reducing the resource allocation duty ratio corresponding to each request event to a corresponding value or re-allocating the resources after sequencing the request event;
Under a second-class resource allocation mode, acquiring the average cartoon duration of the request event in a second preset duration, and increasing the corresponding memory duty ratio of the request event to a corresponding value when the resource allocation of the request event is judged to be not in accordance with a preset standard according to the average cartoon duration;
a process for calculating an event request trigger feature, comprising:
solving the product of the historical CPU utilization rate of the request event and each calculation force influence factor to obtain a request triggering characteristic component;
Solving the average value of the request triggering characteristic components corresponding to each request event to obtain the event request triggering characteristic parameters;
the trigger influence factors comprise the core number of the central processing unit, the single-core main frequency of the central processing unit and the floating point operand of the central processing unit;
A process for determining a type of initial resource allocation based on the event request triggering characteristic parameter, comprising:
Comparing the event request triggering characteristic parameter with a preset event request triggering threshold value;
If the event request triggering characteristic parameter is smaller than the preset event request triggering threshold, performing resource allocation on the request event by using a second-class resource allocation mode;
if the event request triggering characteristic parameter is greater than or equal to the preset event request triggering threshold, performing resource allocation on the request event by using a resource allocation mode;
The resource allocation method comprises the steps of carrying out resource allocation according to the requirement of a request event before the request event is operated, wherein the resource allocation method does not change in the operation process of the request event;
the second-class resource allocation mode is a resource allocation mode for dynamically allocating resources according to the current resource allocation condition and the requirements of the request event when the request event needs resources in the operation process.
2. The method for allocating resources based on event response according to claim 1, wherein in the one type of resource allocation method, it is determined whether the resource allocation of the request event meets a preset criterion according to the load power, wherein,
If the load power is smaller than the preset load power, judging that the resource allocation of the request event meets the preset standard;
If the load power is greater than or equal to the preset load power, judging that the resource allocation of the request event does not accord with a preset standard, and determining a corresponding resource allocation optimization strategy according to the number of the request event.
3. The event response based resource allocation method according to claim 2, wherein a corresponding resource allocation optimization strategy is determined according to the number of request events, wherein,
If the number of the request events is smaller than the preset number, reducing the resource allocation ratio corresponding to each request event to a corresponding value according to the difference value between the number of the request events and the preset number;
And if the number of the request events is greater than or equal to the preset number, the request events are sequenced and then resources are allocated again.
4. The method for allocating resources based on event response according to claim 3, wherein the ordering of the request events comprises:
re-allocating resources for each request event according to the priority of each request event;
Under the condition that the priority of each request event is the same, re-distributing resources according to the load power of each request event;
Wherein the priority is ordered based on the importance of each of the request events.
5. The method for event response based resource allocation according to claim 4, wherein a plurality of resource adjustment modes are set for the decrease of the resource allocation duty ratio corresponding to the request event, wherein,
If the number difference is smaller than the first preset number difference, reducing the resource allocation duty ratio corresponding to the request event to a corresponding value by using a first preset resource adjustment coefficient;
if the number difference value is larger than or equal to the first preset number difference value and smaller than the second preset number difference value, reducing the resource allocation duty ratio corresponding to the request event to a corresponding value by using a second preset resource adjustment coefficient;
if the number difference value is larger than or equal to the second preset number difference value, reducing the resource allocation duty ratio corresponding to the request event to a corresponding value by using a third preset resource adjustment coefficient;
The number difference is a difference between the number of the request events and a preset number.
6. The method for allocating resources based on event responses according to claim 5, wherein the modification of the resource allocation duty ratio corresponding to the request event is set with a plurality of resource modification modes under a first preset condition, wherein,
If the execution duration difference value is smaller than the first preset event execution difference value, correcting the resource corresponding to the request event to a corresponding value by using a first preset correction coefficient;
if the execution duration difference value is greater than or equal to the first preset event execution difference value and less than the second preset event execution difference value, correcting the resource corresponding to the request event to a corresponding value by using a second preset correction coefficient;
If the execution duration difference value is greater than or equal to the second preset event execution difference value, correcting the resource corresponding to the request event to a corresponding value by using a third preset correction coefficient;
The first preset condition is that the resource allocation proportion corresponding to the request event is adjusted, the average execution duration of the event after adjustment exceeds the preset average execution duration, and the execution duration difference value is the difference value between the average execution duration of the event after adjustment and the preset average execution duration.
7. The method for allocating resources based on event response according to claim 6, wherein in the two-class resource allocation method, determining whether the resource allocation of the request event meets a preset criterion according to an average katen duration of the request event within a second preset duration,
If the average blocking duration is smaller than the preset average blocking duration, judging that the resource allocation of the request event meets the preset standard;
if the average length of the blocking period is greater than or equal to the preset average length of the blocking period, determining that the resource allocation of the request event does not meet the preset standard, and increasing the corresponding memory duty ratio of the request event to a corresponding value according to the difference between the average length of the blocking period and the preset average length of the blocking period.
8. The method for allocating resources based on event response according to claim 7, wherein the increasing amplitude of the corresponding memory ratio of the request event is positively correlated with the difference between the length of the pause and the average length of the pause, and wherein the difference between the length of the pause and the average length of the pause is the difference between the average length of the pause and the preset average length of the pause.
CN202510258592.5A 2025-03-06 2025-03-06 A resource allocation method based on event response Active CN119759586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202510258592.5A CN119759586B (en) 2025-03-06 2025-03-06 A resource allocation method based on event response

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202510258592.5A CN119759586B (en) 2025-03-06 2025-03-06 A resource allocation method based on event response

Publications (2)

Publication Number Publication Date
CN119759586A CN119759586A (en) 2025-04-04
CN119759586B true CN119759586B (en) 2025-06-06

Family

ID=95183730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202510258592.5A Active CN119759586B (en) 2025-03-06 2025-03-06 A resource allocation method based on event response

Country Status (1)

Country Link
CN (1) CN119759586B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118135054A (en) * 2022-12-01 2024-06-04 荣耀终端有限公司 Image frame drawing method, device and terminal equipment
CN119030972A (en) * 2023-05-24 2024-11-26 大唐移动通信设备有限公司 Processing method, device and storage medium for computing power and network services

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106991013B (en) * 2017-04-18 2018-09-07 腾讯科技(深圳)有限公司 A kind of method and device that resource request is handled
CN112101727A (en) * 2020-08-17 2020-12-18 深圳市元征科技股份有限公司 Resource allocation method, device, equipment and storage medium
CN116028209B (en) * 2022-05-16 2023-10-20 荣耀终端有限公司 Resource scheduling method, electronic equipment and storage medium
CN117130773B (en) * 2023-04-28 2024-06-21 荣耀终端有限公司 Resource allocation method, device and equipment
CN118890324A (en) * 2024-08-06 2024-11-01 北京蜂巢世纪科技有限公司 Resource allocation method and device, electronic device, and readable storage medium
CN119276943A (en) * 2024-10-31 2025-01-07 江苏云工场信息技术有限公司 Edge node scheduling method and system based on sinking distributed network
CN119201411B (en) * 2024-11-28 2025-02-11 北京亿安天下科技股份有限公司 Dynamic computing power resource scheduling method, system, equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118135054A (en) * 2022-12-01 2024-06-04 荣耀终端有限公司 Image frame drawing method, device and terminal equipment
CN119030972A (en) * 2023-05-24 2024-11-26 大唐移动通信设备有限公司 Processing method, device and storage medium for computing power and network services

Also Published As

Publication number Publication date
CN119759586A (en) 2025-04-04

Similar Documents

Publication Publication Date Title
EP3920490B1 (en) Adaptive resource allocation method and apparatus
US7882230B2 (en) Method and system for dynamically allocating servers to compute-resources using capacity thresholds
US7627618B2 (en) System for managing data collection processes
US7890620B2 (en) Monitoring system and monitoring method
CN110716808B (en) Service processing method, device, computer equipment and storage medium
JP2017126975A (en) Data center network traffic scheduling method and apparatus
US20070250837A1 (en) System and method for adjusting multiple resources across multiple workloads
KR20120053850A (en) Apparatus and method for resource distribution in cloud computing
JP2018538601A (en) Stochastic bandwidth adjustment
US20180295044A1 (en) Automated management of service instances
US20180309686A1 (en) Reducing rate limits of rate limiters
CN118245234B (en) Distributed load balancing method and system based on cloud computing
CN117573376A (en) Data center resource scheduling monitoring management method and system
CN119759586B (en) A resource allocation method based on event response
CN112612610B (en) SOC service quality guarantee system and method based on Actor-Critic deep reinforcement learning
Farooq et al. Adaptive and resilient revenue maximizing dynamic resource allocation and pricing for cloud-enabled IoT systems
US20080195447A1 (en) System and method for capacity sizing for computer systems
CN110336884B (en) Server cluster updating method and device
Ungureanu et al. Deferred assignment scheduling in cluster-based servers
EP3748798A1 (en) Processing device, processing method, and program
CN114253688A (en) Method and application for rescheduling application load in cloud environment
CN115002033A (en) Flow control method, device, equipment, storage medium and computer product
JP2006012065A (en) Resource load optimization management system
US20220200918A1 (en) Communication control device and communication control method
Unuvar et al. Cloud overbooking through stochastic admission controller

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