Mirror cache system monitoring method and device
By dividing the working modes and setting threshold monitoring in the image caching system, the problem of low monitoring accuracy of the image caching system is solved, enabling timely detection and appropriate response to anomalies, and ensuring stable system operation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INSPUR SUZHOU INTELLIGENT TECH CO LTD
- Filing Date
- 2023-02-28
- Publication Date
- 2026-04-17
AI Technical Summary
In existing technologies, the accuracy of monitoring in mirror caching systems is low when the controller is abnormal, which causes the mirror caching system to be unable to support front-end business normally.
By dividing the working mode in the image caching system, obtaining the real-time performance under different modes, and setting preset thresholds, the working mode is switched or alarm information is output when the performance is lower than the threshold, thereby realizing real-time monitoring of the image caching system.
It improves the monitoring accuracy of the mirror caching system, enabling timely detection of anomalies and appropriate switching or prompting of working modes to ensure normal system operation.
Smart Images

Figure CN116302805B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computers, and more specifically, to a monitoring method and apparatus for a mirror caching system. Background Technology
[0002] In existing technologies, for array storage, such as high-end array storage, a multi-controller cache mirroring method is usually used to achieve redundancy protection at the controller level. When a controller fails, the controller with the cache mirror will write the cached data to the non-volatile medium of the back-end disk array to achieve the purpose of protecting the data.
[0003] However, in the existing technology, when the controller malfunctions, the image caching system may be unable to support the front-end business normally, which in turn leads to the technical problem of low monitoring accuracy of the image caching system. Summary of the Invention
[0004] This application provides a monitoring method and apparatus for a mirror caching system, which at least solves the problem of low monitoring accuracy in related technologies for monitoring mirror caching systems.
[0005] According to one embodiment of this application, a monitoring method for a mirror caching system is provided, comprising: when the mirror caching system is in a first working mode, acquiring a first real-time performance of the mirror caching system, wherein the first real-time performance is used to characterize the real-time performance of mirror cache synchronization performed through the mirror caching system; in response to the first real-time performance being less than a first preset threshold, controlling the mirror caching system to switch to a second working mode; when the mirror caching system is in the second working mode, acquiring a second real-time performance of the mirror caching system, wherein the second real-time performance is used to characterize the real-time performance of dirty data write-to-disk performed through the mirror caching system; and in response to the first real-time performance being less than a second preset threshold, or the second real-time performance being less than a third preset threshold, outputting alarm information, wherein the alarm information is used to characterize an anomaly in the mirror caching system.
[0006] In an exemplary embodiment, in response to a first real-time performance being less than a second preset threshold, or a second real-time performance being less than a third preset threshold, an alarm message is output, including: in response to the first real-time performance being less than the second preset threshold, outputting a first alarm message, wherein the first alarm message is used to characterize an abnormal front-end pressure of the image caching system; and in response to the second real-time performance being less than the third preset threshold, outputting a second alarm message, wherein the second alarm message is used to characterize an abnormality of the system disk of the image caching system.
[0007] In one exemplary embodiment, in response to a first real-time performance being less than a second preset threshold, the method further includes: controlling the front-end pressure of the mirror caching system to be less than or equal to the first preset pressure.
[0008] In an exemplary embodiment, in response to a second real-time performance being less than a third preset threshold, the method further includes: outputting a first prompt message, wherein the first prompt message is used to prompt the system disk to be replaced.
[0009] In one exemplary embodiment, the method further includes: in response to the front-end pressure of the image caching system being less than a second preset pressure, testing the image caching system to obtain test results, wherein the test results are used to characterize whether the image caching system is normal; in response to an anomaly in the image caching system, updating the preset performance parameters of the image caching system to obtain target performance parameters; and determining a first preset threshold, a second preset threshold, and a third preset threshold based on the target performance parameters.
[0010] In an exemplary embodiment, the preset performance parameters include: a first preset performance and a second preset performance. Testing the image caching system to obtain test results includes: acquiring the first test performance and the second test performance of the image caching system, wherein the first test performance characterizes the real-time performance of image cache synchronization via the image caching system during the test, and the second test performance characterizes the real-time performance of dirty data write-to-disk in the image caching system during the test; obtaining a first performance difference based on the first test performance and the first preset performance, and obtaining a second performance difference based on the second test performance and the second preset performance; determining the test result as normal for the image caching system in response to the first performance difference being less than the first preset difference and the second performance difference being less than the second preset difference; and determining the test result as abnormal for the image caching system in response to the first performance difference being greater than or equal to the first preset difference, or the second performance difference being greater than or equal to the second preset difference.
[0011] In an exemplary embodiment, in response to an anomaly in the image caching system, the method further includes: retesting the image caching system a preset number of times to obtain test results for the preset number of times; and updating the first preset performance based on the first test performance in response to the fact that the test results for the preset number of times are all the same.
[0012] In one exemplary embodiment, the method further includes: in response to the fact that the test results are the same for a preset number of times, outputting a third alarm message and a second prompt message, wherein the third alarm message is used to characterize an abnormality of the preset performance parameter, and the second prompt message is used to prompt the preset performance parameter to be updated.
[0013] In one exemplary embodiment, the method further includes: in response to the mirror caching system being normal, controlling a preset performance parameter to remain unchanged; and determining a first preset threshold, a second preset threshold, and a third preset threshold based on the preset performance parameter.
[0014] In one exemplary embodiment, the method further includes: in response to a first real-time performance being less than a first preset threshold, outputting a fourth alarm message and a third prompt message, wherein the fourth alarm message is used to characterize an abnormal working mode of the image caching system, and the third prompt message is used to prompt whether to control the image caching system to switch to a second working mode.
[0015] According to another embodiment of this application, a monitoring device for a mirror caching system is provided, comprising: a first acquisition module, configured to acquire a first real-time performance of the mirror caching system when the mirror caching system is in a first working mode, wherein the first real-time performance is used to characterize the real-time performance of mirror cache synchronization performed through the mirror caching system; a switching module, configured to control the mirror caching system to switch to a second working mode in response to the first real-time performance being less than a first preset threshold; a second acquisition module, configured to acquire a second real-time performance of the mirror caching system when the mirror caching system is in the second working mode, wherein the second real-time performance is used to characterize the real-time performance of dirty data write-to-disk through the mirror system; and an output module, configured to output alarm information in response to the first real-time performance being less than a second preset threshold, or the second real-time performance being less than a third preset threshold, wherein the alarm information is used to characterize an anomaly in the mirror caching system.
[0016] According to yet another embodiment of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to execute the steps in any of the above-described embodiments of the monitoring method for the image caching system when it is run.
[0017] According to yet another embodiment of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any of the above-described embodiments of the monitoring method for the mirror caching system.
[0018] This application enables timely monitoring of the mirror caching system by dividing its operating modes. Furthermore, by monitoring the mirror caching performance and dirty data write-to-disk performance under different operating modes, it achieves accurate monitoring of the mirror caching system. Therefore, it solves the problem of low monitoring accuracy in related technologies and improves the monitoring accuracy of the mirror caching system. Attached Figure Description
[0019] Figure 1 This is a hardware structure block diagram of a mobile terminal for a monitoring method of a mirror caching system according to an embodiment of this application;
[0020] Figure 2This is a flowchart of a monitoring method for a mirror caching system according to an embodiment of this application;
[0021] Figure 3 This is a structural block diagram of an optional mirror caching system according to an embodiment of this application;
[0022] Figure 4 This is a structural block diagram of a monitoring device for a mirror caching system according to an embodiment of this application. Detailed Implementation
[0023] The embodiments of this application will be described in detail below with reference to the accompanying drawings and examples.
[0024] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0025] The methods and embodiments provided in this application can be executed on a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a monitoring method of a mirror caching system according to an embodiment of this application. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0026] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the monitoring method of the mirror caching system in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thus implementing the above-described method. The memory 104 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0027] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.
[0028] This embodiment provides a method that runs on the aforementioned mobile terminal. Figure 2 This is a flowchart of a monitoring method for a mirror caching system according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps:
[0029] Step S202: When the image caching system is in the first working mode, obtain the first real-time performance of the image caching system, wherein the first real-time performance is used to characterize the real-time performance of image caching synchronization through the image caching system.
[0030] The aforementioned mirrored caching system can be a system that stores an exact copy of data from one disk on another disk. The first operating mode mentioned above can be the initial operating mode of the mirrored caching system pre-configured by the user; for example, it could be normal mode, but it is not limited to this. The specific mode can be set by the user according to actual needs. The first real-time performance mentioned above can be the synchronous real-time performance of each module in the mirrored caching system when obtaining the current business model, which can be represented as A, but is not limited to this.
[0031] In an optional embodiment, when the current array needs to be stored, it can first be determined whether the mirror caching system is in the first working mode. When it is determined that the mirror caching system is in the first working mode, the first real-time performance of the mirror caching system can be obtained. The first real-time performance can be the real-time performance of mirror cache synchronization through the mirror caching system.
[0032] In step S204, in response to the first real-time performance being less than the first preset threshold, the mirror caching system is controlled to switch to the second working mode.
[0033] The aforementioned first preset threshold can be set by the user in advance to determine whether the first real-time performance meets the requirements of the first working mode of the mirror caching system. It can be expressed as C1*M1, but is not limited to this. Here, C1 represents the theoretical performance of mirror cache synchronization in the mirror caching system, and M1 can be a percentage set by the user in advance. The specific value can be set by the user according to actual needs. In this embodiment, 75% is used as an example, but it is not limited to this. The aforementioned second working mode can be a working mode set by the user in advance that places higher demands on the mirror caching system. It can be a high-reliability mode, but is not limited to this. In the second working mode, the mirror caching system has a lower fault tolerance rate for sudden failures, so fault prediction is necessary.
[0034] In one optional embodiment, when the first real-time performance of the image caching system is less than a first preset threshold, it indicates that the first real-time performance of the image caching system does not meet the requirements of the first working mode. At this time, the working mode of the image caching system can be switched to the second working mode.
[0035] Step S206: When the mirror caching system is in the second working mode, obtain the second real-time performance of the mirror caching system, wherein the second real-time performance is used to characterize the real-time performance of writing dirty data to disk through the mirror caching system.
[0036] The aforementioned second real-time performance can be the real-time performance of each module in the mirror caching system when it obtains dirty data and writes it to disk, which can be represented as B, but is not limited to this.
[0037] In one optional embodiment, when the image caching system switches to the second working mode, the second real-time performance of the image caching system can be obtained, wherein the second real-time performance may be the real-time performance of writing dirty data to disk through the image caching system.
[0038] Step S208: In response to the first real-time performance being less than the second preset threshold, or the second real-time performance being less than the third preset threshold, an alarm message is output, wherein the alarm message is used to indicate that an anomaly has occurred in the image caching system.
[0039] The aforementioned second preset threshold can be a threshold set by the user in advance to determine whether the first real-time performance of the image caching system meets the requirements of the second working mode. It can be expressed as C1*M2, but is not limited to this. M2 is a percentage set by the user in advance; the specific value can be set by the user according to actual needs. In this embodiment, 80% is used as an example, but it is not limited to this. The aforementioned third preset threshold can be a threshold set by the user in advance to determine whether the second real-time performance of the image caching system meets the requirements of the second working mode. It can be expressed as D1*M3, but is not limited to this. D1 represents the theoretical performance of dirty data write-to-disk in the image caching system, and M3 is a percentage set by the user in advance; the specific value can be set by the user according to actual needs. In this embodiment, 90% is used as an example, but it is not limited to this. The aforementioned alarm information can be any one or more, reflecting information indicating an anomaly in the image caching system, and can include, but is not limited to: voice, text, video, images, etc.
[0040] In one optional embodiment, when the working mode of the mirror caching system switches to the second working mode, it can be determined whether the first real-time performance is less than the second preset threshold, and it can also be determined simultaneously whether the second real-time performance is less than the third preset threshold. When the first real-time performance is less than the second preset threshold, or the second real-time performance is less than the third preset threshold, it indicates that the mirror caching system has malfunctioned. At this time, alarm information can be output through voice, text, video, etc. For example, the alarm information "The mirror caching system has malfunctioned, please handle it in time" can be broadcast by voice, or the alarm information "The mirror caching system has malfunctioned, please handle it in time" can be displayed by the display module in the mirror caching system, or the alarm information "The mirror caching system has malfunctioned, please handle it in time" can be output by both voice and text at the same time, but it is not limited to these.
[0041] Through the above steps, the working modes of the image caching system can be divided, achieving the goal of timely monitoring of the image caching system. Furthermore, by monitoring the image caching performance and dirty data disk persistence performance under different working modes, the goal of accurate monitoring of the image caching system can be achieved. Therefore, the problem of low monitoring accuracy of image caching systems in related technologies can be solved, and the monitoring accuracy of image caching systems can be improved.
[0042] The entity performing the above steps can be a terminal or a server, but is not limited to these.
[0043] In an exemplary embodiment, in response to a first real-time performance being less than a second preset threshold, or a second real-time performance being less than a third preset threshold, an alarm message is output, including: in response to the first real-time performance being less than the second preset threshold, outputting a first alarm message, wherein the first alarm message is used to characterize an abnormal front-end pressure of the image caching system; and in response to the second real-time performance being less than the third preset threshold, outputting a second alarm message, wherein the second alarm message is used to characterize an abnormality of the system disk of the image caching system.
[0044] The first alarm message mentioned above can be any one or more, output through text, voice, images, video, etc., to warn of abnormal front-end pressure on the image caching system. The second alarm message mentioned above can be any one or more, output through text, voice, images, video, etc., to warn of abnormality on the system disk of the image caching system.
[0045] In one optional embodiment, when the first real-time performance is less than the second preset threshold, a first alarm message “The front-end pressure of the mirror cache system is too high, please adjust the pressure in time” can be output by voice. The first alarm message “The front-end pressure of the mirror cache system is too high, please adjust the pressure in time” can also be output by both voice and video at the same time, but it is not limited to this. The first alarm message is used to indicate that the front-end pressure of the mirror cache system is abnormal.
[0046] In another optional embodiment, when the second real-time performance is less than the third preset threshold, a second alarm message "The system disk of the image cache system has failed, please replace the system disk in time" can be output by voice. The second alarm message "The system disk of the image cache system has failed, please replace the system disk in time" can also be output by both text and voice at the same time, but it is not limited to this. The second alarm message is used to indicate that the system disk of the image cache system has failed.
[0047] In one exemplary embodiment, in response to a first real-time performance being less than a second preset threshold, the method further includes: controlling the front-end pressure of the mirror caching system to be less than or equal to the first preset pressure.
[0048] The aforementioned first preset pressure can be a maximum percentage of pressure set by the user to ensure the normal operation of the front-end of the image caching system. It can be represented as E2, but is not limited to this. It should be noted that the user can set the value of E2 according to their specific needs. In this embodiment, 85% is used as an example, but it is not limited to this. When the front-end pressure is less than or equal to the first preset pressure, the front-end of the image caching system can operate normally.
[0049] In one optional embodiment, when the first real-time performance is less than the second preset threshold, it indicates that the image caching system has malfunctioned. At this time, the front-end pressure of the image caching system can be controlled to be less than or equal to the first preset pressure, so that the image caching system can continue to work normally.
[0050] In an exemplary embodiment, in response to a second real-time performance being less than a third preset threshold, the method further includes: outputting a first prompt message, wherein the first prompt message is used to prompt the system disk to be replaced.
[0051] The aforementioned first prompt message can be any one or more, output through voice, text, images, video, etc., and can prompt for the replacement of the system disk.
[0052] In one optional embodiment, when the second real-time performance is less than the third preset threshold, it indicates that the image caching system has malfunctioned. At this time, a prompt message "The image caching system has malfunctioned, do you want to replace the system disk?" can be output via voice. Alternatively, the prompt message "The image caching system has malfunctioned, do you want to replace the system disk?" can be output via both voice and text simultaneously, so that the user can replace the system disk of the image caching system.
[0053] In one exemplary embodiment, the method further includes: in response to the front-end pressure of the image caching system being less than a second preset pressure, testing the image caching system to obtain test results, wherein the test results are used to characterize whether the image caching system is normal; in response to an anomaly in the image caching system, updating the preset performance parameters of the image caching system to obtain target performance parameters; and determining a first preset threshold, a second preset threshold, and a third preset threshold based on the target performance parameters.
[0054] The aforementioned second preset pressure value can be a minimum percentage of pressure set by the user to ensure the normal operation of the front end of the image caching system. It can be represented as E1, but is not limited to this. It should be noted that the user can set the value of E1 according to their actual usage needs. In this embodiment, 20% is used as an example, but it is not limited to this. The aforementioned preset performance parameters can be the initial performance parameters of the image caching system set by the user in advance, and may include, but are not limited to, C1 and D1. The specific values can be set by the user according to actual usage needs, and are not limited in this embodiment. The aforementioned target performance parameters can be the performance parameters obtained after updating the preset performance parameters.
[0055] In one optional embodiment, when the front-end pressure of the image caching system is less than the second preset pressure, the image caching system can be tested to obtain the test result of whether the image caching system is normal; when the test result of the image caching system being abnormal is obtained, the preset performance parameters of the image caching system can be updated to obtain the target performance parameters; finally, based on the target performance parameters, the first preset threshold, the second preset threshold, and the third preset threshold can be updated.
[0056] In an exemplary embodiment, the preset performance parameters include: a first preset performance and a second preset performance. Testing the image caching system to obtain test results includes: acquiring the first test performance and the second test performance of the image caching system, wherein the first test performance characterizes the real-time performance of image cache synchronization via the image caching system during the test, and the second test performance characterizes the real-time performance of dirty data write-to-disk in the image caching system during the test; obtaining a first performance difference based on the first test performance and the first preset performance, and obtaining a second performance difference based on the second test performance and the second preset performance; determining the test result as normal for the image caching system in response to the first performance difference being less than the first preset difference and the second performance difference being less than the second preset difference; and determining the test result as abnormal for the image caching system in response to the first performance difference being greater than or equal to the first preset difference, or the second performance difference being greater than or equal to the second preset difference.
[0057] The aforementioned first preset performance can be C1, the second preset performance can be D1, the aforementioned first test performance can be C2, and the aforementioned second test performance can be D2. C2 represents the real-time performance of the image caching system in the test scenario, and D2 represents the real-time performance of the image caching system for dirty data write-to-disk in the test scenario. Specific values can be set by the user according to actual usage needs and are not limited in this embodiment. The aforementioned first performance difference can reflect the rate of the image caching channel, which can be expressed as |(C2-C1) / C1|, but is not limited to this. The first preset difference can be the minimum rate at which the image caching channel can normally cache data, which can be expressed as F. Specific values can be set by the user according to their needs. In this embodiment, 15% is used as an example, but it is not limited to this. The aforementioned second performance difference can reflect the rate of the dirty data write-to-disk channel, which can be expressed as |(D2-D1) / D1|, but is not limited to this. The second preset difference can be the minimum rate at which the dirty data write-to-disk channel can normally cache data, which can be expressed as H. Specific values can be set by the user according to their needs. In this embodiment, 10% is used as an example, but it is not limited to this.
[0058] In an alternative embodiment, first, the first test performance and the second test performance of the mirror cache system can be obtained; secondly, based on the first test performance and the first preset performance, the first performance difference can be obtained, and based on the second test performance and the second preset performance, the second performance difference can be obtained; in response to the first performance difference being less than the first preset difference and the second performance difference being less than the second preset difference, it is determined that the test result is that the mirror cache system is normal; in response to the first performance difference being greater than or equal to the first preset difference or the second performance difference being greater than or equal to the second preset difference, it is determined that the test result is that the mirror cache system is abnormal.
[0059] In another alternative embodiment, every time period T1 (for example, it can be 15 days), when the front-end pressure is less than the percentage E1, a round of simulation pressure test with a duration of T2 (for example, it can be 30 minutes) is performed, and the real-time performance C2 of mirror cache synchronization and the real-time performance D2 when dirty data is written to disk are obtained respectively. If |(C2 - C1) / C1| < F and |(D2 - D1) / D1| < H (10%), it indicates that the mirror cache system is normal; if |(C2 - C1) / C1| ≥ F or |(D2 - D1) / D1| ≥ H, it indicates that the mirror cache system is abnormal.
[0060] In an exemplary embodiment, in response to the mirror cache system being abnormal, the method further includes: retesting the mirror cache system a preset number of times to obtain the test results of the preset number of times; in response to the test results of the preset number of times being the same, updating the first preset performance based on the first test performance.
[0061] The above preset number of times can be set in advance by the user and is the number of times that can test a normal mirror cache system. The specific value can be set according to the user's needs. In this embodiment, it is illustrated by taking 3 times as an example, but it is not limited thereto.
[0062] In an alternative embodiment, when the mirror cache system is abnormal, the mirror cache system can be retested a preset number of times to obtain the test results of the preset number of times. In response to the test results of the preset number of times all indicating that the mirror cache system is abnormal, the first preset performance can be updated through the first test performance. For example, C2 can be used to replace C1, and D2 can be used to replace D1.
[0063] In an exemplary embodiment, the method further includes: in response to the test results of the preset number of times being the same, outputting a third warning message and a second prompt message, where the third warning message is used to characterize the abnormality of the preset performance parameter, and the second prompt message is used to prompt to update the preset performance parameter.
[0064] The aforementioned third alarm information can be any one or more, and can be output through voice, text, images, video, etc., to warn of abnormal preset performance parameters; the aforementioned second prompt information can be any one or more, and can be output through voice, text, images, video, etc., to prompt for updating the preset performance parameters.
[0065] In one optional embodiment, in response to the fact that the image caching system has an anomaly after a preset number of test results, a third alarm message "Preset performance parameters are abnormal, please handle it in time" can be output by voice, and a second prompt message "Preset parameter performance is abnormal, do you want to update it?" can also be output by voice.
[0066] In one exemplary embodiment, the method further includes: in response to the mirror caching system being normal, controlling a preset performance parameter to remain unchanged; and determining a first preset threshold, a second preset threshold, and a third preset threshold based on the preset performance parameter.
[0067] In one optional embodiment, when the image caching system is normal, embedded C1 and D1 can be kept unchanged; and, a first preset threshold, a second preset threshold, and a third preset threshold can be determined through C1 and D1.
[0068] In one exemplary embodiment, the method further includes: in response to a first real-time performance being less than a first preset threshold, outputting a fourth alarm message and a third prompt message, wherein the fourth alarm message is used to characterize an abnormal working mode of the image caching system, and the third prompt message is used to prompt whether to control the image caching system to switch to a second working mode.
[0069] The aforementioned fourth alarm information can be any one or more, and can be output through voice, text, images, video, etc., to warn of abnormalities in the working mode of the image caching system; the aforementioned third prompt information can be any one or more, and can be output through voice, text, images, video, etc., to prompt for switching the working mode.
[0070] In one optional embodiment, in response to the first real-time performance being less than a first preset threshold, a fourth warning message “The working mode of the mirror caching system is abnormal, please handle it in time” can be output by voice, and at the same time, a third prompt message “The working mode of the mirror caching system is abnormal, do you want to switch working modes” can also be output by voice.
[0071] Figure 3 This is a structural block diagram of an optional mirror caching system according to an embodiment of this application, such as... Figure 3As shown, the system includes: a local control disk array module, a local control central processing unit (CPU) module, a local control cache module, a local control cache mirror synchronization optimization (CMSO) management module, a local control serial port module, a local control indicator module, and a local control wireless module; and a peer control disk array module, a peer control central processing unit (CPU) module, a peer control cache module, a peer control cache mirror synchronization optimization (CMSO) management module, a peer control serial port module, a peer control indicator module, and a peer control wireless module. Multiple local control modules can represent multiple first modules within the storage chassis, and multiple peer control modules can represent multiple second modules within the storage chassis. The first and second modules carry the same business model. When a first module malfunctions, the second module can continue to carry out the business model, preventing the mirror caching system from malfunctioning.
[0072] Depend on Figure 3 It can be seen that the control disk array module is connected to the control cache module and the control cache mirror synchronization optimization management module respectively. The control cache module is connected to the control central processing unit module and the control cache mirror synchronization optimization management module respectively. The control cache mirror synchronization optimization management module is connected to the control disk array module, the control central processing unit module, and the control serial port module respectively. The control serial port module is connected to the control indicator module, the control wireless module, and the control cache mirror synchronization optimization management module respectively.
[0073] Similarly, the control panel module is connected to the control cache module and the control cache mirror synchronization optimization management module, respectively. The control cache module is connected to the control central processing unit module and the control cache mirror synchronization optimization management module, respectively. The control cache mirror synchronization optimization management module is connected to the control panel module, the control central processing unit module, and the control serial port module, respectively. The control serial port module is connected to the control indicator module, the control wireless module, and the control cache mirror synchronization optimization management module, respectively. The local control cache module is connected to the control cache module, and the local control cache mirror synchronization optimization management module is connected to the control cache mirror synchronization optimization management module, for data synchronization.
[0074] This application dynamically manages the local control cache module, local control CPU module, local control disk array module, peer control cache module, peer control CPU module, and peer control disk array module through the CMSO management module. Especially in the high-reliability mode, cache mirror synchronization optimization is carried out through various measures such as abnormal scenario warnings, ensuring that the storage can always stably carry the front-end services, thereby improving the availability of the entire machine system. The functions of each module are as follows:
[0075] Cache Mirror Synchronization Optimization Management Module (hereinafter referred to as CMSO for cache mirror synchronization optimization): This module is located on the board and mainly uses programmable logic devices such as processors (Advanced RISC Machine, ARM). The CMSO management module can dynamically manage the local control cache module, local control CPU module, local control disk array module, peer control cache module, peer control CPU module, and peer control disk array module. Specifically, CMSO can obtain the real-time performance (throughput (Input / Output Per Second, IOPS) / bandwidth / latency) A of mirror cache synchronization under the current service model (large / small blocks, read / write, sequential / random) through the CPU module and cache module, and can obtain the real-time performance B when the dirty data in the cache is flushed to disk; at the same time, CMSO embeds the theoretical performance C1 of mirror cache synchronization and the theoretical performance D1 when the dirty data in the cache is flushed to disk under various service models. The CMSO module will perform periodic simulation tests (Simulation Test, ST) through the CPU module, cache module, and disk array module. The detailed steps are as follows:
[0076] Every time period T1 (for example, it can be 15 days), when the front-end pressure is less than the percentage E1 (for example, it can be 20%), CMSO conducts a round of simulation pressure tests with a duration of T2 (for example, it can be 30 minutes), and obtains the real-time performance C2 of mirror cache synchronization and the real-time performance D2 when the dirty data in the cache is flushed to disk under various service models. If |(C2 - C1) / C1| < F (for example, it can be 15%), the embedded C1 data is maintained; if |(D2 - D1) / D1| < H (for example, it can be 10%), the embedded D1 data is maintained; if either of the above two is not satisfied, two more rounds of ST are performed. If the results of the three STs are consistent and all are not satisfied, a system-level warning is reported, prompting to update the embedded database.
[0077] In the real business scenario:
[0078] In the normal mode, if CMSO detects that A is less than C1 * M1 (for example, it can be 75%), a system-level secondary warning is reported and it is prompted whether to switch to the high-reliability mode.
[0079] In high-reliability mode, if CMSO detects that A is less than C1*M2 (e.g., 80%), it reports a level 3 warning to the system, and simultaneously limits the maximum percentage of front-end pressure to E2 (e.g., 85%). If CMSO detects that B is less than D1*M3 (e.g., 90%), it reports a level 4 warning to the system, and suggests replacing the system disk. C1, D1, T1, T2, M1, M2, M3, E1, E2, F, and H are all system preset parameters that can be adjusted in the system or via serial port modules. The CMSO management module dynamically manages the local controller cache module, local controller CPU module, local controller disk array module, peer controller cache module, peer controller CPU module, and peer controller disk array module. Especially in high-reliability mode, various measures, such as abnormal scenario warnings, are used to optimize cache mirror synchronization, ensuring that the storage can consistently and stably support front-end services, thereby improving the overall system availability.
[0080] CPU Module: This module resides on the storage and is used to support the storage system. It provides real-time performance data for each business model to the CMSO.
[0081] Cache Module: This module is located on the board and typically contains memory and high-speed caches for various components, controlled by the CMSO module. Cache modules communicate with each other via a non-transparent bridge (NTB) or a high-speed serializer / deserializer (SerDes) link using a network protocol (RDMA OverConverged Ethernrt, RoCE) defined in the InfiniBand Trade Association (IBTA) standard.
[0082] Disk Array Module: This module is generally a non-volatile storage array such as a traditional hard disk drive (HDD), solid state drive (SSD), or non-volatile memory host controller interface specification (NVME). It is controlled by CMSO and feeds back real-time data on dirty data write performance to CMSO.
[0083] Indicator Module: This module is located on the board and is directly controlled by the serial port module. It indicates the real-time status of the current CMSO.
[0084] Wireless module: It can convert the serial port module signal into wireless signals such as Wireless Fidelity (WIFI), so that the external side can communicate with the CMSO management module without the need for a physical serial cable.
[0085] Serial port module: The serial port module enables information exchange, parameter preset, and activation of related functions between the external environment and the CMSO management module.
[0086] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0087] This embodiment also provides a monitoring device for a mirror caching system, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0088] Figure 4 This is a structural block diagram of a monitoring device for a mirror caching system according to an embodiment of this application, such as... Figure 4 As shown, the device includes: a first acquisition module 42, used to acquire the first real-time performance of the mirror cache system when the mirror cache system is in a first working mode, wherein the first real-time performance is used to characterize the real-time performance of mirror cache synchronization through the mirror cache system; a switching module 44, used to control the mirror cache system to switch to a second working mode in response to the first real-time performance being less than a first preset threshold; a second acquisition module 46, used to acquire the second real-time performance of the mirror cache system when the mirror cache system is in the second working mode, wherein the second real-time performance is used to characterize the real-time performance of dirty data write-to-disk through the mirror system; and an output module 48, used to output alarm information in response to the first real-time performance being less than a second preset threshold, or the second real-time performance being less than a third preset threshold, wherein the alarm information is used to characterize an anomaly in the mirror cache system.
[0089] In an exemplary embodiment, the output module includes: a first output unit, configured to output a first alarm message in response to a first real-time performance being less than a second preset threshold, wherein the first alarm message is used to characterize an abnormal front-end pressure of the image caching system; and a second output unit, configured to output a second alarm message in response to a second real-time performance being less than a third preset threshold, wherein the second alarm message is used to characterize an abnormal system disk of the image caching system.
[0090] In an exemplary embodiment, the first output unit includes a control subunit for controlling the front-end pressure of the image caching system to be less than or equal to a first preset pressure.
[0091] In one exemplary embodiment, the second output unit includes: a first output subunit, configured to output first prompt information, wherein the first prompt information is used to prompt for the replacement of the system disk.
[0092] In one exemplary embodiment, the apparatus further includes: a testing module, configured to test the image caching system in response to the front-end pressure of the image caching system being less than a second preset pressure, and obtain a test result, wherein the test result is used to characterize whether the image caching system is normal; an updating module, configured to update the preset performance parameters of the image caching system in response to an anomaly in the image caching system, and obtain a target performance parameter; and a determining module, configured to determine a first preset threshold, a second preset threshold, and a third preset threshold based on the target performance parameter.
[0093] In an exemplary embodiment, the preset performance parameters include: a first preset performance and a second preset performance. The testing module includes: a first acquisition unit, configured to acquire the first test performance and the second test performance of the image caching system, wherein the first test performance is used to characterize the real-time performance of image cache synchronization through the image caching system during the test, and the second test performance is used to characterize the real-time performance of dirty data write-to-disk in the image caching system during the test; a processing unit, configured to obtain a first performance difference based on the first test performance and the first preset performance, and obtain a second performance difference based on the second test performance and the second preset performance; a first determination unit, configured to determine that the test result is that the image caching system is normal in response to the first performance difference being less than the first preset difference and the second performance difference being less than the second preset difference; and a second determination unit, configured to determine that the test result is that the image caching system is abnormal in response to the first performance difference being greater than or equal to the first preset difference, or the second performance difference being greater than or equal to the second preset difference.
[0094] In an exemplary embodiment, the second determining unit includes: a testing subunit, configured to retest the image caching system a preset number of times to obtain test results for the preset number of times; and an updating subunit, configured to update the first preset performance based on the first test performance in response to the fact that the test results for the preset number of times are all the same.
[0095] In an exemplary embodiment, the updating subunit is further configured to: in response to the fact that the test results of a preset number of times are all the same, output a third alarm message and a second prompt message, wherein the third alarm message is used to characterize the preset performance parameter as abnormal, and the second prompt message is used to prompt the preset performance parameter to be updated.
[0096] In an exemplary embodiment, the first determining unit includes: a control subunit, configured to control a preset performance parameter to remain unchanged in response to the normal operation of the image caching system; and a determining subunit, configured to determine a first preset threshold, a second preset threshold, and a third preset threshold based on the preset performance parameter.
[0097] In an exemplary embodiment, the switching module includes: a third output unit, configured to output a fourth alarm message and a third prompt message in response to a first real-time performance being less than a first preset threshold, wherein the fourth alarm message is used to characterize an abnormal working mode of the image caching system, and the third prompt message is used to prompt whether to control the image caching system to switch to a second working mode.
[0098] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0099] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above-described embodiments of the monitoring method for the image caching system.
[0100] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0101] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any of the above-described embodiments of the monitoring method for the mirror caching system.
[0102] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0103] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0104] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0105] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.
Claims
1. A monitoring method of a mirror cache system, characterized by, include: When the image caching system is in the first working mode, the first real-time performance of the image caching system is obtained, wherein the first real-time performance is used to characterize the real-time performance of image caching synchronization through the image caching system. In response to the first real-time performance being less than a first preset threshold, the mirror caching system is controlled to switch to a second working mode, wherein the reliability of the mirror caching system in the second working mode is higher than the reliability of the mirror caching system in the first working mode. When the mirror caching system is in the second working mode, the second real-time performance of the mirror caching system is obtained, wherein the second real-time performance is used to characterize the real-time performance of dirty data being written to disk through the mirror caching system; In response to the first real-time performance being less than a second preset threshold, or the second real-time performance being less than a third preset threshold, an alarm message is output, wherein the alarm message is used to indicate that the image caching system has an anomaly.
2. The method according to claim 1, characterized in that, In response to the first real-time performance being less than a second preset threshold, or the second real-time performance being less than a third preset threshold, an alarm message is output, including: In response to the first real-time performance being less than the second preset threshold, a first alarm message is output, wherein the first alarm message is used to indicate that the front-end pressure of the image caching system is abnormal; In response to the second real-time performance being less than the third preset threshold, a second alarm message is output, wherein the second alarm message is used to indicate that the system disk of the image cache system is abnormal.
3. The method according to claim 2, characterized in that, In response to the first real-time performance being less than the second preset threshold, the method further includes: The front-end pressure of the image caching system is controlled to be less than or equal to a first preset pressure.
4. The method according to claim 2, characterized in that, In response to the second real-time performance being less than the third preset threshold, the method further includes: Output a first prompt message, which is used to prompt the system disk to be replaced.
5. The method according to claim 1, characterized in that, The method further includes: In response to the front-end pressure of the image caching system being less than the second preset pressure, the image caching system is tested to obtain test results, wherein the test results are used to characterize whether the image caching system is normal. In response to an anomaly in the image caching system, the preset performance parameters of the image caching system are updated to obtain the target performance parameters; Based on the target performance parameters, the first preset threshold, the second preset threshold, and the third preset threshold are determined.
6. The method according to claim 5, characterized in that, The preset performance parameters include: a first preset performance and a second preset performance. The mirror caching system is tested, and the test results are obtained, including: Obtain the first test performance and the second test performance of the image caching system, wherein the first test performance is used to characterize the real-time performance of image cache synchronization through the image caching system during the test, and the second test performance is used to characterize the real-time performance of dirty data write-to-disk of the image caching system during the test; Based on the first test performance and the first preset performance, a first performance difference is obtained, and based on the second test performance and the second preset performance, a second performance difference is obtained; In response to the first performance difference being less than a first preset difference and the second performance difference being less than a second preset difference, the test result is determined to be that the image caching system is normal; In response to the first performance difference being greater than or equal to the first preset difference, or the second performance difference being greater than or equal to the second preset difference, the test result is determined to be an anomaly in the image caching system.
7. The method according to claim 6, characterized in that, In response to an anomaly in the image caching system, the method further includes: The image caching system is retested a preset number of times to obtain the test results for the preset number of times; If the test results are the same for the preset number of tests, the first preset performance is updated based on the first test performance.
8. The method according to claim 7, characterized in that, The method further includes: If the test results are the same for the preset number of times, a third alarm message and a second prompt message are output. The third alarm message is used to indicate that the preset performance parameter is abnormal, and the second prompt message is used to prompt the preset performance parameter to be updated.
9. The method according to claim 5, characterized in that, The method further includes: In response to the normal operation of the image caching system, the preset performance parameters are kept unchanged. Based on the preset performance parameters, the first preset threshold, the second preset threshold, and the third preset threshold are determined.
10. The method according to claim 1, characterized in that, The method further includes: In response to the first real-time performance being less than the first preset threshold, a fourth alarm message and a third prompt message are output, wherein the fourth alarm message is used to characterize the abnormal working mode of the image caching system, and the third prompt message is used to prompt whether to control the image caching system to switch to the second working mode.
11. A monitoring device for a mirror caching system, characterized in that, include: The first acquisition module is used to acquire the first real-time performance of the image caching system when the image caching system is in a first working mode, wherein the first real-time performance is used to characterize the real-time performance of image caching synchronization through the image caching system. A switching module is used to control the image caching system to switch to a second working mode in response to the first real-time performance being less than a first preset threshold, wherein the reliability of the image caching system in the second working mode is higher than the reliability of the image caching system in the first working mode. The second acquisition module is used to acquire the second real-time performance of the image caching system when the image caching system is in the second working mode, wherein the second real-time performance is used to characterize the real-time performance of dirty data being written to disk through the image caching system; The output module is used to output alarm information in response to the first real-time performance being less than a second preset threshold, or the second real-time performance being less than a third preset threshold, wherein the alarm information is used to indicate that the image caching system has an anomaly.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, it implements the steps of the monitoring method for the mirror caching system according to any one of claims 1 to 10.
13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the monitoring method for the mirror caching system as described in any one of claims 1 to 10.
Citation Information
Patent Citations
Cache image system and method for storage equipment with dual controllers
CN102081579A
Equipment exception information processing method and device, storage medium and electronic equipment
CN114328094A