Disk scheduling strategy setting method, system and equipment and storage medium
Dynamically adjusting the disk scheduling strategy through monitoring data and models solves the problem that traditional strategies cannot adapt to complex scenarios and improves the stability and adaptability of server performance.
Patent Information
- Application Number
- CN202410865535.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-01
AI Technical Summary
Traditional disk scheduling strategies cannot be dynamically adjusted according to actual business scenarios and disk status, resulting in limited system performance, lack of flexibility and adaptability, and the inability to maintain optimal performance in complex and changing environments.
By monitoring the server running status, disk parameters and load data, using the policy selection model and parameter value setting model, dynamically download and update the most suitable disk scheduling policy, select and configure the optimal policy from the disk scheduling policy library to ensure the flexibility of the policy sex and adaptability.
It realizes dynamic adjustment and optimization of disk scheduling strategies, improves the stability and adaptability of server performance, and adapts to complex and changeable business scenarios and disk status.
Smart Images

Figure CN118733266A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servers, and in particular to a method, system, device and storage medium for setting a disk scheduling strategy. Background Art
[0002] The performance of the storage system is crucial to the stability and speed of user business operations. The disk scheduling strategy is a key link in the storage system and directly affects the efficiency of I / O (Input / Output) operations.
[0003] Traditional disk scheduling strategies are often set based on fixed rules or experience, and cannot be dynamically adjusted according to actual business scenarios and disk status, resulting in limited system performance. For example, strategies such as first-come-first-served algorithm and shortest service time priority algorithm may show better performance in specific scenarios, but lack sufficient flexibility and adaptability, and cannot be dynamically adjusted according to actual business scenarios and disk status.
[0004] Other solutions try to optimize disk scheduling through different algorithms, but they are still set based on certain rules or experience. For example, some solutions will select the optimal scheduling strategy based on the monitored data and take effect in real time, but they are still set based on certain rules or experience. These rules may also show good performance in specific scenarios, but cannot adapt to complex and changing business scenarios and disk status, resulting in poor performance in some cases. In addition, current solutions often only focus on a single optimization goal, which may lead to unsatisfactory server performance in some cases.
[0005] In summary, how to effectively implement the setting of disk scheduling strategies and ensure server performance is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention
[0006] The purpose of the present invention is to provide a method, system, device and storage medium for setting a disk scheduling strategy, so as to effectively implement the setting of the disk scheduling strategy and ensure the performance of the server.
[0007] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0008] In a first aspect, the present invention provides a method for setting a disk scheduling policy, comprising:
[0009] The running status data, disk parameter data and load data of the currently monitored server are used as the current monitoring data;
[0010] Inputting the monitoring data into a strategy selection model for performing strategy selection, and obtaining a target scheduling strategy corresponding to the monitoring data output by the strategy selection model;
[0011] Downloading the target scheduling policy from a disk scheduling policy library including multiple disk scheduling policies;
[0012] Inputting the monitoring data into a parameter value setting model corresponding to the target scheduling strategy to obtain target parameter information output by the parameter value setting model;
[0013] Based on the target parameter information, the downloaded target scheduling policy is updated with parameters, and the target scheduling policy obtained after the update is completed is used as the disk scheduling policy currently used by the server.
[0014] On the other hand, it also includes:
[0015] After the target scheduling policy obtained after the update is completed is used as the current disk scheduling policy of the server, the operation of inputting the monitoring data into the policy selection model for policy selection is suspended within a first time period in the future, so that the disk scheduling policy used by the server is not updated within the first time period.
[0016] On the other hand, it also includes:
[0017] When receiving the first adjustment instruction, setting the disk scheduling policy currently used by the server to the disk scheduling policy specified by the first policy adjustment instruction;
[0018] When the second adjustment instruction is received, the parameters of the disk scheduling strategy currently used by the server are adjusted based on the instruction content of the second adjustment instruction.
[0019] On the other hand, it also includes:
[0020] After downloading the target scheduling policy from a disk scheduling policy library including a plurality of disk scheduling policies, determining whether the target scheduling policy is a target scheduling policy of a preset target type;
[0021] If yes, the operation of inputting the monitoring data into a parameter value setting model corresponding to the target scheduling strategy is performed;
[0022] If not, the parameters of the target scheduling policy are not updated, and the downloaded target scheduling policy configured with default parameters is used as the disk scheduling policy currently used by the server.
[0023] On the other hand, it also includes:
[0024] After the target scheduling policy obtained after the update is completed is used as the disk scheduling policy currently used by the server, information is fed back to the management system to reflect the deployment status of the target scheduling policy.
[0025] On the other hand, the monitored load data includes the number of read and write requests and the change in the number of read and write requests;
[0026] The disk scheduling policies in the disk scheduling policy library include: priority-based disk scheduling policies, workload-based disk scheduling policies, energy consumption-based disk scheduling policies, hybrid disk scheduling policies, and disk scheduling policies based on disk life balance.
[0027] On the other hand, the monitoring data is input into a strategy selection model for performing strategy selection, and a target scheduling strategy corresponding to the monitoring data output by the strategy selection model is obtained, including:
[0028] Inputting the monitoring data into a trained strategy selection model for strategy selection to obtain a target scheduling strategy corresponding to the monitoring data output by the strategy selection model;
[0029] The strategy selection model is deployed in an artificial intelligence processor, the artificial intelligence processor is connected to the baseboard management controller, and the training process of the deployed strategy selection model includes:
[0030] Based on the historical monitoring data, multiple groups of training samples are obtained, and a first type of label is added to each group of the training samples; the first type of label represents the policy type of the disk scheduling policy;
[0031] For each group of the training samples, the training samples are input into a preset strategy selection model for strategy selection to train the strategy selection model until the strategy selection model training is completed;
[0032] Accordingly, the monitoring data is input into a parameter value setting model corresponding to the target scheduling strategy to obtain target parameter information output by the parameter value setting model, including:
[0033] Inputting the monitoring data into a trained parameter value setting model corresponding to the target scheduling strategy to obtain target parameter information output by the parameter value setting model;
[0034] The parameter value setting model corresponding to the target scheduling strategy is deployed in the artificial intelligence processor, and the training process of the parameter value setting model corresponding to the target scheduling strategy includes:
[0035] Based on the historical monitoring data, multiple groups of training samples are obtained, and a second type of label is added to each group of the training samples; the second type of label represents the parameter selection when the target scheduling strategy is adopted;
[0036] For each group of the training samples, the training samples are input into a preset parameter value setting model corresponding to the target scheduling strategy to train the parameter value setting model until the training of the parameter value setting model corresponding to the target scheduling strategy is completed.
[0037] In a second aspect, the present invention provides a system for setting a disk scheduling strategy, comprising:
[0038] The monitoring module is used to use the currently monitored server operation status data, disk parameter data and load data as current monitoring data;
[0039] a target scheduling strategy determination module, used for inputting the monitoring data into a strategy selection model for performing strategy selection, and obtaining a target scheduling strategy corresponding to the monitoring data output by the strategy selection model;
[0040] A target scheduling strategy downloading module, used for downloading the target scheduling strategy from a disk scheduling strategy library including multiple disk scheduling strategies;
[0041] A parameter updating module, used for inputting the monitoring data into a parameter value setting model corresponding to the target scheduling strategy, and obtaining target parameter information output by the parameter value setting model;
[0042] The target scheduling strategy deployment module is used to update the parameters of the downloaded target scheduling strategy based on the target parameter information, and use the target scheduling strategy obtained after the update as the disk scheduling strategy currently used by the server.
[0043] In a third aspect, the present invention provides a device for setting a disk scheduling strategy, comprising:
[0044] Memory for storing computer programs;
[0045] The processor is used to execute the computer program to implement the steps of the method for setting the disk scheduling policy as described above.
[0046] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method for setting a disk scheduling policy as described above are implemented.
[0047] By applying the technical solution provided by the embodiment of the present invention, considering that BMC, as an important management component of the server, can conveniently monitor and manage various hardware resources of the server, data including the server's operating status data, disk parameter data, and load data can be monitored as current monitoring data, which is helpful for obtaining the current optimal disk scheduling strategy in the future. In addition, the present application takes into account that the traditional solution mainly relies on fixed rules or experience for setting the disk scheduling strategy. In this regard, in the solution of the present application, a strategy selection model can be used to select the current optimal disk scheduling strategy, that is, the current monitoring data is input into the strategy selection model for strategy selection, and the target scheduling strategy corresponding to the monitoring data output by the strategy selection model is obtained. Then, the target scheduling strategy can be downloaded from the disk scheduling strategy library including multiple disk scheduling strategies. It can be understood that the downloaded target scheduling strategy is the disk scheduling strategy that is most suitable for the current situation determined by the strategy selection model based on the current monitoring data.
[0048] Furthermore, the present application further considers that even for the same disk scheduling strategy, different parameter settings will produce different effects. Therefore, in the present application solution, the currently monitored monitoring data will be input into the parameter value setting model corresponding to the target scheduling strategy, and the target parameter information output by the parameter value setting model will be obtained, so as to update the parameters of the downloaded target scheduling strategy based on the target parameter information, and the target scheduling strategy obtained after the update is completed will be used as the disk scheduling strategy currently used by the server.
[0049] It can be seen that in the solution of the present application, the strategy selection model is used to obtain the optimal disk scheduling strategy that best suits the current situation, and then the parameter value setting model is used to configure the current optimal parameters for this optimal disk scheduling strategy. Ultimately, the solution of the present application effectively realizes the setting of the disk scheduling strategy and is beneficial to ensuring server performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0051] Figure 1 It is an implementation flow chart of a method for setting a disk scheduling strategy of the present invention;
[0052] Figure 2 A schematic diagram of the structure of a system for setting a disk scheduling strategy according to the present invention;
[0053] Figure 3 A schematic diagram of the structure of a device for setting a disk scheduling strategy according to the present invention;
[0054] Figure 4 The present invention is a schematic diagram of the structure of a computer-readable storage medium. DETAILED DESCRIPTION
[0055] The core of the present invention is to provide a method for setting a disk scheduling strategy, which uses a strategy selection model to obtain the optimal disk scheduling strategy that best suits the current situation, and then uses a parameter value setting model to perform the current optimal parameter configuration for this optimal disk scheduling strategy. Ultimately, the present application scheme effectively realizes the setting of the disk scheduling strategy and is beneficial to ensuring server performance.
[0056] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0057] Please refer to Figure 1 , Figure 1 The present invention is a flowchart of a method for setting a disk scheduling strategy. The method for setting a disk scheduling strategy may include the following steps:
[0058] Step S101: taking the currently monitored operating status data, disk parameter data and load data of the server as current monitoring data.
[0059] Specifically, in the present application, in order to ensure that the optimal disk scheduling strategy can be obtained later, the monitoring data obtained includes multiple contents, namely, the operating status data of the currently monitored server, disk parameter data and load data, which can fully reflect the current server situation.
[0060] BMC (Board Management Controller) is an important management component of the server, which can monitor and manage various hardware resources of the server. In this regard, in the solution of the present application, it is considered that monitoring data can be obtained based on BMC.
[0061] In addition, it can be understood that the specific parameter items of the monitored server's operating status data, disk parameter data and load data can be set and adjusted as needed. For example, considering that the solution of the present application is based on machine learning to obtain the optimal disk scheduling strategy, the input data is allowed to have a higher feature dimension. Therefore, a variety of parameter items can be set in the monitored server's operating status data, disk parameter data and load data, so as to be able to fully reflect the current server situation, which is conducive to the subsequent accurate acquisition of the optimal disk scheduling strategy. Of course, the more parameter items are set, the more complex the strategy selection model will be, and the higher the computing resources required will be. Therefore, the types of parameter items can be set and adjusted based on actual needs.
[0062] For example, in one implementation, the load data specifically refers to the current number of IO requests, and the disk parameter data may include disk-related parameters, such as disk utilization, average IO response latency, average disk temperature, etc. The server's operating status data may include operating status data of various aspects of the server, such as the server's CPU utilization, memory utilization, server temperature, power consumption, fan speed, etc.
[0063] Step S102: input the monitoring data into a strategy selection model for performing strategy selection, and obtain a target scheduling strategy corresponding to the monitoring data output by the strategy selection model.
[0064] The solution of the present application is to obtain the optimal disk scheduling strategy based on machine learning. Therefore, it is necessary to input the monitoring data into a strategy selection model for strategy selection. It can be understood that the strategy selection model has been trained in advance.
[0065] After the monitoring data is input into the policy selection model used for policy selection, the policy selection model will output a disk scheduling strategy, which means that for the current monitoring data, the policy selection model determines that this disk scheduling strategy is the currently optimal disk scheduling strategy. In this application, the currently optimal disk scheduling strategy determined by the policy selection model is referred to as the target scheduling strategy.
[0066] In addition, it can be understood that the specific model form of the strategy selection model can be set and adjusted according to actual needs. For example, it can be a commonly used neural network model. Of course, in other implementations, other model forms can be used according to actual needs to ensure that the optimal disk scheduling strategy is obtained.
[0067] In a specific implementation of the present invention, step S102 may specifically include:
[0068] Input the monitoring data into a strategy selection model that has been trained for strategy selection, and obtain a target scheduling strategy corresponding to the monitoring data output by the strategy selection model;
[0069] The strategy selection model is deployed in an artificial intelligence processor, which is connected to a baseboard management controller, and the training process of the deployed strategy selection model includes:
[0070] Based on the historical monitoring data, multiple groups of training samples are obtained, and a first-class label is added to each group of training samples; the first-class label indicates the policy type of the disk scheduling policy;
[0071] For each group of training samples, the training samples are input into a preset strategy selection model for strategy selection to train the strategy selection model until the strategy selection model training is completed.
[0072] This implementation takes into account that in different situations, the resources of the BMC will be different. In some situations, the BMC has more computing resources, so the BMC can be directly used to deploy the policy selection model. In other situations, the BMC does not have many computing resources, or it is not desired that the policy selection model of the present application occupy too many computing resources of the BMC. In this case, the policy selection model can be deployed in a dedicated AI (Artificial Intelligence) processor connected to the BMC, so as to use the specially configured AI processor to implement the deployment and operation of the policy selection model of the present application, thereby not bringing a computing burden to the BMC.
[0073] In this implementation, an artificial intelligence processor connected to the BMC is provided, which does not bring computing burden to the BMC and has greater flexibility in practical applications.
[0074] Specifically, the BMC can input the monitoring data into a policy selection model that has been trained for policy selection and is deployed in an artificial intelligence processor connected to the BMC, thereby obtaining a target scheduling strategy corresponding to the monitoring data output by the policy selection model.
[0075] This implementation also describes the training process of the deployed policy selection model. First, multiple sets of training samples need to be obtained based on historical monitoring data. It can be understood that for each set of training samples, the specific content included is the same as the monitoring data described above, that is, it can include the server's operating status data, disk parameter data, and load data. In addition, in practical applications, the training samples can be preprocessed according to actual needs, such as filtering the training samples, etc., to improve the quality of the training samples, which will not be described in detail here.
[0076] For each set of training samples obtained, it is necessary to add a first-class label. The first-class label indicates the policy type of the disk scheduling policy. That is to say, for any set of training samples, the first-class label added to it indicates that for the training sample, the policy type of the disk scheduling policy indicated by the first-class label should be adopted, which is the optimal disk scheduling policy in this case. And it can be understood that the operation of adding the first-class label can usually be completed by the staff based on experience and / or experimental data. For example, for a certain set of training samples, the experimental equipment can be set up so that the situation of the experimental equipment conforms to this set of training samples, and then experiments are carried out under different disk scheduling policies, and then the policy type of the disk scheduling policy used when the server performance is optimal is used as the first-class label for this set of training samples. In this process, for different disk scheduling policies, the conventional parameter configuration of the corresponding disk scheduling policy can be adopted.
[0077] After obtaining multiple groups of training samples based on historical monitoring data and adding the first type of label to each group of training samples, the strategy selection model can be trained based on these training samples until the strategy selection model training is completed, that is, until the termination condition of the training is reached, such as the training round reaches the set threshold, or the strategy selection model has reached the set convergence condition, then it can be determined that the training is completed. At this time, a trained strategy selection model is obtained, and the strategy selection model can be deployed. In this implementation mode, it is specifically deployed in an artificial intelligence processor connected to the baseboard management controller.
[0078] Step S103: downloading a target scheduling policy from a disk scheduling policy library including multiple disk scheduling policies.
[0079] After obtaining the target scheduling strategy corresponding to the current monitoring data output by the strategy selection model, the optimal disk scheduling strategy under the current situation is obtained. Therefore, the BMC can download the target scheduling strategy from the disk scheduling strategy library including multiple disk scheduling strategies to deploy the target scheduling strategy.
[0080] The number of policies included in the disk scheduling policy library can be set and adjusted according to actual needs. Generally speaking, the more policies are included, the more conducive it is to adapt to different scenarios. In a specific embodiment of the present invention, the disk scheduling policies in the disk scheduling policy library may include: priority-based disk scheduling policies, workload-based disk scheduling policies, energy consumption-based disk scheduling policies, hybrid disk scheduling policies, and disk scheduling policies based on disk life balance.
[0081] In this implementation, the priority-based disk scheduling strategy can adjust the priority of the disk to achieve high performance of the system. For example, when a disk has a higher priority, the IO of the disk will be processed first. It can be understood that the specific strategy content of the priority-based disk scheduling strategy can be set and adjusted according to actual needs.
[0082] The main function of the workload-based disk scheduling strategy is to perform disk scheduling based on the current load data. The main function of the energy consumption-based disk scheduling strategy is to perform disk scheduling with the server energy consumption in line with the set value as the scheduling target. The main function of the disk scheduling strategy based on disk life balance is to perform disk scheduling with the disk life balance as the target. The hybrid disk scheduling strategy can be a mixture of multiple strategies, that is, a comprehensive consideration of multiple indicators for disk scheduling. In actual applications, one or more hybrid disk scheduling strategies can be set in the disk scheduling strategy library as needed, and other disk scheduling strategies other than this implementation method can be set.
[0083] In addition, in this implementation, the number of disk scheduling strategies set in the disk scheduling strategy library will not be too small, which is conducive to adapting to different scenarios, and they are all relatively effective disk scheduling strategies, and the number will not be too large, so as to avoid the training process of the strategy selection model being too cumbersome.
[0084] Step S104: input the monitoring data into a parameter value setting model corresponding to the target scheduling strategy to obtain target parameter information output by the parameter value setting model.
[0085] After downloading the target scheduling strategy from the disk scheduling strategy library including multiple disk scheduling strategies, the present application does not directly deploy the target scheduling strategy because the present application further considers that even if it is the same disk scheduling strategy, the effects produced will be different when the parameters in the strategy are set differently. For example, the same disk scheduling strategy based on energy consumption will produce different effects, that is, the server performance will be different, depending on the specific server energy consumption setting value used as the target.
[0086] Therefore, in the present application, the currently monitored data will be input into the parameter value setting model corresponding to the target scheduling strategy to obtain the target parameter information output by the parameter value setting model. The obtained target parameter information indicates that the parameters of the target scheduling strategy should be set according to the target parameter information, so that after the target scheduling strategy is adopted, the parameters are set according to the target parameter information, so that the server can achieve the optimal performance state. In addition, it should be noted that the disk scheduling strategy is set in the present application so that the server can achieve the optimal performance state, and the specific indicators used to reflect the performance state of the server can be set and adjusted according to actual needs. For example, the performance state of the server can be judged by a single indicator such as the average IO processing delay, or the performance state of the server can be comprehensively judged based on multiple indicators.
[0087] Similar to the strategy selection model above, the specific form of the parameter value setting model used in this step can also be set and adjusted according to actual needs. For example, it can be a commonly used neural network model. In other implementations, other model forms can also be used according to actual needs to ensure that the optimal target parameter information is obtained.
[0088] It is also understandable that, since there are multiple disk scheduling strategies, the corresponding parameter value setting models are different for different disk scheduling strategies and need to be trained separately.
[0089] In a specific implementation of the present invention, step S104 may specifically include:
[0090] Input the monitoring data into a parameter value setting model that has been trained and corresponds to a target scheduling strategy, and obtain target parameter information output by the parameter value setting model;
[0091] The parameter value setting model corresponding to the target scheduling strategy is deployed in the artificial intelligence processor, and the training process of the parameter value setting model corresponding to the target scheduling strategy includes:
[0092] Based on the historical monitoring data, multiple groups of training samples are obtained, and a second type of label is added to each group of training samples; the second type of label represents the parameter selection when the target scheduling strategy is adopted;
[0093] For each group of training samples, the training samples are input into a preset parameter value setting model corresponding to the target scheduling strategy to train the parameter value setting model until the training of the parameter value setting model corresponding to the target scheduling strategy is completed.
[0094] Similar to the previous embodiment, in this implementation, an artificial intelligence processor connected to the BMC is provided, which does not bring computing burden to the BMC and has greater flexibility in practical applications.
[0095] Specifically, the BMC can input the monitoring data into a parameter value setting model that has been trained and corresponds to the target scheduling strategy and is deployed in the artificial intelligence processor, thereby obtaining the target parameter information output by the parameter value setting model.
[0096] This implementation also describes the training process of the parameter value setting model corresponding to the target scheduling strategy. First, multiple sets of training samples need to be obtained based on historical monitoring data. Similar to the above, for each set of training samples, the specific content included is the same as the monitoring data described above, that is, it can include the server's operating status data, disk parameter data, and load data.
[0097] For each group of training samples obtained, it is necessary to add a second type of label. The second type of label indicates the parameter selection situation when the target scheduling strategy is adopted. That is to say, for any group of training samples, when training the parameter value setting model corresponding to the target scheduling strategy, the second type of label added to it indicates that for the training sample, the parameter selection situation represented by the second type of label should be adopted, which is the optimal parameter configuration of the target scheduling strategy.
[0098] Similarly, the operation of adding the second type of label can usually be completed by the staff based on experience and / or experimental data. For example, for a certain set of training samples, the experimental equipment can be set up so that the conditions of the experimental equipment are consistent with this set of training samples. Then, after using the target scheduling strategy, experiments are conducted with different parameter configurations. The parameter configuration used when the server performance is optimal is used as the second type of label for this set of training samples.
[0099] After obtaining multiple groups of training samples based on historical monitoring data and adding the second type of label to each group of training samples, the parameter value setting model corresponding to the target scheduling strategy can be trained based on these training samples. After the training of the parameter value setting model corresponding to the target scheduling strategy is completed, the parameter value setting model corresponding to the target scheduling strategy can be deployed. In this implementation mode, it is specifically deployed in an artificial intelligence processor connected to the baseboard management controller.
[0100] It is understandable that the above explanation is based on the training process of a single parameter value setting model. For parameter value setting models corresponding to other disk scheduling strategies, the training principles can be referred to here and will not be repeated.
[0101] Step S105: Based on the target parameter information, update the parameters of the downloaded target scheduling policy, and use the target scheduling policy obtained after the update as the disk scheduling policy currently used by the server.
[0102] After obtaining the target parameter information, the downloaded target scheduling policy can be updated based on the target parameter information, and the target scheduling policy obtained after the update is completed can be used as the disk scheduling policy currently used by the server. That is, the target scheduling policy obtained after the update is completed can be used to implement disk scheduling according to the target scheduling policy.
[0103] In a specific embodiment of the present invention, it may also include:
[0104] After the target scheduling policy obtained after the update is completed is used as the current disk scheduling policy of the server, the operation of inputting monitoring data into the policy selection model used for policy selection is suspended within the first time period in the future, so that the disk scheduling policy used by the server is not updated within the first time period.
[0105] This implementation method takes into account that in the present application scheme, the currently monitored server operating status data, disk parameter data and load data are used as the current monitoring data, and then based on the current monitoring data, the target scheduling strategy is determined and the parameters are updated, so as to serve as the disk scheduling strategy currently used by the server. It is understandable that the monitoring data will change constantly. If the disk scheduling strategy is updated frequently, it will be detrimental to the stable operation of the system. Therefore, in this implementation method, after each execution of step S105, the operation of step S102 will be suspended within the first time period in the future, so that within the first time period, the disk scheduling strategy used by the server will not be updated, avoiding the situation where the disk scheduling strategy is updated too frequently and affects the server performance. In addition, the reason for suspending the operation of step S102 is that for the monitoring operation of step S101, the BMC usually needs to continue to perform to ensure the normal operation of other functions.
[0106] In a specific embodiment of the present invention, it may also include:
[0107] When receiving the first adjustment instruction, setting the disk scheduling policy currently used by the server to the disk scheduling policy specified by the first policy adjustment instruction;
[0108] When the second adjustment instruction is received, the parameters of the disk scheduling strategy currently used by the server are adjusted based on the instruction content of the second adjustment instruction.
[0109] As can be seen from the above description, the present application scheme can automatically determine the optimal disk scheduling strategy currently used by the server. This implementation method takes into account that in some cases, the server may have specific requirements. In this regard, the staff can adjust the disk scheduling strategy through the first adjustment instruction and the second adjustment instruction. Specifically, when the first adjustment instruction sent by the staff is received, the disk scheduling strategy currently used by the server can be directly set to the disk scheduling strategy specified by the first strategy adjustment instruction. When the second adjustment instruction sent by the staff is received, the parameters of the disk scheduling strategy currently used by the server can be adjusted based on the instruction content of the second adjustment instruction.
[0110] Furthermore, in a specific embodiment of the present invention, whenever a first adjustment instruction is received and the disk scheduling strategy is adjusted, or whenever a second adjustment instruction is received and the parameters of the disk scheduling strategy are adjusted, a flag indicating whether modification of the disk scheduling strategy is prohibited can be set. For example, when the flag is 1, it indicates that modification is prohibited, which means that the current disk scheduling strategy will continue to be used at this time and no adjustments will be performed. Only when a flag restoration instruction is received and the flag is restored to 0, the steps described above will be reinstalled to automatically determine the optimal disk scheduling strategy currently used by the server and use the disk scheduling strategy.
[0111] This is because if the staff adjusts the disk scheduling strategy through the first adjustment instruction and / or the second adjustment instruction, it means that the server may have specific requirements at present, so the current disk scheduling strategy will continue to be used to ensure that the staff's set requirements can continue to be executed until the flag is restored to the default. For example, when the flag is restored to 0 in the above example, it means that the staff allows the disk scheduling strategy used to be adjusted according to the current business situation.
[0112] In a specific embodiment of the present invention, it may also include:
[0113] After downloading the target scheduling policy from a disk scheduling policy library including a plurality of disk scheduling policies, determining whether the target scheduling policy is a target scheduling policy of a preset target type;
[0114] If yes, an operation of inputting the monitoring data into a parameter value setting model corresponding to the target scheduling strategy is performed;
[0115] If not, the parameters of the target scheduling policy are not updated, and the downloaded target scheduling policy configured with default parameters is used as the disk scheduling policy currently used by the server.
[0116] As can be seen from the above description, in the solution of the present application, the target scheduling strategy is obtained based on the strategy selection model, and then the target parameter information is obtained by using the parameter value setting model, the purpose of the latter is to configure the optimal parameters of the selected target scheduling strategy. This implementation method takes into account that there are many kinds of disk scheduling strategies, and different disk scheduling strategies have different specific strategy contents. For some disk scheduling strategies, after selecting the disk scheduling strategy, when different parameters are adopted within the parameter range required by the strategy, the effect of the disk scheduling strategy is very small, that is, for such a disk scheduling strategy, the significance of adjusting its parameters is not particularly great.
[0117] There are also disk scheduling strategies that do affect server performance when different parameter selections are made. However, some parameter settings in the disk scheduling strategy may have specific requirements. For example, in one scenario, for a priority-based disk scheduling strategy, when the staff sets this disk scheduling strategy in the disk scheduling strategy library, they set disk A to the highest priority to achieve the purpose of "even if there are a lot of IOs accumulated on other disks, the IO of disk A will be given priority". For example, the reason for this setting is that disk A corresponds to a specified important business. If, for example, only the overall performance of the server is considered, in the current situation, after obtaining the target parameter information according to the parameter value setting model, it is necessary to adjust the parameters of this disk scheduling strategy. For example, after the parameter adjustment, disk A is not the highest priority, but the disk with the most IOs accumulated becomes the highest priority to ensure that the server as a whole achieves the current optimal performance under this disk scheduling strategy. It can be seen that although this improves the overall performance of the server, it may not be consistent with the purpose of this disk scheduling strategy.
[0118] Therefore, from the above example, it can be seen that for some disk scheduling strategies, the significance of parameter adjustment is not particularly great, or although adjusting the parameters is beneficial to improving the overall performance of the server, it may not be consistent with the scheduling purpose of the disk scheduling strategy.
[0119] In this regard, in this implementation, after executing step S103, it will first be determined whether the target scheduling strategy is a target scheduling strategy of a preset target type. If so, the operation of step S104 can be performed normally. Accordingly, if the judgment result is no, it means that for the currently obtained target scheduling strategy, there is no need to update the parameters, and the default parameter configuration can be used. Therefore, the downloaded target scheduling strategy with the default parameter configuration can be directly used as the disk scheduling strategy currently used by the server.
[0120] In a specific embodiment of the present invention, it may also include:
[0121] After the target scheduling policy obtained after the update is completed is used as the disk scheduling policy currently used by the server, information is fed back to the management system to reflect the deployment status of the target scheduling policy.
[0122] This implementation takes into account that, according to the principles of the present application, the disk scheduling strategy is often adjusted or the parameters of the disk scheduling strategy are updated. Therefore, in order to avoid errors, after the target scheduling strategy obtained after the update is completed is used as the disk scheduling strategy currently used by the server, information feedback is provided to the management system to reflect the deployment status of the target scheduling strategy. For example, when providing information feedback, it can be specifically provided whether the target scheduling strategy is successfully deployed. In addition, other content can be provided as needed, such as the specific performance indicators of the server after the current target scheduling strategy is adopted.
[0123] In a specific implementation of the present invention, the monitored load data includes the number of read and write requests and the change in the number of read and write requests.
[0124] In the scheme of the present application, the disk scheduling strategy currently used by the server is finally obtained based on the current monitoring data. That is to say, the disk scheduling strategy currently used by the server is mainly to adapt to the current business situation. However, in some occasions, the business will continue to change. In this regard, this implementation method hopes that when selecting the disk scheduling strategy currently used by the server, both the current business situation and the changes in the business should be considered to a certain extent.
[0125] In this regard, when setting the content of monitoring data, the monitored load data includes not only the number of read and write requests, but also the change in the number of read and write requests. The change in the number of read and write requests is an effective reflection of the business change trend.
[0126] By applying the technical solution provided by the embodiment of the present invention, considering that BMC, as an important management component of the server, can conveniently monitor and manage various hardware resources of the server, data including the server's operating status data, disk parameter data, and load data can be monitored as current monitoring data, which is helpful for obtaining the current optimal disk scheduling strategy in the future. In addition, the present application takes into account that the traditional solution mainly relies on fixed rules or experience for setting the disk scheduling strategy. In this regard, in the solution of the present application, a strategy selection model can be used to select the current optimal disk scheduling strategy, that is, the current monitoring data is input into the strategy selection model for strategy selection, and the target scheduling strategy corresponding to the monitoring data output by the strategy selection model is obtained. Then, the target scheduling strategy can be downloaded from the disk scheduling strategy library including multiple disk scheduling strategies. It can be understood that the downloaded target scheduling strategy is the disk scheduling strategy that is most suitable for the current situation determined by the strategy selection model based on the current monitoring data.
[0127] Furthermore, the present application further considers that even for the same disk scheduling strategy, different parameter settings will produce different effects. Therefore, in the present application solution, the currently monitored monitoring data will be input into the parameter value setting model corresponding to the target scheduling strategy, and the target parameter information output by the parameter value setting model will be obtained, so as to update the parameters of the downloaded target scheduling strategy based on the target parameter information, and the target scheduling strategy obtained after the update is completed will be used as the disk scheduling strategy currently used by the server.
[0128] It can be seen that in the solution of the present application, the strategy selection model is used to obtain the optimal disk scheduling strategy that best suits the current situation, and then the parameter value setting model is used to configure the current optimal parameters for this optimal disk scheduling strategy. Ultimately, the solution of the present application effectively realizes the setting of the disk scheduling strategy and is beneficial to ensuring server performance.
[0129] Corresponding to the above method embodiment, the embodiment of the present invention further provides a system for setting a disk scheduling strategy, which can be referred to in correspondence with the above.
[0130] See also Figure 2 FIG. 1 is a schematic diagram of a structure of a disk scheduling strategy setting system in the present invention, including:
[0131] The monitoring module 201 is used to use the currently monitored server operation status data, disk parameter data and load data as current monitoring data;
[0132] The target scheduling strategy determination module 202 is used to input the monitoring data into a strategy selection model for strategy selection, and obtain the target scheduling strategy corresponding to the monitoring data output by the strategy selection model;
[0133] The target scheduling policy downloading module 203 is used to download the target scheduling policy from the disk scheduling policy library including multiple disk scheduling policies;
[0134] The parameter updating module 204 is used to input the monitoring data into the parameter value setting model corresponding to the target scheduling strategy to obtain the target parameter information output by the parameter value setting model;
[0135] The target scheduling policy deployment module 205 is used to update the parameters of the downloaded target scheduling policy based on the target parameter information, and use the target scheduling policy obtained after the update as the disk scheduling policy currently used by the server.
[0136] In a specific implementation of the present invention, a pause update module is also included, which is used to:
[0137] After the target scheduling policy obtained after the update is completed is used as the current disk scheduling policy of the server, the operation of inputting monitoring data into the policy selection model used for policy selection is suspended within the first time period in the future, so that the disk scheduling policy used by the server is not updated within the first time period.
[0138] In a specific embodiment of the present invention, an instruction adjustment module is also included, which is used to:
[0139] When receiving the first adjustment instruction, setting the disk scheduling policy currently used by the server to the disk scheduling policy specified by the first policy adjustment instruction;
[0140] When the second adjustment instruction is received, the parameters of the disk scheduling strategy currently used by the server are adjusted based on the instruction content of the second adjustment instruction.
[0141] In a specific implementation of the present invention, an update confirmation module is also included, which is used to:
[0142] After the target scheduling policy downloading module 203 downloads the target scheduling policy from the disk scheduling policy library including multiple disk scheduling policies, it is determined whether the target scheduling policy is a target scheduling policy of a preset target type;
[0143] If yes, the parameter update module 204 is triggered;
[0144] If not, the parameters of the target scheduling policy are not updated, and the downloaded target scheduling policy configured with default parameters is used as the disk scheduling policy currently used by the server.
[0145] In a specific embodiment of the present invention, an information feedback module is also included, which is used to:
[0146] After the target scheduling policy obtained after the update is completed is used as the disk scheduling policy currently used by the server, information is fed back to the management system to reflect the deployment status of the target scheduling policy.
[0147] In a specific implementation of the present invention, the monitored load data includes the number of read and write requests and the change in the number of read and write requests;
[0148] The disk scheduling policies in the disk scheduling policy library include: priority-based disk scheduling policy, workload-based disk scheduling policy, energy consumption-based disk scheduling policy, hybrid disk scheduling policy, and disk life balance-based disk scheduling policy.
[0149] In a specific implementation of the present invention, the target scheduling strategy determination module 202 is specifically used to:
[0150] Input the monitoring data into a strategy selection model that has been trained for strategy selection, and obtain a target scheduling strategy corresponding to the monitoring data output by the strategy selection model;
[0151] The strategy selection model is deployed in an artificial intelligence processor, the artificial intelligence processor is connected to a baseboard management controller, and the training process of the deployed strategy selection model includes:
[0152] Based on the historical monitoring data, multiple groups of training samples are obtained, and a first-class label is added to each group of training samples; the first-class label indicates the policy type of the disk scheduling policy;
[0153] For each group of training samples, the training samples are input into a preset strategy selection model for strategy selection to train the strategy selection model until the strategy selection model training is completed;
[0154] Accordingly, the parameter updating module 204 is specifically used for:
[0155] Input the monitoring data into a parameter value setting model that has been trained and corresponds to a target scheduling strategy, and obtain target parameter information output by the parameter value setting model;
[0156] The parameter value setting model corresponding to the target scheduling strategy is deployed in the artificial intelligence processor, and the training process of the parameter value setting model corresponding to the target scheduling strategy includes:
[0157] Based on the historical monitoring data, multiple groups of training samples are obtained, and a second type of label is added to each group of training samples; the second type of label represents the parameter selection when the target scheduling strategy is adopted;
[0158] For each group of training samples, the training samples are input into a preset parameter value setting model corresponding to the target scheduling strategy to train the parameter value setting model until the training of the parameter value setting model corresponding to the target scheduling strategy is completed.
[0159] Corresponding to the above method and system embodiments, the embodiments of the present invention further provide a disk scheduling policy setting device, a computer-readable storage medium, and a computer program product, which can be referred to in correspondence with the above.
[0160] See also Figure 3 As shown, the setting device of the disk scheduling strategy may include:
[0161] Memory 301, used for storing computer programs;
[0162] The processor 302 is used to execute a computer program to implement the steps of the method for setting a disk scheduling policy in any of the above embodiments.
[0163] The computer program product includes a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps of the method for setting a disk scheduling policy in any of the above embodiments are implemented.
[0164] See also Figure 4 The computer readable storage medium 40 stores a computer program 41, and when the computer program 41 is executed by the processor, the steps of the method for setting the disk scheduling strategy in any of the above embodiments are implemented. The computer readable storage medium 40 mentioned here includes RAM (Random Access Memory), memory, ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), register, hard disk, removable disk, or any other form of storage medium known in the technical field.
[0165] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0166] Professionals may further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention, and the description of the above embodiments is only used to help understand the technical solution and its core idea of the present invention. It should be pointed out that for ordinary technicians in the technical field, without departing from the principle of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the present invention.
Claims
1. A method for setting a disk scheduling strategy, characterized in that: include: The running status data, disk parameter data and load data of the currently monitored server are used as the current monitoring data; Inputting the monitoring data into a strategy selection model for performing strategy selection, and obtaining a target scheduling strategy corresponding to the monitoring data output by the strategy selection model; Downloading the target scheduling policy from a disk scheduling policy library including multiple disk scheduling policies; Inputting the monitoring data into a parameter value setting model corresponding to the target scheduling strategy to obtain target parameter information output by the parameter value setting model; Based on the target parameter information, the downloaded target scheduling policy is updated with parameters, and the target scheduling policy obtained after the update is completed is used as the disk scheduling policy currently used by the server.
2. The method for setting a disk scheduling strategy according to claim 1, characterized in that: Also includes: After the target scheduling policy obtained after the update is completed is used as the current disk scheduling policy of the server, the operation of inputting the monitoring data into the policy selection model for policy selection is suspended within a first time period in the future, so that the disk scheduling policy used by the server is not updated within the first time period.
3. The method for setting a disk scheduling strategy according to claim 1, characterized in that: Also includes: When receiving the first adjustment instruction, setting the disk scheduling policy currently used by the server to the disk scheduling policy specified by the first policy adjustment instruction; When the second adjustment instruction is received, the parameters of the disk scheduling strategy currently used by the server are adjusted based on the instruction content of the second adjustment instruction.
4. The method for setting a disk scheduling strategy according to claim 1, characterized in that: Also includes: After downloading the target scheduling policy from a disk scheduling policy library including a plurality of disk scheduling policies, determining whether the target scheduling policy is a target scheduling policy of a preset target type; If yes, the operation of inputting the monitoring data into a parameter value setting model corresponding to the target scheduling strategy is performed; If not, the parameters of the target scheduling policy are not updated, and the downloaded target scheduling policy configured with default parameters is used as the disk scheduling policy currently used by the server.
5. The method for setting a disk scheduling strategy according to claim 1, characterized in that: Also includes: After the target scheduling policy obtained after the update is completed is used as the disk scheduling policy currently used by the server, information is fed back to the management system to reflect the deployment status of the target scheduling policy.
6. The method for setting a disk scheduling strategy according to claim 1, characterized in that: The monitored load data includes the number of read and write requests and the change in the number of read and write requests; The disk scheduling policies in the disk scheduling policy library include: priority-based disk scheduling policies, workload-based disk scheduling policies, energy consumption-based disk scheduling policies, hybrid disk scheduling policies, and disk scheduling policies based on disk life balance.
7. The method for setting a disk scheduling strategy according to any one of claims 1 to 6, characterized in that: Inputting the monitoring data into a strategy selection model for performing strategy selection, and obtaining a target scheduling strategy corresponding to the monitoring data output by the strategy selection model, comprising: Inputting the monitoring data into a trained strategy selection model for strategy selection to obtain a target scheduling strategy corresponding to the monitoring data output by the strategy selection model; The strategy selection model is deployed in an artificial intelligence processor, the artificial intelligence processor is connected to the baseboard management controller, and the training process of the deployed strategy selection model includes: Based on the historical monitoring data, multiple groups of training samples are obtained, and a first type of label is added to each group of the training samples; the first type of label represents the policy type of the disk scheduling policy; For each group of the training samples, the training samples are input into a preset strategy selection model for strategy selection to train the strategy selection model until the strategy selection model training is completed; Accordingly, the monitoring data is input into a parameter value setting model corresponding to the target scheduling strategy to obtain target parameter information output by the parameter value setting model, including: Inputting the monitoring data into a trained parameter value setting model corresponding to the target scheduling strategy to obtain target parameter information output by the parameter value setting model; The parameter value setting model corresponding to the target scheduling strategy is deployed in the artificial intelligence processor, and the training process of the parameter value setting model corresponding to the target scheduling strategy includes: Based on the historical monitoring data, multiple groups of training samples are obtained, and a second type of label is added to each group of the training samples; the second type of label represents the parameter selection when the target scheduling strategy is adopted; For each group of the training samples, the training samples are input into a preset parameter value setting model corresponding to the target scheduling strategy to train the parameter value setting model until the training of the parameter value setting model corresponding to the target scheduling strategy is completed.
8. A system for setting a disk scheduling strategy, characterized in that: include: The monitoring module is used to use the currently monitored server operation status data, disk parameter data and load data as current monitoring data; a target scheduling strategy determination module, used for inputting the monitoring data into a strategy selection model for performing strategy selection, and obtaining a target scheduling strategy corresponding to the monitoring data output by the strategy selection model; A target scheduling strategy downloading module, used for downloading the target scheduling strategy from a disk scheduling strategy library including multiple disk scheduling strategies; A parameter updating module, used for inputting the monitoring data into a parameter value setting model corresponding to the target scheduling strategy, and obtaining target parameter information output by the parameter value setting model; The target scheduling strategy deployment module is used to update the parameters of the downloaded target scheduling strategy based on the target parameter information, and use the target scheduling strategy obtained after the update as the disk scheduling strategy currently used by the server.
9. A device for setting a disk scheduling strategy, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program to implement the steps of the method for setting the disk scheduling policy as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for setting a disk scheduling policy according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Parameter configuration adjusting method and device, storage medium and electronic equipment
CN119336278A
Parameter configuration adjustment method, device, storage medium and electronic device
CN119336278B
Disk scheduling method
CN120428922A
A disk scheduling method
CN120428922B
