Resource allocation method and device, electronic equipment, storage medium and program product

By dynamically monitoring change events in business systems, generating resource allocation strategies, and executing resource adjustments at target times, the high labor costs and lack of timeliness of flexible scheduling in complex business scenarios are resolved, enabling efficient and accurate resource management.

CN120602343APending Publication Date: 2025-09-05JINGDONG TECH HLDG CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510798403.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-13
Publication Date
2025-09-05

Smart Images

  • Figure CN120602343A_ABST
    Figure CN120602343A_ABST
Patent Text Reader

Abstract

The invention provides a resource allocation method and device, electronic equipment, a storage medium and a program product, which can be applied to the technical fields of computers, cloud computing and scheduling. The resource allocation method comprises the steps that respective change events of M service systems for a target link are acquired, the target link comprises P candidate applications, and each service system has an influence on the flow of at least one candidate application; in response to the fact that target evaluation information determined based on the N change events meets a preset resource adjustment rule, a resource configuration strategy is generated according to a target time period corresponding to the target evaluation information, and the target evaluation information represents the degree of influence of the N change events on the target link in the target time period; and executing resource configuration on Q target applications in the P candidate applications on the basis of the resource adjustment amount indicated by the resource configuration strategy in response to the fact that the current moment reaches the target moment corresponding to the target time period.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the fields of computer technology, cloud computing technology, and scheduling technology, and more specifically, to a resource configuration method and device, electronic equipment, storage medium, and program product. Background Art

[0002] Internet technology has entered the "cloud" era, with many internet companies deploying their services in the cloud. Applications are delivered through cloud computing. While providing these services, to better control hardware costs, a key technical feature of cloud computing—elastic scheduling—is essential.

[0003] Elastic scheduling refers to a mechanism that dynamically adjusts resource allocation and usage in a cloud computing environment based on changing business needs. The core of elastic scheduling is the coordinated allocation of hardware resources. This allows for dynamic adjustments to server resource usage based on traffic volume, ultimately reducing overall hardware server costs.

[0004] In the process of realizing the concept of the present disclosure, the inventors found that there are at least the following problems in the related technology: in complex business scenarios, the implementation of flexible scheduling has limitations, and the labor cost is high, making it difficult to meet the timeliness requirements of resource allocation. Summary of the Invention

[0005] In view of this, the present disclosure provides a resource configuration method and apparatus, an electronic device, a storage medium, and a program product.

[0006] According to one aspect of the present disclosure, a resource configuration method is provided, comprising: obtaining change events of respective M business systems for a target link, wherein the target link includes P candidate applications, and each of the business systems has an impact on the traffic of at least one of the candidate applications; in response to target evaluation information determined based on the N change events satisfying a preset resource adjustment rule, generating a resource configuration policy according to a target time period corresponding to the target evaluation information, wherein the target evaluation information characterizes the degree of impact of the N change events on the target link within the target time period; and, in response to the current moment reaching the target moment corresponding to the target time period, performing resource configuration on Q target applications among the P candidate applications based on the resource adjustment amount indicated by the resource configuration policy, wherein M, N, P and Q are all positive integers, and P≥Q.

[0007] According to an embodiment of the present disclosure, the above-mentioned change event has an operation type, an impact magnitude and an impact time range; the above-mentioned method also includes, after the above-mentioned change events of the M business systems for the target link are obtained: based on the preset evaluation value mapping, according to the above-mentioned operation type and the above-mentioned impact magnitude, determining the respective sub-evaluation value of each of the above-mentioned change events, wherein the above-mentioned preset evaluation value mapping includes the correspondence between candidate operation types, candidate impact magnitudes and candidate evaluation values, and the above-mentioned sub-evaluation value represents the degree of impact of the above-mentioned change event on the above-mentioned target link within the above-mentioned impact time range; and, according to the respective sub-evaluation value of each of the above-mentioned change events, determining the above-mentioned target evaluation information.

[0008] According to an embodiment of the present disclosure, the above-mentioned impact time range includes a start time and an end time; the above-mentioned determination of the above-mentioned target evaluation information based on the respective sub-evaluation values ​​of each of the above-mentioned change events includes: for each of the above-mentioned change events, forming an initial time window divided by the above-mentioned start time and the above-mentioned end time, and using the sub-evaluation value of the above-mentioned change event as the initial evaluation value of the above-mentioned initial time window; and, determining the above-mentioned target evaluation information based on the initial evaluation value of the above-mentioned initial time window of each of the above-mentioned change events.

[0009] According to an embodiment of the present disclosure, the above-mentioned formation of the initial time window divided by the above-mentioned starting moment and the above-mentioned ending moment, and taking the sub-evaluation value of the above-mentioned change event as the initial evaluation value of the above-mentioned initial time window includes: when the above-mentioned initial time window does not include the above-mentioned starting moment and the above-mentioned ending moment, forming the initial time window divided by the above-mentioned starting moment and the above-mentioned ending moment, and taking the above-mentioned sub-evaluation value as the initial evaluation value of the above-mentioned initial time window; or, when the above-mentioned initial time window includes the above-mentioned starting moment and the above-mentioned ending moment, updating the initial evaluation value of the above-mentioned initial time window according to the sub-evaluation value of the above-mentioned change event to obtain an updated initial evaluation value.

[0010] According to an embodiment of the present disclosure, the target evaluation information is presented in the form of a chart, which includes a plurality of blocks, each of which represents a sub-evaluation value of the change event and the impact time range.

[0011] According to an embodiment of the present disclosure, the above-mentioned target evaluation information includes the cumulative evaluation values ​​of each of the first number of time windows, the above-mentioned preset resource adjustment rules include that the above-mentioned cumulative evaluation value is greater than the preset evaluation threshold, the above-mentioned target period includes multiple sub-periods, and the above-mentioned resource configuration strategy includes a sub-configuration strategy for each of the above-mentioned sub-periods; the above-mentioned target evaluation information determined in response to the N above-mentioned change events meets the preset resource adjustment rules, and the resource configuration strategy is generated according to the target period corresponding to the above-mentioned target evaluation information, including: for each of the above-mentioned cumulative evaluation values, in response to the above-mentioned cumulative evaluation value being greater than the above-mentioned preset evaluation threshold, the above-mentioned time window is determined as the above-mentioned sub-period; for each of the above-mentioned sub-period, according to the above-mentioned cumulative evaluation value, the adjustment amount for the above-mentioned sub-period is determined; and, the starting moment of the above-mentioned time window is determined as the expansion moment, the end moment of the above-mentioned time window and the preset period are determined as the contraction moment, and the above-mentioned adjustment amount is determined as the above-mentioned resource adjustment amount, to obtain the above-mentioned sub-configuration strategy.

[0012] According to an embodiment of the present disclosure, it also includes, in response to the target evaluation information determined based on the N above-mentioned change events satisfying the preset resource adjustment rules, after generating a resource configuration strategy according to the target time period corresponding to the above-mentioned target evaluation information: in response to the target change event in the above-mentioned N change events being cancelled, updating the cumulative evaluation value of the time window corresponding to the impact time range of the above-mentioned target change event to obtain the updated cumulative evaluation value of the above-mentioned time window; and updating the sub-configuration strategy of the above-mentioned sub-time period according to the above-mentioned updated cumulative evaluation value and the above-mentioned preset evaluation threshold to obtain the updated sub-configuration strategy.

[0013] According to an embodiment of the present disclosure, the above-mentioned target moment includes an expansion moment determined based on the start moment of the time window, or a reduction moment determined based on the end moment of the above-mentioned time window and a preset time period; the above-mentioned response to the current moment reaching the target moment, based on the resource adjustment amount indicated by the resource configuration policy, executing resource configuration for Q target applications includes: for each of the above-mentioned sub-configuration strategies, in response to the above-mentioned current moment reaching the above-mentioned expansion moment, based on the above-mentioned resource adjustment amount, increasing the amount of resources used for the above-mentioned target application; and, in response to the above-mentioned current moment reaching the above-mentioned reduction moment, reducing the amount of resources used for the above-mentioned target application based on the above-mentioned resource adjustment amount.

[0014] According to another aspect of the present disclosure, a resource configuration device is provided, comprising: an acquisition module for acquiring change events for each of M business systems for a target link, wherein the target link includes P candidate applications, and each of the business systems has an impact on the traffic of at least one of the candidate applications; a generation module for generating a resource configuration policy based on a target time period corresponding to the target evaluation information in response to target evaluation information determined based on the N change events satisfying a preset resource adjustment rule, wherein the target evaluation information represents the degree of impact of the N change events on the target link within the target time period; and a resource configuration module for performing resource configuration on Q target applications among the P candidate applications based on the resource adjustment amount indicated by the resource configuration policy in response to the current moment reaching the target time period corresponding to the target time period, wherein M, N, P, and Q are all positive integers, and P ≥ Q.

[0015] According to another aspect of the present disclosure, an electronic device is provided, comprising: one or more processors; and a memory for storing one or more instructions, wherein when the one or more instructions are executed by the one or more processors, the one or more processors implement the method described in the present disclosure.

[0016] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which executable instructions are stored. When the executable instructions are executed by a processor, the processor implements the method described in the present disclosure.

[0017] According to another aspect of the present disclosure, a computer program product is provided. The computer program product includes computer-executable instructions. When the computer-executable instructions are executed, they are used to implement the method described in the present disclosure.

[0018] According to the embodiments of the present disclosure, by dynamically monitoring change events of the business system, the degree of impact on the target link is evaluated in real time, and a resource allocation strategy is generated based on the target evaluation information determined by the change event according to preset resource adjustment rules. Since the resource allocation strategy can accurately adjust the resources of the target application at the target moment, it can reduce resource waste, optimize resource allocation, and enhance the flexibility of the elastic scaling mechanism, thereby improving the efficiency and accuracy of resource allocation. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0020] Figure 1 The system architecture to which the resource configuration method according to an embodiment of the present disclosure can be applied is schematically shown;

[0021] Figure 2 The following schematically shows a flow chart of a resource configuration method according to an embodiment of the present disclosure;

[0022] Figure 3 The following schematically illustrates an example of a target evaluation information determination process according to an embodiment of the present disclosure;

[0023] Figure 4 The following schematically shows an example of a resource configuration process according to an embodiment of the present disclosure;

[0024] Figure 5 The following schematically shows an example diagram of a resource configuration process according to another embodiment of the present disclosure;

[0025] Figure 6 The following schematically illustrates an example of a resource configuration process according to another embodiment of the present disclosure;

[0026] Figure 7 A block diagram schematically shows a resource configuration device according to an embodiment of the present disclosure; and

[0027] Figure 8 A block diagram of an electronic device suitable for implementing a resource configuration method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0028] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the detailed description below, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0029] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise," "include," etc. used herein indicate the presence of the features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0030] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0031] When expressions such as "at least one of A, B, and C, etc." are used, they should generally be interpreted in accordance with the meaning commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0032] In the technical solution of the present invention, the user information involved (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0033] In scenarios where personal information is used for automated decision-making, the methods, devices, and systems provided by embodiments of the present invention provide users with corresponding operational portals, allowing them to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered. The term "automated decision-making" herein refers to the activity of automatically analyzing and evaluating an individual's behavioral habits, interests, or economic, health, or credit status through computer programs and making decisions. The term "expert decision-making" herein refers to the activity of decision-making by individuals who specialize in a particular field, possess specialized experience, knowledge, and skills, and have reached a certain level of professional expertise.

[0034] In an example, the elastic scheduling scheme may include at least one of the following: a manual elastic scheduling method, an indicator monitoring and expansion elastic scheduling method, and a timed elastic scheduling method.

[0035] Manual elastic scheduling refers to manually allocating hardware resources to application servers, increasing the number of application servers to cope with traffic peaks caused by business changes, and then manually reducing the number of servers after the peak period. However, manual elastic scheduling is inflexible during non-working days and nighttime hours, and any operational errors can affect user experience.

[0036] Indicator-based elastic scheduling involves setting thresholds based on application server monitoring metrics. When the threshold is reached, hardware resources are automatically scheduled to expand the application. Once the threshold falls below, the number of application servers is automatically scaled back. However, this method may not meet timeliness requirements in some scenarios. For example, in an app scenario, if a large number of users are pushed to a specific location at a specific time, users will simultaneously open the app within a short window (lasting 3-5 minutes) after receiving the push message, increasing pressure on the app server. While elastic scheduling based on indicator monitoring triggers the corresponding expansion mechanism, hardware resource allocation and service startup take approximately 5 minutes. If this service duration window is short, the traffic peak will have passed by the time automatic expansion and contraction are completed.

[0037] Scheduled elastic scheduling refers to a strategy that automatically adjusts the scaling of computing resources based on pre-set time points. This requires setting the date and time, the number of expansions, and the time of scaling down in advance. Once the specified date and time arrives, the server capacity of the relevant applications will be expanded by the expansion quantity, and the server capacity will be scaled down after the scaling down date and time arrives. However, scheduled elastic scheduling requires manual analysis. For example, the date and time for each expansion must be manually determined, which is prone to omissions and errors. Furthermore, there are many sources of business pressure on the server, and various business parties often do not consider whether other business activities will occur at the same time. This overlapping situation (i.e., multiple business operations occurring simultaneously will cause significant pressure on the server, while each operation will not) is difficult to accurately analyze.

[0038] In order to at least partially solve the technical problems existing in the related art, the present disclosure provides a resource configuration method and apparatus, an electronic device, a storage medium and a program product, which can be applied to the fields of computer technology, cloud computing technology and scheduling technology. The resource configuration method includes: obtaining change events of M business systems for a target link, wherein the target link includes P candidate applications, and each business system has an impact on the traffic of at least one candidate application; in response to target evaluation information determined based on N change events meeting a preset resource adjustment rule, generating a resource configuration policy according to a target time period corresponding to the target evaluation information, wherein the target evaluation information characterizes the degree of impact of the N change events on the target link within the target time period; and, in response to the current moment reaching the target time corresponding to the target time period, performing resource configuration on Q target applications among the P candidate applications based on the resource adjustment amount indicated by the resource configuration policy.

[0039] Figure 1The system architecture to which the resource configuration method according to the embodiment of the present disclosure can be applied is schematically shown. Figure 1 The examples shown are merely examples of system architectures to which the embodiments of the present disclosure may be applied, to help those skilled in the art understand the technical content of the present disclosure, but do not mean that the embodiments of the present disclosure may not be used in other devices, systems, environments or scenarios.

[0040] like Figure 1 As shown, the system architecture 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104 and a server 105. The network 104 is used as a medium for providing a communication link between different devices.

[0041] It should be noted that the resource configuration method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the resource configuration device provided in the embodiment of the present disclosure can generally be set in the server 105.

[0042] Alternatively, the resource configuration method provided in the embodiment of the present disclosure may also be executed by the first terminal device 101, the second terminal device 102, or the third terminal device 103. Accordingly, the resource configuration apparatus provided in the embodiment of the present disclosure may also be provided in the first terminal device 101, the second terminal device 102, or the third terminal device 103.

[0043] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required.

[0044] It should be noted that the sequence numbers of the operations in the following method are only used to indicate the operation for the purpose of description, and should not be regarded as indicating the order in which the operations should be performed. Unless explicitly stated, the method does not need to be performed in the order shown.

[0045] The above describes the system architecture to which the resource configuration method provided by the present disclosure can be applied. Figure 2 For example, the resource configuration process of the present disclosure is further explained.

[0046] Figure 2 The flowchart of the resource configuration method according to the embodiment of the present disclosure is schematically shown.

[0047] like Figure 2 As shown, the resource configuration method 200 includes operations S210 to S230.

[0048] In operation S210 , change events of respective M business systems for a target link are obtained, wherein the target link includes P candidate applications, and each business system has an impact on the traffic of at least one candidate application.

[0049] In operation S220, in response to the target evaluation information determined based on N change events satisfying the preset resource adjustment rules, a resource configuration strategy is generated according to the target time period corresponding to the target evaluation information, wherein the target evaluation information represents the degree of impact of the N change events on the target link within the target time period.

[0050] In operation S230 , in response to the current time reaching the target time corresponding to the target period, resource configuration is performed on Q target applications among the P candidate applications based on the resource adjustment amount indicated by the resource configuration policy, where M, N, P and Q are all positive integers and P≥Q.

[0051] The target link may include P candidate applications. A business system refers to a system that has an impact on the traffic of at least one candidate application. Usually, the candidate applications that a business operation will affect in the future will be planned into the target link, and the peak traffic is related to the specific characteristics of the business operation. For example, a business system may include a PUSH system, a member activity system, a check-in system, a coupon system, etc. A change event refers to an event that occurs in a business system and may cause changes in the state, performance, data traffic, etc. of the business system. The method for obtaining change events can be configured according to actual business needs and is not limited here. For example, the method for obtaining change events may include at least one of the following: log analysis, monitoring system, and user feedback, etc.

[0052] For each change event, the impact of the change event on the target link can be evaluated to obtain a sub-evaluation value. Based on this, the sub-evaluation values ​​of each change event can be accumulated to obtain target evaluation information. The target evaluation information can represent the impact of N change events on the target link during the target period.

[0053] After obtaining the target assessment information, it can be determined whether the target assessment information satisfies the preset resource adjustment rules. Preset resource adjustment rules refer to pre-set rules or conditions used to determine whether the resources of the target link need to be adjusted. Preset resource adjustment rules can be configured based on actual business needs and are not limited here. For example, the preset resource adjustment rule may require that if the traffic on the target link increases by more than 50% within one hour, the bandwidth of the target link needs to be expanded.

[0054] If the target assessment information does not meet the preset resource adjustment rules, resource allocation may not be required. If the target assessment information does meet the preset resource adjustment rules, a resource allocation policy can be generated based on the target period corresponding to the target assessment information. The target period refers to the specific time period of interest during resource assessment and adjustment. The resource allocation policy is a strategy for adjusting the resources of the target link, based on the target assessment information and the preset resource adjustment rules. For example, the resource allocation policy may include the specific content of the resource adjustment, the amount of resource adjustment, and the adjustment time.

[0055] The resource adjustment amount specifies the specific amount or degree of resource adjustment required for the target link based on the resource configuration policy. Resources can include processors (CPUs), random access memory (RAMs), read-only memory (ROMs), hard disk drives (HDDs), and solid-state drives (SSDs). For example, if the resource being adjusted is processors, the resource adjustment amount could be 2, meaning two processors are added. The adjustment time specifies the time when the target link resources are adjusted. For example, the adjustment time could be 12:00 AM.

[0056] The resource configuration policy may include at least one first sub-configuration policy. The target application refers to the application selected from the candidate applications for resource configuration adjustment according to the sub-configuration policy. For example, the first sub-configuration policy 1 is to increase the bandwidth of application A and application B by 50Mbps at 08:00, and the first sub-configuration policy 2 is to increase the bandwidth of application C by 100Mbps at 12:00. Therefore, when the current time reaches 08:00, it can be determined that the target applications are application A and application B, and the bandwidth of application A and application B is increased by 50Mbps; when the current time reaches 12:00, it can be determined that the target application is application C, and the bandwidth of application C is increased by 100Mbps.

[0057] It should be noted that the resource configuration policy may also include a second sub-configuration policy corresponding to each of the at least one first sub-configuration policies mentioned above. For example, when the first sub-configuration policy is an expansion policy, the second sub-configuration policy may be a contraction policy. Alternatively, when the first sub-configuration policy is a contraction policy, the second sub-configuration policy may be an expansion policy. It can be understood that the first sub-configuration policy is used to perform resource configuration on the target application so that the target link can adapt to the change event; the second sub-configuration policy is used to restore the target application that has been resource-configured to its original configuration to avoid occupying resources for a long time.

[0058] According to the embodiments of the present disclosure, by dynamically monitoring change events of the business system, the degree of impact on the target link is evaluated in real time, and a resource allocation strategy is generated based on the target evaluation information determined by the change event according to preset resource adjustment rules. Since the resource allocation strategy can accurately adjust the resources of the target application at the target moment, it can reduce resource waste, optimize resource allocation, and enhance the flexibility of the elastic scaling mechanism, thereby improving the efficiency and accuracy of resource allocation.

[0059] The resource configuration process provided by this disclosure is described above. Figure 3 , an example is given of how to determine target evaluation information.

[0060] According to an embodiment of the present disclosure, the resource configuration method 200 may further include the following operations.

[0061] Based on a preset evaluation value mapping, a sub-evaluation value is determined for each change event based on the operation type and impact magnitude. The preset evaluation value mapping includes a correspondence between candidate operation types, candidate impact magnitudes, and candidate evaluation values. The sub-evaluation value represents the degree of impact of the change event on the target link within the impact time range. Target evaluation information is determined based on the sub-evaluation value of each change event.

[0062] According to an embodiment of the present disclosure, a change event may have an operation type, an impact magnitude, and an impact time range. The operation type refers to the specific behavior or operation category of the change event, which can be used to describe the nature of the change event. For example, the operation type may include software upgrades, configuration modifications, and user behavior changes. The impact magnitude refers to the degree of impact of the change event on the system or business process, and is usually used to quantify the impact of the change event. For example, the impact magnitude may include high, medium, and low. The impact time range refers to the time interval during which the change event has an impact. For example, the impact event range may be 09:00~10:00.

[0063] According to an embodiment of the present disclosure, the preset evaluation value mapping may include a correspondence between candidate operation types, candidate impact levels, and candidate evaluation values. The candidate evaluation values ​​may be used to reflect the degree of influence of different businesses and different candidate operation types on the target link request pressure. For example, the preset evaluation value mapping may be "Candidate operation type: software upgrade, candidate impact level: high, candidate evaluation value: 10; Candidate operation type: configuration modification, candidate impact level: medium, candidate evaluation value: 5". The presentation form of the preset evaluation value mapping may be configured according to actual business needs and is not limited here. For example, the presentation form of the preset evaluation value mapping may be text or a table.

[0064] According to an embodiment of the present disclosure, after obtaining a change event, a preset evaluation value mapping can be matched based on the operation type and impact magnitude of the change event to determine the sub-evaluation value of the change event. Based on this, target evaluation information can be derived based on the sub-evaluation values ​​of all change events.

[0065] According to the embodiments of the present disclosure, by combining the characteristics of change events with preset evaluation value mappings, since the preset evaluation value mappings assign corresponding candidate evaluation values ​​to each possible combination of operation type and impact magnitude, it is possible to quickly and accurately calculate sub-evaluation values ​​based on the specific characteristics of the change event, accurately quantifying the impact of each change event on the target link. On this basis, by integrating the sub-evaluation values ​​of all change events, the generated target evaluation information can comprehensively and dynamically reflect the overall status of the target link within a specific time period, thereby improving the efficiency and accuracy of resource allocation based on change events.

[0066] Figure 3 An example diagram schematically illustrates a target evaluation information determination process according to an embodiment of the present disclosure.

[0067] like Figure 3 As shown in 300 , the preset evaluation value map 310 may include a correspondence between candidate operation types 311 , candidate impact magnitudes 312 , and candidate evaluation values ​​313 .

[0068] After obtaining the change event, at least one candidate operation type 311 in the preset evaluation value mapping 310 can be matched according to the operation type 320 of the change event to filter out the intermediate evaluation value mapping 330. The intermediate evaluation value mapping 330 may include the correspondence between the operation type 331, the candidate impact magnitude 332 and the candidate evaluation value 333.

[0069] After obtaining the intermediate evaluation value mapping 330, at least one candidate impact level 332 in the intermediate evaluation value mapping 330 can be matched according to the impact level 340 of the change event to obtain a corresponding relationship 350. The corresponding relationship 350 can include an operation type 351 that is the same as the operation type 320 and an impact level 352 that is the same as the impact level 340. Thus, the candidate evaluation value 353 in the corresponding relationship 350 can be determined as the sub-evaluation value 360 ​​of the change event. Based on this, target evaluation information 370 can be determined according to the sub-evaluation value 360 ​​of each change event.

[0070] The above describes the process of determining the target evaluation information provided by the present disclosure. Figure 4 , an exemplary description of the resource configuration process provided by an embodiment of the present disclosure is given.

[0071] According to an embodiment of the present disclosure, determining target evaluation information according to the respective sub-evaluation values ​​of each change event may include the following operations.

[0072] For each change event, an initial time window is formed, divided by the start time and the end time, and the sub-assessment value of the change event is used as the initial assessment value of the initial time window. Based on the initial assessment value of each change event's initial time window, the target assessment information is determined.

[0073] According to an embodiment of the present disclosure, the impact time range refers to the time interval between the start time and the end time of the change event's impact. The impact time range can include a start time and an end time. The start time can refer to the expansion time of elastic scheduling, and the end time can refer to the reduction time of elastic scheduling. For example, if the impact time range is 2024-10-01 10:00:00 to 2024-10-01 10:30:00, then the start time is 2024-10-01 10:00:00 and the end time is 2024-10-01 10:30:00.

[0074] According to an embodiment of the present disclosure, for each change event, an initial time window divided by a start time and an end time can be formed, and the sub-evaluation value of the change event can be used as the initial evaluation value of the initial time window. The initial time window is a time interval divided based on the start time and the end time of the change event. The initial evaluation value refers to an evaluation value determined within the initial time window based on the sub-evaluation value of the change event, which is used to quantify the impact of the change event within the time window, and the cumulative value of the calculation corresponding to each time window.

[0075] According to an embodiment of the present disclosure, after a change event is accessed, each initial time window may be continuously merged, and target evaluation information may be calculated based on the initial evaluation value of each initial time window.

[0076] According to the embodiments of the present disclosure, since the time range of the impact of each change event includes the start time and the end time, the time interval in which the change event has an impact can be accurately defined. On this basis, by forming an initial time window divided by the start time and the end time, and using the sub-evaluation value of the change event as the initial evaluation value of the initial time window, the degree of impact of each change event within a specific time range can be intuitively reflected. By synthesizing the initial evaluation value of each change event to obtain the target evaluation information, the overall situation of the target link within a specific time period can be comprehensively and dynamically reflected, thereby improving the efficiency and accuracy of resource management.

[0077] According to an embodiment of the present disclosure, forming an initial time window divided by a start time and an end time and using a sub-evaluation value of a change event as an initial evaluation value of the initial time window may include the following operations.

[0078] If the initial time window does not include the start time and the end time, an initial time window divided by the start time and the end time is formed, and the sub-evaluation value is used as the initial evaluation value of the initial time window. If the initial time window includes the start time and the end time, the initial evaluation value of the initial time window is updated according to the sub-evaluation value of the change event to obtain an updated initial evaluation value.

[0079] According to an embodiment of the present disclosure, when each change event is added, it is necessary to determine whether an initial time window corresponding to the start and end times of the change event currently exists. In the case where the corresponding initial time window does not exist, that is, in the scenario where a new initial time window is added, it is necessary to re-divide the initial time window according to the actual start and end times of the change event, and directly use the sub-evaluation value of the change event as the initial evaluation value of the time window.

[0080] According to an embodiment of the present disclosure, when the corresponding initial time window already exists, that is, the scenario of changing the initial time window, it is necessary to accumulate the sub-evaluation value corresponding to the current change event on the previously calculated result, that is, update the initial evaluation value of the initial time window according to the sub-evaluation value of the change event to reflect a more accurate degree of impact.

[0081] According to an embodiment of the present disclosure, by determining whether to add a new initial time window and determine the corresponding initial evaluation value, or to update the corresponding initial evaluation value based on the current initial time window according to whether the current initial time window includes the start time and the end time, the initial time window and its initial evaluation value can be dynamically adjusted, thereby achieving accurate quantification and real-time update of the degree of impact of the change event on the target link, which helps to improve the accuracy of the target evaluation information, and further helps to improve the timeliness, flexibility and accuracy of resource allocation.

[0082] According to an embodiment of the present disclosure, the target evaluation information is presented in the form of a chart, which includes a plurality of blocks, each of which represents a sub-evaluation value and an impact time range of a change event.

[0083] According to an embodiment of the present disclosure, a chart refers to a visual chart, which is used to present target assessment information in a graphical manner for easy intuitive understanding. For example, the chart can be a timeline with multiple blocks distributed thereon.

[0084] According to embodiments of the present disclosure, a block is a basic unit in a chart. Each block can represent the sub-evaluation value of a change event by color, the impact time range of the change event by length along the time axis, and the impact magnitude of the change event by length perpendicular to the time axis.

[0085] According to the embodiments of the present disclosure, since each block in the chart not only clearly displays the sub-evaluation value and impact time range of a single change event, but can also intuitively display the comprehensive impact of multiple change events, this visual display method of presenting target evaluation information in the form of a chart facilitates rapid identification of the impact of change events on the target link, and helps to improve the accuracy of the target evaluation information.

[0086] Figure 4 An example diagram of a resource configuration process according to an embodiment of the present disclosure is schematically shown.

[0087] like Figure 4 As shown, in 400, for each change event, an initial time window divided by a start time and an end time can be formed, and the sub-evaluation value of the change event is used as the initial evaluation value of the initial time window to obtain a block for each change event.

[0088] The target assessment information can be presented in the form of a chart, which includes multiple blocks. Each block can represent the size of the sub-assessment value of the change event by color. For example, block 401 represents the low sub-assessment value, block 402 represents the medium sub-assessment value, and block 403 represents the high sub-assessment value. Each block can also represent the impact time range of the change event by the starting position and the ending position. For example, taking block 404 as an example, the starting time of the change event corresponding to this block 404 is t1 and the ending time is t2.

[0089] On this basis, target evaluation information can be determined based on the initial evaluation value of each change event's initial time window. Specifically, the initial evaluation values ​​belonging to the same time window are accumulated to obtain a cumulative evaluation value for that time window, and then a determination is made as to whether the accumulated evaluation value satisfies the preset resource adjustment rules. If it is determined that the accumulated evaluation value for the time window satisfies the preset resource adjustment rules, a resource allocation policy 408 can be generated based on the target time period corresponding to the accumulated evaluation value.

[0090] For example, the initial evaluation values ​​belonging to the same time window in the time axis range from the current to three days are accumulated to obtain block 405 representing the accumulated evaluation value of the time window. Since the color of block 405 is a high sub-evaluation value, a target configuration strategy 408 can be generated according to the target time period corresponding to the time window of block 405, so as to automatically trigger the resource configuration operation when the target time period is reached at the current moment.

[0091] Alternatively, the initial evaluation values ​​belonging to the same time window within the time axis range of three days to one week are accumulated to obtain a box 406 representing the accumulated evaluation value of the time window. Since the color of the box 406 is a high sub-evaluation value, a target configuration strategy 408 can be generated according to the target time period corresponding to the time window of the box 406, so as to automatically trigger the resource configuration operation when the target time period is reached at the current moment.

[0092] Alternatively, for the time axis range within one week to one month, since the color of block 407 itself is a high sub-evaluation value, the target configuration strategy 408 can be generated directly according to the target time period corresponding to the time window of block 407, so as to automatically trigger the resource configuration operation when the target time period is reached at the current moment.

[0093] According to an embodiment of the present disclosure, operation S220 may include the following operations.

[0094] For each accumulated evaluation value, in response to the accumulated evaluation value being greater than a preset evaluation threshold, the time window is divided into sub-periods. For each sub-period, an adjustment amount for the sub-period is determined based on the accumulated evaluation value. The start time of the time window is determined as the expansion time, the end time of the time window and the preset time period are determined as the reduction time, and the adjustment amount is determined as the resource adjustment amount, thereby obtaining a sub-configuration policy.

[0095] According to an embodiment of the present disclosure, the target assessment information may include the cumulative assessment values ​​of each of the first number of time windows. The cumulative assessment value refers to the assessment value obtained by summing the sub-assessment values ​​of the change event within each time window, and is used to characterize the resource demand or impact within the time window. For example, within a 20-minute time window, two change events occurred, and the sub-assessment values ​​were 5 and 5 respectively, then the cumulative assessment value is 10.

[0096] According to embodiments of the present disclosure, for each accumulated evaluation value, a judgment can be made based on preset resource adjustment rules. The preset resource adjustment rules may include the accumulated evaluation value being greater than a preset evaluation threshold. The preset evaluation threshold can be configured based on actual business needs and is not limited here. The preset evaluation threshold can be a threshold that triggers flexible scheduling.

[0097] According to an embodiment of the present disclosure, if the cumulative evaluation value is less than or equal to a preset evaluation threshold, no flexible scheduling is required. If the cumulative evaluation value is greater than the preset evaluation threshold, a flexible scheduling operation is triggered. Specifically, the time window corresponding to the cumulative evaluation value can be determined as a sub-period, and the amount of resources that need to be adjusted can be calculated based on the cumulative evaluation value within the sub-period. For example, if the cumulative evaluation value within a sub-period is 20, it can be determined that the amount of resources that need to be increased is 10 units.

[0098] According to an embodiment of the present disclosure, after obtaining the adjustment amount for the sub-period, the start time of the time window can be determined as the expansion time, the end time of the time window and the preset time period can be determined as the contraction time, and the adjustment amount can be determined as the resource adjustment amount to obtain a sub-configuration strategy. The sub-configuration strategy can be used to trigger a corresponding expansion operation or contraction operation at the corresponding time node. For example, assuming that a sub-period is 9:00~9:20, the cumulative evaluation value is 20, and the amount of resources required to be increased is 10 units, then the sub-configuration strategy can be: expand at 9:00, increase 10 units of resources, and contract at 9:20.

[0099] According to the embodiments of the present disclosure, by comparing the accumulated evaluation value with a preset evaluation threshold and determining the time window as a sub-period when the accumulated evaluation value exceeds the preset evaluation threshold, the timeliness and accuracy of resource adjustment are ensured, and dynamic adjustment and refined management of resources are achieved. On this basis, by determining the start time of the time window as the expansion time, a rapid response can be achieved when resource demand increases, thereby ensuring stable performance of the target link. By determining the end time of the time window and the preset period as the reduction time, resource utilization efficiency is improved.

[0100] The resource configuration process provided by an embodiment of the present disclosure is described above. Figure 5 , an exemplary description of the resource configuration process provided by another embodiment of the present disclosure is given.

[0101] According to an embodiment of the present disclosure, the resource configuration method 200 may further include the following operations.

[0102] In response to the target change event being canceled among the N change events, the cumulative evaluation value of the time window corresponding to the impact time range of the target change event is updated to obtain an updated cumulative evaluation value for the time window. Based on the updated cumulative evaluation value and a preset evaluation threshold, the sub-configuration policy for the sub-period is updated to obtain an updated sub-configuration policy.

[0103] According to an embodiment of the present disclosure, a target change event refers to a specific change event that is canceled among N change events. If a target change event is withdrawn (cancelled) before its impact timeframe, resource requirements within the time window associated with the target change event need to be reassessed. In one example, the sub-assessment value of the target change event can be removed from the cumulative assessment value of the time window associated with the target change event, thereby obtaining an updated cumulative assessment value.

[0104] For example, taking the time window corresponding to the impact time range of the target change event as 9:00~15:00, the cumulative evaluation value as 20, and the sub-evaluation value of the target change event as 10, after the target change event is canceled, the sub-evaluation value of the target change event can be removed from the cumulative evaluation value to obtain an updated cumulative evaluation value of 10.

[0105] According to embodiments of the present disclosure, after obtaining an updated cumulative evaluation value, it is necessary to re-compare the updated cumulative evaluation value with a preset evaluation threshold based on the updated cumulative evaluation value to re-determine the updated sub-configuration policy for the sub-period. For example, if the updated cumulative evaluation value is less than the preset evaluation threshold, the flexible scheduling operation for that sub-period can be canceled. Alternatively, if the updated cumulative evaluation value is still greater than or equal to the preset evaluation threshold, the adjustment amount for the corresponding sub-period can be recalculated.

[0106] According to the embodiments of the present disclosure, by dynamically updating the accumulated evaluation value and the sub-configuration strategy, it is possible to quickly respond to the cancellation of the target change event, which not only improves the flexibility and adaptability of the resource configuration process, but also ensures the accuracy and real-time performance of the resource configuration strategy.

[0107] Figure 5 An example diagram of a resource configuration process according to another embodiment of the present disclosure is schematically shown.

[0108] like Figure 5 As shown, in 500, for each change event, an initial time window divided by a start time and an end time can be formed, and the sub-evaluation value of the change event is used as the initial evaluation value of the initial time window to obtain a block for each change event.

[0109] The target assessment information may be presented in the form of a chart comprising a plurality of blocks, each of which may be colored to represent the magnitude of a sub-assessment value of the change event, and may also be configured to represent the timeframe of the change event's impact by its starting and ending positions. For example, block 501 may represent a low sub-assessment value, block 502 may represent a medium sub-assessment value, and block 503 may represent a high sub-assessment value.

[0110] On this basis, target evaluation information can be determined based on the initial evaluation value of each change event's initial time window. Specifically, the initial evaluation values ​​belonging to the same time window are accumulated to obtain a cumulative evaluation value for that time window, and then a determination is made as to whether the accumulated evaluation value satisfies the preset resource adjustment rules. If it is determined that the accumulated evaluation value for the time window satisfies the preset resource adjustment rules, a resource allocation policy 507 can be generated based on the target time period corresponding to the accumulated evaluation value.

[0111] In response to the target change event being canceled among the N change events, the cumulative evaluation value of the time window corresponding to the impact time range of the target change event is updated to obtain an updated cumulative evaluation value for the time window. For example, in response to the cancellation of target change event 504, since the target change event is within the time axis range of the current time to three days, the cumulative evaluation value within this range needs to be updated to obtain an updated cumulative evaluation value for the time window.

[0112] After obtaining the updated cumulative evaluation value, the updated cumulative evaluation value can be re-compared according to the preset evaluation threshold. If the updated cumulative evaluation value does not exceed the preset evaluation threshold, the sub-configuration policy corresponding to the time window can be canceled. If the updated cumulative evaluation value exceeds the preset evaluation threshold, the sub-configuration policy corresponding to the time window can be updated to obtain an updated sub-configuration policy.

[0113] For each sub-configuration policy, if all change events involved in the sub-period corresponding to the sub-configuration policy have not been canceled, there is no need to update the sub-configuration policy corresponding to the time window. For example, there is no need to update the sub-configuration policy corresponding to block 505, and resource configuration policy 507 is still used to automatically trigger resource configuration operations when the current time reaches the target period. Alternatively, there is no need to update the sub-configuration policy corresponding to block 506, and resource configuration policy 507 is still used to automatically trigger resource configuration operations when the current time reaches the target period.

[0114] According to an embodiment of the present disclosure, operation S230 may include the following operations.

[0115] For each sub-configuration strategy, in response to the current moment reaching the expansion time, the amount of resources used for the target application is increased based on the resource adjustment amount. In response to the current moment reaching the reduction time, the amount of resources used for the target application is reduced based on the resource adjustment amount.

[0116] According to embodiments of the present disclosure, the target time can include an expansion time determined based on the start time of the time window, or a reduction time determined based on the end time of the time window and a preset period. The specific form of the sub-configuration policy can be configured based on actual business needs and is not limited here. For example, the sub-configuration policy can be in the form of application-resource adjustment amount-expansion time-reduction time.

[0117] For example, if a time window starts at 9:00 AM and resources need to be added at that time, then 9:00 AM is the expansion time. Alternatively, if a time window ends at 3:00 PM with a preset period of 5 minutes and resources need to be reduced at that time, then 3:05 PM is the reduction time.

[0118] According to an embodiment of the present disclosure, when it is detected that the current time has reached the expansion time, the number of resources of the target application can be increased according to the pre-calculated resource adjustment amount. For example, if the expansion is planned for 9:00 AM and the resource adjustment amount is 10 units, then when the system detects that the current time is 9:00 AM, the number of resources of the target application will be automatically increased by 10 units.

[0119] According to an embodiment of the present disclosure, when it is detected that the current time has reached the scaling-down time, the number of resources of the target application is reduced according to the pre-calculated resource adjustment amount. For example, if a scaling-down is planned for 3 pm and the resource adjustment amount is 10 units, then when the system detects that the current time is 3 pm, the number of resources of the target application is automatically reduced by 10 units.

[0120] According to the embodiments of the present disclosure, by increasing the number of resources available for target applications during expansion, sufficient resources are ensured to maintain performance under high loads. By reducing the number of resources available for target applications during scaling down, resource waste is avoided. This method of dynamically adjusting the number of resources based on the resource adjustment amount enhances the flexibility of the elastic scaling mechanism, enabling flexible and automated resource allocation based on business characteristics, thereby improving resource allocation efficiency.

[0121] The resource configuration process provided by the embodiment of the present disclosure is described above. Figure 6 , an exemplary description of the resource configuration process provided by another embodiment of the present disclosure is given.

[0122] Figure 6 An example diagram of a resource configuration process according to another embodiment of the present disclosure is schematically shown.

[0123] like Figure 6As shown in 600, the resource configuration process may include a link registration link, a source business system determination link, an elastic planning calculation link, and an elastic scheduling link. The modules used to execute the above links may include an event acquisition module, an elastic scheduling planning module, and an expansion logic calculation module.

[0124] In the link registration phase, after determining the target link, the application corresponding to the target link can be registered in the elastic scheduling planning module to facilitate the expansion logic computing module to trigger the corresponding elastic scheduling.

[0125] When determining the source business system, you need to identify which business systems' change events will be included. After confirming the business system, you can then determine the target link corresponding to the business, confirm the operation type, and confirm the preset evaluation threshold.

[0126] During the elastic planning calculation phase, the event acquisition module can be used to obtain change events from the business systems for the target links. This module analyzes the impact of these change events on the target links within the affected timeframe and generates a sub-assessment value for each change event. If a target change event is canceled, the scaling schedules registered within the corresponding time window in the elastic scheduling phase can be canceled.

[0127] If no change events are canceled, the cumulative evaluation value for each time window can be obtained by calculating / merging the time windows, and the cumulative evaluation value can be judged based on the preset evaluation threshold. For example, if the cumulative evaluation value does not exceed the preset evaluation threshold, there is no need to register the scaling schedule for the corresponding time window. Alternatively, if the cumulative evaluation value exceeds the preset evaluation threshold, the scaling schedule for the corresponding time window can be registered in the elastic scheduling phase.

[0128] The above are merely exemplary embodiments, but are not limited thereto. Other resource configuration methods known in the art may also be included as long as they can improve the efficiency and accuracy of resource configuration.

[0129] Based on the above resource configuration method 200, the present invention also provides a resource configuration device. Figure 7 The device is described in detail.

[0130] Figure 7 The block diagram of the resource configuration device according to an embodiment of the present disclosure is schematically shown.

[0131] like Figure 7 As shown, the resource configuration apparatus 700 may include an acquisition module 710 , a generation module 720 and a resource configuration module 730 .

[0132] Acquisition module 710 is configured to acquire change events for each of M business systems for a target link, where the target link includes P candidate applications, and each business system affects the traffic of at least one candidate application. In one embodiment, acquisition module 710 may be configured to perform operation S210 described above, and will not be further described here.

[0133] Generation module 720 is configured to generate a resource configuration policy based on a target period corresponding to the target assessment information, in response to the target assessment information determined based on the N change events satisfying a preset resource adjustment rule. The target assessment information indicates the degree of impact of the N change events on the target link within the target period. In one embodiment, generation module 720 may be configured to perform operation S220 described above and will not be further described herein.

[0134] Resource configuration module 730 is configured to, in response to the current time reaching the target time corresponding to the target time period, perform resource configuration on Q target applications from the P candidate applications based on the resource adjustment amount indicated by the resource configuration policy, where M, N, P, and Q are all positive integers and P ≥ Q. In one embodiment, resource configuration module 730 may be configured to perform operation S230 described above and will not be further described herein.

[0135] According to an embodiment of the present disclosure, a change event has an operation type, an impact magnitude, and an impact time range.

[0136] According to an embodiment of the present disclosure, the resource configuration apparatus 700 may further include a first determination module and a second determination module.

[0137] The first determination module is used to determine the sub-evaluation value of each change event based on the preset evaluation value mapping, according to the operation type and impact magnitude, wherein the preset evaluation value mapping includes the correspondence between the candidate operation type, the candidate impact magnitude and the candidate evaluation value, and the sub-evaluation value represents the degree of impact of the change event on the target link within the impact time range.

[0138] The second determining module is used to determine target evaluation information according to the respective sub-evaluation values ​​of each change event.

[0139] According to an embodiment of the present disclosure, the impact time range includes a start time and an end time.

[0140] According to an embodiment of the present disclosure, the second determining module may include a first obtaining submodule and a first determining submodule.

[0141] The first obtaining submodule is used to form an initial time window divided by a start time and an end time for each change event, and use the sub-evaluation value of the change event as the initial evaluation value of the initial time window.

[0142] The first determining submodule is configured to determine target evaluation information according to an initial evaluation value of an initial time window of each change event.

[0143] According to an embodiment of the present disclosure, the first obtaining submodule may include a first obtaining unit and a second obtaining unit.

[0144] The first obtaining unit is used to form an initial time window divided by the start time and the end time when the initial time window does not include the start time and the end time, and use the sub-evaluation value as the initial evaluation value of the initial time window.

[0145] The second obtaining unit is used to update the initial evaluation value of the initial time window according to the sub-evaluation value of the change event when the initial time window includes the start time and the end time, so as to obtain the updated initial evaluation value.

[0146] According to an embodiment of the present disclosure, the target evaluation information is presented in the form of a chart, which includes a plurality of blocks, each of which represents a sub-evaluation value and an impact time range of a change event.

[0147] According to an embodiment of the present disclosure, the target evaluation information includes the accumulated evaluation values ​​of each of the first number of time windows, the preset resource adjustment rules include the accumulated evaluation value being greater than the preset evaluation threshold, the target period includes multiple sub-periods, and the resource configuration strategy includes a sub-configuration strategy for each sub-period.

[0148] According to an embodiment of the present disclosure, the generation module 720 may include a second determination submodule, a third determination submodule, and a second acquisition submodule.

[0149] a second determining submodule, configured to, for each accumulated evaluation value, determine the time window as a sub-period in response to the accumulated evaluation value being greater than a preset evaluation threshold;

[0150] The third determining submodule is configured to determine, for each sub-period, an adjustment amount for the sub-period according to the accumulated evaluation value.

[0151] The second obtaining submodule is configured to determine the start time of the time window as the expansion time, the end time of the time window and the preset period as the contraction time, and the adjustment amount as the resource adjustment amount to obtain a sub-configuration strategy.

[0152] According to an embodiment of the present disclosure, the resource configuration apparatus 700 may further include a first updating module and a second updating module.

[0153] The first updating module is configured to update the cumulative evaluation value of a time window corresponding to an impact time range of the target change event in response to cancellation of the target change event among the N change events, to obtain an updated cumulative evaluation value of the time window.

[0154] The second updating module is configured to update the sub-configuration strategy of the sub-period according to the updated accumulated evaluation value and the preset evaluation threshold to obtain an updated sub-configuration strategy.

[0155] According to an embodiment of the present disclosure, the target time includes an expansion time determined based on a start time of a time window, or a reduction time determined based on an end time of the time window and a preset period.

[0156] According to an embodiment of the present disclosure, the resource configuration module 730 may include a first adjustment submodule and a second adjustment submodule.

[0157] The first adjustment submodule is configured to, for each sub-configuration strategy, increase the amount of resources used for the target application based on the resource adjustment amount in response to the current moment reaching the expansion moment.

[0158] The second adjustment submodule is configured to reduce the amount of resources used for the target application based on the resource adjustment amount in response to the current moment reaching the scaling-down moment.

[0159] According to the embodiments of the present invention, any number of modules, sub-modules, units, and sub-units, or at least part of the functions of any number of them, can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, sub-modules, units, and sub-units can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, sub-modules, units, and sub-units can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or can be implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, sub-modules, units, and sub-units can be at least partially implemented as a computer program module, which can perform the corresponding functions when the computer program module is executed.

[0160] It should be noted that the resource configuration device part in the embodiment of the present disclosure corresponds to the resource configuration method part in the embodiment of the present disclosure. The description of the resource configuration device part specifically refers to the resource configuration method part and will not be repeated here.

[0161] Figure 8 A block diagram of an electronic device suitable for implementing a resource configuration method according to an embodiment of the present disclosure is schematically shown. Figure 8 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0162] like Figure 8 As shown, the computer electronic device 800 according to an embodiment of the present disclosure includes a processor 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage portion 809 into a random access memory (RAM) 803. The processor 801 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 801 may also include onboard memory for cache purposes. The processor 801 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0163] In the RAM 803 , various programs and data required for the operation of the electronic device 800 are stored. The processor 801 , the ROM 802 , and the RAM 803 are connected to each other via a bus 804 .

[0164] According to an embodiment of the present disclosure, electronic device 800 may further include an input / output (I / O) interface 805, which is also connected to bus 804. Electronic device 800 may also include one or more of the following components connected to I / O interface 805: an input section 806 including a keyboard, mouse, etc.; an output section 807 including devices such as a cathode ray tube (CRT), liquid crystal display (LCD), and speakers; a storage section 808 including a hard disk; and a communication section 809 including a network interface card such as a LAN card or modem. Communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to I / O interface 805 as needed. Removable media 811, such as a magnetic disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed in drive 810 as needed, so that computer programs read from the removable media can be installed into storage section 808 as needed.

[0165] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments, or may exist independently and not be incorporated into the device / apparatus / system. The computer-readable storage medium carries one or more programs, which, when executed, implement the resource configuration method according to the embodiments of the present disclosure.

[0166] In the present disclosure, a computer readable storage medium may be any tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device.

[0167] An embodiment of the present disclosure also includes a computer program product, which includes a computer program, which contains program code for executing the method provided by the embodiment of the present disclosure. When the computer program product is run on an electronic device, the program code is used to enable the electronic device to implement the object detection method provided by the embodiment of the present disclosure.

[0168] When the computer program is executed by the processor 801, the above functions defined in the system / device of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0169] According to the embodiments of the present disclosure, program codes for executing the computer programs provided by the embodiments of the present disclosure may be written in any combination of one or more programming languages.

[0170] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions, and operations of the systems, methods, and computer program products according to various embodiments of the present disclosure. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings.

[0171] The embodiments of the present disclosure are described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although each embodiment has been described separately above, this does not mean that the measures in each embodiment cannot be used in combination to advantage. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A resource allocation method, comprising: Obtaining change events for respective M business systems for a target link, wherein the target link includes P candidate applications, and each of the business systems affects the traffic of at least one of the candidate applications; In response to target assessment information determined based on the N change events satisfying a preset resource adjustment rule, generating a resource configuration policy according to a target period corresponding to the target assessment information, wherein the target assessment information represents a degree of impact of the N change events on the target link within the target period; and In response to the current moment reaching the target moment corresponding to the target period, resource configuration is performed on Q target applications among the P candidate applications based on the resource adjustment amount indicated by the resource configuration policy, where M, N, P and Q are all positive integers and P≥Q.

2. The method according to claim 1, wherein The change event has an operation type, an impact magnitude, and an impact time range; The method further includes, after obtaining the change events of the M service systems for the target link: Determining, based on a preset evaluation value mapping, a respective sub-evaluation value for each of the change events according to the operation type and the impact magnitude, wherein the preset evaluation value mapping includes a correspondence between candidate operation types, candidate impact magnitudes, and candidate evaluation values, and the sub-evaluation value represents the degree of impact of the change event on the target link within the impact time range; and The target evaluation information is determined according to the respective sub-evaluation values ​​of each of the change events.

3. The method according to claim 2, wherein: The impact time range includes a start time and an end time; Determining the target evaluation information according to the respective sub-evaluation values ​​of each of the change events includes: For each of the change events, forming an initial time window divided by the start time and the end time, and using the sub-evaluation value of the change event as the initial evaluation value of the initial time window; and The target evaluation information is determined according to the initial evaluation value of the initial time window of each of the change events.

4. The method according to claim 3, wherein: The forming of an initial time window divided by the start time and the end time, and using the sub-evaluation value of the change event as the initial evaluation value of the initial time window includes: In a case where the initial time window does not include the start time and the end time, forming an initial time window divided by the start time and the end time, and using the sub-evaluation value as the initial evaluation value of the initial time window; or In a case where the initial time window includes the start time and the end time, the initial evaluation value of the initial time window is updated according to the sub-evaluation value of the change event to obtain an updated initial evaluation value.

5. The method according to claim 2, wherein: The target evaluation information is presented in the form of a chart, which includes a plurality of blocks, each of which represents a sub-evaluation value of the change event and the impact time range.

6. The method according to any one of claims 1 to 5, wherein The target evaluation information includes cumulative evaluation values ​​of each of the first number of time windows, the preset resource adjustment rule includes that the cumulative evaluation value is greater than a preset evaluation threshold, the target period includes multiple sub-periods, and the resource configuration strategy includes a sub-configuration strategy for each of the sub-periods; In response to target evaluation information determined based on the N change events satisfying a preset resource adjustment rule, generating a resource configuration strategy according to a target period corresponding to the target evaluation information includes: For each of the accumulated evaluation values, in response to the accumulated evaluation value being greater than the preset evaluation threshold, determining the time window as the sub-period; For each of the sub-periods, determining an adjustment amount for the sub-period based on the accumulated evaluation value; and The sub-configuration strategy is obtained by determining the start time of the time window as the expansion time, the end time of the time window and the preset time period as the contraction time, and the adjustment amount as the resource adjustment amount.

7. The method according to claim 6, further comprising, after the target assessment information determined based on the N change events satisfies a preset resource adjustment rule and the resource allocation policy is generated according to the target period corresponding to the target assessment information: In response to a target change event among the N change events being canceled, updating the cumulative evaluation value of a time window corresponding to an impact time range of the target change event to obtain an updated cumulative evaluation value of the time window; and The sub-configuration strategy for the sub-period is updated according to the updated accumulated evaluation value and the preset evaluation threshold to obtain an updated sub-configuration strategy.

8. The method according to any one of claims 1 to 5, wherein The target time includes an expansion time determined based on the start time of the time window, or a reduction time determined based on the end time of the time window and a preset time period; In response to the current time reaching the target time, performing resource configuration on the Q target applications based on the resource adjustment amount indicated by the resource configuration policy includes: For each of the sub-configuration strategies, In response to the current moment reaching the capacity expansion moment, increasing the amount of resources used for the target application based on the resource adjustment amount; as well as In response to the current time reaching the scaling-down time, the amount of resources used for the target application is reduced based on the resource adjustment amount.

9. A resource allocation device comprising: an acquisition module, configured to acquire change events of respective M business systems for a target link, wherein the target link includes P candidate applications, and each of the business systems affects the traffic of at least one of the candidate applications; a generating module, configured to generate a resource configuration policy according to a target period corresponding to the target evaluation information, in response to target evaluation information determined based on the N change events satisfying a preset resource adjustment rule, wherein the target evaluation information represents a degree of impact of the N change events on the target link within the target period; and A resource configuration module is configured to, in response to the current moment reaching the target moment corresponding to the target time period, perform resource configuration on Q target applications among the P candidate applications based on the resource adjustment amount indicated by the resource configuration policy, wherein M, N, P and Q are all positive integers and P≥Q.

10. An electronic device comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 8.

11. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

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

Citation Information

Patent Citations

  • Resource management method and system

    CN102065544A

  • Link monitoring method, medium, device and computing equipment

    CN116582465A

  • Network configuration updating method and device for software defined network

    CN119484282A

  • Classification of auto scaling events impacting computing resources

    US10476742B1