Performance capacity resource configuration method and apparatus
By collecting and analyzing the business scenarios and node resource configuration information of the bank's core application systems, a full-link performance and capacity resource configuration strategy is generated. This solves the problems of inconsistent resource configuration and complex switching, enabling rapid configuration and efficient testing, and improving the accuracy and efficiency of testing.
Patent Information
- Application Number
- CN202310802929.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-30
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2043-06-30
AI Technical Summary
After the bank's core application system was moved to a distributed open platform, the complexity of the business transaction chain increased, resulting in inconsistent resource configuration, biased assessment of performance and capacity bottlenecks, frequent and complex resource configuration switching, and a lack of business-level end-to-end performance and capacity resource configuration methods, which affected testing efficiency and accuracy.
By collecting link configuration information and application node performance and capacity resource configuration information for different business scenarios, the system determines the performance and capacity resource configuration specifications for different test types, generates a full-link performance and capacity resource configuration strategy at the business scenario level, provides configuration information collection, specification determination and strategy management units, and supports one-click switching of resource configurations for different test types.
It enables rapid configuration and reclamation of performance and capacity resources at the business scenario level, improves the efficiency of performance and capacity resource configuration, avoids performance test evaluation bias caused by environmental configuration oversights, and improves the efficiency and quality of performance and capacity testing under distributed architecture.
Smart Images

Figure CN116743565B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of cloud computing, and particularly relates to a performance capacity resource configuration method and device. BACKGROUND
[0002] At present, the bank core application system is fully moved to a distributed open platform, which leads to a substantial increase in the complexity of business transaction links, and the performance capacity configuration of each application lacks unified standards and tool support, resulting in the following problems in the performance capacity resource configuration of the test environment:
[0003] First, the non-uniform resource configuration rules of upstream and downstream applications lead to performance capacity bottleneck evaluation deviation. A complex business scenario transaction link may involve dozens of key core applications, but the test and production environment containers and resource allocation ratios of each application are not the same. For example, a certain payment business scenario involves transaction links A, B, C, and D applications. If the resource configuration of the test environment A application is 1 / 2 of the production environment, the resource configuration of the B application is 1 / 4 of the production environment, the resource configuration of the C application is 1 / 8 of the production environment, and the resource configuration of the D application is 1 / 2 of the production environment, based on this environment, the full-link performance capacity test is carried out, and the performance capacity bottleneck of the C application may appear first in the performance test due to the lowest test environment capacity ratio of the production environment. However, the real performance bottleneck point of the production environment may not be on the C application. Therefore, the non-uniform resource configuration rules of upstream and downstream applications can seriously affect the accuracy of the overall performance support capability evaluation of the full-link, leading to performance capacity bottleneck evaluation deviation.
[0004] Second, the resource configuration is frequently switched between business function tests and performance capacity tests, and the complexity is high. Performance capacity tests often need to simulate production users and perform high-concurrency stress tests, so the resource configuration requirements are high. Before the performance test is implemented, multiple application container replicas need to be started according to the allocation ratio requirements, and the CPU and memory configurations of the single container need to be adjusted to be consistent with the production configuration. Business function tests are generally executed manually or using automated scripts in series, and there is no concurrency in transactions, so the resource capacity demand is low. Due to the limitations of the test environment room and hardware resources, the application resources of performance capacity tests and business function tests need to be managed differently, and resource expansion and resource recovery need to be performed for all applications on the test scenario link before and after the performance test. The resource adjustment switching action is frequent and complex.
[0005] Third, the lack of business-level full-link performance capacity resource configuration switching method. At present, the distributed cloud platform is based on application container template granularity to manage resource configuration, and a business scenario link may involve calling multiple applications, and some complex business scenarios may involve dozens of application calls. The current operation method needs to adjust the resource configuration of the related applications on the link one by one. Based on this resource configuration switching method, the capacity resource preparation time of a single business scenario is about 1 hour on average. Due to the lack of business-level full-link performance capacity resource configuration, checking and flexible adjustment support, the current resource configuration flexibility is low, time-consuming, and the adjustment for complex link scenarios is easy to miss the link application, and lacks tool checking means. SUMMARY
[0006] The embodiment of the application provides a performance capacity resource configuration method to improve the performance capacity resource configuration efficiency, and the method comprises the following steps:
[0007] Collecting link configuration information of different business scenarios and performance capacity resource configuration information of each application node;
[0008] Determining performance capacity resource configuration specifications of a business full link under different test types;
[0009] Based on the link configuration information of different business scenarios, the performance capacity resource configuration information of each application node and the performance capacity resource configuration specifications of the business full link under different test types, generating performance capacity resource configuration strategies of each business scenario full link under different test types.
[0010] The embodiment of the application further provides a performance capacity resource configuration device to improve the performance capacity resource configuration efficiency, and the device comprises the following:
[0011] The configuration information collection unit is used for collecting link configuration information of different business scenarios and performance capacity resource configuration information of each application node;
[0012] The performance capacity resource configuration specification unit is used for determining performance capacity resource configuration specifications of a business full link under different test types;
[0013] The performance capacity resource configuration strategy management unit is used for generating performance capacity resource configuration strategies of each business scenario full link under different test types based on the link configuration information of different business scenarios, the performance capacity resource configuration information of each application node and the performance capacity resource configuration specifications of the business full link under different test types.
[0014] This invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described performance capacity resource allocation method.
[0015] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described performance capacity resource allocation method.
[0016] This invention also provides a computer program product, which includes a computer program that, when executed by a processor, implements the above-described performance capacity resource allocation method.
[0017] In this embodiment of the invention, link configuration information for different business scenarios and performance capacity resource configuration information for each application node are collected; performance capacity resource configuration specifications based on the entire business link are determined for different test types; based on the link configuration information for different business scenarios, the performance capacity resource configuration information for each application node, and the performance capacity resource configuration specifications based on the entire business link for different test types, performance capacity resource configuration strategies for each business scenario under different test types are generated. Compared with existing technologies, by customizing performance capacity resource configuration strategies at the business scenario level, rapid configuration and reclamation of performance capacity resources at the business scenario level are achieved, improving the efficiency of performance capacity resource configuration. This avoids deviations in performance test evaluation results due to oversights in application link environment configuration, and improves the efficiency and quality of performance capacity testing under distributed architecture. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. In the drawings:
[0019] Figure 1 A flowchart illustrating the performance capacity resource allocation method provided by this invention;
[0020] Figure 2 This is a schematic diagram of the business scenario link configuration information provided by the present invention;
[0021] Figure 3 This is a schematic diagram illustrating the end-to-end performance, capacity, and resource configuration strategy for business scenario A provided by the present invention.
[0022] Figure 4A flowchart illustrating the performance capacity resource allocation method provided by this invention;
[0023] Figure 5 A schematic diagram of the performance capacity resource allocation device provided by the present invention. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0025] Figure 1 This is a flowchart illustrating a performance capacity resource allocation method provided in an embodiment of the present invention, as shown below. Figure 1 As shown, the method includes:
[0026] Step 101: Collect link configuration information for different business scenarios and performance, capacity and resource configuration information for each application node.
[0027] In this embodiment of the invention, link configuration information for different business scenarios is collected, such as... Figure 2 As shown, three business scenarios are used as examples: business scenario A, business scenario B, and business scenario C.
[0028] Business scenario A involves the following application links: Application A1 node A, Application A1 node B, Application A2 node A, and Application A3 node A.
[0029] Business scenario B involves the following application links: Application B1 node A, Application B2 node A, Application B3 node A, and Application B3 node B.
[0030] The application chain involved in business scenario C is: application C1 node A, application C2 node A, application C3 node A, and application C4 node A.
[0031] The configuration information for each of the above business scenarios is collected and stored in the configuration information database.
[0032] In this embodiment of the invention, performance and capacity resource configuration information of each application node is collected, including key performance and capacity indicators such as the number of application container replicas, the number of CPUs, memory capacity, and storage capacity. Figure 2 As shown, the performance, capacity, and resource configuration information of application A1 node A, application B1 node A, and application C1 node A is displayed. The resource configuration of each application node includes key resource configuration information such as the number of application container replicas, the number of CPUs, and the memory configuration size in the current production environment.
[0033] The above application resource configuration information is stored in the configuration information repository.
[0034] Step 102: Determine the performance capacity resource configuration specifications based on the entire business link under different test types.
[0035] In one possible implementation, the configuration specifications for container replicas, CPU resources, memory resources, and storage resources of each application node are determined.
[0036] Step 103: Based on the link configuration information of different business scenarios, the performance capacity resource configuration information of each application node, and the performance capacity resource configuration specifications based on the entire business link under different test types, generate the full-link performance capacity resource configuration strategy for each business scenario under different test types.
[0037] The above solution, through customized performance and capacity resource configuration strategies at the business scenario level, enables rapid configuration and reclamation of performance and capacity resources, thereby improving the efficiency of performance and capacity resource configuration. It also avoids deviations in performance test evaluation results due to oversights in application link environment configuration, thus improving the efficiency and quality of performance and capacity testing in distributed architectures.
[0038] In this embodiment of the invention, the transaction concurrency of the functional test is low, so the requirements for system resource capacity are also low. In addition, in order to facilitate log analysis and problem localization, the number of application container replicas involved in the entire test environment is kept to the minimum configuration. The CPU and memory resource configuration of a single container is kept consistent with the production environment. The storage capacity resource configuration is the capacity after being converted according to the ratio of the daily transaction volume of the test and production environments, plus the basic storage capacity overhead.
[0039] The specific resource configuration standards for functional testing are as follows:
[0040] Standard configuration for the number of container replicas on each application node across the entire value chain:
[0041] D T =Min(D) P )
[0042] Among them, D T This indicates the configuration for the number of application container replicas in the test environment; Min(D) P This indicates the minimum number of replicas allowed within an application node.
[0043] Single container CPU resource configuration standard:
[0044] C T =C P
[0045] Among them, C T This indicates the CPU configuration for the test environment; C P This indicates the number of CPUs configured in the production environment;
[0046] Single-container memory resource configuration standards:
[0047] M T =M P
[0048] Among them, M T Indicates the memory configuration size of the test environment; M P Indicates the memory configuration size for the production environment;
[0049] Single-container storage resource configuration standards:
[0050]
[0051] Among them, H T Indicates the storage capacity of the test environment; H P Indicates the storage capacity of the production environment; T T This indicates the daily trading volume in the test environment; T P H represents the daily transaction volume in the production environment. B This indicates the basic overhead of the test environment's storage capacity.
[0052] In this embodiment of the invention, stress testing requires high-concurrency testing by simulating production users, thus placing high demands on resource configuration. The resource allocation within a single shard must be consistent with that in production, and the number of application container replicas involved in the entire test environment should be configured in equal proportion to that in the production environment.
[0053] The specific resource allocation standards for stress testing are as follows:
[0054] Standard configuration for the number of container replicas on each application node across the entire value chain:
[0055] D T =D P *i
[0056] Among them, D T This indicates the configuration for the number of application container replicas in the test environment; D P This indicates the configuration of the number of container replicas used in the production environment; 'i' represents the ratio of the number of container replicas used in the test and production environments.
[0057] Single container CPU resource configuration standard:
[0058] C T =C P
[0059] Among them, C T This indicates the CPU configuration for the test environment; C P This indicates the number of CPUs configured in the production environment;
[0060] Single-container memory resource configuration standards:
[0061] M T =M P
[0062] Among them, M T Indicates the memory configuration size of the test environment; M P Indicates the memory configuration size for the production environment;
[0063] Single-container storage resource configuration standards:
[0064] H T =H P
[0065] Among them, H T Indicates the storage capacity of the test environment; H P This indicates the storage capacity of the production environment.
[0066] The above solution provides performance and capacity resource configuration specifications for different types of testing scenarios, including application node container replica configuration specifications, CPU resource configuration specifications, memory resource configuration specifications, and storage resource configuration specifications. Based on resource requirement analysis for different types of testing scenarios, it formulates resource allocation specifications for production and testing environments, defines the ratio standards for the number of nodes and container replicas in the production and testing environments, and improves the efficiency of performance and capacity resource configuration.
[0067] like Figure 3 The diagram illustrates the end-to-end performance and capacity resource configuration strategy for business scenario A. Business scenario A involves four application nodes across its entire transaction chain: Application 1 Node A, Application 1 Node B, Application 2 Node C, and Application 3 Node D. Testing for business scenario A includes two switching scenarios: stress testing and functional testing. Based on the end-to-end performance and capacity resource configuration specifications for different test types, taking Application 1 Node A as an example, the resource strategy configuration requirements for the stress testing scenario are 2 container replicas, 2 CPUs, and 4GB of memory. The number of container replicas in the test environment for all application nodes across the entire chain is 1 / 4 of the number of production container replicas, and the CPU and memory resources of a single container are consistent with production, ensuring that no performance and capacity bottleneck occurs during the end-to-end performance and capacity testing. In the functional testing scenario, the container replica configuration strategy is to minimize and retain only 1 container replica, and the CPU and memory resource configuration of a single container is consistent with production.
[0068] After generating end-to-end performance capacity resource configuration strategies for various business scenarios under different test types, the steps in this embodiment of the invention are as follows: Figure 4 As shown, the details are as follows:
[0069] Step 401: Receive the aggregation query instruction;
[0070] It should be noted that the aggregate query command includes the business scenario name.
[0071] Step 402: Aggregate and query the performance, capacity, and resource configuration information of the entire application node based on the business scenario name.
[0072] The above solution performs aggregated queries on all application nodes involved in the entire chain, based on the scenario name. This elevates the previous application node-level query to a business scenario-level query, facilitating rapid and accurate checks of the current application configuration's correctness and compliance with expectations when dealing with a large number of nodes during load testing, significantly improving environment inspection efficiency.
[0073] After generating end-to-end performance capacity resource configuration strategies for various business scenarios under different test types, this embodiment of the invention further includes:
[0074] For each business scenario, different resource configuration strategies are configured for different test types. After receiving a switching instruction, a one-click switch can be made between different resource configuration strategies.
[0075] In one possible implementation, the test types include: functional testing, stress testing, and abnormal scenario testing.
[0076] In this embodiment of the invention, different resource configuration strategies for different test types are supported for each business scenario, such as functional test strategies, stress test strategies, and abnormal scenario test strategies. For different test strategies, key resource configuration standards such as the number of container replicas, CPU, and memory are set according to the capacity resource configuration specification, providing one-click resource configuration switching between different strategies for business scenarios.
[0077] Furthermore, embodiments of the present invention create test business scenarios based on actual test scenarios and environment maintenance requirements, and provide visualized management functions such as centralized query, maintenance and update of business scenarios.
[0078] The above solution, based on access to the underlying distributed cloud platform, provides scenario configuration, node configuration, and policy configuration functions, as well as visual aggregation query and scenario policy switching functions for business-level scenarios. It enables one-click switching and adjustment of resource policies between different test modes at the business link level.
[0079] This invention also provides a performance capacity resource configuration device, as described in the following embodiments. This device is as follows... Figure 5 As shown, the device includes:
[0080] The configuration information collection unit 501 is used to collect link configuration information for different business scenarios and performance, capacity and resource configuration information of each application node.
[0081] Performance capacity resource configuration specification unit 502 is used to determine the performance capacity resource configuration specification based on the entire business link under different test types;
[0082] The performance capacity resource configuration strategy management unit 503 is used to generate full-link performance capacity resource configuration strategies for different test types based on the link configuration information of different business scenarios, the performance capacity resource configuration information of each application node, and the performance capacity resource configuration specifications based on the full-link business under different test types.
[0083] In this embodiment of the invention, the performance capacity resource configuration specification unit 502 is specifically used for:
[0084] Define the configuration specifications for container replicas, CPU resources, memory resources, and storage resources for each application node.
[0085] In this embodiment of the invention, the performance capacity resource configuration specification unit 502 is specifically used for:
[0086] The specific resource configuration standards for functional testing are as follows:
[0087] Standard configuration for the number of container replicas on each application node across the entire value chain:
[0088] The number of application container replicas in the test environment is configured to be equal to the minimum number of replicas allowed within the application node.
[0089] Single container CPU resource configuration standard:
[0090] The number of CPUs configured in the test environment is equal to the number of CPUs configured in the production environment;
[0091] Single-container memory resource configuration standards:
[0092] The memory configuration size of the test environment is equal to that of the production environment.
[0093] Single-container storage resource configuration standards:
[0094] The difference between the test environment storage capacity and the test environment storage capacity basic overhead is equal to the production environment storage capacity multiplied by the ratio of the test environment daily transaction volume to the production environment daily transaction volume.
[0095] In this embodiment of the invention, the performance capacity resource configuration specification unit 502 is specifically used for:
[0096] The specific resource allocation standards for stress testing are as follows:
[0097] Standard configuration for the number of container replicas on each application node across the entire value chain:
[0098] The number of application container replicas configured in the test environment is equal to the number of application container replicas configured in the production environment multiplied by the ratio factor between the number of application container replicas configured in the test and production environments.
[0099] Single container CPU resource configuration standard:
[0100] The number of CPUs configured in the test environment is equal to the number of CPUs configured in the production environment;
[0101] Single-container memory resource configuration standards:
[0102] The memory configuration size of the test environment is equal to that of the production environment.
[0103] Single-container storage resource configuration standards:
[0104] The storage capacity of the test environment is equal to that of the production environment.
[0105] In this embodiment of the invention, the performance capacity resource configuration strategy management unit 503 is further configured to:
[0106] After generating end-to-end performance capacity resource configuration strategies for various business scenarios under different test types, the system receives aggregation query commands; the aggregation query commands include the business scenario name.
[0107] Aggregate and query the performance, capacity, and resource configuration information of all application nodes across the entire value chain based on the business scenario name.
[0108] In this embodiment of the invention, the performance capacity resource configuration strategy management unit 503 is further configured to:
[0109] After generating end-to-end performance capacity resource configuration strategies for various business scenarios under different test types, resource configuration strategies for different test types are configured for each business scenario. Upon receiving a switching instruction, a one-click switch can be made between different resource configuration strategies.
[0110] The performance capacity resource configuration strategy management unit 503 is specifically used for: test types including: functional testing, stress testing and abnormal scenario testing.
[0111] Since the principle by which this device solves the problem is similar to that of the performance capacity resource allocation method, the implementation of this device can be found in the implementation of the performance capacity resource allocation method, and the repetitive parts will not be repeated.
[0112] This invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described performance capacity resource allocation method.
[0113] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described performance capacity resource allocation method.
[0114] This invention also provides a computer program product, which includes a computer program that, when executed by a processor, implements the above-described performance capacity resource allocation method.
[0115] In this embodiment of the invention, link configuration information for different business scenarios and performance capacity resource configuration information for each application node are collected; performance capacity resource configuration specifications based on the entire business link are determined for different test types; based on the link configuration information for different business scenarios, the performance capacity resource configuration information for each application node, and the performance capacity resource configuration specifications based on the entire business link for different test types, performance capacity resource configuration strategies for each business scenario under different test types are generated. Compared with existing technologies, by customizing performance capacity resource configuration strategies at the business scenario level, rapid configuration and reclamation of performance capacity resources at the business scenario level are achieved, improving the efficiency of performance capacity resource configuration. This avoids deviations in performance test evaluation results due to oversights in application link environment configuration, and improves the efficiency and quality of performance capacity testing under distributed architecture.
[0116] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0117] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0118] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0119] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0120] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method of performance-capacity resource configuration, characterized by, Comprise: Collect link configuration information of different business scenarios and performance capacity resource configuration information of each application node; Determine the performance capacity resource configuration specification of the whole link based on business under different test types; Based on the link configuration information of different business scenarios, the performance capacity resource configuration information of each application node and the performance capacity resource configuration specification of the whole link based on business under different test types, generate the whole link performance capacity resource configuration strategy of each business scenario under different test types, Wherein, the different test types include function test and stress test, The specific resource configuration standard of the function test is as follows: The whole link application node container replica number configuration standard: The test environment application container replica number configuration is equal to the minimum replica number configuration allowed in the application node; Single container CPU resource configuration standard: The test environment CPU core number configuration is equal to the production environment CPU core number configuration; Single container memory resource configuration standard: The test environment memory configuration size is equal to the production environment memory configuration size; Single container storage resource configuration standard: The difference between the test environment storage capacity size and the test environment storage capacity basic overhead is equal to the production environment storage capacity size multiplied by the ratio of the test environment daily transaction volume to the production environment daily transaction volume; Wherein, the specific resource configuration standard of the stress test is as follows: The whole link application node container replica number configuration standard: The test environment application container replica number configuration is equal to the production environment application container replica number configuration multiplied by the proportion coefficient of test and production application container replica number configuration; Single container CPU resource configuration standard: The test environment CPU core number configuration is equal to the production environment CPU core number configuration; Single container memory resource configuration standard: The test environment memory configuration size is equal to the production environment memory configuration size; Single container storage resource configuration standard: The test environment storage capacity size is equal to the production environment storage capacity size.
2. The performance capacity resource configuration method of claim 1, wherein, Determine the performance capacity resource configuration specification of the whole link based on business under different test types, including: Determine the application node container replica configuration specification, CPU resource configuration specification, memory resource configuration specification and storage resource configuration specification.
3. The performance capacity resource configuration method of claim 1, wherein, After generating the whole link performance capacity resource configuration strategy of each business scenario under different test types, it also includes: Receive aggregation query instruction; The aggregation query instruction includes business scenario name; According to the business scenario name, the performance capacity resource configuration information of the whole link application node is aggregated and queried.
4. The performance capacity resource configuration method of claim 1, wherein, After generating the whole link performance capacity resource configuration strategy of each business scenario under different test types, it also includes: For each business scenario, configure the resource configuration strategy of different test types, and after receiving the switching instruction, one key switching is performed between different resource configuration strategies.
5. An apparatus for configuring a performance capability resource, the apparatus comprising: a processor configured to: determine a performance capability resource; and configure the performance capability resource. Comprise: Configuration information collection unit, for collecting link configuration information of different business scenarios and performance capacity resource configuration information of each application node; Performance capacity resource configuration specification unit, for determining the performance capacity resource configuration specification of the whole link based on business under different test types; The performance capacity resource configuration strategy management unit is configured to generate performance capacity resource configuration strategies for each business scenario full link under different test types based on link configuration information of different business scenarios, performance capacity resource configuration information of each application node, and performance capacity resource configuration specifications based on business full links under different test types. The different test types include a function test and a stress test. The specific resource configuration standards of the function test are as follows: Full link each application node container replica number configuration standards: The test environment application container replica number configuration is equal to the minimum replica number configuration allowed in the application node. Single container CPU resource configuration standards: The test environment CPU core number configuration is equal to the production environment CPU core number configuration. Single container memory resource configuration standards: The test environment memory configuration size is equal to the production environment memory configuration size. Single container storage resource configuration standards: The difference between the test environment storage capacity size and the test environment storage capacity basic overhead is equal to the production environment storage capacity size multiplied by the ratio of the test environment daily transaction volume to the production environment daily transaction volume. The specific resource configuration standards of the stress test are as follows: Full link each application node container replica number configuration standards: The test environment application container replica number configuration is equal to the production environment application container replica number configuration multiplied by the proportion coefficient of the test and production application container replica number configuration. Single container CPU resource configuration standards: The test environment CPU core number configuration is equal to the production environment CPU core number configuration. Single container memory resource configuration standards: The test environment memory configuration size is equal to the production environment memory configuration size. Single container storage resource configuration standards: The test environment storage capacity size is equal to the production environment storage capacity size.
6. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor implements the method of any one of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the method of any one of claims 1 to 4.
8. A computer program product, characterised in that, The computer program product includes a computer program, and the computer program is executed by the processor to implement the method of any one of claims 1 to 4.
Citation Information
Patent Citations
Application performance capacity estimation method and device
CN114840441A