Parameter configuration adjustment method, device, storage medium and electronic device
By adjusting the disk parameter configuration for each target subprocess in a hyperconverged scenario, the problem of difficulty in configuring parameters is solved, and adaptability to complex load changes and system performance is improved.
Patent Information
- Application Number
- CN202411890625.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-12-20
AI Technical Summary
In hyper-converged scenarios, it is difficult for the existing technology to achieve reasonable allocation of CPU resources and hardware resources, especially in complex pressure and load changes, which leads to difficulty in rationally configuring parameters.
By performing target operations for each target subprocess in the target business until the exit condition is met, adjusting the disk parameter configuration, and gradually determining the optimal target parameter configuration. The specific steps include: determining the disk parameters required for operation, and adjusting the current parameter configuration based on these parameters until the preset conditions and exit conditions are met.
The technical effect of rationally configuring parameters in hyper-converged scenarios is achieved, and it can adapt to complex pressure and load changes, improve resource utilization and system performance.
Smart Images

Figure CN119336278B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computers, and more specifically, to a parameter configuration adjustment method, device, storage medium, and electronic device. Background Art
[0002] In the related art, the reasonable allocation of CPU resources and hardware resources in the hyper-convergence scenario is usually based on specific hardware configuration and simulated fixed load to output a fixed configuration, without considering the adaptation to complex pressure load changes in actual production situations.
[0003] It can be seen from this that the relevant technology has the problem of difficulty in reasonably configuring parameters in a hyper-convergence scenario.
[0004] With respect to the above-mentioned problems existing in the related art, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present application provide a parameter configuration adjustment method, device, storage medium and electronic device to at least solve the problem of difficulty in reasonably configuring parameters in a hyper-convergence scenario existing in the related art.
[0006] According to an embodiment of the present application, a parameter configuration adjustment method is provided, comprising: executing a target operation for each target sub-process included in a target business until an exit condition for exiting the target operation is met, and determining the next process of the target sub-process as the target sub-process when the exit condition is met, wherein the target business includes multiple sub-processes, and the target sub-process is any one of the multiple sub-processes; the target operation comprises: determining a first disk parameter of a first disk required for running the target business in the process of running the target business; adjusting the current parameter configuration of the target sub-process based on the first disk parameter and the first parameter configuration for running the target sub-process; The method comprises the steps of: determining a first parameter configuration and a second parameter configuration, wherein when the target sub-process is run according to the first parameter configuration, the disk parameter of the first disk reaches a preset condition; determining a second disk parameter of the first disk in the process of running the target business and running the target sub-process according to the second parameter configuration; adjusting the second parameter configuration based on the first disk parameter and the second disk parameter to obtain a third parameter configuration; determining a third disk parameter of the first disk in the process of running the target business and running the target sub-process according to the third parameter configuration; and determining the third parameter configuration as the target parameter configuration for running the target sub-process when it is determined based on the third disk parameter that the exit condition is met.
[0007] In an exemplary embodiment, the process of determining the first disk parameter of the first disk required for running the target business includes: performing the following operations for each second disk included in the first disk to determine the fifth disk parameter of each second disk, wherein the second disk is any one of the disks included in the first disk: sampling the disk parameters of the second disk at a first predetermined time interval to obtain multiple fourth disk parameters, determining the multiple fourth disk parameters for linear fitting to obtain the fifth disk parameter; and determining the first sum of all the fifth disk parameters as the first disk parameter.
[0008] In an exemplary embodiment, the method of determining a plurality of the fourth disk parameters and performing linear fitting to obtain the fifth disk parameter includes: determining a second sum of the sixth disk parameter collected first and the seventh disk parameter collected last included in the plurality of the fourth disk parameters; determining a third sum of other parameters included in the plurality of the fourth disk parameters except the sixth disk parameter and the seventh disk parameter; determining a first product of the third sum and a first constant; determining a fourth sum of the first product and the second sum; determining a first quantity of the fourth disk parameters; determining a first difference between the first quantity and the second constant; determining a second product of the first difference and the third constant; and determining a first ratio of the fourth sum to the second product as the fifth disk parameter.
[0009] In an exemplary embodiment, the current parameter configuration of the target sub-process is adjusted based on the first disk parameter and the first parameter configuration of running the target sub-process to obtain a second parameter configuration, including: determining a second ratio of the first disk parameter to the first parameter configuration; and determining a third product of the current parameter configuration and the second ratio as the second parameter configuration.
[0010] In an exemplary embodiment, the adjusting the second parameter configuration based on the first disk parameter and the second disk parameter to obtain a third parameter configuration includes: when the second disk parameter is greater than the first disk parameter, determining a third ratio of the second disk parameter to the first parameter configuration, and determining a third product of the third ratio and the second disk parameter as the third parameter configuration; when the second disk parameter is less than or equal to the first disk parameter, determining a second ratio of the first disk parameter to the first parameter configuration, and adjusting the second parameter configuration based on the second ratio to obtain the third parameter configuration.
[0011] In an exemplary embodiment, adjusting the second parameter configuration based on the second ratio to obtain the third parameter configuration includes: determining a second difference between a fourth constant and the second ratio; and determining a fourth product of the second difference and the second parameter configuration as the third parameter configuration.
[0012] In an exemplary embodiment, in the process of determining the third disk parameter of the first disk in running the target business and running the target sub-process according to the third parameter configuration, the method further includes: determining that the exit condition is satisfied when the third disk parameter is less than or equal to the second disk parameter.
[0013] In an exemplary embodiment, in the process of determining the third disk parameter of the first disk in running the target business and running the target sub-process according to the third parameter configuration, the method further includes: updating the first disk parameter to the third disk parameter when the third disk parameter is greater than the second disk parameter; updating the current parameter configuration to the third parameter configuration; and adjusting the current parameter configuration of the target sub-process based on the first disk parameter and the first parameter configuration.
[0014] In an exemplary embodiment, after executing the target operation for each target sub-process included in the target business until the exit condition for exiting the target operation is met, the method further includes: when each of the target sub-processes included in the target business has completed executing the target operation, running the target business according to the target parameter configuration corresponding to each of the target sub-processes; determining the eighth disk parameter of the first disk in the process of running the target business twice in a row; when the last collected disk parameter included in the eighth disk parameter is less than the first collected disk parameter, executing the target operation for each of the target sub-processes included in the target business until the exit condition for exiting the target operation is met, and when the exit condition is met, determining the next process of the target sub-process as the target sub-process; when the last collected disk parameter included in the eighth disk parameter is greater than or equal to the first collected disk parameter, determining a first modulus of the difference between the first collected disk parameter and the last collected disk parameter, and when the first modulus is less than a first preset threshold, running the target business according to the target parameter configuration corresponding to each of the target sub-processes.
[0015] In an exemplary embodiment, after executing the target operation for each target sub-process included in the target business until the exit condition for exiting the target operation is met, the method also includes: when each of the target sub-processes included in the target business has completed executing the target operation, running the target business according to the target parameter configuration corresponding to each of the target sub-processes; determining a first processor parameter of a processor running the target business during the process of running the target business; determining a second processor parameter of a processor running the target business during the last process of running the target business; when a second modulus value of a difference between the first processor parameter and the second processor parameter is less than a second preset threshold, executing the target operation for each of the target sub-processes included in the target business until the exit condition for exiting the target operation is met, and when the exit condition is met, determining the next process of the target sub-process as the target sub-process.
[0016] In an exemplary embodiment, the process of determining the first processor parameter of the processor running the target business includes: performing the following operations for each target core of the processor to determine the core processor parameter of the target core: sampling the processor parameters of the processor at a second predetermined time interval to obtain multiple third processor parameters, determining a fifth sum value of the first collected processor parameters and the last collected processor parameters included in the multiple third processor parameters, determining a sixth sum value of other processor parameters included in the multiple third processor parameters except the first collected processor parameters and the last collected processor parameters, determining a fifth product of the sixth sum value and a fifth constant, determining a seventh sum value of the fifth product and the fifth sum value, determining a second number of the multiple third processor parameters, determining a third difference between the second number and the sixth constant, determining a sixth product of the third difference and the seventh constant, and determining a fourth ratio of the seventh sum value to the sixth product as the core processor parameter; and determining an eighth sum value of all the core processor parameters as the first processor parameter.
[0017] According to another embodiment of the present application, a parameter configuration adjustment device is provided, comprising: a determination module, configured to execute a target operation for each target sub-process included in a target business until an exit condition for exiting the target operation is met, and when the exit condition is met, determine the next process of the target sub-process as the target sub-process, wherein the target business includes multiple sub-processes, and the target sub-process is any one of the multiple sub-processes; the target operation comprises: determining a first disk parameter of a first disk required for running the target business in the process of running the target business; adjusting the current state of the target sub-process based on the first disk parameter and the first parameter configuration of running the target sub-process; The first parameter configuration is used to obtain a second parameter configuration, wherein when the target sub-process is run according to the first parameter configuration, the disk parameter of the first disk reaches a preset condition; the second disk parameter of the first disk is determined in the process of running the target business and running the target sub-process according to the second parameter configuration; the second parameter configuration is adjusted based on the first disk parameter and the second disk parameter to obtain a third parameter configuration; the third disk parameter of the first disk is determined in the process of running the target business and running the target sub-process according to the third parameter configuration; when it is determined based on the third disk parameter that the exit condition is met, the third parameter configuration is determined as the target parameter configuration for running the target sub-process.
[0018] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.
[0019] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0020] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0021] Through the present application, the first disk parameter of the first disk required for running the target sub-process in the target business is determined, and the current parameter configuration can be adjusted based on the first disk parameter and the first parameter configuration to obtain the adjusted second configuration parameter. In the process of running the target sub-process through the second configuration parameter, the second disk parameter of the first disk is determined, and the adjusted second configuration parameter can be further adjusted using the first disk parameter and the second disk parameter to obtain the third configuration parameter. In the process of running the target sub-process through the third configuration parameter, the third disk parameter of the first disk is determined, and when the third disk parameter meets the exit condition, the third parameter configuration can be determined as the target parameter configuration of this target sub-process. After determining this target sub-process in the target task, the target parameter configuration of the next target sub-process can be configured until all target sub-processes in the target task are determined to be completed. Since the target parameter configuration of each target sub-process in the target business can be adjusted, the target parameter configuration with the best performance in each target value process can be determined. Therefore, the problem of difficulty in reasonably configuring parameters in hyper-convergence scenarios in the related technology can be solved, and the technical effect of reasonably configuring parameters can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a hardware structure block diagram of a server device according to the parameter configuration adjustment method of an embodiment of the present application;
[0023] Figure 2 is a flow chart of a method for adjusting parameter configuration according to an embodiment of the present application;
[0024] Figure 3 is an abstract schematic diagram of a hyper-converged service process according to an embodiment of the present application;
[0025] Figure 4 is a schematic diagram of an iterative process according to an embodiment of the present application;
[0026] Figure 5 It is a flowchart of a method for adjusting specific parameter configurations according to an iterative process schematic diagram of an embodiment of the present application;
[0027] Figure 6 It is a structural block diagram of a parameter configuration adjustment device according to an embodiment of the present application. DETAILED DESCRIPTION
[0028] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0030] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a parameter configuration adjustment method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0031] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the parameter configuration adjustment method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0032] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0033] In this embodiment, a method for adjusting parameter configuration is provided. Figure 2 is a flow chart of a method for adjusting parameter configuration according to an embodiment of the present application, such as Figure 2As shown, the process includes the following steps:
[0034] Step S202, executing a target operation for each target sub-process included in the target business until an exit condition for exiting the target operation is met, and determining the next process of the target sub-process as the target sub-process when the exit condition is met, wherein the target business includes multiple sub-processes, and the target sub-process is any one of the multiple sub-processes;
[0035] The target operations include:
[0036] Determine a first disk parameter of a first disk required for running the target service during the running of the target service;
[0037] adjusting the current parameter configuration of the target subprocess based on the first disk parameter and the first parameter configuration for running the target subprocess to obtain a second parameter configuration, wherein when the target subprocess is run according to the first parameter configuration, the disk parameter of the first disk meets a preset condition;
[0038] Determine a second disk parameter of the first disk in the process of running the target service and running the target sub-process according to the second parameter configuration;
[0039] Adjust the second parameter configuration based on the first disk parameter and the second disk parameter to obtain a third parameter configuration;
[0040] Determine a third disk parameter of the first disk in the process of running the target service and running the target sub-process according to the third parameter configuration;
[0041] In a case where it is determined based on the third disk parameter that the exit condition is satisfied, the third parameter configuration is determined as a target parameter configuration for running the target sub-process.
[0042] In the above embodiment, the target business may be a hyper-converged service, which may include multiple target sub-processes, wherein the hyper-converged service may be understood as integrating traditional computing, storage, and network functions into a unified defined platform, which may achieve flexibility, scalability, and simplicity through software management and automation. Figure 3 is an abstract schematic diagram of a hyper-convergence service process according to an embodiment of the present application, such as Figure 3 As shown, in a hyper-converged service, the target business can be split into n target sub-processes, each target sub-process corresponds to a performance data during operation, the n performance data can constitute the first disk parameter, and the target operation can be understood as the process of determining the target parameter configuration of the target sub-process.
[0043] In the above embodiment, the parameter configuration of each target sub-process may include parameters such as the number of processes and the length of the queue. Variable parameters such as the number of processes and the length of the queue may be configured for each target sub-process. I / O direct return may be set at each target sub-process flow. The configurable parameters of the i-th target sub-process may be set to p i ={n ti , n qi}, where n ti represents the number of processes in the ith target subprocess, and nqi represents the queue length of the ith target subprocess. The performance test tool can be used to test the performance data of each target subprocess. By increasing p i The value of the parameter in can obtain the maximum value of the IOPS (Input / Output Per Second, input and output or read and write times per second) parameter in each target sub-process (that is, the first parameter configuration above) p i ={n ti , n qi}, which can be written as ={ , …, }, and record the corresponding parameter configuration P when IOPS reaches the maximum value in each target sub-process max = The preset condition may be that the disk parameter obtained by running the target service according to the first parameter configuration is greater than the first disk parameter, and the performance testing tool may be a fio (flexible I / O tester) disk stress testing tool, an iometer testing tool, or an Orion testing tool, but is not limited thereto.
[0044] In the above embodiment, the target service can be run according to the first parameter configuration. After the target service is stable, the sum of the IPOS mean values of each process of the first disk within a preset time (i.e., the first disk parameter) is obtained, which can be recorded as . Can be based on the first disk parameter And the first parameter configuration Adjust the parameter configuration of the current target subprocess to obtain the second parameter configuration, which can be recorded as The target service can be configured according to the adjusted second parameter Continue running and make sure to use the second parameter configuration The second disk parameter of the first disk during the running process can be adjusted by adjusting the second parameter configuration through the second disk parameter and the first disk parameter to obtain a third parameter configuration. When the third disk parameter obtained during the running of the target business according to the third parameter configuration meets the exit condition, the third parameter configuration can be determined as the target parameter configuration of the target sub-process.
[0045] In the above embodiment, Figure 3 For example, process 1 of n sub-processes can be selected as the current target sub-process. When the target business is stable, the first disk parameter of process 1 in the first disk operation process is determined. , use the performance testing tool to test the performance data 1 of process 1-process n, and continuously increase the configurable parameters p i In the process, the maximum IOPS value of n processes can be used to correspond to p i ={n ti , n qi} Determine as the first parameter configuration . Based on the first parameter configuration By running the target business, the sum of the IPOS mean values in n processes within the preset time can be determined. (i.e. the first disk parameter mentioned above), according to the first disk parameter And the first parameter configuration Adjust the current parameter configuration of process 1 to get the second parameter configuration of running the target subprocess Determine the running process 1-n, and configure the second disk parameter in the running process 1 according to the second parameter. What you get ) Determine the third parameter configuration (That is, the third parameter configuration mentioned above). When the target business is running process 1 according to the third parameter configuration, if the third disk parameter obtained meets the exit condition, the third parameter configuration can be Determine the target parameter configuration of process 1; if the third disk parameter obtained does not meet the exit condition, continue to obtain the fourth parameter configuration through the first disk parameter, the second disk parameter and the third disk parameter , until the latest parameter configuration is obtained The exit condition can be met. When the target parameter configuration of process 1 is determined by satisfying the exit condition, process 2 can be determined as the next target sub-process, and the target parameter configuration of process 2 is continued to be determined until process n also meets the exit condition, wherein the exit condition can be understood as the sub-process determining the target parameter configuration is completed.
[0046] Through the present application, the first disk parameter of the first disk required for running the target sub-process in the target business is determined, and the current parameter configuration can be adjusted based on the first disk parameter and the first parameter configuration to obtain the adjusted second configuration parameter. In the process of running the target sub-process through the second configuration parameter, the second disk parameter of the first disk is determined, and the adjusted second configuration parameter can be further adjusted using the first disk parameter and the second disk parameter to obtain the third configuration parameter. In the process of running the target sub-process through the third configuration parameter, the third disk parameter of the first disk is determined, and when the third disk parameter meets the exit condition, the third parameter configuration can be determined as the target parameter configuration of this target sub-process. After determining this target sub-process in the target task, the target parameter configuration of the next target sub-process can be configured until all target sub-processes in the target task are determined to be completed. Since the target parameter configuration of each target sub-process in the target business can be adjusted, the target parameter configuration with the best performance in each target value process can be determined. Therefore, the problem of difficulty in reasonably configuring parameters in hyper-convergence scenarios in the related technology can be solved, and the technical effect of reasonably configuring parameters can be achieved.
[0047] The execution subject of the above steps may be a server, a terminal, etc., but is not limited thereto.
[0048] In an exemplary embodiment, the process of determining the first disk parameter of the first disk required for running the target business includes: performing the following operations for each second disk included in the first disk to determine the fifth disk parameter of each second disk, wherein the second disk is any one of the disks included in the first disk: sampling the disk parameters of the second disk at a first predetermined time interval to obtain multiple fourth disk parameters, determining the multiple fourth disk parameters for linear fitting to obtain the fifth disk parameter; and determining the first sum of all the fifth disk parameters as the first disk parameter.
[0049] In the above embodiment, different target sub-processes can be run in different disks, so n processes can be run in n disks included in the first disk respectively, and after the target business runs stably, the n processes can be run every The first predetermined time interval can be 3s, 5s, or 6s, but is not limited thereto. For example, when the first predetermined time interval is 5s, the disk parameters of 10 time points (i.e., the plurality of fourth disk parameters) can be obtained, which can be recorded as , we can perform linear fitting on adjacent data in multiple fourth disk parameters to calculate the average IOPS of 45s sampling time on the i-th disk (i.e., the fifth disk parameter mentioned above), which can be recorded as The disk parameters on the remaining (n-1) disks can be sampled in the same way, and the n fifth disk parameters in the n target sub-processes can be summed up to calculate the first disk parameter by the following formula: By dividing the entire target business into multiple different target sub-processes, the optimal performance of each target sub-process can be obtained to achieve optimization of the entire system.
[0050] In an exemplary embodiment, the method of determining a plurality of the fourth disk parameters and performing linear fitting to obtain the fifth disk parameter includes: determining a second sum of the sixth disk parameter collected first and the seventh disk parameter collected last included in the plurality of the fourth disk parameters; determining a third sum of other parameters included in the plurality of the fourth disk parameters except the sixth disk parameter and the seventh disk parameter; determining a first product of the third sum and a first constant; determining a fourth sum of the first product and the second sum; determining a first quantity of the fourth disk parameters; determining a first difference between the first quantity and the second constant; determining a second product of the first difference and the third constant; and determining a first ratio of the fourth sum to the second product as the fifth disk parameter.
[0051] In the above embodiment, taking the sampling of disk data on the i-th disk as an example: when the collected plurality of fourth disk parameters are In this case, the fifth disk parameter can be determined by the following formula , where the fifth disk parameter can reflect the change of IOPS on disk i during the sampling time. For the sixth disk parameter, For the seventh disk parameter, is the third sum above, Indicates the number of the fourth disk parameter collected (i.e. the first number mentioned above). Linear fitting is performed on the IOPS change in a target sub-process to timely monitor the change of IOPS on the disk during this period of time.
[0052] In an exemplary embodiment, the current parameter configuration of the target sub-process is adjusted based on the first disk parameter and the first parameter configuration of running the target sub-process to obtain a second parameter configuration, including: determining a second ratio of the first disk parameter to the first parameter configuration; and determining a third product of the current parameter configuration and the second ratio as the second parameter configuration.
[0053] In the above embodiment, the second parameter configuration can be calculated by the following formula: ,in, It represents the ratio of the i-th iteration link to the optimal performance (i.e. the second ratio mentioned above), which can evaluate the performance of each link and can be expressed by the formula Perform calculations; It can represent the parameter configuration in the current link. Through continuous iteration, the performance data of each target sub-process can be optimized, and then the optimal parameter configuration can be determined.
[0054] In an exemplary embodiment, the adjusting the second parameter configuration based on the first disk parameter and the second disk parameter to obtain a third parameter configuration includes: when the second disk parameter is greater than the first disk parameter, determining a third ratio of the second disk parameter to the first parameter configuration, and determining a third product of the third ratio and the second disk parameter as the third parameter configuration; when the second disk parameter is less than or equal to the first disk parameter, determining a second ratio of the first disk parameter to the first parameter configuration, and adjusting the second parameter configuration based on the second ratio to obtain the third parameter configuration.
[0055] In the above embodiment, when the iteration phase is the first time, the second parameter configuration When the second disk parameter obtained by running the target service is greater than the first disk parameter, a third ratio of the second disk parameter to the first parameter configuration is determined. (i.e., the iteration step is the second time), the third product of the third ratio and the second disk parameter is determined as the third parameter configuration When the second disk parameter is less than or equal to the first disk parameter, determine a second ratio of the first disk parameter to the first parameter configuration , can be based on the second ratio Adjust the second parameter configuration to obtain the third parameter configuration. The data is compared with the results of the previous iteration. Different size relationships between the two correspond to different iteration methods, which can make the determination of the optimal parameter configuration more accurate.
[0056] In an exemplary embodiment, adjusting the second parameter configuration based on the second ratio to obtain the third parameter configuration includes: determining a second difference between a fourth constant and the second ratio; and determining a fourth product of the second difference and the second parameter configuration as the third parameter configuration.
[0057] In the above embodiment, when the second disk parameter is less than or equal to the first disk parameter, a different iteration method can be used to obtain a result that is more similar to the solution, that is, the third parameter configuration can be calculated by the following formula: ,in, Indicates the parameter configuration in this iteration. Since this is the first iteration, For the second parameter configuration, the third parameter configuration can be determined through the second parameter configuration.
[0058] In an exemplary embodiment, in the process of determining the third disk parameter of the first disk in running the target business and running the target sub-process according to the third parameter configuration, the method further includes: determining that the exit condition is satisfied when the third disk parameter is less than or equal to the second disk parameter.
[0059] In the above embodiment, if the third disk parameter obtained by running the target business through the third parameter configuration is less than or equal to the second disk parameter obtained by running the target business through the second parameter configuration, it can be determined that this target sub-process meets the exit condition (that is, the third parameter configuration can be determined as the target parameter configuration of this target sub-process). By judging the size relationship between the disk parameter of the last iteration and the disk parameter of the previous iteration, it can be determined whether the parameter configuration in the corresponding iteration process is optimal.
[0060] In the above embodiment, Figure 4 is a schematic diagram of an iterative process according to an embodiment of the present application, such as Figure 5 As shown, a target sub-process is determined, the initial IOPS1 data is obtained, and the target parameter configuration of each target sub-process in the target business is adjusted to obtain the adjusted IOPS2 data, so that the performance of each process can be maximized. When the IOPS2 data of the first iteration is less than the initial IOPS1 data, the parameters of the target sub-process are adjusted to obtain the optimal IPOS data (i.e., the target parameter configuration). The parameters in each target sub-process are traversed and adjusted, and the iterative process can be exited; when the IOPS2 data of the first iteration is greater than or equal to the initial IOPS1 data, the difference between the IOPS2 data and the initial IOPS1 data is taken modulo, and when the modulus value is within the predetermined threshold You can exit the iteration.
[0061] In an exemplary embodiment, in the process of determining the third disk parameter of the first disk in running the target business and running the target sub-process according to the third parameter configuration, the method further includes: updating the first disk parameter to the third disk parameter when the third disk parameter is greater than the second disk parameter; updating the current parameter configuration to the third parameter configuration; and adjusting the current parameter configuration of the target sub-process based on the first disk parameter and the first parameter configuration.
[0062] In the above embodiment, if the third disk parameter is greater than the second disk parameter, the current parameter configuration The iteration is the third parameter configuration, the first disk parameter iteration is the first disk parameter obtained by the target business through the third parameter configuration, and the third parameter configuration is continued to be iterated through the iterated first disk parameter and the first parameter configuration, until the disk parameter obtained by the target business through the mth iteration parameter configuration can be less than or equal to the disk parameter of the (m-1)th iteration. Through continuous updating and iteration, the parameters in each target sub-process can be adjusted to achieve the optimal parameter configuration for the target sub-process performance data.
[0063] In an exemplary embodiment, after executing the target operation for each target sub-process included in the target business until the exit condition for exiting the target operation is met, the method further includes: when each of the target sub-processes included in the target business has completed executing the target operation, running the target business according to the target parameter configuration corresponding to each of the target sub-processes; determining the eighth disk parameter of the first disk in the process of running the target business twice in a row; when the last collected disk parameter included in the eighth disk parameter is less than the first collected disk parameter, executing the target operation for each of the target sub-processes included in the target business until the exit condition for exiting the target operation is met, and when the exit condition is met, determining the next process of the target sub-process as the target sub-process; when the last collected disk parameter included in the eighth disk parameter is greater than or equal to the first collected disk parameter, determining a first modulus of the difference between the first collected disk parameter and the last collected disk parameter, and when the first modulus is less than a first preset threshold, running the target business according to the target parameter configuration corresponding to each of the target sub-processes.
[0064] In the above embodiment, after determining the target parameter configuration of each target sub-process, the target service is run according to the target parameter configuration of each target sub-process, and the eighth disk parameter for running the target service twice in a row is obtained. When the disk parameter collected for the second time in the eighth disk parameter is less than the disk parameter collected for the first time, all target sub-processes are traversed, and the iteration can be directly exited after the traversal is complete; when the disk parameter collected for the second time in the eighth disk parameter is greater than or equal to the disk parameter collected for the first time, the difference between the two disk parameters is modulo to obtain a first modulus value. When the first modulus value is within the range of a first preset threshold value, the target service can be run according to the currently determined target parameter configuration and the iteration can be exited. That is, the condition for iterative exit can be expressed as ,in, is the first preset threshold, Indicates the disk parameters collected for the first time. Indicates the disk parameters collected for the second time. After determining the target parameter configuration of all target sub-processes, by comparing the disk parameters collected for two consecutive target runs, it is possible to more accurately determine whether the entire system has achieved optimal performance.
[0065] In an exemplary embodiment, after executing the target operation for each target sub-process included in the target business until the exit condition for exiting the target operation is met, the method also includes: when each of the target sub-processes included in the target business has completed executing the target operation, running the target business according to the target parameter configuration corresponding to each of the target sub-processes; determining a first processor parameter of a processor running the target business during the process of running the target business; determining a second processor parameter of a processor running the target business during the last process of running the target business; when a second modulus value of a difference between the first processor parameter and the second processor parameter is less than a second preset threshold, executing the target operation for each of the target sub-processes included in the target business until the exit condition for exiting the target operation is met, and when the exit condition is met, determining the next process of the target sub-process as the target sub-process.
[0066] In the above embodiment, the CPU utilization rate of the target service at the end of the previous iteration (ie, the second processor parameter) can be retained and recorded as ,right The CPU utilization is sampled after the time interval, and the sampling result can be expressed as ,in, ; It can be 30 minutes, 40 minutes, or 20 minutes, but is not limited thereto. The CPU utilization of the new sampling result (i.e., the first processor parameter mentioned above) can be recorded as , the first processor parameter is subtracted from the second processor parameter, and when the modulus of the difference (i.e., the second modulus) is less than the second preset threshold, , the iteration can be activated again to determine the target parameter configuration of each target sub-process. By monitoring the CPU resources occupied by the target business and setting activation conditions, it is possible to respond sensitively when the target business changes, thereby achieving the effect of dynamically and adaptively adjusting the hyper-converged service parameters.
[0067] In an exemplary embodiment, the process of determining the first processor parameter of the processor running the target business includes: performing the following operations for each target core of the processor to determine the core processor parameter of the target core: sampling the processor parameters of the processor at a second predetermined time interval to obtain multiple third processor parameters, determining a fifth sum value of the first collected processor parameters and the last collected processor parameters included in the multiple third processor parameters, determining a sixth sum value of other processor parameters included in the multiple third processor parameters except the first collected processor parameters and the last collected processor parameters, determining a fifth product of the sixth sum value and a fifth constant, determining a seventh sum value of the fifth product and the fifth sum value, determining a second number of the multiple third processor parameters, determining a third difference between the second number and the sixth constant, determining a sixth product of the third difference and the seventh constant, and determining a fourth ratio of the seventh sum value to the sixth product as the core processor parameter; and determining an eighth sum value of all the core processor parameters as the first processor parameter.
[0068] In the above embodiment, after waiting for the target service to run stably, The CPU utilization of each processor is sampled at a predetermined time (i.e., the second predetermined time interval), wherein the first predetermined time interval may be 3s, 5s, or 6s, but is not limited thereto. Example: When the first predetermined time interval is 5s, the CPU utilization of n time points (i.e., the third processor parameters) may be obtained, and the adjacent data in the third processor parameters may be linearly fitted, and the fitting formula may be as follows: , the average CPU utilization can be calculated. Among them, (i.e. the core processor parameters mentioned above) can represent the i-th processor, respectively represent the first collected processor parameter and the last collected processor parameter included in the third processor parameter, (ie, the second number mentioned above) can represent the number of CPU utilizations collected. The first processor parameter can be obtained by summing the values of ,Right now = By adaptively adjusting various parameters in hyper-converged applications according to target businesses and different hardware configurations, CPU resources can be fully utilized to improve overall performance.
[0069] The following describes the parameter configuration adjustment method in conjunction with a specific implementation method:
[0070] Figure 5 is a flow chart of an adjustment method according to a specific parameter configuration of an embodiment of the present application, such as Figure 5 As shown, the method includes:
[0071] Step S502, hyper-converged service segmentation;
[0072] Step S504, adjusting parameter data of each process;
[0073] Step S506, obtaining the performance upper limit of each process;
[0074] Step S508, running upper layer services and waiting for services to become stable;
[0075] Step S510, obtaining overall performance data;
[0076] Step S512, performing parameter iteration through overall performance data;
[0077] Step S514, determining whether the iteration is terminated, if yes, executing step S516, if no, executing step S508;
[0078] Step S516, monitoring the CPU usage of the upper layer application;
[0079] Step S518, enter iteration again.
[0080] In the above embodiment, the entire hyper-converged service can be segmented according to the IO process, from the upper-layer application to the data falling to the disk, and the initial parameter configuration can be set and adjusted through iteration to obtain the performance upper limit of each process. Run the upper-layer business, obtain the overall performance data within a period of time after the business is stable, and obtain the CPU utilization of the upper-layer application; the parameter configuration of each process can be adjusted based on the obtained performance data by setting the iteration conditions. Through the IOPS performance data obtained twice before and after, the threshold method is used to determine whether to terminate the iteration, and the iteration process is repeated until the iteration exits and the system reaches a steady state. After the iteration exits, the sampling interval of the performance data can be extended, and the activation condition can be set. When the CPU utilization rate changes beyond the threshold, the iteration is entered again, and the various parameters of the hyper-converged service are adjusted again until the next stability. It can be summarized as an effective combination of the abstraction and division of the hyper-converged service process, the selection of variable parameters of each process, the algorithm for adjusting the parameters of each process through iteration, and the long-term monitoring of CPU resources and automatic activation of iterations.
[0081] In the above embodiment, segmenting the hyper-convergence process can obtain the maximum performance of each process. When the business is running normally, the iterative algorithm is used to adjust the various parameters in the hyper-convergence service. By reducing or increasing the number of threads or queue depth of each process, the utilization of CPU resources can be adjusted to make the entire system run in the best state. In addition, through long-term monitoring of the CPU resources used by the target business, the hyper-convergence service parameter rules can be adjusted in real time, which has strong adaptability to high-load and flexible target layer businesses, thereby improving system efficiency.
[0082] In an exemplary embodiment, the target operation also includes: determining a ninth disk parameter of the first disk required for running the target business in the process of running the target business; adjusting the current occupancy ratio of the processor in the target sub-process based on the ninth disk parameter and the first occupancy ratio of the processor in the target sub-process to obtain a second occupancy ratio; wherein, when the target sub-process is run according to the first occupancy ratio, the disk parameter of the ninth disk reaches a preset condition; determining a tenth disk parameter of the first disk in the process of running the target business and running the target sub-process according to the second occupancy ratio; adjusting the second occupancy ratio based on the ninth disk parameter and the tenth disk parameter to obtain a third occupancy ratio; determining an eleventh parameter of the first disk in the process of running the target business and running the target sub-process according to the third occupancy ratio; and when it is determined based on the eleventh disk parameter that the exit condition is met, determining the eleventh disk parameter as the target occupancy ratio for running the target sub-process.
[0083] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0084] In the present embodiment, a parameter configuration adjustment device is also provided, and the device is used to implement the above-mentioned embodiment and preferred implementation mode, and the description has been made no further. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.
[0085] Figure 6 is a structural block diagram of an adjustment device for parameter configuration according to an embodiment of the present application, such as Figure 6 As shown, the device comprises:
[0086] a determination module 62, configured to execute a target operation for each target sub-process included in a target business until an exit condition for exiting the target operation is satisfied, and determine the next process of the target sub-process as the target sub-process when the exit condition is satisfied, wherein the target business includes a plurality of sub-processes, and the target sub-process is any one of the plurality of sub-processes;
[0087] The target operations include:
[0088] Determine a first disk parameter of a first disk required for running the target service during the running of the target service;
[0089] adjusting the current parameter configuration of the target subprocess based on the first disk parameter and the first parameter configuration for running the target subprocess to obtain a second parameter configuration, wherein when the target subprocess is run according to the first parameter configuration, the disk parameter of the first disk meets a preset condition;
[0090] Determine a second disk parameter of the first disk in the process of running the target service and running the target sub-process according to the second parameter configuration;
[0091] Adjust the second parameter configuration based on the first disk parameter and the second disk parameter to obtain a third parameter configuration;
[0092] Determine a third disk parameter of the first disk in the process of running the target service and running the target sub-process according to the third parameter configuration;
[0093] In a case where it is determined based on the third disk parameter that the exit condition is satisfied, the third parameter configuration is determined as a target parameter configuration for running the target sub-process.
[0094] In an exemplary embodiment, the determination module 62 can implement the determination of the first disk parameter of the first disk required for running the target business in the process of running the target business in the following manner: perform the following operations for each second disk included in the first disk to determine the fifth disk parameter of each second disk, wherein the second disk is any one of the disks included in the first disk: sample the disk parameters of the second disk at a first predetermined time interval to obtain multiple fourth disk parameters, determine the multiple fourth disk parameters for linear fitting to obtain the fifth disk parameter; and determine the first sum of all the fifth disk parameters as the first disk parameter.
[0095] In an exemplary embodiment, the determination module 62 can implement the determination of the linear fitting of the plurality of the fourth disk parameters to obtain the fifth disk parameter in the following manner: determine the second sum of the sixth disk parameter collected first and the seventh disk parameter collected last included in the plurality of the fourth disk parameters; determine the third sum of the other parameters included in the plurality of the fourth disk parameters except the sixth disk parameter and the seventh disk parameter; determine the first product of the third sum and a first constant; determine the fourth sum of the first product and the second sum; determine the first quantity of the fourth disk parameters; determine the first difference between the first quantity and the second constant; determine the second product of the first difference and the third constant; and determine the first ratio of the fourth sum to the second product as the fifth disk parameter.
[0096] In an exemplary embodiment, the determination module 62 can adjust the current parameter configuration of the target sub-process based on the first disk parameter and the first parameter configuration of running the target sub-process to obtain the second parameter configuration in the following manner: determine a second ratio of the first disk parameter to the first parameter configuration; and determine the third product of the current parameter configuration and the second ratio as the second parameter configuration.
[0097] In an exemplary embodiment, the determination module 62 can implement the adjustment of the second parameter configuration based on the first disk parameter and the second disk parameter to obtain the third parameter configuration in the following manner: when the second disk parameter is greater than the first disk parameter, determine a third ratio of the second disk parameter to the first parameter configuration, and determine the third product of the third ratio and the second disk parameter as the third parameter configuration; when the second disk parameter is less than or equal to the first disk parameter, determine a second ratio of the first disk parameter to the first parameter configuration, and adjust the second parameter configuration based on the second ratio to obtain the third parameter configuration.
[0098] In an exemplary embodiment, the determination module 62 can implement the adjustment of the second parameter configuration based on the second ratio to obtain the third parameter configuration in the following manner: determine a second difference between a fourth constant and the second ratio; and determine a fourth product of the second difference and the second parameter configuration as the third parameter configuration.
[0099] In an exemplary embodiment, the device can be used to, in the process of determining to run the target business and to run the target sub-process according to the third parameter configuration, after the third disk parameter of the first disk: when the third disk parameter is less than or equal to the second disk parameter, determine that the exit condition is satisfied.
[0100] In an exemplary embodiment, the device can also be used to, after determining the third disk parameter of the first disk in the process of running the target business and running the target sub-process according to the third parameter configuration: if the third disk parameter is greater than the second disk parameter, update the first disk parameter to the third disk parameter; update the current parameter configuration to the third parameter configuration; and adjust the current parameter configuration of the target sub-process based on the first disk parameter and the first parameter configuration.
[0101] In an exemplary embodiment, the device can also be used to perform a target operation for each target sub-process included in the target business until an exit condition for exiting the target operation is met: when each target sub-process included in the target business has completed executing the target operation, run the target business according to the target parameter configuration corresponding to each target sub-process; determine the eighth disk parameter of the first disk in the process of running the target business twice in a row; when the last collected disk parameter included in the eighth disk parameter is less than the first collected disk parameter, perform the target operation for each target sub-process included in the target business until the exit condition for exiting the target operation is met, and when the exit condition is met, determine the next process of the target sub-process as the target sub-process; when the last collected disk parameter included in the eighth disk parameter is greater than or equal to the first collected disk parameter, determine a first modulus of the difference between the first collected disk parameter and the last collected disk parameter, and when the first modulus is less than a first preset threshold, run the target business according to the target parameter configuration corresponding to each target sub-process.
[0102] In an exemplary embodiment, the device can also be used to execute the target operation for each target sub-process included in the target business until the exit condition for exiting the target operation is met: when each of the target sub-processes included in the target business has completed executing the target operation, run the target business according to the target parameter configuration corresponding to each of the target sub-processes; determine the first processor parameter of the processor running the target business in the process of running the target business; determine the second processor parameter of the processor running the target business in the process of running the target business last time; when the second modulus value of the difference between the first processor parameter and the second processor parameter is less than a second preset threshold, execute the target operation for each of the target sub-processes included in the target business until the exit condition for exiting the target operation is met, and when the exit condition is met, determine the next process of the target sub-process as the target sub-process.
[0103] In an exemplary embodiment, the device can implement the determination of the first processor parameter of the processor running the target service in the process of running the target service in the following manner: perform the following operations for each target core of the processor to determine the core processor parameter of the target core: sample the processor parameters of the processor at a second predetermined time interval to obtain multiple third processor parameters, determine a fifth sum value of the first collected processor parameters and the last collected processor parameters included in the multiple third processor parameters, determine a sixth sum value of other processor parameters included in the multiple third processor parameters except the first collected processor parameters and the last collected processor parameters, determine a fifth product of the sixth sum value and a fifth constant, determine a seventh sum value of the fifth product and the fifth sum value, determine a second number of the multiple third processor parameters, determine a third difference between the second number and the sixth constant, determine a sixth product of the third difference and the seventh constant, and determine a fourth ratio of the seventh sum value to the sixth product as the core processor parameter; and determine an eighth sum value of all the core processor parameters as the first processor parameter.
[0104] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0105] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0106] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0107] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0108] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0109] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0110] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0111] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0112] The above description is only the preferred 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 modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for adjusting parameter configuration, characterized in that: include: Executing a target operation for each target sub-process included in a target business until an exit condition for exiting the target operation is satisfied, and determining the next process of the target sub-process as the target sub-process when the exit condition is satisfied, wherein the target business includes a plurality of sub-processes, and the target sub-process is any one of the plurality of sub-processes; The target operations include: Determine a first disk parameter of a first disk required for running the target service during the running of the target service; adjusting the current parameter configuration of the target subprocess based on the first disk parameter and the first parameter configuration for running the target subprocess to obtain a second parameter configuration, wherein when the target subprocess is run according to the first parameter configuration, the disk parameter of the first disk meets a preset condition; Determining a second disk parameter of the first disk during the process of running the target service and running the target sub-process according to the second parameter configuration; Adjust the second parameter configuration based on the first disk parameter and the second disk parameter to obtain a third parameter configuration; Determine a third disk parameter of the first disk in the process of running the target service and running the target sub-process according to the third parameter configuration; In a case where it is determined based on the third disk parameter that the exit condition is satisfied, the third parameter configuration is determined as a target parameter configuration for running the target sub-process.
2. The method according to claim 1, characterized in that: The determining of the first disk parameter of the first disk required for running the target service in the process of running the target service includes: The following operations are performed for each second disk included in the first disk to determine the fifth disk parameter of each second disk, wherein the second disk is any disk included in the first disk: the disk parameters of the second disk are sampled at a first predetermined time interval to obtain a plurality of fourth disk parameters, and the plurality of fourth disk parameters are determined to be linearly fitted to obtain the fifth disk parameter; A first sum value of all the fifth disk parameters is determined as the first disk parameter.
3. The method according to claim 2, characterized in that The step of determining a plurality of the fourth disk parameters and performing linear fitting to obtain the fifth disk parameter comprises: determining a second sum value of a sixth disk parameter collected first and a seventh disk parameter collected last included in the plurality of fourth disk parameters; determining a third sum value of other parameters included in the plurality of fourth disk parameters except the sixth disk parameter and the seventh disk parameter; determining a first product of the third sum and a first constant; determining a fourth sum of the first product and the second sum; determining a first quantity of said fourth disk parameter; determining a first difference between the first quantity and a second constant; determining a second product of the first difference and a third constant; A first ratio of the fourth sum to the second product is determined as the fifth disk parameter.
4. The method according to claim 1, characterized in that: The step of adjusting the current parameter configuration of the target sub-process based on the first disk parameter and the first parameter configuration of running the target sub-process to obtain a second parameter configuration includes: determining a second ratio of the first disk parameter to the first parameter configuration; A third product of the current parameter configuration and the second ratio is determined as the second parameter configuration.
5. The method according to claim 1, characterized in that The adjusting the second parameter configuration based on the first disk parameter and the second disk parameter to obtain a third parameter configuration includes: In the case where the second disk parameter is greater than the first disk parameter, determining a third ratio of the second disk parameter to the first parameter configuration, and determining a third product of the third ratio and the second disk parameter as the third parameter configuration; When the second disk parameter is less than or equal to the first disk parameter, a second ratio of the first disk parameter to the first parameter configuration is determined, and the second parameter configuration is adjusted based on the second ratio to obtain the third parameter configuration.
6. The method according to claim 5, characterized in that The adjusting the second parameter configuration based on the second ratio to obtain the third parameter configuration includes: determining a second difference between a fourth constant and the second ratio; A fourth product of the second difference and the second parameter configuration is determined as the third parameter configuration.
7. The method according to claim 1, characterized in that In the process of determining to run the target service and to run the target sub-process according to the third parameter configuration, after the third disk parameter of the first disk, the method further includes: When the third disk parameter is less than or equal to the second disk parameter, it is determined that the exit condition is satisfied.
8. The method according to claim 1, characterized in that: In the process of determining to run the target service and to run the target sub-process according to the third parameter configuration, after the third disk parameter of the first disk, the method further includes: When the third disk parameter is greater than the second disk parameter, updating the first disk parameter to the third disk parameter; Updating the current parameter configuration to a third parameter configuration; The current parameter configuration of the target sub-process is adjusted based on the first disk parameter and the first parameter configuration.
9. The method according to claim 1, characterized in that: After executing the target operation for each target sub-process included in the target business until an exit condition for exiting the target operation is met, the method further includes: When each of the target sub-processes included in the target service has completed executing the target operation, running the target service according to the target parameter configuration corresponding to each of the target sub-processes; Determine an eighth disk parameter of the first disk during two consecutive operations of the target service; In the case that the last acquired disk parameter included in the eighth disk parameter is less than the first acquired disk parameter, the target operation is executed for each target sub-process included in the target business until the exit condition for exiting the target operation is met, and in the case that the exit condition is met, the next process of the target sub-process is determined as the target sub-process; In the case where the last collected disk parameter included in the eighth disk parameter is greater than or equal to the first collected disk parameter, a first modulus value of the difference between the first collected disk parameter and the last collected disk parameter is determined, and in the case where the first modulus value is less than a first preset threshold value, the target business is run according to the target parameter configuration corresponding to each of the target sub-processes.
10. The method according to claim 1, characterized in that After executing the target operation for each target sub-process included in the target business until an exit condition for exiting the target operation is met, the method further includes: When each of the target sub-processes included in the target service has completed executing the target operation, running the target service according to the target parameter configuration corresponding to each of the target sub-processes; Determining a first processor parameter of a processor running the target service during the process of running the target service; Determine a second processor parameter of a processor running the target service during the last running of the target service; When a second modulus value of a difference between the first processor parameter and the second processor parameter is less than a second preset threshold, the target operation is executed for each target sub-process included in the target business until the exit condition for exiting the target operation is met, and when the exit condition is met, the next process of the target sub-process is determined as the target sub-process.
11. The method according to claim 10, characterized in that In the process of determining the first processor parameter of the processor running the target service, the first processor parameter of the processor running the target service includes: The following operations are performed for each target core of the processor to determine the core processor parameters of the target core: sampling the processor parameters of the processor at a second predetermined time interval to obtain a plurality of third processor parameters, determining a fifth sum value of the first collected processor parameters and the last collected processor parameters included in the plurality of the third processor parameters, determining a sixth sum value of other processor parameters included in the plurality of the third processor parameters except the first collected processor parameters and the last collected processor parameters, determining a fifth product of the sixth sum value and a fifth constant, determining a seventh sum value of the fifth product and the fifth sum value, determining a second number of the plurality of the third processor parameters, determining a third difference value between the second number and the sixth constant, determining a sixth product of the third difference value and the seventh constant, and determining a fourth ratio of the seventh sum value to the sixth product as the core processor parameter; An eighth sum value of all the core processor parameters is determined as the first processor parameter.
12. A parameter configuration adjustment device, characterized in that: include: a determination module, configured to execute a target operation for each target sub-process included in a target business until an exit condition for exiting the target operation is satisfied, and to determine the next process of the target sub-process as the target sub-process when the exit condition is satisfied, wherein the target business includes a plurality of sub-processes, and the target sub-process is any one of the plurality of sub-processes; The target operations include: Determine a first disk parameter of a first disk required for running the target service during the running of the target service; adjusting the current parameter configuration of the target subprocess based on the first disk parameter and the first parameter configuration for running the target subprocess to obtain a second parameter configuration, wherein when the target subprocess is run according to the first parameter configuration, the disk parameter of the first disk meets a preset condition; Determining a second disk parameter of the first disk during the process of running the target service and running the target sub-process according to the second parameter configuration; Adjust the second parameter configuration based on the first disk parameter and the second disk parameter to obtain a third parameter configuration; Determine a third disk parameter of the first disk in the process of running the target service and running the target sub-process according to the third parameter configuration; In a case where it is determined based on the third disk parameter that the exit condition is satisfied, the third parameter configuration is determined as a target parameter configuration for running the target sub-process.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 11 when executed by a processor.
14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 11 are implemented.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 11 are implemented.
Citation Information
Patent Citations
Disk state determination method and device, storage medium and electronic device
CN116820339A
Disk scheduling strategy setting method, system and equipment and storage medium
CN118733266A