Storage service management method, device and storage medium
By introducing service discovery equipment in storage service management and load allocation is performed according to preset relationships, the problem of excessive load of a single data collector in storage device monitoring operation and maintenance is solved, and the stability and security of storage services are improved.
Patent Information
- Application Number
- CN202010761657.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-31
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2040-07-31
AI Technical Summary
During the monitoring operation and maintenance of storage devices, as the number of storage instances increases, the load capacity limit of a single data collector leads to overload, resulting in poor stability and security of storage services.
Through the service discovery device, the update information sent by the management device of the center is determined according to the correspondence between the preset storage service and the monitoring device and the analysis device, the target monitoring device and the target analysis device are determined, and the load allocation is performed to realize the load balancing of the storage service.
Improve the monitoring and operation and maintenance capabilities of storage services, ensure the stability and security of storage services, and avoid overloading.
Smart Images

Figure CN114064257B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to information processing technology in the computer field, and in particular to a storage service management method, device and storage medium. Background Art
[0002] As the memory pressure of processors increases, storage devices used to relieve the memory pressure of processors have been widely used, such as Redis (Remote Dictionary Server). With the widespread application of such storage devices, how to monitor and maintain the service status of storage devices in applications so that storage devices can provide better services has become an increasingly important issue.
[0003] Generally speaking, when monitoring and operating storage devices, a centralized data collector is usually used to centrally obtain the operating information of each storage instance corresponding to the storage service of the storage device, so as to obtain the service status of the storage device and complete the monitoring and operating of the storage device. However, in the above-mentioned monitoring and operating process, when there are more and more storage services or storage instances, due to the load capacity limitation of a single data collector, it will face overload, resulting in poor stability in the implementation process of the storage service; therefore, the security of implementing the storage service is poor. Summary of the invention
[0004] In order to solve the above technical problems, embodiments of the present invention hope to provide a storage service management method, device and storage medium, which can improve the security of storage services.
[0005] The technical solution of the present invention is achieved in this way:
[0006] In a first aspect, an embodiment of the present invention provides a storage service management method, which is applied to a service discovery device, and the method includes:
[0007] Receive update information sent by the central management device;
[0008] When the update information is storage instance update information, the target monitoring device corresponding to the storage instance update information is determined according to the correspondence between the preset storage service and the monitoring device, thereby obtaining the monitoring storage instance update information corresponding to the target monitoring device;
[0009] Determine the target analysis device corresponding to the storage instance update information according to the correspondence between the preset storage service and the analysis device, thereby obtaining the analysis storage instance update information corresponding to the target analysis device;
[0010] The monitoring storage instance update information corresponding to the target monitoring device and the analysis storage instance update information corresponding to the target analysis device are sent to the central management device.
[0011] In the above solution, after receiving the update information sent by the central management device, the method further includes:
[0012] When the update information is monitoring device update information, updating the preset monitoring device according to the monitoring device update information;
[0013] Confirming that the correspondence between the preset storage service and the monitoring device is a first correspondence, and determining the changed monitoring device and the changed monitoring storage instance corresponding to the changed monitoring device according to the first correspondence and the updated preset monitoring device;
[0014] The changed monitoring storage instance corresponding to the changed monitoring device is sent to the central management device.
[0015] In the above solution, after receiving the update information sent by the central management device, the method further includes:
[0016] When the update information is analysis device update information, updating the preset analysis device according to the analysis device update information;
[0017] Confirming that the correspondence between the preset storage service and the analysis device is a second correspondence, and determining a changed analysis device and a changed analysis storage instance corresponding to the changed analysis device according to the second correspondence and the updated preset analysis device;
[0018] The changed analysis storage instance corresponding to the changed analysis device is sent to the central management device.
[0019] In the above scheme, the target monitoring device corresponding to the storage instance update information is determined according to the correspondence between the preset storage service and the monitoring device, so as to obtain the monitoring storage instance update information corresponding to the target monitoring device, including:
[0020] According to the correspondence between the preset storage service and the storage instance, obtain the target storage service corresponding to the storage instance update information;
[0021] Determining the target monitoring device corresponding to the target storage service according to the correspondence between the preset storage service and the monitoring device;
[0022] The storage instance update information is combined with the corresponding target monitoring device to obtain the monitoring storage instance update information corresponding to the target monitoring device.
[0023] In a second aspect, an embodiment of the present invention provides a storage service management method, which is applied to a central management device, and the method includes:
[0024] Get updated information;
[0025] Sending the update information to a service discovery device;
[0026] When the update information is storage instance update information, the monitoring storage instance update information corresponding to the target monitoring device and the analysis storage instance update information corresponding to the target analysis device sent by the service discovery device in response to the update information are received.
[0027] In the above solution, obtaining update information includes:
[0028] Add or delete storage instances for the target storage service, thereby obtaining the update information including the storage instance update information; or,
[0029] Add or delete monitoring devices, thereby obtaining the update information including the monitoring device update information; or,
[0030] Add or delete analysis devices, thereby obtaining the update information including the update information of the analysis devices.
[0031] In the above solution, the adding and deleting monitoring equipment includes:
[0032] Obtain abnormal monitoring equipment;
[0033] Delete the abnormal monitoring device.
[0034] In a third aspect, an embodiment of the present invention provides a storage service management method, which is applied to a target monitoring device, and the method includes:
[0035] Obtain monitoring storage instance update information through the central management device;
[0036] Update the current monitoring storage instance according to the monitoring storage instance update information;
[0037] Monitor the updated current monitoring storage instance to obtain storage instance operation information;
[0038] Obtaining, through the central management device, an analysis device corresponding to the updated current monitoring storage instance;
[0039] The storage instance operation information is sent to the analysis device corresponding to the updated current monitoring storage instance.
[0040] In the above solution, before obtaining the monitoring storage instance update information through the central management device, the method further includes:
[0041] Sending monitoring registration information to the central management device to perform monitoring registration;
[0042] When the monitoring registration is completed, the current monitoring storage instance is obtained through the central management device, and the current monitoring storage instance is monitored.
[0043] In a fourth aspect, an embodiment of the present invention provides a storage service management method, which is applied to a target analysis device, and the method includes:
[0044] Obtain analysis and storage instance update information through the central management device;
[0045] According to the analysis storage instance update information, updating the current analysis storage instance;
[0046] Receive updated target storage instance operation information sent by a monitoring device corresponding to the current analyzed storage instance;
[0047] The target storage instance operation information is analyzed to obtain an analysis result.
[0048] In the above solution, before obtaining the analysis storage instance update information through the central management device, the method further includes:
[0049] Sending analysis registration information to the central management device to perform analysis registration;
[0050] When the analysis registration is completed, the current analysis storage instance is obtained through the central management device, and the current analysis storage instance is analyzed.
[0051] In the above solution, the analyzing the target storage instance operation information to obtain the analysis result includes:
[0052] Analyze the storage instance operation information to obtain storage instance abnormality information;
[0053] According to the storage instance abnormal information, the storage device is operated and maintained to obtain the analysis result including the operation and maintenance result.
[0054] In the fifth aspect, an embodiment of the present invention provides a service discovery device, comprising: a first processor, a first memory, a first receiver, a first transmitter and a first communication bus, the first memory, the first receiver and the first transmitter communicate with the first processor through the first communication bus, the first memory stores a program executable by the first processor, and when the program is executed, the storage service management method applied to the service discovery device side is executed by the first processor.
[0055] In the sixth aspect, an embodiment of the present invention provides a central management device, comprising: a second processor, a second memory, a second receiver, a second transmitter and a second communication bus, the second memory, the second receiver and the second transmitter communicate with the second processor via the second communication bus, the second memory stores a program executable by the second processor, and when the program is executed, the storage service management method applied to the central management device side is executed by the second processor.
[0056] In the seventh aspect, an embodiment of the present invention provides a target monitoring device, comprising: a third processor, a third memory, a third receiver, a third transmitter and a third communication bus, the third memory, the third receiver and the third transmitter communicate with the third processor via the third communication bus, the third memory stores a program executable by the third processor, and when the program is executed, the storage service management method applied to the target monitoring device side is executed by the third processor.
[0057] In the eighth aspect, an embodiment of the present invention provides a target analysis device, comprising: a fourth processor, a fourth memory, a fourth receiver and a fourth communication bus, the fourth memory and the fourth receiver communicate with the fourth processor via the fourth communication bus, the fourth memory stores a program executable by the fourth processor, and when the program is executed, the storage service management method applied to the target analysis device side is executed by the fourth processor.
[0058] In the ninth aspect, an embodiment of the present invention provides a computer-readable storage medium having a program stored thereon, wherein the program, when executed by a first processor, implements a storage service management method applied to a service discovery device side; or, when executed by a second processor, implements a storage service management method applied to a central management device side; or, when executed by a third processor, implements a storage service management method applied to a target monitoring device side; or, when executed by a fourth processor, implements a storage service management method applied to a target analysis device side.
[0059] The embodiment of the present invention provides a storage service management method, device and storage medium, including: a service discovery device receives update information sent by a central management device; when the update information is storage instance update information, the target monitoring device corresponding to the storage instance update information is determined according to the correspondence between the preset storage service and the monitoring device, thereby obtaining the monitoring storage instance update information corresponding to the target monitoring device; the target analysis device corresponding to the storage instance update information is determined according to the correspondence between the preset storage service and the analysis device, thereby obtaining the analysis storage instance update information corresponding to the target analysis device; and the monitoring storage instance update information corresponding to the target monitoring device and the analysis storage instance update information corresponding to the target analysis device are sent to the central management device. By adopting the above technical solution, since the service discovery device can distribute the load to the corresponding monitoring device and analysis device for the update information including the storage instance update information, the load balancing of the storage service is realized, the stability of the storage service implementation process is guaranteed, and the security of the storage service implementation can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 An optional schematic diagram of a storage service management system provided by an embodiment of the present invention;
[0061] Figure 2 A flowchart of a storage service management method provided by an embodiment of the present invention;
[0062] Figure 3 is an exemplary storage service management architecture diagram provided by an embodiment of the present invention;
[0063] Figure 4 It is a schematic diagram of an exemplary process of interaction between a service discovery device and a central management device provided by an embodiment of the present invention;
[0064] Figure 5 is a schematic diagram of a flow chart of an exemplary monitoring device monitoring a storage instance provided by an embodiment of the present invention;
[0065] Figure 6 is a schematic diagram of a flow chart of an exemplary analysis device analyzing a storage instance provided by an embodiment of the present invention;
[0066] Figure 7 A schematic diagram of a service discovery device provided in an embodiment of the present invention Figure 1 ;
[0067] Figure 8 A schematic diagram of a service discovery device provided in an embodiment of the present invention Figure 2 ;
[0068] Fig. 9 A schematic diagram of the structure of a central management device provided in an embodiment of the present invention Figure 1 ;
[0069] Fig.10 A schematic diagram of the structure of a central management device provided in an embodiment of the present invention Figure 2 ;
[0070] Fig.11 A schematic diagram of a target monitoring device provided by an embodiment of the present invention Figure 1 ;
[0071] Fig.12 A schematic diagram of a target monitoring device provided by an embodiment of the present invention Figure 2 ;
[0072] Fig.13 A schematic diagram of a target analysis device provided in an embodiment of the present invention Figure 1 ;
[0073] Fig.14 A schematic diagram of a target analysis device provided in an embodiment of the present invention Figure 2 . DETAILED DESCRIPTION
[0074] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0075] It should be noted that, as the memory pressure of the processor increases, storage devices used to relieve the memory pressure of the processor have been widely used; for example, the Redis server, an open source log-type, key-value database written in ANSI C language, compliant with the BSD protocol, supporting the network, and can be based on memory and can be persistent, is often called a data structure server; it can solve the memory pressure of the CPU (Central Processing Unit) of the application server, reduce IO read operations, and relieve IO pressure. It is mostly used for massive data reading and writing, high-concurrency data reading and writing, etc. With the widespread application of this storage device, how to monitor and maintain the service status of the storage device in the application so that the storage device can provide better services has become an increasingly important issue; for example, with the widespread application of Redis, in a large-scale application scenario, a Redis server may correspond to tens of thousands of Redis instances when providing storage services. After the Redis server starts to provide services, internal or external reasons will affect the storage services provided by Redis. At this time, it is necessary to monitor and maintain the Redis instance to ensure the normal operation of the Redis server.
[0076] Generally speaking, when monitoring and operating a storage device, a data collector is usually enabled for each storage instance (e.g., a Redis instance) of the storage device, so that multiple data collectors archive the collected operation information of multiple storage instances to obtain the service status of the storage device and complete the monitoring and operating of the storage device. However, during the above-mentioned monitoring and operating process, there is no connection between the data collectors, so it is impossible to automatically operate or integrate the collected operation information, and it is also impossible to obtain the service status of the storage device as a whole, resulting in poor monitoring and operating effects.
[0077] In addition, when monitoring and operating storage devices, a centralized data collector can be used to centrally obtain and archive the operating information of each storage instance corresponding to the storage device, so as to obtain the service status of the storage device and complete the monitoring and operating of the storage device. However, in the above-mentioned monitoring and operating process, when the number of storage instances increases, it will face overload due to the load capacity limitation of a single data collector; and when a problem occurs in the data collector, the monitoring and operating of the storage instance on the entire storage device will not be able to continue; therefore, the scalability and stability are low, resulting in low security in implementing storage services.
[0078] Based on this, an embodiment of the present invention provides a storage service management method, device and storage medium, which can achieve load balancing in the storage service process and analysis of monitoring data, thereby improving the monitoring and operation and maintenance capabilities of the storage service; and, with high scalability and stability, the storage service can be highly secure.
[0079] See also Figure 1 , Figure 1 An optional schematic diagram of a storage service management system provided by an embodiment of the present invention; Figure 1 As shown, in the storage service management system 100, the central management device 200 establishes connections with the service discovery device 300, the monitoring device 400 and the analysis device 500 respectively, and the monitoring device 400 establishes connections with the analysis device 500; wherein, the service discovery device 300 distributes corresponding tasks related to the storage instance 600 to the monitoring device 400 and the analysis device 500 respectively through the central management device 200, the monitoring device 400 monitors the storage instance 600, and sends the monitoring data to the analysis device 500, and the analysis device 500 analyzes the monitoring data to implement operation and maintenance of the storage instance 600, thus implementing the management of the storage service. In addition, the monitoring device 400 includes a target monitoring device 410, which refers to a storage device whose monitored storage instance has changed; the analysis device 500 includes a target analysis device 510, which refers to a storage device whose analyzed storage instance has changed.
[0080] It should be noted that the following embodiments are all implemented based on the above-mentioned storage service management system.
[0081] Embodiment 1
[0082] The embodiment of the present invention provides a storage service management method. Figure 2 A storage service management method implementation flow chart provided in an embodiment of the present invention is as follows: Figure 2 As shown, the storage service management method includes:
[0083] S101. The central management device obtains update information.
[0084] In an embodiment of the present invention, when there is an update in the process of implementing the storage service, the central management device also obtains the update information; that is, the update information refers to the information that changes in the process of implementing the storage service, such as changes in the storage instance, changes in the monitoring and operation and maintenance equipment nodes, etc.
[0085] It should be noted that storage services refer to services provided by storage devices. One storage service corresponds to at least one storage instance. The central management device is a type of storage device, such as the distributed storage system etcd.
[0086] S102: The central management device sends update information to the service discovery device.
[0087] In an embodiment of the present invention, after the central management device obtains the update information, it indicates that at this time, there are changes in the process of implementing the storage service, and the service discovery device needs to perform real-time deployment based on the update information; therefore, the central management device sends the update information to the service discovery device at this time, so that the service discovery device deploys resource information (for example, monitoring equipment and analysis equipment) based on the update information.
[0088] Correspondingly, in the embodiment of the present invention, after S102 is executed, that is, after the central management device sends the update information to the service discovery device, at this time, the service discovery device also receives the update information sent by the central management device.
[0089] It should be noted that the service discovery device monitors the central management device. When the central management device obtains update information, the service discovery device can receive the update information sent by the service discovery device.
[0090] S103: When the update information is storage instance update information, the service discovery device determines the target monitoring device corresponding to the storage instance update information according to the correspondence between the preset storage service and the monitoring device, thereby obtaining the monitoring storage instance update information corresponding to the target monitoring device.
[0091] In an embodiment of the present invention, after the service discovery device obtains the update information, it responds to the update information to determine the change information represented by the update information. In addition, the service discovery device pre-stores the correspondence between the storage service and the monitoring device, that is, the correspondence between the preset storage service and the monitoring device. When a storage service is given, the monitoring device corresponding to the given storage service can be determined based on the correspondence between the preset storage service and the monitoring device; thus, when the service discovery device determines that the update information is the change information related to the storage instance, that is, the storage instance update information (for example, the storage instance is added or deleted, or the storage service is added or deleted), since the storage instance corresponds to the storage service, the service discovery device can determine the monitoring device corresponding to the storage instance update information, that is, the target monitoring device, from the correspondence between the preset storage service and the monitoring device; at this time, the storage instance update information is the storage instance to be updated of the target monitoring device, that is, the monitoring storage instance update information.
[0092] S104: The service discovery device determines the target analysis device corresponding to the storage instance update information according to the correspondence between the preset storage service and the analysis device, thereby obtaining the analysis storage instance update information corresponding to the target analysis device.
[0093] It should be noted that the process of the service discovery device obtaining the analysis storage instance update information corresponding to the target analysis device is similar to the process of obtaining the monitoring storage instance update information corresponding to the target monitoring device in S103.
[0094] In an embodiment of the present invention, the correspondence between the storage service and the analysis device, that is, the correspondence between the preset storage service and the analysis device, is pre-stored in the service discovery device. When a storage service is given, the analysis device corresponding to the given storage service can be determined based on the correspondence between the preset storage service and the analysis device; thus, when the service discovery device determines that the update information is change information related to the storage instance, that is, storage instance update information (for example, storage instances are added or deleted, or storage services are added or deleted), since the storage instance corresponds to the storage service, the service discovery device can determine the analysis device corresponding to the storage instance update information, that is, the target analysis device, from the correspondence between the preset storage service and the analysis device; at this time, the storage instance update information, that is, the storage instance to be updated of the target analysis device, is the analysis storage instance update information.
[0095] It should also be noted that the process of the service discovery device obtaining the analysis storage instance update information corresponding to the target analysis device and the process of obtaining the monitoring storage instance update information corresponding to the target monitoring device are executed in no particular order.
[0096] It can be understood that, by presetting the correspondence between the storage service and the monitoring device, as well as the correspondence between the storage service and the analysis device, it is ensured that the monitoring of the storage instances belonging to the same storage service will be mapped to the same monitoring device, and the analysis of the storage instances belonging to the same storage service will be mapped to the same analysis device; in this way, the operation information and analysis information of the entire storage service can be obtained, and monitoring and operation and maintenance from the perspective of the storage service can be realized.
[0097] S105. The service discovery device sends monitoring storage instance update information corresponding to the target monitoring device and analysis storage instance update information corresponding to the target analysis device to the central management device.
[0098] In an embodiment of the present invention, after the service discovery device obtains the monitoring storage instance update information corresponding to the target monitoring device and the analysis storage instance update information corresponding to the target analysis device, the service discovery device sends the obtained monitoring storage instance update information corresponding to the target monitoring device and the analysis storage instance update information corresponding to the target analysis device to the central management device to complete the response to the update information and realize the monitoring of the update information; and then the central management device realizes storage service management based on the monitoring storage instance update information corresponding to the target monitoring device and the analysis storage instance update information corresponding to the target analysis device.
[0099] Correspondingly, in the embodiment of the present invention, after the service discovery device executes S105; at this time, that is, when the update information sent by the central management device to the service discovery device is storage instance update information, the service discovery device sends the monitoring storage instance update information corresponding to the target monitoring device and the analysis storage instance update information corresponding to the target analysis device to the central management device, and the central management device also receives the monitoring storage instance update information corresponding to the target monitoring device and the analysis storage instance update information corresponding to the target analysis device sent by the service discovery device in response to the update information, and then implements storage service management based on the monitoring storage instance update information corresponding to the target monitoring device and the analysis storage instance update information corresponding to the target analysis device.
[0100] S106. The target monitoring device obtains monitoring storage instance update information through the central management device.
[0101] It should be noted that the storage service management system provided in the embodiment of the present invention also has the function of monitoring the operation information of the storage instance, which is implemented by a monitoring device; and the target monitoring device is the monitoring device that is updated in the storage service management system.
[0102] In an embodiment of the present invention, after the central management device obtains the monitoring storage instance update information corresponding to the target monitoring device, since the target monitoring device monitors the central management device, it can monitor the changes corresponding to itself in the central management device; therefore, the target monitoring device can obtain the monitoring storage instance update information through the central management device.
[0103] S107: The target monitoring device updates the current monitoring storage instance according to the monitoring storage instance update information.
[0104] In an embodiment of the present invention, since the monitoring storage instance update information refers to the update information corresponding to the storage instance monitored by the target monitoring device, after the target monitoring device obtains the monitoring storage instance update information, it updates the original monitored storage instance, that is, the current monitoring storage instance, to obtain the latest storage instance to be monitored.
[0105] S108. The target monitoring device monitors the updated current monitoring storage instance to obtain storage instance operation information.
[0106] In an embodiment of the present invention, after the update of the current monitoring storage instance is completed, the updated current monitoring storage instance is the storage instance monitored in real time by the target monitoring device; therefore, the target monitoring device monitors the updated current monitoring storage instance, collects the operating information of the updated current monitoring storage instance, and obtains the storage instance operating information.
[0107] It should be noted that when the target monitoring device performs a monitoring operation, it obtains the connection information of the updated current monitoring storage instance through the central management device, establishes a connection with the updated current monitoring storage instance based on the connection information, and sends an information request (for example, info command) to the updated current monitoring storage instance; at this time, the updated current monitoring storage instance responds to the information request and feeds back operating information (for example, info information) to the target monitoring device; thereby, the target monitoring device also obtains the storage instance operating information.
[0108] In addition, the monitoring may be real-time, periodic (eg, 10 seconds), intermittent, etc., which is not specifically limited in the embodiment of the present invention.
[0109] S109. The target monitoring device obtains the updated analysis device corresponding to the current monitoring storage instance through the central management device.
[0110] In an embodiment of the present invention, after the target monitoring device completes monitoring and obtains the storage instance operation information, the storage instance operation information is sent to the analysis device corresponding to the updated current monitoring storage instance for data processing; therefore, first, the target monitoring device obtains the analysis device corresponding to the updated current monitoring storage instance through the central management device.
[0111] Here, the target monitoring device sends an analysis device query request including the updated current monitoring storage instance to the central management device. The central management device responds to the analysis device query request and sends the corresponding analysis device to the target monitoring device. At this time, the target monitoring device also obtains the analysis device corresponding to the updated current monitoring storage instance.
[0112] S110. The target monitoring device sends the storage instance operation information to the analysis device corresponding to the updated current monitoring storage instance.
[0113] It should be noted that the storage service management system provided by the embodiment of the present invention also has the function of analyzing the operation information of the storage instance, and this function is implemented through the analysis device; and different storage instances correspond to different analysis devices. Therefore, after the target monitoring device obtains the storage instance operation information, it sends the storage instance operation information to the analysis device corresponding to the updated current monitoring storage instance (for example, the address information of the analysis device), so that the analysis device corresponding to the updated current monitoring storage instance analyzes the storage instance operation information to realize storage service management.
[0114] Here, after the target monitoring device sends the storage instance operation information, it will also process the storage instance operation information (for example, format conversion) to facilitate processing and filter out monitored but unnecessary operation information.
[0115] In an embodiment of the present invention, one analysis device corresponds to one message channel, which is used to store the operation information of the storage instance corresponding to the analysis device; therefore, the target monitoring device sends the obtained storage instance operation information to the message channel of the analysis device corresponding to the updated current monitoring storage instance, thereby completing the sending of the storage instance operation information to the analysis device corresponding to the updated current monitoring storage instance.
[0116] In addition, the analysis device also corresponds to a shared message channel for storing information about storage instances to which the monitoring device fails to connect.
[0117] S111. The target analysis device obtains analysis storage instance update information through the central management device.
[0118] In an embodiment of the present invention, after the central management device obtains the analysis storage instance update information corresponding to the target analysis device, since the target analysis device monitors the central management device, it can monitor the changes corresponding to itself in the central management device; therefore, the target analysis device can obtain the monitoring storage instance update information through the central management device.
[0119] It should be noted that the target analysis device is the analysis device that is updated in the storage service management system.
[0120] S112: The target analysis device updates the current analysis storage instance according to the analysis storage instance update information.
[0121] In an embodiment of the present invention, since the analysis storage instance update information refers to the update information corresponding to the storage instance analyzed by the target analysis device, after the target analysis device obtains the analysis storage instance update information, it updates the original analyzed storage instance, i.e., the current analysis storage instance, to obtain the latest storage instance to be analyzed.
[0122] S113. The target analysis device receives the updated target storage instance operation information sent by the monitoring device corresponding to the currently analyzed storage instance.
[0123] In an embodiment of the present invention, after the target analysis device completes the update, it also clarifies the storage instance to be analyzed by itself, that is, the updated current analysis storage instance; at this time, the target analysis device receives the operation information of the storage instance sent by the monitoring device corresponding to the updated current analysis storage instance, and thus obtains the target storage instance operation information.
[0124] It should be noted that the target storage instance operation information includes the operation information in the message channel of the analysis device corresponding to the updated current analysis storage instance and / or the information in the shared message channel.
[0125] S114. The target analysis device analyzes the target storage instance operation information to obtain an analysis result.
[0126] In the embodiment of the present invention, after the target analysis device obtains the target storage instance operation information, it performs analysis and processing such as data integration and operation and maintenance to obtain the analysis result; at this point, the storage service management is completed.
[0127] It should be noted that the analysis result can be the result of data processing, or the operation and maintenance result obtained after operation and maintenance based on the target storage instance operation information, or a combination of the two, etc., and the embodiment of the present invention does not make specific limitations on this.
[0128] It is understandable that through the central management device, the service discovery device can reasonably allocate the tasks of the monitoring device and the analysis device, and realize the efficient and stable monitoring and operation of the storage instance; in view of the continuous increase of storage instances, the monitoring and operation capabilities can be improved through horizontal expansion to avoid overload. In addition, by adding analysis equipment, the integration and automated operation of the monitored operation information can be realized.
[0129] Furthermore, the storage service management method provided in the embodiment of the present invention also includes a step in which the analysis device sends the analysis result to a monitoring center (eg, Prometheus) for querying; for example, querying the operating status of the storage service.
[0130] Furthermore, in an embodiment of the present invention, the update information is at least one of storage instance update information, monitoring device update information and analysis device update information; wherein, the monitoring device update information refers to information about changes in the monitoring device, and the analysis device update information refers to information about changes in the analysis device.
[0131] Here, after the service discovery device receives the update information sent by the central management device, the storage service management method further includes S115-S117, and each step is described below.
[0132] S115: When the update information is monitoring device update information, the service discovery device updates the preset monitoring device according to the monitoring device update information.
[0133] In an embodiment of the present invention, when the update information is monitoring device update information, it indicates that the monitoring device has been added or deleted on the central management device side, so that the update information obtained by the service discovery device includes the monitoring device update information. At this time, the service discovery device updates the pre-stored preset monitoring device according to the monitoring device update information. For example, when the preset monitoring device is a node on the hash ring, the service discovery device adds or deletes the node on the hash ring, thereby completing the addition or deletion of the preset monitoring device.
[0134] S116. The service discovery device confirms that the correspondence between the preset storage service and the monitoring device is a first correspondence, and determines the changed monitoring device and the changed monitoring storage instance corresponding to the changed monitoring device according to the first correspondence and the updated preset monitoring device.
[0135] In the embodiment of the present invention, since the storage service and the monitoring device have a correspondence relationship between the preset storage service and the monitoring device, here, the service discovery device confirms the correspondence relationship between the preset storage service and the monitoring device as the first correspondence relationship; therefore, when the monitoring device changes due to the above update, the first correspondence relationship also needs to be updated. Here, the changed monitoring storage instance corresponding to the changed monitoring device refers to the information that has changed in the first correspondence relationship.
[0136] S117: The service discovery device sends the changed monitoring storage instance corresponding to the changed monitoring device to the central management device.
[0137] It should be noted that after the service discovery device obtains the changed monitoring storage instance corresponding to the changed monitoring device, it sends the changed monitoring storage instance corresponding to the changed monitoring device to the central management device, so that the monitoring device can monitor the changed monitoring storage instance corresponding to the changed monitoring device on the central management device, thereby achieving load balancing of the monitoring device, and then realizing storage service management.
[0138] Furthermore, in the embodiment of the present invention, after the service discovery device receives the update information sent by the central management device, the storage service management method further includes S118-120, and each step is described below.
[0139] S118. When the update information is analysis device update information, the service discovery device updates the preset analysis device according to the analysis device update information.
[0140] In an embodiment of the present invention, when the update information is the update information of the analysis device, it indicates that the analysis device has been added or deleted on the central management device side, so that the update information obtained by the service discovery device includes the update information of the analysis device. At this time, the service discovery device updates the pre-stored preset analysis device according to the update information of the analysis device. For example, when the preset analysis device is a node on the hash ring, the service discovery device adds or deletes the node on the hash ring, thereby completing the addition or deletion of the preset analysis device.
[0141] Furthermore, adding and deleting monitoring devices includes: the central management device obtains abnormal monitoring devices; and deletes abnormal monitoring devices.
[0142] It should be noted that the central management device and the monitoring device establish a heartbeat. When the monitoring device is abnormal, the central management device can be informed of the abnormal monitoring device and thus obtain the abnormal monitoring device. At this time, the central management device deletes the abnormal monitoring device, thus realizing the addition and deletion of monitoring devices.
[0143] Similarly, adding and deleting analysis devices includes: the central management device obtains abnormal analysis devices; deletes abnormal analysis devices to achieve adding and deleting analysis devices. The central management device and the analysis device establish a heartbeat. When the analysis device is abnormal, the central management device can know the abnormal analysis device and obtain the abnormal analysis device; at this time, the central management device deletes the abnormal analysis device, thus achieving adding and deleting analysis devices.
[0144] In addition, additional monitoring equipment or analysis equipment can be implemented to achieve load balancing.
[0145] S119: The service discovery device confirms that the correspondence between the preset storage service and the analysis device is a second correspondence, and determines the changed analysis device and the changed analysis storage instance corresponding to the changed analysis device according to the second correspondence and the updated preset analysis device.
[0146] In the embodiment of the present invention, since the storage service and the analysis device have a correspondence relationship between the preset storage service and the analysis device, here, the service discovery device confirms the correspondence relationship between the preset storage service and the analysis device as the second correspondence relationship; therefore, when the analysis device changes due to the above update, the second correspondence relationship also needs to be updated. Here, the changed analysis storage instance corresponding to the changed analysis device refers to the information that has changed in the second correspondence relationship.
[0147] S120: The service discovery device sends the changed analysis storage instance corresponding to the changed analysis device to the central management device.
[0148] It should be noted that after the service discovery device obtains the changed analysis storage instance corresponding to the changed analysis device, it sends the changed analysis storage instance corresponding to the changed analysis device to the central management device, so that the analysis device can monitor the changed analysis storage instance corresponding to the changed analysis device on the central management device, thereby achieving load balancing of the analysis device and further realizing storage service management.
[0149] In addition, in an embodiment of the present invention, when the service discovery device adds or deletes storage instances for the target storage service, for example, by adding at least one storage instance for at least one storage service, the central management device also obtains update information including storage instance update information.
[0150] Further, in an embodiment of the present invention, S103 can be implemented through S1031-S1033; that is, the service discovery device determines the target monitoring device corresponding to the storage instance update information based on the correspondence between the preset storage service and the monitoring device, thereby obtaining the monitoring storage instance update information corresponding to the target monitoring device, including S1031-S1033, and each step is explained below.
[0151] S1031. The service discovery device obtains a target storage service corresponding to the storage instance update information according to a correspondence between a preset storage service and a storage instance.
[0152] In the embodiment of the present invention, one storage service corresponds to at least one storage instance, so each storage instance has a corresponding storage service; therefore, it is easy to know that there is a storage service corresponding to the storage instance corresponding to the storage instance update information, that is, the target storage service.
[0153] S1032: The service discovery device determines a target monitoring device corresponding to the target storage service according to a correspondence between preset storage services and monitoring devices.
[0154] It should be noted that the service discovery device maps the storage instance of the same storage service to the same monitoring device through the preset correspondence between the storage service and the monitoring device; thus, after obtaining the target storage service, it is possible to determine the monitoring device corresponding to the storage instance corresponding to the storage instance update information based on the target storage service, that is, the target monitoring device.
[0155] S1033. The service discovery device combines the storage instance update information with the corresponding target monitoring device to obtain the monitoring storage instance update information corresponding to the target monitoring device.
[0156] In an embodiment of the present invention, when the storage instance update information corresponds to at least one monitoring device, that is, the target monitoring device is at least one monitoring device, the service discovery device combines the storage instance in the storage instance update information with the corresponding monitoring device in the target monitoring device to obtain the monitoring storage instance update information.
[0157] Similarly, in an embodiment of the present invention, the service discovery device in S104 determines the target analysis device corresponding to the storage instance update information based on the correspondence between the preset storage service and the analysis device, thereby obtaining the analysis storage instance update information corresponding to the target analysis device, including: the service discovery device obtains the target storage service corresponding to the storage instance update information based on the correspondence between the preset storage service and the storage instance; determines the target analysis device corresponding to the target storage service based on the correspondence between the preset storage service and the analysis device; and combines the storage instance update information with the target analysis device to obtain the analysis storage instance update information corresponding to the target analysis device.
[0158] Furthermore, in an embodiment of the present invention, S121 and S122 are included before S106; that is, the target monitoring device obtains the monitoring storage instance update information through the central management device. The storage service management method also includes S121 and S122. Each step is described below.
[0159] S121. The target monitoring device sends monitoring registration information to the central management device to perform monitoring registration.
[0160] In the embodiment of the present invention, when the target monitoring device is started, the monitoring registration information including the identification information is sent to the central management device for monitoring registration, so that the service discovery device allocates a storage instance to the target monitoring device through the central management device.
[0161] S122. When the monitoring registration is completed, the target monitoring device obtains the current monitoring storage instance through the central management device and monitors the current monitoring storage instance.
[0162] In an embodiment of the present invention, after the target monitoring device completes registration with the central management device, it can obtain the storage instance currently to be monitored, that is, the current monitoring storage instance, allocated by the service discovery device from the central management device, and then monitor the current monitoring storage instance.
[0163] Furthermore, in an embodiment of the present invention, S123 and S124 are also included before S111; that is, before the target analysis device obtains the analysis storage instance update information through the central management device, the storage service management method also includes S123 and S124. Each step is described below.
[0164] S123. The target analysis device sends analysis registration information to the central management device to perform analysis registration.
[0165] In the embodiment of the present invention, when the target analysis device is started, the analysis registration information including the identification information is sent to the central management device for analysis registration, so that the service discovery device allocates a storage instance to the target analysis device through the central management device.
[0166] S124. When the analysis registration is completed, the target analysis device obtains the current analysis storage instance through the central management device and analyzes the current analysis storage instance.
[0167] In an embodiment of the present invention, after the target analysis device completes registration with the central management device, it can obtain the storage instance currently to be analyzed, i.e., the current analysis storage instance, allocated by the service discovery device from the central management device, and then analyze the current analysis storage instance.
[0168] Further, in an embodiment of the present invention, S114 can be implemented through S1141 and S1142; that is, the target analysis device analyzes the target storage instance operation information to obtain an analysis result, including S1141 and S1142, and each step is described below.
[0169] S1141. The target analysis device analyzes the storage instance operation information to obtain storage instance abnormality information.
[0170] In an embodiment of the present invention, the storage instance operation information acquired by the target analysis device refers to the operation information of the storage instance, and the operation information generally includes normal operation information and abnormal operation information. The target analysis device extracts the abnormal operation information from the storage instance operation information, thereby obtaining the storage instance abnormal information.
[0171] S1142. The target analysis device operates and maintains the storage device according to the storage instance abnormal information, and obtains analysis results including operation and maintenance results.
[0172] It should be noted that operation and maintenance, for example, memory defragmentation is required when memory fragmentation is too high, disconnecting some clients that have been connected for too long due to too many connections, and restarting Redis to update the master-slave status.
[0173] It can be understood that the storage service management method provided by the embodiment of the present invention can not only collect operation information of the storage instance, but also perform data integration and analysis on the collected operation information, and perform automated operation and maintenance, thereby improving the monitoring and operation and maintenance effect of the storage service.
[0174] For example, see Figure 3 , Figure 3 is an exemplary storage service management architecture diagram provided by an embodiment of the present invention; Figure 3 As shown, the coordinator, as a service discovery module, monitors the corresponding information of Redis instances (storage instances), monitoring devices and analysis devices in the distributed storage system etcd (central management device), and allocates the Redis instances monitored by the monitoring device and the Redis instances analyzed by the analysis device. Specifically, the monitoring device registers with the distributed storage system to obtain the monitored Redis instances, monitors the Redis instances, and pushes the monitoring data to the message queue (or message channel); while the analysis device registers with the distributed storage system to obtain the analyzed Redis instances, obtains the monitoring data from the message queue for analysis, sends the analysis results to the monitoring center for query, and operates and maintains the Redis instances based on the analysis results.
[0175] based on Figure 3 , see Figure 4 , Figure 4 FIG. 1 is a flow chart of an exemplary service discovery device and a central management device interacting with each other provided in an embodiment of the present invention; Figure 4As shown, the interactive process of the service discovery device for load allocation is described. The coordinator monitors the distributed storage system to obtain at least one of the changed Redis instances (storage instance update information), the changed monitoring device (monitoring device update information) and the changed analysis device (analysis device update information), that is, update information. When the changed Redis instance is obtained, the target monitoring device corresponding to the Redis service (storage service) corresponding to the changed Redis instance on the hash ring of the monitoring device is determined by the consistent hashing algorithm, and then the update information of the Redis instance monitored by the target monitoring device (monitoring storage instance update information) is determined, and the update information of the Redis instance monitored by the target monitoring device is sent to the distributed storage system; and the target analysis device corresponding to the Redis service corresponding to the changed Redis instance on the hash ring of the analysis device is determined by the consistent hashing algorithm, and then the update information of the Redis instance analyzed by the target analysis device (analysis storage instance update information) is determined, and the update information of the Redis instance analyzed by the target analysis device is sent to the distributed storage system. When a changed monitoring device is obtained, the hash ring corresponding to the monitoring device (preset monitoring device) is updated, and then the change information of the Redis instance monitored by the updated monitoring device (updated preset monitoring device) is determined (the changed monitoring storage instance), and the change information of the corresponding monitored Redis instance is sent to the distributed storage system to achieve load balancing of the monitoring device. When a changed analysis device is obtained, the hash ring corresponding to the analysis device (preset analysis device) is updated, and then the change information of the Redis instance analyzed by the updated analysis device (updated preset analysis device) is determined (the changed analysis storage instance), and the change information of the corresponding analyzed Redis instance is sent to the distributed storage system to achieve load balancing of the analysis device.
[0176] based on Figure 3 and Figure 4 , see Figure 5 , Figure 5 FIG. 1 is a flow chart of an exemplary monitoring device monitoring a storage instance provided by an embodiment of the present invention; Figure 5As shown, the monitoring module (through IP or other identification) registers with the distributed storage system and obtains the Redis instance to be monitored (the current monitoring storage instance) from the distributed storage system; in addition, the monitoring module also obtains the update information of the Redis instance (the monitoring storage instance update information corresponding to the target monitoring device) from the distributed storage system to update the monitored Redis instance, and then monitors the updated monitored Redis instance (the updated current monitoring storage instance). During monitoring, the monitoring module obtains the connection information of the updated monitored Redis instance, connects to each Redis instance every 10 seconds, and obtains the operation information (storage instance operation information); for those that fail to connect successfully, the information on the unsuccessful connection is placed in the shared message queue; for the obtained operation information, the format is converted, and at the same time, the analysis device corresponding to the updated monitored Redis instance is obtained from the distributed storage system, and the operation information after the format conversion is placed in the message queue of the analysis device corresponding to the updated monitored Redis instance.
[0177] based on Figure 3-5 , see Figure 6 , Figure 6 FIG. 1 is a flow chart of an exemplary analysis device analyzing a storage instance provided by an embodiment of the present invention; Figure 6 As shown, after the analysis module is started, it registers its own IP with the distributed storage system etcd, so that the service discovery module allocates the Redis instance to be analyzed (the current analysis storage instance) to the corresponding IP record of the analysis module. In addition, the analysis module will also obtain the update information of the Redis instance from the distributed storage system (the update information of the analysis storage instance corresponding to the target analysis device) to update the analyzed Redis instance, and then analyze the updated analyzed Redis instance (the updated current analysis storage instance). During analysis, in the message queue, the analysis module queries with its own IP to obtain the operation information of the Redis instance that can be connected normally, and obtains the Redis instance with abnormal connection to the monitoring module; the operation information of the Redis instance and the Redis instance with abnormal connection are classified and processed through multi-layer processors, and corresponding processing is made for abnormal situations to achieve operation and maintenance.
[0178] It can be understood that since the service discovery device can distribute the load to the corresponding monitoring devices and analysis devices for update information including storage instance update information, load balancing of the storage service is achieved, the stability of the storage service implementation process is ensured, and the security of the storage service implementation can be improved.
[0179] Embodiment 2
[0180] Based on the same inventive concept of the first embodiment, the embodiment of the present invention provides a service discovery device 300, Figure 7 A schematic diagram of a service discovery device provided in an embodiment of the present invention Figure 1 ,like Figure 7 As shown, the service discovery device 300 includes:
[0181] The first receiving module 301 is used to receive update information sent by the central management device;
[0182] The updating module 302 is used to determine the target monitoring device corresponding to the storage instance update information according to the correspondence between the preset storage service and the monitoring device when the update information is the storage instance update information, so as to obtain the monitoring storage instance update information corresponding to the target monitoring device;
[0183] The updating module 302 is further used to determine the target analysis device corresponding to the storage instance update information according to the correspondence between the preset storage service and the analysis device, so as to obtain the analysis storage instance update information corresponding to the target analysis device;
[0184] The first sending module 303 is used to send the monitoring storage instance update information corresponding to the target monitoring device and the analysis storage instance update information corresponding to the target analysis device to the central management device.
[0185] Furthermore, the update module 302 is also used to update the preset monitoring device according to the monitoring device update information when the update information is monitoring device update information; confirm that the correspondence between the preset storage service and the monitoring device is a first correspondence, and determine the changed monitoring device and the changed monitoring storage instance corresponding to the changed monitoring device according to the first correspondence and the updated preset monitoring device; and the first sending module 303 is also used to send the changed monitoring storage instance corresponding to the changed monitoring device to the central management device.
[0186] Furthermore, the update module 302 is also used to update the preset analysis device according to the analysis device update information when the update information is the analysis device update information; confirm that the correspondence between the preset storage service and the analysis device is a second correspondence, and determine the changed analysis device and the changed analysis storage instance corresponding to the changed analysis device according to the second correspondence and the updated preset analysis device; and the first sending module 303 is also used to send the changed analysis storage instance corresponding to the changed analysis device to the central management device.
[0187] Furthermore, the update module 302 is also used to obtain the target storage service corresponding to the storage instance update information based on the correspondence between the preset storage service and the storage instance; determine the target monitoring device corresponding to the target storage service based on the correspondence between the preset storage service and the monitoring device; and combine the storage instance update information with the target monitoring device to obtain the monitoring storage instance update information corresponding to the target monitoring device.
[0188] It should be noted that, in actual applications, the update module 302 can be implemented by a first processor 304 located on the service discovery device 300, specifically a CPU (Central Processing Unit), an MPU (Microprocessor Unit), a DSP (Digital Signal Processing) or a Field Programmable Gate Array (FPGA). The first receiving module 301 can be implemented by a first receiver 305 located on the service discovery device 300; the first sending module 303 can be implemented by a first transmitter 306 located on the service discovery device 300.
[0189] The embodiment of the present invention also provides a service discovery device, such as Figure 8 As shown, the service discovery device 300 includes: a first processor 304, a first memory 307, a first receiver 305, a first transmitter 306 and a first communication bus 308. The first memory 307, the first receiver 305 and the first transmitter 306 communicate with the first processor 304 through the first communication bus 308. The first memory 307 stores a program executable by the first processor 304. When the program is executed, the storage service management method applied to the service discovery device side is executed by the first processor 304.
[0190] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by the first processor 304, a storage service management method applied to a service discovery device side is implemented.
[0191] Based on the same inventive concept of the first embodiment, the embodiment of the present invention provides a central management device 200, Fig. 9 A schematic diagram of the structure of a central management device provided in an embodiment of the present invention Figure 1 ,like Fig. 9 As shown, the central management device 200 includes:
[0192] Information acquisition module 201, used to acquire update information;
[0193] A second sending module 202, configured to send the update information to a service discovery device;
[0194] The second receiving module 203 is used to receive the monitoring storage instance update information corresponding to the target monitoring device and the analysis storage instance update information corresponding to the target analysis device sent by the service discovery device in response to the update information when the update information is storage instance update information.
[0195] Furthermore, the information acquisition module 201 is also used to add or delete storage instances for the target storage service, thereby obtaining the update information including the storage instance update information; or, to add or delete monitoring devices, thereby obtaining the update information including the monitoring device update information; or, to add or delete analysis devices, thereby obtaining the update information including the analysis device update information.
[0196] Furthermore, the information acquisition module 201 is also used to acquire abnormal monitoring equipment; and delete the abnormal monitoring equipment.
[0197] It should be noted that, in actual applications, the information acquisition module 201 can be implemented by the second processing 204 located on the central management device 200, specifically, by a CPU, an MPU, a DSP or a field programmable gate array, etc. The second receiving module 203 can be implemented by a second receiver 205 located on the central management device 200; the second sending module 202 can be implemented by a second transmitter 206 located on the central management device 200.
[0198] The embodiment of the present invention also provides a central management device, such as Fig.10 As shown, the central management device 200 includes: a second processor 204, a second memory 207, a second receiver 205, a second transmitter 206 and a second communication bus 208. The second memory 207, the second receiver 205 and the second transmitter 206 communicate with the second processor 204 through the second communication bus 208. The second memory 207 stores a program executable by the second processor 204. When the program is executed, the storage service management method applied to the central management device side is executed by the second processor 204.
[0199] The embodiment of the present invention further provides a computer-readable storage medium on which a program is stored. When the program is executed by the second processor 204, a storage service management method applied to the central management device side is implemented.
[0200] Based on the same inventive concept of the first embodiment, the embodiment of the present invention provides a target monitoring device 410, Fig.11A schematic diagram of a target monitoring device provided by an embodiment of the present invention Figure 1 ,like Fig.11 As shown, the target monitoring device 410 includes:
[0201] The third receiving module 411 is used to obtain monitoring storage instance update information through the central management device;
[0202] A monitoring update module 412, configured to update the current monitoring storage instance according to the monitoring storage instance update information;
[0203] The monitoring module 413 is used to monitor the updated current monitoring storage instance and obtain the storage instance operation information;
[0204] An analysis device acquisition module 414 is used to acquire the analysis device corresponding to the updated current monitoring storage instance through the central management device;
[0205] The third sending module 415 is used to send the storage instance operation information to the analysis device corresponding to the updated current monitoring storage instance.
[0206] Furthermore, the target monitoring device 410 also includes a monitoring registration module 416, which is used to send monitoring registration information to the central management device to perform monitoring registration; when the monitoring registration is completed, the current monitoring storage instance is obtained through the central management device to monitor the current monitoring storage instance.
[0207] It should be noted that, in actual applications, the monitoring update module 412, the monitoring module 413, the analysis device acquisition module 414 and the monitoring registration module 416 can be implemented by a third processor 417 located on the target monitoring device 410, specifically a CPU, an MPU, a DSP or a field programmable gate array, etc. The third receiving module 411 can be implemented by a third receiver 418 located on the target monitoring device 410; the third sending module 415 can be implemented by a third transmitter 419 located on the target monitoring device 410.
[0208] The embodiment of the present invention also provides a target monitoring device, such as Fig.12 As shown, the target monitoring device 410 includes: a third processor 417, a third memory 4110, a third receiver 418, a third transmitter 419 and a third communication bus 4111. The third memory 4110, the third receiver 418 and the third transmitter 419 communicate with the third processor 417 through the third communication bus 4111. The third memory 4110 stores a program executable by the third processor 417. When the program is executed, the storage service management method applied to the target monitoring device side is executed by the third processor 417.
[0209] The embodiment of the present invention further provides a computer-readable storage medium on which a program is stored. When the program is executed by the third processor 417, the storage service management method applied to the target monitoring device side is implemented.
[0210] Based on the same inventive concept of the first embodiment, the present invention provides a target analysis device 510, Fig.13 A schematic diagram of a target analysis device provided in an embodiment of the present invention Figure 1 ,like Fig.13 As shown, the target analysis device 510 includes:
[0211] The fourth receiving module 511 is used to obtain the analysis storage instance update information through the central management device;
[0212] An analysis update module 512, configured to update the current analysis storage instance according to the analysis storage instance update information;
[0213] The fourth receiving module 511 is further used to receive the target storage instance operation information sent by the monitoring device corresponding to the current analysis storage instance;
[0214] The analysis module 513 is used to analyze the target storage instance operation information to obtain analysis results.
[0215] Furthermore, the target analysis device 510 also includes an analysis registration module 514, which is used to send analysis registration information to the central management device to perform analysis registration; when the analysis registration is completed, the current analysis storage instance is obtained through the central management device, and the current analysis storage instance is analyzed.
[0216] Furthermore, the analysis module 513 is also used to analyze the storage instance operation information to obtain storage instance abnormality information; based on the storage instance abnormality information, the storage device is operated and maintained to obtain the analysis result including the operation and maintenance result.
[0217] It should be noted that, in actual applications, the analysis update module 512, the analysis module 513 and the analysis registration module 514 can be implemented by a fourth processor 515 located on the target analysis device 510, specifically a CPU, an MPU, a DSP or a field programmable gate array, etc. The fourth receiving module 511 can be implemented by a fourth receiver 516 located on the target analysis device 510.
[0218] The embodiment of the present invention also provides a target analysis device, such as Fig.14As shown, the target analysis device 510 includes: a fourth processor 515, a fourth memory 517, a fourth receiver 516 and a fourth communication bus 518. The fourth memory 517 and the fourth receiver 516 communicate with the fourth processor 515 through the fourth communication bus 518. The fourth memory 517 stores a program executable by the fourth processor 515. When the program is executed, the storage service management method applied to the target analysis device side is executed by the fourth processor 515.
[0219] An embodiment of the present invention provides another computer-readable storage medium on which a program is stored. When the program is executed by the fourth processor 515, a storage service management method applied to a target analysis device side is implemented.
[0220] In practical applications, the above-mentioned memory can be a volatile memory (volatile memory), such as a random access memory (Random-Access Memory, RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (Read-Only Memory, ROM), a flash memory (flash memory), a hard disk (Hard Disk Drive, HDD) or a solid-state drive (Solid-State Drive, SSD); or a combination of the above types of memory, and provide instructions and data to the corresponding processor.
[0221] It can be understood that since the service discovery device can distribute the load to the corresponding monitoring devices and analysis devices for update information including storage instance update information, load balancing of the storage service is achieved, the stability of the storage service implementation process is ensured, and the security of the storage service implementation can be improved.
[0222] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0223] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0224] In addition, all functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units. A person of ordinary skill in the art may understand that all or part of the steps of implementing the above method embodiments may be completed by hardware related to program instructions, and the above program may be stored in a computer-readable storage medium, which, when executed, executes the steps of the above method embodiments; and the above storage medium includes various media that can store program codes, such as mobile storage devices, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0225] The methods disclosed in several method embodiments provided in this application can be combined arbitrarily without conflict to obtain new method embodiments. The features disclosed in several product embodiments provided in this application can be combined arbitrarily without conflict to obtain new product embodiments.
[0226] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0227] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A storage service management method, applied to a service discovery device, characterized in that: The method comprises: Receive update information sent by the central management device; When the update information is storage instance update information, determine the target monitoring device corresponding to the storage instance update information according to the correspondence between the preset storage service and the monitoring device, and combine the storage instance update information with the target monitoring device to obtain the monitoring storage instance update information corresponding to the target monitoring device; Determine the target analysis device corresponding to the storage instance update information according to the correspondence between the preset storage service and the analysis device, and combine the storage instance update information with the target analysis device to obtain the analysis storage instance update information corresponding to the target analysis device; Send the monitoring storage instance update information corresponding to the target monitoring device and the analysis storage instance update information corresponding to the target analysis device to the central management device; the monitoring storage instance update information is used to enable the target monitoring device to update the current monitoring storage instance according to the monitoring storage instance update information; monitor the updated current monitoring storage instance to obtain storage instance operation information; obtain the analysis device corresponding to the updated current monitoring storage instance through the central management device; send the storage instance operation information to the analysis device corresponding to the updated current monitoring storage instance; the analysis storage instance update information is used to enable the target analysis device to update the current analysis storage instance according to the analysis storage instance update information; receive the target storage instance operation information sent by the monitoring device corresponding to the updated current analysis storage instance; analyze the target storage instance operation information to obtain the analysis result.
2. The method according to claim 1, characterized in that After the update information sent by the receiving central management device, the method further includes: When the update information is monitoring device update information, updating the preset monitoring device according to the monitoring device update information; Confirming that the correspondence between the preset storage service and the monitoring device is a first correspondence, and determining the changed monitoring device and the changed monitoring storage instance corresponding to the changed monitoring device according to the first correspondence and the updated preset monitoring device; The changed monitoring storage instance corresponding to the changed monitoring device is sent to the central management device.
3. The method according to claim 1, characterized in that After the update information sent by the receiving central management device, the method further includes: When the update information is analysis device update information, updating the preset analysis device according to the analysis device update information; Confirming that the correspondence between the preset storage service and the analysis device is a second correspondence, and determining a changed analysis device and a changed analysis storage instance corresponding to the changed analysis device according to the second correspondence and the updated preset analysis device; The changed analysis storage instance corresponding to the changed analysis device is sent to the central management device.
4. The method according to claim 1, characterized in that: The determining, according to the correspondence between the preset storage service and the monitoring device, a target monitoring device corresponding to the storage instance update information includes: According to the correspondence between the preset storage service and the storage instance, obtain the target storage service corresponding to the storage instance update information; The target monitoring device corresponding to the target storage service is determined according to the correspondence between the preset storage service and the monitoring device.
5. A storage service management method, applied to a central management device, characterized in that: The method comprises: Get updated information; Send the update information to a service discovery device; when the update information is storage instance update information, the service discovery device is used to determine, according to the correspondence between preset storage services and monitoring devices, a target monitoring device corresponding to the storage instance update information, and to combine the storage instance update information with the target monitoring device to obtain the monitoring storage instance update information corresponding to the target monitoring device; determine, according to the correspondence between preset storage services and analysis devices, a target analysis device corresponding to the storage instance update information, and to combine the storage instance update information with the target analysis device to obtain the analysis storage instance update information corresponding to the target analysis device; When the update information is storage instance update information, the monitoring storage instance update information corresponding to the target monitoring device and the analysis storage instance update information corresponding to the target analysis device sent by the service discovery device in response to the update information are received; the monitoring storage instance update information is used to enable the target monitoring device to update the current monitoring storage instance according to the monitoring storage instance update information; the updated current monitoring storage instance is monitored to obtain storage instance operation information; the analysis device corresponding to the updated current monitoring storage instance is obtained through the central management device; the storage instance operation information is sent to the analysis device corresponding to the updated current monitoring storage instance; the analysis storage instance update information is used to enable the target analysis device to update the current analysis storage instance according to the analysis storage instance update information; the target storage instance operation information sent by the monitoring device corresponding to the updated current analysis storage instance is received; the target storage instance operation information is analyzed to obtain analysis results.
6. The method according to claim 5, characterized in that The obtaining of update information includes: Add or delete storage instances for the target storage service, thereby obtaining the update information including the storage instance update information; or, Add or delete monitoring devices, thereby obtaining the update information including the monitoring device update information; or, Add or delete analysis devices, thereby obtaining the update information including the update information of the analysis devices.
7. The method according to claim 6, characterized in that The addition and deletion monitoring device includes: Obtain abnormal monitoring equipment; Delete the abnormal monitoring device.
8. A storage service management method, applied to a target monitoring device, characterized in that: The method comprises: Obtain monitoring storage instance update information through a central management device; the central management device is used to obtain update information; send the update information to a service discovery device; the service discovery device is used to receive the update information sent by the central management device; when the update information is storage instance update information, determine the target monitoring device corresponding to the storage instance update information according to the correspondence between the preset storage service and the monitoring device, and combine the storage instance update information with the target monitoring device to obtain the monitoring storage instance update information corresponding to the target monitoring device; determine the target analysis device corresponding to the storage instance update information according to the correspondence between the preset storage service and the analysis device, and combine the storage instance update information with the target analysis device to obtain the analysis storage instance update information corresponding to the target analysis device; the service discovery device is also used to send the monitoring storage instance update information corresponding to the target monitoring device and the analysis storage instance update information corresponding to the target analysis device to the central management device; Update the current monitoring storage instance according to the monitoring storage instance update information; Monitor the updated current monitoring storage instance to obtain storage instance operation information; Obtaining, through the central management device, an analysis device corresponding to the updated current monitoring storage instance; The storage instance operation information is sent to the analysis device corresponding to the updated current monitoring storage instance; the analysis device is used to obtain the analysis storage instance update information through the central management device; according to the analysis storage instance update information, the current analysis storage instance is updated; the target storage instance operation information sent by the monitoring device corresponding to the updated current analysis storage instance is received; the target storage instance operation information is analyzed to obtain the analysis result.
9. The method according to claim 8, characterized in that Before obtaining the monitoring storage instance update information through the central management device, the method further includes: Sending monitoring registration information to the central management device to perform monitoring registration; When the monitoring registration is completed, the current monitoring storage instance is obtained through the central management device, and the current monitoring storage instance is monitored.
10. A storage service management method, applied to a target analysis device, characterized in that: The method comprises: Obtain analysis storage instance update information through a central management device; the central management device is used to obtain update information; send the update information to a service discovery device; the service discovery device is used to receive update information sent by the central management device; when the update information is storage instance update information, determine the target monitoring device corresponding to the storage instance update information according to the correspondence between the preset storage service and the monitoring device, and combine the storage instance update information with the target monitoring device to obtain the monitoring storage instance update information corresponding to the target monitoring device; determine the target analysis device corresponding to the storage instance update information according to the correspondence between the preset storage service and the analysis device, and combine the storage instance update information with the target analysis device to obtain the analysis storage instance update information corresponding to the target analysis device; the service discovery device is also used to send the monitoring storage instance update information corresponding to the target monitoring device and the analysis storage instance update information corresponding to the target analysis device to the central management device; According to the analysis storage instance update information, updating the current analysis storage instance; Receive the target storage instance operation information sent by the monitoring device corresponding to the updated current analysis storage instance; the monitoring device is used to obtain the monitoring storage instance update information through the central management device; update the current monitoring storage instance according to the monitoring storage instance update information; monitor the updated current monitoring storage instance to obtain the storage instance operation information; obtain the analysis device corresponding to the updated current monitoring storage instance through the central management device; send the storage instance operation information to the analysis device corresponding to the updated current monitoring storage instance; The target storage instance operation information is analyzed to obtain an analysis result.
11. The method according to claim 10, characterized in that Before obtaining the analysis storage instance update information through the central management device, the method further includes: Sending analysis registration information to the central management device to perform analysis registration; When the analysis registration is completed, the current analysis storage instance is obtained through the central management device, and the current analysis storage instance is analyzed.
12. The method according to claim 10 or 11, characterized in that: The analyzing the target storage instance operation information to obtain the analysis result includes: Analyze the storage instance operation information to obtain storage instance abnormality information; According to the storage instance abnormal information, the storage device is operated and maintained to obtain the analysis result including the operation and maintenance result.
13. A service discovery device, characterized in that: The device includes: a first processor, a first memory, a first receiver, a first transmitter and a first communication bus, the first memory, the first receiver and the first transmitter communicate with the first processor through the first communication bus, the first memory stores a program executable by the first processor, and when the program is executed, the method described in any one of claims 1 to 4 is executed by the first processor.
14. A central management device, characterized in that: The device includes: a second processor, a second memory, a second receiver, a second transmitter and a second communication bus, the second memory, the second receiver and the second transmitter communicate with the second processor via the second communication bus, the second memory stores a program executable by the second processor, and when the program is executed, the method described in any one of claims 5 to 7 is executed by the second processor.
15. A target monitoring device, characterized in that: The device includes: a third processor, a third memory, a third receiver, a third transmitter and a third communication bus, the third memory, the third receiver and the third transmitter communicate with the third processor via the third communication bus, the third memory stores a program executable by the third processor, and when the program is executed, the method as claimed in claim 8 or 9 is executed by the third processor.
16. A target analysis device, characterized in that: The device includes: a fourth processor, a fourth memory, a fourth receiver and a fourth communication bus, the fourth memory and the fourth receiver communicate with the fourth processor via the fourth communication bus, the fourth memory stores a program executable by the fourth processor, and when the program is executed, the method described in any one of claims 10 to 12 is performed by the fourth processor.
17. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a first processor, it implements the method according to any one of claims 1 to 4; when the program is executed by a second processor, it implements the method according to any one of claims 5 to 7; when the program is executed by a third processor, it implements the method according to claim 8 or 9; when the program is executed by a fourth processor, it implements the method according to any one of claims 10 to 12.
