A capacity resource measurement method, device and medium in a Xinxin environment
By building a simulated stress testing environment in the domestic IT innovation environment, generating a stress testing model and conducting stress tests, the compatibility and capacity assessment issues between the domestic IT innovation server and the business system were resolved, ensuring the normal operation of the business system in the domestic IT innovation environment and the performance stability during peak periods.
Patent Information
- Application Number
- CN202311537354.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-17
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2043-11-17
AI Technical Summary
In the context of domestic IT innovation, the incompatibility of the CPU architecture of domestically produced servers with business systems and the uneven performance make it difficult for enterprises to effectively select and assess capacity when migrating business systems. This results in slower business response or crashes during peak hours, affecting normal business operations.
By building a simulated stress testing environment in the domestic IT innovation environment, a stress testing model is generated based on the total amount of business documents and resource parameters during peak business periods. Stress tests are conducted to determine the capacity resources required for the domestic IT innovation server, and capacity compensation is performed considering performance differences and business growth trends.
The selection of domestically developed servers and the smooth migration of the business environment were successfully achieved, ensuring the normal operation of the business system in the domestically developed environment and avoiding performance issues during peak hours.
Smart Images

Figure CN117421197B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and specifically to a capacity resource measurement method, device and medium in an information and communication technology environment. Background Art
[0002] With the continuous promotion of the trusted innovation environment, a large number of enterprises will deploy business systems running in non-trusted innovation environments with AMD architecture and migrate them to domestic trusted innovation servers. However, in the trusted innovation environment, the CPU chips of various domestic trusted innovation servers are basically ARM architecture, and the manufacturers and production processes are different. Therefore, when migrating business systems to trusted innovation, due to the incompatibility issues between the business systems and trusted innovation servers, and the uneven performance of trusted innovation servers provided by different manufacturers, most companies are unable to select the trusted innovation servers available on the market. In addition, some companies lack an understanding of the performance differences of trusted innovation servers and have not evaluated the capacity of trusted innovation servers. As a result, the business system responds slowly or even crashes during peak hours, seriously affecting the normal operation of the company's business and causing certain losses. Summary of the Invention
[0003] To solve the above problems, this application proposes a capacity resource calculation method in a trusted computing environment, which is applied to a preset business system, including:
[0004] Obtaining the total amount of business documents submitted in the business system at preset time intervals, and determining the business peak period corresponding to the business system based on the total amount of business documents;
[0005] Obtain resource parameters and business data corresponding to the business system, copy the resource parameters and business data to the trust creation server, and build a simulation stress testing environment corresponding to the business system;
[0006] According to the total number of business documents corresponding to the business peak period, determine the transaction volume per unit time and the maximum number of concurrent transactions corresponding to the business system during the business peak period to generate a corresponding stress testing model;
[0007] Performing a stress test in the simulated stress test environment based on the stress test model to determine the number of simulated transactions per unit time corresponding to when the business system reaches the maximum concurrency number;
[0008] Based on the transaction volume per unit time and the simulated transaction volume per unit time, determine the capacity resources required by the business system under the deployment of the trusted computing server.
[0009] In one implementation of the present application, the capacity resources required by the business system under the deployment of the trust creation server are determined based on the transaction volume per unit time and the simulated transaction volume per unit time, specifically including:
[0010] Determine the actual response time of the business system when it reaches the maximum concurrency in the actual environment, and the simulated response time when it reaches the maximum concurrency in the simulated stress testing environment;
[0011] Determine, based on the ratio between the actual response time and the simulated response time, a performance difference ratio of the business system in the actual environment and the simulated stress testing environment;
[0012] Based on the performance difference ratio and the resource parameters corresponding to the business system, determine the capacity resources required by the business system under the deployment of the trusted computing server.
[0013] In one implementation of the present application, determining the transaction volume per unit time and the maximum number of concurrent transactions of the business system corresponding to the business peak period according to the total number of business documents corresponding to the business peak period specifically includes:
[0014] Identifying multiple business types in the business system, and for each business type, determining a first processing time corresponding to each business document generated by the business type during the business peak period, as well as a number of business documents generated by the business type per unit time and a second processing time corresponding to each business document;
[0015] Determining the maximum number of concurrent users of the business system during the peak business period based on the total number of business documents corresponding to each business type, the first processing time, the number of business documents, and the second processing time;
[0016] The transaction volume per unit time corresponding to the business system is determined according to the ratio between the total amount of the business documents and the corresponding duration of the business peak period.
[0017] In one implementation of the present application, determining the maximum number of concurrent users of the business system during the peak business period based on the total number of business documents corresponding to each business type, the first processing time, the number of business documents, and the second processing time specifically includes:
[0018] For each business type, determine the ratio between the total number of business documents corresponding to the business type and the first processing time, obtain the daily average concurrent number corresponding to the business type, and calculate the daily peak concurrent number corresponding to the business type based on the daily average concurrent number;
[0019] Determine a ratio between the number of business documents and the second processing time to obtain a daily peak concurrency number corresponding to the business type;
[0020] The maximum concurrent number corresponding to the business system during the business peak period is determined according to the daily peak concurrent number and the single-day peak concurrent number.
[0021] In one implementation of the present application, determining the maximum concurrency of the business system during the business peak period based on the daily peak concurrency and the daily peak concurrency includes:
[0022] Compare the daily peak concurrent number with the daily peak concurrent number, and use the larger value between the daily peak concurrent number and the daily peak concurrent number as the target concurrent number corresponding to the business type;
[0023] Determine the concurrency ratio corresponding to the target concurrency number of each business type, and from the concurrency ratios corresponding to the business types, select the target concurrency number of the business type with the largest concurrency ratio as the maximum concurrency number corresponding to the business system during the business peak period.
[0024] In one implementation of the present application, the method further includes:
[0025] Obtaining the number of transaction submissions of the database corresponding to the business system at a preset time interval;
[0026] Based on the stress testing model, stress testing is performed in the simulated stress testing environment to determine the database capacity resources required for the database under the deployment of the trusted computing server according to the number of transaction submissions.
[0027] In one implementation of the present application, the resource parameters include at least one or more of the following: number of server CPU cores, memory, disk type, and disk size.
[0028] In one implementation of the present application, after determining the capacity resources required by the business system under the deployment of the ICT server based on the transaction volume per unit time and the simulated transaction volume per unit time, the method further includes:
[0029] Obtaining a future business plan for the business system, and determining a business growth amount corresponding to each business type based on the business plan;
[0030] Determine the ratio between the business growth amount and the total amount of business documents, use the ratio as a compensation coefficient, and compensate the capacity resources required by the business system under the deployment of the trusted server based on the compensation coefficient to support the operation of the business system.
[0031] The present application provides a capacity resource calculation device in an information and communication environment, which is applied to a preset business system. The device includes:
[0032] at least one processor; and,
[0033] a memory communicatively connected to the at least one processor; wherein,
[0034] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0035] Obtaining the total amount of business documents submitted in the business system at preset time intervals, and determining the business peak period corresponding to the business system based on the total amount of business documents;
[0036] Obtain resource parameters and business data corresponding to the business system, copy the resource parameters and business data to the trust creation server, and build a simulation stress testing environment corresponding to the business system;
[0037] According to the total number of business documents corresponding to the business peak period, determine the transaction volume per unit time and the maximum number of concurrent transactions corresponding to the business system during the business peak period to generate a corresponding stress testing model;
[0038] Performing a stress test in the simulated stress test environment based on the stress test model to determine the number of simulated transactions per unit time corresponding to when the business system reaches the maximum concurrency number;
[0039] Based on the transaction volume per unit time and the simulated transaction volume per unit time, determine the capacity resources required by the business system under the deployment of the trusted computing server.
[0040] An embodiment of the present application provides a non-volatile computer storage medium storing computer-executable instructions, which is applied to a preset business system. The computer-executable instructions are configured as follows:
[0041] Obtaining the total amount of business documents submitted in the business system at preset time intervals, and determining the business peak period corresponding to the business system based on the total amount of business documents;
[0042] Obtain resource parameters and business data corresponding to the business system, copy the resource parameters and business data to the trust creation server, and build a simulation stress testing environment corresponding to the business system;
[0043] According to the total number of business documents corresponding to the business peak period, determine the transaction volume per unit time and the maximum number of concurrent transactions corresponding to the business system during the business peak period to generate a corresponding stress testing model;
[0044] Performing a stress test in the simulated stress test environment based on the stress test model to determine the number of simulated transactions per unit time corresponding to when the business system reaches the maximum concurrency number;
[0045] Based on the transaction volume per unit time and the simulated transaction volume per unit time, determine the capacity resources required by the business system under the deployment of the trusted computing server.
[0046] The capacity resource calculation method in a trusted computing environment proposed in this application can bring the following beneficial effects:
[0047] Conduct statistical analysis on the total number of business documents of the business system, migrate the operating environment of the business system to the trusted innovation environment, and conduct simulation stress testing in the trusted innovation environment to calculate the hardware capacity resources required by the trusted innovation server to meet the system business volume. This enables the business system to perform business normally after migration to the trusted innovation environment, thus realizing the selection of trusted innovation servers and the smooth migration of the business environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0049] Figure 1 A flow chart of a method for calculating capacity resources in an information and communication environment provided in an embodiment of the present application;
[0050] Figure 2 A schematic diagram of the concurrent ratio of a business type provided in an embodiment of the present application;
[0051] Figure 3 A structural diagram of a capacity resource calculation device in an information and communication technology innovation environment provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] To make the purpose, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the specific embodiments of this application and the corresponding drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0053] The embodiment of the present application conducts statistical analysis on the business volume of the business system, migrates the operating environment of the business system to the trusted innovation environment, and calculates the hardware capacity resources required by the trusted innovation server to meet the system business volume through simulation stress testing in the trusted innovation environment, so that the business system can perform business normally after migrating to the trusted innovation environment, thereby realizing the selection of the trusted innovation server and the smooth migration of the business environment.
[0054] The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0055] like Figure 1 As shown, the embodiment of the present application provides a capacity resource calculation method in an information innovation environment, which is applied to a preset business system, including:
[0056] S101: Obtain the total amount of business documents submitted in the business system at preset time intervals, and determine the business peak period corresponding to the business system based on the total amount of business documents.
[0057] To migrate the business system environment, we first need to research the existing business system and collect statistics on its business volume. Business volume refers to the total number of business documents within a certain period of time. The server needs to obtain the total number of business documents submitted by the business system at preset intervals. For example, this could include the total number of reimbursement documents submitted for approval in the company's reimbursement system within a month, or the number of voucher documents and reports submitted by the financial system.
[0058] The number of business documents is the sum of the number of documents of various business types. Based on the business volume summary data of various business types, a chart perspective can be made to determine the business peak period and business volume change trend corresponding to the business system. If the capacity resources provided in the information and communication environment can meet the business volume required to be processed during the business peak period, it can ensure that the business system can operate normally in the information and communication environment. Among them, the business peak period can be one year, one month, one day, one hour, etc., and this application does not limit it.
[0059] S102: Obtain the resource parameters and business data corresponding to the business system, copy the resource parameters and business data to the trusted computing server, and build a simulation stress testing environment corresponding to the business system.
[0060] To calculate the capacity resources required by the trusted computing server, it is necessary to obtain the resource parameters and business data corresponding to the business system, copy the resource parameters and business data to the trusted computing server, and build a simulated stress testing environment for the business system based on the trusted computing server. Then, stress test the business system using the simulated stress testing environment to measure the performance of the trusted computing server. Capacity resources refer to the number of CPU cores.
[0061] It should be noted that resource parameters include at least one or more of the following: number of server CPU cores, memory, disk type, and disk size. When setting up a simulated stress testing environment, the trusted servers in the trusted environment must be restored 1:1 with the resource parameters corresponding to the actual servers of the business system. As long as the trusted and non-trusted environments have the same configuration of memory, disk, and other hardware resources, the normal operation and performance of the business system can be guaranteed.
[0062] S103: According to the total number of business documents corresponding to the business peak period, determine the transaction volume per unit time and the maximum number of concurrent transactions of the business system corresponding to the business peak period, so as to generate a corresponding stress testing model.
[0063] After building the simulated stress testing environment, you need to determine the business system's transaction volume per unit time and maximum concurrency during peak business hours based on the total number of business documents corresponding to the peak business hours, in order to generate the corresponding stress testing model. The design indicators of the stress testing model mainly include transaction volume per unit time (TPS), response time (RT), and concurrency. TPS refers to the number of transactions that the business system needs to process per unit time, and RT refers to the system time required to complete a business operation. For example, when saving a document, the actual time from submitting the save request to the completion of the save is the response time, which directly reflects the processing rate of the business system. The concurrency refers to the number of business requests that the business system can handle simultaneously. For example, if the business system can withstand 100 document save transactions simultaneously, the concurrency is 100, which reflects the load capacity of the business system. The ratio between the concurrency and response time is TPS.
[0064] Based on the above stress testing indicators, the transaction volume per unit time and the maximum number of concurrent transactions during peak business hours can be determined.
[0065] Specifically, the business system can simultaneously execute business operations of multiple business types, such as adding or saving voucher documents, querying vouchers, querying auxiliary balance sheets, etc. After determining multiple business types in the business system, the server needs to determine, for each business type, the first processing time corresponding to each business document generated by the business type during the business peak period, as well as the number of business documents generated by the business type per unit time and the second processing time corresponding to each business document. Based on the total number of business documents, the first processing time, the number of business documents, and the second processing time corresponding to each business type, the maximum number of concurrency corresponding to the business system during the business peak period is determined. In addition, the server determines the transaction volume per unit time corresponding to the business system based on the ratio between the total number of business documents and the corresponding duration of the business peak period.
[0066] Based on the total number of business documents, first processing time, number of business documents, and second processing time corresponding to each business type, the business volume of each business type in peak months and peak days can be determined, and the maximum number of concurrent users of the business system can be determined. The specific steps of this process are as follows:
[0067] For each business type, determine the ratio between the total number of business documents and the first processing time, obtain the daily average number of concurrent users corresponding to the business type, and calculate the daily peak number of concurrent users corresponding to the business type based on the daily average number of concurrent users. This can be expressed as: C = nL / Tm; Where nL represents the total number of business documents, Tm represents the first processing time, C represents the daily average concurrent number, and C' represents the daily peak concurrent number. Determine the ratio between the number of business documents and the second processing time to obtain the daily peak concurrent number corresponding to the business type. This can be expressed as: C" = nL' / Td, where C" represents the daily peak concurrent number, nL' represents the number of business documents, and Td represents the second processing time. After obtaining the daily peak concurrent number and the daily peak concurrent number, determine the maximum concurrent number corresponding to the business system during peak business hours.
[0068] Specifically, compare the daily peak concurrency and the daily peak concurrency, and use the larger value between the daily peak concurrency and the daily peak concurrency as the target concurrency corresponding to the business type. Since the business system needs to handle many business types, it is necessary to determine the concurrency ratio corresponding to the target concurrency of each business type, that is, add up the target concurrency corresponding to all business types, and divide the target concurrency of each business type by the result of the above addition to get the corresponding concurrency ratio. After obtaining the concurrency ratio corresponding to each business type, the target concurrency of the business type with the largest corresponding concurrency ratio can be screened out as the maximum concurrency corresponding to the business system during the peak business period. Figure 2 As shown in the diagram of the concurrency ratio of a business type, the business system includes many business modules. The business types under each business module have corresponding concurrency ratios. Among them, the concurrency ratio corresponding to the business type of adding and saving voucher documents in the middle of the month is the largest. Therefore, the target concurrency number corresponding to this business type can be used as the maximum concurrency number of the business system. At the end of the month, the concurrency ratio corresponding to the business type of voucher generation is the largest, and the maximum concurrency number of the business system should also be updated accordingly.
[0069] S104: Perform stress testing in a simulated stress testing environment based on the stress testing model to determine the simulated transaction volume per unit time corresponding to the maximum concurrency of the business system.
[0070] The goal of estimating the capacity and resources of a trusted computing environment is to ensure that the target business volume can be completed per unit time during peak business periods. This means ensuring that the TPS remains constant and ultimately determining the corresponding maximum concurrency through stress testing in a simulated stress testing environment. This involves performing stress testing in a simulated stress testing environment based on the stress testing model. The concurrency input to the stress testing tool starts at 0 and increases gradually in fixed steps until the maximum concurrency is reached. This determines the corresponding simulated transaction volume per unit time for the business system.
[0071] S105: Determine the capacity resources required by the business system under the deployment of the trusted computing server based on the transaction volume per unit time and the simulated transaction volume per unit time.
[0072] Considering that the server performance may be low in the trusted computing stress test simulation environment, when the stress test reaches the bottleneck point, the TPS will not reach the target value. In this case, it is necessary to calculate the number of concurrency under the same TPS based on the total amount of business documents actually counted, and calculate the performance difference between servers in proportion to the simulation results. Based on the obtained performance difference ratio, the capacity resources required for the trusted computing server can be further calculated.
[0073] According to the expression formula of TPS, TPS=Cmax / RT, and TPS 仿真 *X=TPS 实际 It can be seen that the performance difference ratio between the trusted server and the actual server can be determined by the response time ratio. Therefore, the server needs to determine the actual response time corresponding to the maximum concurrency of the business system in the actual environment, and the simulated response time corresponding to the maximum concurrency in the simulated stress test environment. Based on the ratio between the actual response time and the simulated response time, the performance difference ratio of the business system in the actual environment and the simulated stress test environment can be determined. In this way, based on the performance difference ratio and the resource parameters corresponding to the business system, the capacity resources required by the business system under the trusted server deployment can be determined.
[0074] For example, if the same business operation takes 2 seconds in the actual environment and 4 seconds in the trusted computing simulation and stress testing environment, then the simulated performance / actual performance = 1:2, which translates to the number of CPU cores: the actual number of CPU cores should be twice the number of CPU cores in the simulation and stress testing environment. This allows us to calculate the maximum capacity resources required by the business system to execute the same business volume after migrating to the trusted computing environment, ensuring the normal operation of business operations.
[0075] In addition, considering that most business systems and databases are deployed on separate servers, during the actual stress testing process, it is necessary to obtain the number of transaction submissions of the database corresponding to the business system at preset time intervals, and use the above-mentioned server stress testing method to perform stress testing in a simulated stress testing environment based on the stress testing model. In order to determine the database capacity resources required for the database under the trusted server deployment based on the number of transaction submissions, thereby ensuring the normal call of the database.
[0076] In one embodiment, since the business volume of the business system is updated at any time according to the future business plan, it is necessary to predict the business volume growth trend in advance according to the business plan, so as to expand the capacity resources of the trusted server and ensure that the estimated business system resources can support a larger business peak. First, obtain the future business plan of the business system, and determine the business growth amount corresponding to each business type according to the business plan. Then, determine the ratio between the business growth amount and the total amount of business documents, and use the ratio as a compensation coefficient. According to the compensation coefficient, compensate for the capacity resources required by the business system under the trusted server deployment. In this way, the normal operation of the future business system can be supported by the trusted environment after expansion in advance.
[0077] The above are embodiments of the method proposed in this application. Based on the same idea, some embodiments of this application also provide devices and non-volatile computer storage media corresponding to the above methods.
[0078] Figure 3 This is a schematic diagram of the structure of a capacity resource calculation device in a trustworthy environment provided by the embodiment of this application. Figure 3 As shown, the device is applied to the preset business system, including:
[0079] at least one processor; and,
[0080] at least one processor communicatively connected to a memory; wherein,
[0081] The memory stores instructions executable by at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0082] Obtain the total number of business documents submitted in the business system at preset time intervals, and determine the business peak period corresponding to the business system based on the total number of business documents;
[0083] Obtain the resource parameters and business data corresponding to the business system, copy the resource parameters and business data to the trusted server, and build a simulation stress testing environment corresponding to the business system;
[0084] Based on the total number of business documents during peak business hours, determine the transaction volume per unit time and the maximum number of concurrent transactions for the business system during peak business hours to generate the corresponding stress testing model.
[0085] Perform stress testing in a simulated stress testing environment based on the stress testing model to determine the number of simulated transactions per unit time when the business system reaches the maximum concurrency.
[0086] Based on the transaction volume per unit time and the simulated transaction volume per unit time, determine the capacity resources required for the business system under the deployment of the trusted computing server.
[0087] An embodiment of the present application provides a non-volatile computer storage medium, which is applied to a preset business system and stores computer-executable instructions. The computer-executable instructions are configured as follows:
[0088] Obtain the total number of business documents submitted in the business system at preset time intervals, and determine the business peak period corresponding to the business system based on the total number of business documents;
[0089] Obtain the resource parameters and business data corresponding to the business system, copy the resource parameters and business data to the trusted server, and build a simulation stress testing environment corresponding to the business system;
[0090] Based on the total number of business documents during peak business hours, determine the transaction volume per unit time and the maximum number of concurrent transactions for the business system during peak business hours to generate the corresponding stress testing model.
[0091] Perform stress testing in a simulated stress testing environment based on the stress testing model to determine the number of simulated transactions per unit time when the business system reaches the maximum concurrency.
[0092] Based on the transaction volume per unit time and the simulated transaction volume per unit time, determine the capacity resources required for the business system under the deployment of the trusted computing server.
[0093] The various embodiments in this application are described in a progressive manner. Similar portions between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the device and medium embodiments are generally similar to the method embodiments, so their descriptions are relatively simple. For relevant portions, refer to the descriptions of the method embodiments.
[0094] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects to their corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0095] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0096] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0097] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0098] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps for the function specified in one or more boxes.
[0099] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0100] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0101] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0102] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0103] The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.
Claims
1. A capacity resource calculation method in a trusted computing environment, applied to a preset business system, characterized in that: The method comprises: Obtaining the total amount of business documents submitted in the business system at preset time intervals, and determining the business peak period corresponding to the business system based on the total amount of business documents; Obtain resource parameters and business data corresponding to the business system, copy the resource parameters and business data to the trust creation server, and build a simulation stress testing environment corresponding to the business system; According to the total number of business documents corresponding to the business peak period, determine the transaction volume per unit time and the maximum number of concurrent transactions corresponding to the business system during the business peak period to generate a corresponding stress testing model; Performing a stress test in the simulated stress test environment based on the stress test model to determine the number of simulated transactions per unit time corresponding to when the business system reaches the maximum concurrency number; Determine the capacity resources required by the business system under the deployment of the trust creation server based on the transaction volume per unit time and the simulated transaction volume per unit time; Determining the transaction volume per unit time and the maximum number of concurrent transactions of the business system during the business peak period based on the total number of business documents during the business peak period, specifically including: Identifying multiple business types in the business system, and for each business type, determining a first processing time corresponding to each business document generated by the business type during the business peak period, as well as a number of business documents generated by the business type per unit time and a second processing time corresponding to each business document; Determining the maximum number of concurrent users of the business system during the peak business period based on the total number of business documents corresponding to each business type, the first processing time, the number of business documents, and the second processing time; Determining the transaction volume per unit time corresponding to the business system according to the ratio between the total amount of business documents and the corresponding duration of the business peak period; Determining the maximum number of concurrent users of the business system during the business peak period according to the total number of business documents corresponding to each business type, the first processing time, the number of business documents, and the second processing time, specifically includes: For each business type, determine the ratio between the total number of business documents corresponding to the business type and the first processing time, obtain the daily average concurrent number corresponding to the business type, and calculate the daily peak concurrent number corresponding to the business type based on the daily average concurrent number; Determine a ratio between the number of business documents and the second processing time to obtain a daily peak concurrency number corresponding to the business type; Determine the maximum number of concurrent connections for the business system during the business peak period based on the daily peak number of concurrent connections and the daily peak number of concurrent connections; Determining the maximum number of concurrent connections corresponding to the business system during the business peak period based on the daily peak number of concurrent connections and the daily peak number of concurrent connections specifically includes: Compare the daily peak concurrent number with the daily peak concurrent number, and use the larger value between the daily peak concurrent number and the daily peak concurrent number as the target concurrent number corresponding to the business type; Determine the concurrency ratio corresponding to the target concurrency number of each business type, and from the concurrency ratios corresponding to the business types, select the target concurrency number of the business type with the largest concurrency ratio as the maximum concurrency number corresponding to the business system during the business peak period.
2. The method for calculating capacity resources in a trusted computing environment according to claim 1, wherein: According to the transaction volume per unit time and the simulated transaction volume per unit time, the capacity resources required by the business system under the deployment of the ICT server are determined, specifically including: Determine the actual response time of the business system when it reaches the maximum concurrency in the actual environment, and the simulated response time when it reaches the maximum concurrency in the simulated stress testing environment; Determine, based on the ratio between the actual response time and the simulated response time, a performance difference ratio of the business system in the actual environment and the simulated stress testing environment; Based on the performance difference ratio and the resource parameters corresponding to the business system, determine the capacity resources required by the business system under the deployment of the trusted computing server.
3. The method for calculating capacity resources in a trusted computing environment according to claim 1, wherein: The method further comprises: Obtaining the number of transaction submissions of the database corresponding to the business system at a preset time interval; Based on the stress testing model, stress testing is performed in the simulated stress testing environment to determine the database capacity resources required for the database under the deployment of the trusted computing server according to the number of transaction submissions.
4. The method for calculating capacity resources in a trusted computing environment according to claim 1, wherein: The resource parameters include at least one or more of the following: number of server CPU cores, memory, disk type, and disk size.
5. The method for calculating capacity resources in a trusted computing environment according to claim 1 is characterized in that: After determining the capacity resources required by the business system under the deployment of the ICT server based on the transaction volume per unit time and the simulated transaction volume per unit time, the method further includes: Obtaining a future business plan for the business system, and determining a business growth amount corresponding to each business type based on the business plan; Determine the ratio between the business growth amount and the total amount of business documents, use the ratio as a compensation coefficient, and compensate the capacity resources required by the business system under the deployment of the trusted server based on the compensation coefficient to support the operation of the business system.
6. A capacity resource calculation device in a trusted environment, characterized in that: Applied to the preset business system, the equipment includes: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Obtaining the total amount of business documents submitted in the business system at preset time intervals, and determining the business peak period corresponding to the business system based on the total amount of business documents; Obtain resource parameters and business data corresponding to the business system, copy the resource parameters and business data to the trust creation server, and build a simulation stress testing environment corresponding to the business system; According to the total number of business documents corresponding to the business peak period, determine the transaction volume per unit time and the maximum number of concurrent transactions corresponding to the business system during the business peak period to generate a corresponding stress testing model; Performing a stress test in the simulated stress test environment based on the stress test model to determine the number of simulated transactions per unit time corresponding to when the business system reaches the maximum concurrency number; Determine the capacity resources required by the business system under the deployment of the trust creation server based on the transaction volume per unit time and the simulated transaction volume per unit time; Determining the transaction volume per unit time and the maximum number of concurrent transactions of the business system during the business peak period based on the total number of business documents during the business peak period, specifically including: Identifying multiple business types in the business system, and for each business type, determining a first processing time corresponding to each business document generated by the business type during the business peak period, as well as a number of business documents generated by the business type per unit time and a second processing time corresponding to each business document; Determining the maximum number of concurrent users of the business system during the peak business period based on the total number of business documents corresponding to each business type, the first processing time, the number of business documents, and the second processing time; Determining the transaction volume per unit time corresponding to the business system according to the ratio between the total amount of business documents and the corresponding duration of the business peak period; Determining the maximum number of concurrent users of the business system during the business peak period according to the total number of business documents corresponding to each business type, the first processing time, the number of business documents, and the second processing time, specifically includes: For each business type, determine the ratio between the total number of business documents corresponding to the business type and the first processing time, obtain the daily average concurrent number corresponding to the business type, and calculate the daily peak concurrent number corresponding to the business type based on the daily average concurrent number; Determine a ratio between the number of business documents and the second processing time to obtain a daily peak concurrency number corresponding to the business type; Determine the maximum number of concurrent connections for the business system during the business peak period based on the daily peak number of concurrent connections and the daily peak number of concurrent connections; Determining the maximum number of concurrent connections corresponding to the business system during the business peak period based on the daily peak number of concurrent connections and the daily peak number of concurrent connections specifically includes: Compare the daily peak concurrent number with the daily peak concurrent number, and use the larger value between the daily peak concurrent number and the daily peak concurrent number as the target concurrent number corresponding to the business type; Determine the concurrency ratio corresponding to the target concurrency number of each business type, and from the concurrency ratios corresponding to the business types, select the target concurrency number of the business type with the largest concurrency ratio as the maximum concurrency number corresponding to the business system during the business peak period.
7. A non-volatile computer storage medium storing computer-executable instructions, characterized in that: Applied to a preset business system, the computer executable instructions are configured to: Obtaining the total amount of business documents submitted in the business system at preset time intervals, and determining the business peak period corresponding to the business system based on the total amount of business documents; Obtain resource parameters and business data corresponding to the business system, copy the resource parameters and business data to the trust creation server, and build a simulation stress testing environment corresponding to the business system; According to the total number of business documents corresponding to the business peak period, determine the transaction volume per unit time and the maximum number of concurrent transactions corresponding to the business system during the business peak period to generate a corresponding stress testing model; Performing a stress test in the simulated stress test environment based on the stress test model to determine the number of simulated transactions per unit time corresponding to when the business system reaches the maximum concurrency number; Determine the capacity resources required by the business system under the deployment of the trust creation server based on the transaction volume per unit time and the simulated transaction volume per unit time; Determining the transaction volume per unit time and the maximum number of concurrent transactions of the business system during the business peak period based on the total number of business documents during the business peak period, specifically including: Identifying multiple business types in the business system, and for each business type, determining a first processing time corresponding to each business document generated by the business type during the business peak period, as well as a number of business documents generated by the business type per unit time and a second processing time corresponding to each business document; Determining the maximum number of concurrent users of the business system during the peak business period based on the total number of business documents corresponding to each business type, the first processing time, the number of business documents, and the second processing time; Determining the transaction volume per unit time corresponding to the business system according to the ratio between the total amount of business documents and the corresponding duration of the business peak period; Determining the maximum number of concurrent users of the business system during the business peak period according to the total number of business documents corresponding to each business type, the first processing time, the number of business documents, and the second processing time, specifically includes: For each business type, determine the ratio between the total number of business documents corresponding to the business type and the first processing time, obtain the daily average concurrent number corresponding to the business type, and calculate the daily peak concurrent number corresponding to the business type based on the daily average concurrent number; Determine a ratio between the number of business documents and the second processing time to obtain a daily peak concurrency number corresponding to the business type; Determine the maximum number of concurrent connections for the business system during the business peak period based on the daily peak number of concurrent connections and the daily peak number of concurrent connections; Determining the maximum number of concurrent connections corresponding to the business system during the business peak period based on the daily peak number of concurrent connections and the daily peak number of concurrent connections specifically includes: Compare the daily peak concurrent number with the daily peak concurrent number, and use the larger value between the daily peak concurrent number and the daily peak concurrent number as the target concurrent number corresponding to the business type; Determine the concurrency ratio corresponding to the target concurrency number of each business type, and from the concurrency ratios corresponding to the business types, select the target concurrency number of the business type with the largest concurrency ratio as the maximum concurrency number corresponding to the business system during the business peak period.
Citation Information
Patent Citations
Centralized creative migration method for large-scale system
CN115269564A
Cloud computing resource prediction method and device, computer equipment and storage medium
CN116303410A