Working pressure determination method, device, electronic equipment and storage medium
By obtaining the attribute information of the target application and using the workload model to calculate the working pressure of the storage system, it solves the problem of difficulty in evaluating the working pressure of the storage system in the existing technology, provides accurate load assessment and operation and maintenance decision support, and ensures stable operation of the system. .
Patent Information
- Application Number
- CN202210184529.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-25
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-02-25
AI Technical Summary
It is difficult for existing storage systems to accurately assess work pressure, which makes it difficult to analyze and make decisions about business changes in storage systems, especially when evaluating the load impact of new applications and releasing storage business capabilities in a multi-application environment.
By obtaining the attribute information of the target application, determine the workload it occupies the storage system, and calculate the working pressure of the storage system based on the current workload, use the workload model and calibration pressure to determine whether it can bear the load of the new application, and output prompt information for guidance. Operational and maintenance decisions.
It achieves accurate assessment of storage system work pressure, helps operation and maintenance personnel make more informed business change analysis and decisions, and ensures stable operation of the system.
Smart Images

Figure CN114564375B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of storage systems, and in particular to a method and device for determining working pressure, electronic equipment and storage medium. Background Art
[0002] As the complexity of application systems increases, the workload of storage systems occupied by various application systems varies accordingly, and the impact of application systems on storage systems becomes difficult to predict and analyze.
[0003] Currently, a storage system corresponds to multiple front-end host systems and also carries data storage for multiple applications. Different front-end applications occupy different workloads and put different pressures on the storage system.
[0004] When a storage system takes on a new application, can the current storage system fully bear its workload pressure and will it have any impact on other applications? When the storage reduces an application, how much storage business capacity can be released? The impact of these changes on storage is difficult to assess, and it also brings great difficulties to the business change analysis and decision-making of storage operation and maintenance personnel. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a method for determining a working pressure, aiming to solve the problem that the working pressure of a storage system cannot be evaluated.
[0006] According to a first aspect, an embodiment of the present invention provides a method for determining working pressure, comprising:
[0007] Get the attribute information of the target application;
[0008] Determine the target workload of the storage system occupied by the running target application according to the attribute information;
[0009] Determine the working pressure of the storage system based on the target workload and the current workload of the storage system.
[0010] The working pressure determination method provided by the embodiment of the present invention obtains the attribute information of the target application, and determines the target workload of the storage system occupied by the running target application based on the attribute information of the target application, thereby ensuring the accuracy of the determined target workload of the storage system occupied by the running target application. Then, the working pressure of the storage system is determined based on the target workload and the current workload of the storage system, thereby ensuring the accuracy of the determined working pressure of the storage system. Furthermore, it is possible to determine whether the storage system can fully bear the target workload of the target application based on the determined working pressure of the storage system, which brings convenience to the business change analysis and decision-making of storage operation and maintenance personnel.
[0011] In combination with the first aspect, in a first implementation of the first aspect, determining, according to the attribute information, a target workload occupied by running the target application on the storage system includes:
[0012] Obtaining a workload model; the workload model is trained according to sample attribute information;
[0013] The attribute information is input into the workload model, and the target workload occupied by the running target application on the storage system is output.
[0014] The working pressure determination method provided by the embodiment of the present invention obtains a workload model, and the workload model is trained based on sample attribute information, thereby ensuring the accuracy of the workload model. Then, the attribute information is input into the workload model, and the target workload of the storage system occupied by the running target application is output. The accuracy of the output target workload of the storage system occupied by the target application is ensured, thereby achieving the target workload corresponding to the target application that can be determined without running the target application in the storage system, which brings convenience to the business change analysis and decision-making of storage operation and maintenance personnel.
[0015] In combination with the first aspect, in a second implementation of the first aspect, acquiring attribute information of the target application includes:
[0016] Get the type of the target application;
[0017] According to the type of the target application, the attribute information corresponding to the target application is determined.
[0018] The working pressure determination method provided by the embodiment of the present invention obtains the type of the target application, and then determines the attribute information corresponding to the target application according to the type of the target application, thereby ensuring the accuracy of the acquired attribute information corresponding to the target application.
[0019] In combination with the second implementation of the first aspect, in the third implementation of the first aspect, determining attribute information corresponding to the target application according to the type of the target application includes:
[0020] Get the working mode of the target application;
[0021] According to the type and working mode of the target application, the attribute information corresponding to the target application is determined.
[0022] The working pressure determination method provided by the embodiment of the present invention obtains the working mode of the target application, and then determines the attribute information corresponding to the target application according to the type and working mode of the target application, thereby ensuring the accuracy of the acquired attribute information corresponding to the target application.
[0023] In combination with the first aspect, in a fourth implementation of the first aspect, when a target application is added, determining the working pressure of the storage system according to the target workload and the current workload of the storage system includes:
[0024] Use the target workload plus the current workload to determine the operating stress of the storage system.
[0025] The working pressure determination method provided in the embodiment of the present invention determines the working pressure of the storage system by adding the target workload to the current workload when adding the target application, thereby ensuring the accuracy of the determined working pressure of the storage system. Furthermore, it is possible to determine whether the storage system can fully bear the target workload of the target application based on the determined working pressure of the storage system, thereby facilitating the business change analysis and decision-making of storage operation and maintenance personnel.
[0026] In combination with the fourth implementation manner of the first aspect, in the fifth implementation manner of the first aspect, after determining the working pressure of the storage system, the method further includes:
[0027] Obtain the calibrated pressure of the storage system;
[0028] If the working pressure of the storage system is less than or equal to the calibrated pressure, the target application is allowed to run;
[0029] If the working pressure of the storage system is greater than the calibrated pressure, a prompt message is output.
[0030] The working pressure determination method provided by the embodiment of the present invention obtains the calibrated pressure of the storage system. If the working pressure of the storage system is less than or equal to the calibrated pressure, it means that the storage system can fully bear the target workload of the target application, and the target application is allowed to run; if the working pressure of the storage system is greater than the calibrated pressure, it means that the storage system cannot fully bear the target workload of the target application, and a prompt message is output. The prompt message is used to indicate that the storage system cannot fully bear the target workload of the target application, and the target application is prohibited from running in the storage system. This facilitates the business change analysis and decision-making of storage operation and maintenance personnel.
[0031] In combination with the first aspect, in a sixth implementation of the first aspect, when deleting the target application, determining the working pressure of the storage system according to the target workload and the current workload of the storage system includes:
[0032] Determine the operating stress of the storage system by subtracting the current workload from the target workload.
[0033] The working pressure determination method provided by the embodiment of the present invention determines the working pressure of the storage system by subtracting the current workload from the target workload when the target application is deleted. This ensures the accuracy of the determined working pressure of the storage system, and further enables the storage service capacity released by the storage system to be accurately determined.
[0034] According to a second aspect, an embodiment of the present invention further provides a working pressure determination device, comprising:
[0035] An acquisition module is used to obtain attribute information corresponding to the target application;
[0036] A first determination module is used to determine a target workload of the storage system occupied by running the target application according to the attribute information;
[0037] The second determination module is used to determine the working pressure of the storage system according to the target workload and the current workload of the storage system.
[0038] The working pressure determination device provided in the embodiment of the present invention obtains the attribute information of the target application, and determines the target workload of the storage system occupied by the running target application according to the attribute information of the target application, so as to ensure the accuracy of the determined target workload of the storage system occupied by the running target application. Then, the working pressure of the storage system is determined according to the target workload and the current workload of the storage system, so as to ensure the accuracy of the determined working pressure of the storage system. Furthermore, it can be determined whether the storage system can fully bear the target workload of the target application according to the determined working pressure of the storage system, which brings convenience to the business change analysis and decision-making of the storage operation and maintenance personnel.
[0039] According to the third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the working pressure determination method in the first aspect or any one of the embodiments of the first aspect by executing the computer instructions.
[0040] According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute the working pressure determination method in the first aspect or any one of the embodiments of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 is a flow chart of a method for determining working pressure provided by an embodiment of the present invention;
[0043] Figure 2 is a flow chart of a method for determining working pressure provided by another embodiment of the present invention;
[0044] Figure 3 is a flow chart of a method for determining working pressure provided by another embodiment of the present invention;
[0045] Figure 4 is a flow chart of a method for determining working pressure provided by another embodiment of the present invention;
[0046] Figure 5 It is a functional module diagram of a working pressure determination device provided by an embodiment of the present invention;
[0047] Figure 6 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0049] It should be noted that the method for determining work pressure provided in the embodiment of the present application may be executed by a device for determining work pressure, and the device for determining work pressure may be implemented as part or all of a computer device through software, hardware, or a combination of software and hardware, wherein the computer device may be a server or a terminal, wherein the server in the embodiment of the present application may be a single server or a server cluster composed of multiple servers, and the terminal in the embodiment of the present application may be a smart phone, a personal computer, a tablet computer, a wearable device, an intelligent robot, or other intelligent hardware devices. In the following method embodiments, the execution subject is an electronic device as an example for explanation.
[0050] In one embodiment of the present application, Figure 1 As shown, a method for determining working pressure is provided, and the method is used as an example for explanation, comprising the following steps:
[0051] S11. Obtain attribute information of the target application.
[0052] Specifically, the electronic device may receive the attribute information of the target application input by the user, may receive the attribute information of the target application sent by other devices, and may determine the attribute information of the target application by querying a list of relationships between the application name and the attribute information according to the name of the target application.
[0053] The attribute information of the target application includes, but is not limited to, read and write IOPS (Input / Output Operations Per Second), average read and write IO size, average latency, bandwidth, storage pool capacity, compression ratio, etc.
[0054] The electronic device may be an electronic device in the storage system or an electronic device connected to the storage system. The embodiment of the present application does not specifically limit the electronic system.
[0055] S12. Determine, based on the attribute information, a target workload of the storage system occupied by the running target application.
[0056] In an optional implementation, the electronic device can determine the workload of the storage system occupied by the running target application corresponding to each attribute according to each attribute included in the attribute information of the target application. Then, the workload of the storage system occupied by the running target application corresponding to each attribute is added to obtain the target workload of the storage system occupied by the running target application.
[0057] Exemplarily, the electronic device can determine the workload of the running target application occupied by the storage system corresponding to the read and write IOPS of the target application based on the read and write IOPS included in the attribute information; then, determine the workload of the running target application occupied by the storage system corresponding to the average read and write IO size of the target application based on the average read and write IO size included in the attribute information; determine the workload of the running target application occupied by the storage system corresponding to the average latency of the target application based on the average latency included in the attribute information, ... The electronic device adds the workload of the running target application occupied by the storage system corresponding to each type of attribute to obtain the target workload of the running target application occupied by the storage system.
[0058] S13. Determine the working pressure of the storage system according to the target workload and the current workload of the storage system.
[0059] Specifically, after determining the target workload of the storage system occupied by the running target application, the electronic device can obtain the current workload of the storage system. The electronic device can receive the current workload of the storage system input by the user, or can receive the current workload sent by the storage system, or can obtain the current workload of the storage system by reading the current workload of the storage system.
[0060] Then, the electronic device determines the working pressure of the storage system according to the target workload and the current workload of the storage system.
[0061] The working pressure of the storage system may be expressed in percentages, with 100 indicating that the upper limit of the pressure has been reached. For example, the current working pressure is 80.
[0062] This step will be described in detail below.
[0063] The working pressure determination method provided by the embodiment of the present invention obtains the attribute information of the target application, and determines the target workload of the storage system occupied by the running target application based on the attribute information of the target application, thereby ensuring the accuracy of the determined target workload of the storage system occupied by the running target application. Then, the working pressure of the storage system is determined based on the target workload and the current workload of the storage system, thereby ensuring the accuracy of the determined working pressure of the storage system. Furthermore, it is possible to determine whether the storage system can fully bear the target workload of the target application based on the determined working pressure of the storage system, which brings convenience to the business change analysis and decision-making of storage operation and maintenance personnel.
[0064] In one embodiment of the present application, Figure 2 As shown, a method for determining working pressure is provided, which is described by taking the method applied to electronic equipment as an example, and includes the following steps:
[0065] S21. Obtain attribute information of the target application.
[0066] In an optional implementation manner of the present application, the above S21 “obtaining attribute information of the target application” may include the following steps:
[0067] S211. Obtain the type of the target application.
[0068] Specifically, the electronic device may receive the type of the target application input by the user, may receive the type of the target application sent by other devices, and may determine the type of the target application according to the name of the target application.
[0069] The types of target applications may include but are not limited to SAP, SAP-HANA, MYSQL, VDI, Oracle, Excharge, etc.
[0070] S212: Determine attribute information corresponding to the target application according to the type of the target application.
[0071] Specifically, after acquiring the type of the target application, the electronic device determines the attribute information corresponding to the target application according to the type of the target application.
[0072] In an optional implementation manner of the present application, the above S212 “determining attribute information corresponding to the target application according to the type of the target application” may also include the following steps:
[0073] (1) Obtain the working mode of the target application.
[0074] Specifically, the electronic device may receive the operating mode of the target application input by the user, and may also receive the operating mode of the target application sent by other devices.
[0075] The working mode of the target application is related to the target workload occupied by running the target application, including but not limited to small, typical, large and other working modes.
[0076] Exemplarily, when the working mode of the target application is small, the target workload occupied by running the target application is small; when the working mode of the target application is typical, the target workload occupied by running the target application is moderate; when the working mode of the target application is large, the target workload occupied by running the target application is large.
[0077] (2) Determine the attribute information corresponding to the target application based on the type and working mode of the target application.
[0078] In an optional implementation, the electronic device may query the database for candidate attribute information corresponding to the target application according to the type and working mode of the target application, and determine the queried candidate attribute information as the attribute information corresponding to the target application.
[0079] In another optional implementation, after the electronic device queries the database for alternative attribute information corresponding to the target application according to the type and working mode of the target application, the alternative attribute information can be output to the user. The user can modify the alternative attribute information according to actual conditions and input the modified attribute information into the electronic device, so that the electronic device obtains the attribute information corresponding to the target application.
[0080] S22. Determine, based on the attribute information, a target workload of the storage system occupied by the running target application.
[0081] In an optional implementation manner of the present application, the above S22 “determining, according to the attribute information, the target workload of the storage system occupied by the running target application” may include the following steps:
[0082] S221. Obtain a workload model.
[0083] The workload model is trained based on sample attribute information.
[0084] In an optional implementation, the electronic device may receive a workload model input by a user, or may receive a workload model sent by other devices.
[0085] In another optional implementation, the electronic device may establish a cloud platform to connect to a large number of storage systems, obtain multiple applications actually running in the storage systems, determine the attribute information of each application, and determine the workload occupied by each application in the corresponding storage system.
[0086] The electronic device generates sample attribute information according to the acquired attribute information of each application and the workload occupied by each application in the corresponding storage system.
[0087] The electronic device trains the workload network based on the sample attribute information to obtain a workload model. The workload network may be a machine learning network, wherein the machine learning network is an Xgboost / linear regression network, etc. The embodiment of the present application does not specifically limit the workload network.
[0088] S222: Input the attribute information into the workload model, and output the target workload occupied by the running target application in the storage system.
[0089] Specifically, the electronic device inputs the attribute information into the workload model, the workload model performs feature recognition on the attribute information, and then outputs the target workload of the storage system occupied by the running target application based on the recognized features.
[0090] S23. Determine the working pressure of the storage system according to the target workload and the current workload of the storage system.
[0091] For more information about this step, see Figure 1 The introduction of S13 will not be repeated here.
[0092] The working pressure determination method provided by the embodiment of the present invention obtains the type of the target application and the working mode of the target application, and then determines the attribute information corresponding to the target application according to the type and working mode of the target application, thereby ensuring the accuracy of the acquired attribute information corresponding to the target application. Then, the workload model is obtained, and the workload model is trained according to the sample attribute information, thereby ensuring the accuracy of the workload model. Then, the attribute information is input into the workload model, and the target workload of the storage system occupied by the running target application is output. The accuracy of the output target workload of the storage system occupied by the target application is guaranteed, thereby achieving the target workload corresponding to the target application that can be determined without running the target application in the storage system, which brings convenience to the business change analysis and decision-making of storage operation and maintenance personnel.
[0093] In one embodiment of the present application, Figure 3 As shown, a method for determining working pressure is provided, which is described by taking the method applied to electronic equipment as an example, and includes the following steps:
[0094] S31. Obtain attribute information of the target application.
[0095] For more information about this step, see Figure 2 The introduction of S21 will not be repeated here.
[0096] S32. Determine, based on the attribute information, a target workload of the storage system occupied by the running target application.
[0097] For more information about this step, see Figure 2 The introduction of S22 will not be repeated here.
[0098] S33. Determine the working pressure of the storage system according to the target workload and the current workload of the storage system.
[0099] In an optional implementation manner of the present application, when a target application is added, the above S33 “determining the working pressure of the storage system according to the target workload and the current workload of the storage system” may include the following steps:
[0100] S331. Determine the working pressure of the storage system by adding the target workload to the current workload.
[0101] Specifically, the electronic device determines the working pressure of the storage system by adding the target workload to the current workload.
[0102] For example, assuming that the target workload of the target application on the storage system is 8, and the current workload of the storage system is 80, the operating pressure of the storage system is determined to be 88 by adding the target workload to the current workload.
[0103] S34. Obtain the calibrated pressure of the storage system.
[0104] Specifically, after determining the working pressure of the storage system, the electronic device may obtain the calibrated pressure of the storage system.
[0105] Optionally, the electronic device may receive a calibrated pressure of the storage system input by a user, may receive a calibrated pressure sent by the storage system, or may receive a calibrated pressure of the storage system sent by other devices.
[0106] S35. If the working pressure of the storage system is less than or equal to the calibrated pressure, the target application is allowed to run.
[0107] Specifically, after the electronic device obtains the working pressure and the calibrated pressure of the storage system, the working pressure of the storage system can be compared with the calibrated pressure. When the working pressure of the storage system is less than or equal to the calibrated pressure, it is determined that the storage system can fully bear the target workload of the target application, and the target application is allowed to run.
[0108] S36: If the working pressure of the storage system is greater than the calibrated pressure, a prompt message is output.
[0109] Specifically, if the working pressure of the storage system is greater than the calibrated pressure, it means that the storage system cannot fully bear the target workload of the target application, and a prompt message is output. The prompt message is used to indicate that the storage system cannot fully bear the target workload of the target application, and the target application is prohibited from running in the storage system.
[0110] The working pressure determination method provided in the embodiment of the present invention determines the working pressure of the storage system by adding the target workload to the current workload when adding a target application, thereby ensuring the accuracy of the determined working pressure of the storage system. Then, the calibrated pressure of the storage system is obtained. If the working pressure of the storage system is less than or equal to the calibrated pressure, it means that the storage system can fully bear the target workload of the target application, and the target application is allowed to run; if the working pressure of the storage system is greater than the calibrated pressure, it means that the storage system cannot fully bear the target workload of the target application, and a prompt message is output. The prompt message is used to indicate that the storage system cannot fully bear the target workload of the target application, and it is prohibited to run the target application in the storage system. This facilitates the business change analysis and decision-making of storage operation and maintenance personnel.
[0111] In one embodiment of the present application, Figure 4 As shown, a method for determining working pressure is provided, which is described by taking the method applied to electronic equipment as an example, and includes the following steps:
[0112] S41. Obtain attribute information of the target application.
[0113] S42. Determine, based on the attribute information, a target workload of the storage system occupied by the running target application.
[0114] S43: Determine the working pressure of the storage system according to the target workload and the current workload of the storage system.
[0115] In an optional implementation manner of the present application, when deleting the target application, the above S43 “determining the working pressure of the storage system according to the target workload and the current workload of the storage system” may include the following steps:
[0116] S431. Determine the working pressure of the storage system by subtracting the current workload from the target workload.
[0117] Specifically, the electronic device determines the working pressure of the storage system by subtracting the current workload from the target workload.
[0118] For example, assuming that the target workload of the target application on the storage system is 8, and the current workload of the storage system is 80, the target workload plus the current workload is used to determine that the operating pressure of the storage system is 72.
[0119] The working pressure determination method provided by the embodiment of the present invention determines the working pressure of the storage system by subtracting the current workload from the target workload when the target application is deleted. This ensures the accuracy of the determined working pressure of the storage system, and further enables the storage service capacity released by the storage system to be accurately determined.
[0120] It should be understood that although Figure 1-4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-4 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0121] like Figure 5 As shown, this embodiment provides a working pressure determination device, comprising:
[0122] The acquisition module 51 is used to acquire the attribute information corresponding to the target application.
[0123] The first determination module 52 is used to determine the target workload of the storage system occupied by the running target application according to the attribute information.
[0124] The second determination module 53 is used to determine the working pressure of the storage system according to the target workload and the current workload of the storage system.
[0125] In one embodiment of the present application, the above-mentioned first determination module 52 is specifically used to obtain a workload model; the workload model is trained based on sample attribute information; the attribute information is input into the workload model, and the target workload occupied by the running target application in the storage system is output.
[0126] In one embodiment of the present application, the acquisition module 51 is specifically used to acquire the type of the target application; and determine the attribute information corresponding to the target application according to the type of the target application.
[0127] In one embodiment of the present application, the acquisition module 51 is specifically used to acquire the working mode of the target application; and determine the attribute information corresponding to the target application according to the type and working mode of the target application.
[0128] In one embodiment of the present application, when a target application is added, the second determination module 53 is specifically configured to determine the working pressure of the storage system by adding the target workload to the current workload.
[0129] In one embodiment of the present application, when a target application is added, the above-mentioned second determination module 53 is also used to obtain the calibrated pressure of the storage system; if the working pressure of the storage system is less than or equal to the calibrated pressure, the target application is allowed to run; if the working pressure of the storage system is greater than the calibrated pressure, a prompt message is output.
[0130] In one embodiment of the present application, when the target application is deleted, the second determination module 53 is specifically configured to determine the operating pressure of the storage system by subtracting the current workload from the target workload.
[0131] The specific definition and beneficial effects of the working pressure determination device can be found in the definition of the working pressure determination method above, which will not be repeated here. Each module in the above working pressure determination device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above modules can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0132] The embodiment of the present invention also provides an electronic device having the above Figure 5 The working pressure determination device shown.
[0133] like Figure 6 As shown, Figure 6 is a schematic diagram of the structure of an electronic device provided by an optional embodiment of the present invention, such as Figure 6 As shown, the electronic device may include: at least one processor 61, such as a CPU (Central Processing Unit), at least one communication interface 63, a memory 64, and at least one communication bus 62. The communication bus 62 is used to realize the connection and communication between these components. The communication interface 63 may include a display screen (Display), a keyboard (Keyboard), and the optional communication interface 63 may also include a standard wired interface and a wireless interface. The memory 64 may be a high-speed RAM memory (Random Access Memory) or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 64 may optionally be at least one storage device located away from the aforementioned processor 61. The processor 61 may be combined with Figure 5 In the described device, the memory 64 stores an application program, and the processor 61 calls the program code stored in the memory 64 to execute any of the above method steps.
[0134] The communication bus 62 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The communication bus 62 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0135] Among them, the memory 64 may include a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviated: RAM); the memory may also include a non-volatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk drive (English: hard disk drive, abbreviated: HDD) or a solid-state drive (English: solid-state drive, abbreviated: SSD); the memory 64 may also include a combination of the above types of memory.
[0136] The processor 61 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and a NP.
[0137] The processor 61 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0138] Optionally, the memory 64 is also used to store program instructions. The processor 61 can call the program instructions to implement the present application Figures 1 to 4 The working pressure determination method shown in the embodiment.
[0139] The embodiment of the present invention further provides a non-transitory computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the working pressure determination method in any of the above method embodiments. The storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above types of memory.
[0140] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for determining work pressure, It is characterized in that include: Get the attribute information of the target application; Determine, according to the attribute information, a target workload of the storage system occupied by running the target application; Determining a working pressure of the storage system according to the target workload and a current workload of the storage system; The step of obtaining the attribute information of the target application includes: Obtaining the type of the target application; Determining the attribute information corresponding to the target application according to the type of the target application; Wherein, determining the attribute information corresponding to the target application according to the type of the target application includes: Obtaining the working mode of the target application; Determining the attribute information corresponding to the target application according to the type of the target application and the working mode; Wherein, when the target application is added, determining the working pressure of the storage system according to the target workload and the current workload of the storage system includes: Determine the working pressure of the storage system by adding the target workload to the current workload; After determining the working pressure of the storage system, the method further includes: Obtaining a calibrated pressure of the storage system; If the working pressure of the storage system is less than or equal to the calibrated pressure, allowing the target application to run; If the working pressure of the storage system is greater than the calibrated pressure, a prompt message is output.
2. The method according to claim 1, It is characterized in that The determining, according to the attribute information, a target workload of the storage system occupied by running the target application includes: Obtaining a workload model; the workload model is trained according to sample attribute information; The attribute information is input into the workload model, and the target workload occupied by running the target application on the storage system is output.
3. The method according to claim 1, It is characterized in that When the target application is deleted, determining the working pressure of the storage system according to the target workload and the current workload of the storage system includes: The operating pressure of the storage system is determined by subtracting the current workload from the target workload.
4. A device for determining working pressure, It is characterized in that include: an acquisition module, configured to acquire attribute information corresponding to a target application; wherein the acquiring the attribute information of the target application comprises: acquiring the type of the target application; and determining the attribute information corresponding to the target application according to the type of the target application; wherein the determining the attribute information corresponding to the target application according to the type of the target application comprises: acquiring the working mode of the target application; and determining the attribute information corresponding to the target application according to the type of the target application and the working mode; A first determination module is used to determine a target workload of the storage system occupied by running the target application according to the attribute information; A second determination module is used to determine the working pressure of the storage system according to the target workload and the current workload of the storage system; wherein, when the target application is added, the working pressure of the storage system is determined according to the target workload and the current workload of the storage system, including: determining the working pressure of the storage system by adding the target workload to the current workload; wherein, after determining the working pressure of the storage system, the device further includes: obtaining a calibrated pressure of the storage system; if the working pressure of the storage system is less than or equal to the calibrated pressure, allowing the target application to run; if the working pressure of the storage system is greater than the calibrated pressure, outputting a prompt message.
5. An electronic device, It is characterized in that The system comprises a memory and a processor, wherein the memory stores computer instructions, and the processor executes the working pressure determination method according to any one of claims 1 to 3 by executing the computer instructions.
6. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the working pressure determination method according to any one of claims 1 to 3.
