Server data synchronization method and device, electronic equipment and storage medium
By subscribing to and analyzing the data synchronization events of the server cluster, efficient data synchronization and alarm cause analysis of the server management software are realized, which solves the problems of low data synchronization efficiency and ambiguous alarm information in the existing technology, and improves the efficiency and security of server management. sex.
Patent Information
- Application Number
- CN202410718396.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-09-24
AI Technical Summary
Existing server management software is inefficient due to the large amount of data updates during data synchronization. It cannot update server information in real time, and the alarm information is fuzzy and cannot provide accurate alarm causes.
By subscribing to the data synchronization events of the server cluster, it analyzes and caches alarm and non-alarm event messages, performs targeted synchronization of only changed firmware information, generates an alarm analysis list, and provides data synchronization and alarm cause analysis.
It improves data synchronization efficiency, reduces the amount of data updates for server management software, provides real-time server information display and accurate alarm cause analysis, and helps operation and maintenance personnel quickly troubleshoot problems.
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The present application relates to the field of server technology, and in particular to a server data synchronization method, device, electronic device and storage medium. Background Art
[0002] With the update and development of server technology, server manufacturers generally provide users with server management software to reduce the difficulty of service management. The server management software has the functions of server firmware information display, performance monitoring and server alarm.
[0003] In the related art, server management software usually re-acquires the latest data of all servers in the data center on a periodic basis to perform corresponding data synchronization.
[0004] However, as the number of servers deployed in data centers increases, the current server management software data synchronization method requires a full update of the data each time the data is synchronized, resulting in a huge amount of data updates for the server management software, which reduces the efficiency of data synchronization. Summary of the invention
[0005] The present application provides a server data synchronization method, device, electronic device and storage medium to solve the defects of related technologies such as extremely large data update volume and reduced data synchronization efficiency.
[0006] The first aspect of the present application provides a server data synchronization method, comprising:
[0007] Subscribe to data synchronization events of each target server in the server cluster, so that each target server reports a corresponding data synchronization event message when firmware information changes;
[0008] Analyze the data synchronization event messages reported by each of the target servers to obtain corresponding data synchronization event analysis results;
[0009] According to the data synchronization event analysis result, data synchronization is performed on the server management software of the server cluster.
[0010] In an optional implementation manner, the data synchronization event of each target server in the subscription server cluster includes:
[0011] Generate an event subscription request according to the preset configuration information;
[0012] Sending the generated event subscription request to the data synchronization event subscription interface of each target server in the server cluster;
[0013] The preset configuration information at least includes a target address and event subscription requirements.
[0014] In an optional implementation manner, analyzing the data synchronization event messages reported by each of the target servers to obtain corresponding data synchronization event analysis results includes:
[0015] For any data synchronization event message reported by the target server, target extracting key fields from the data synchronization event message to obtain a target key field extraction result;
[0016] Determine the data event type corresponding to the data synchronization event message according to the target key field extraction result;
[0017] When the data event type corresponding to the data synchronization event message is a non-alarm event, caching the data synchronization event message into a first queue;
[0018] When the data event type corresponding to the data synchronization event message is an alarm event, the data synchronization event message is cached in a second queue; wherein the capacity of the second queue is smaller than the capacity of the first queue;
[0019] Analyze the data synchronization event messages in the first queue according to the preset non-alarm event analysis standard to obtain the data synchronization event analysis result of the non-alarm event;
[0020] Analyze the data synchronization event message in the second queue according to the preset alarm event analysis standard to obtain the data synchronization event analysis result of the alarm event;
[0021] In the case where the preset alarm cause rule base covers the alarm event, determining the cause of the alarm event based on the preset alarm cause rule base and according to the alarm event characteristic information represented by the data synchronization event analysis result of the alarm event;
[0022] Generate an alarm analysis list based on the cause of the alarm event.
[0023] In an optional implementation manner, analyzing the data synchronization event messages in the first queue according to a preset non-alarm event analysis standard to obtain a data synchronization event analysis result of a non-alarm event includes:
[0024] According to a preset non-alarm event analysis standard, extracting non-alarm event analysis fields from the data synchronization event messages in the first queue to obtain non-alarm event analysis field extraction results;
[0025] Determining a data synchronization event analysis result of the non-alarm event according to the non-alarm event analysis field extraction result;
[0026] The non-alarm event analysis field at least includes a non-alarm event type field, an event information field and a firmware type field.
[0027] In an optional implementation, when the data event type corresponding to the data synchronization event message is an alarm event, caching the data synchronization event message to the second queue includes:
[0028] When the data event type corresponding to the data synchronization event message is an alarm event, extracting the alarm level field of the data synchronization event message to obtain an alarm level field extraction result;
[0029] According to the alarm level field extraction result, filtering the data synchronization event message corresponding to the target alarm event in the data synchronization event message;
[0030] The data synchronization event message corresponding to the target alarm event is cached in the second queue.
[0031] In an optional embodiment, the method further includes:
[0032] In the case where the preset alarm cause rule base does not cover the alarm event, obtaining non-alarm event information of the firmware type within a preset time period before and after the occurrence of the alarm event according to the firmware type and alarm time represented by the data synchronization event analysis result of the alarm event;
[0033] The cause of the alarm event is determined according to the non-alarm event information of the firmware type within a preset time period before and after the alarm event occurs.
[0034] In an optional implementation, synchronizing data on the server management software of the server cluster according to the data synchronization event analysis result includes:
[0035] Generate server change information according to the data synchronization event analysis result;
[0036] The server change information is sent to the server management software service end to synchronize data with the server management software.
[0037] A second aspect of the present application provides a server data synchronization device, comprising:
[0038] A subscription module, used to subscribe to data synchronization events of each target server in the server cluster, so that each target server reports a corresponding data synchronization event message when firmware information changes;
[0039] An analysis module, used to analyze the data synchronization event messages reported by each of the target servers to obtain corresponding data synchronization event analysis results;
[0040] The data synchronization module is used to synchronize the data of the server management software of the server cluster according to the data synchronization event analysis result.
[0041] A third aspect of the present application provides an electronic device, comprising: at least one processor and a memory;
[0042] The memory stores computer-executable instructions;
[0043] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method described in the first aspect and various possible designs of the first aspect.
[0044] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the method described in the first aspect and various possible designs of the first aspect are implemented.
[0045] The technical solution of this application has the following advantages:
[0046] The present application provides a server data synchronization method, device, electronic device and storage medium, the method comprising: subscribing to data synchronization events of each target server in a server cluster, so that each target server reports a corresponding data synchronization event message when the firmware information changes; analyzing the data synchronization event message reported by each target server to obtain a corresponding data synchronization event analysis result; and synchronizing the server management software of the server cluster according to the data synchronization event analysis result. The method provided by the above scheme collects the firmware change information of each target server by adopting the data synchronization event subscription method, so that only the firmware information that has changed in the server management software is synchronized in a targeted manner, which reduces the data update amount of the server management software and improves the data synchronization efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the following is a brief introduction to the drawings required for use in the embodiments or the related technical descriptions. Obviously, the drawings described below are some embodiments of the present application, and a person skilled in the art can also obtain other drawings based on these drawings.
[0048] Figure 1 This is a schematic diagram of the structure of the server data synchronization system based on the embodiment of the present application;
[0049] Figure 2 A schematic diagram of a process flow of a server data synchronization method provided in an embodiment of the present application;
[0050] Figure 3 A schematic diagram of an exemplary non-alarm event parsing template provided in an embodiment of the present application;
[0051] Figure 4 A flowchart of an exemplary server data synchronization method provided in an embodiment of the present application;
[0052] Figure 5 A schematic diagram of an exemplary preset alarm cause rule base provided in an embodiment of the present application;
[0053] Figure 6 A flowchart of another exemplary server data synchronization method provided in an embodiment of the present application;
[0054] Figure 7 A schematic diagram of the structure of a server data synchronization device provided in an embodiment of the present application;
[0055] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0056] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0058] In addition, the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. In the description of the following embodiments, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0059] In related technologies, with the update and development of server technology, the amount of server data deployed in business and data centers is also increasing. In order to reduce the difficulty of service management and improve server operation and maintenance efficiency, each server manufacturer will provide users with server management software. The management software has the functions of server firmware information display, performance monitoring and server alarm. It can obtain information such as server firmware performance through server interface or standard protocol and store it in the database for display, and provide firmware alarm information for users to troubleshoot server abnormalities. At present, the management software synchronizes server firmware information mainly including manual update or scheduled update, which has the disadvantage of full data update, resulting in low efficiency of data information synchronization. At the same time, the scheduled update has the disadvantage of too long interruption time, resulting in the inability to update data in real time, resulting in the inability to display server information in real time. At the same time, there are problems such as vague alarm information and inability to provide alarm reasons, which makes it impossible for users or operation and maintenance personnel to troubleshoot problems through alarm information.
[0060] In response to the above problems, the server data synchronization method, device, electronic device and storage medium provided in the embodiments of the present application include: subscribing to the data synchronization events of each target server in the server cluster, so that each target server reports a corresponding data synchronization event message when the firmware information changes; analyzing the data synchronization event message reported by each target server to obtain the corresponding data synchronization event analysis result; and synchronizing the server management software of the server cluster according to the data synchronization event analysis result. The method provided by the above scheme collects the firmware change information of each target server by adopting the data synchronization event subscription method, so that only the firmware information that has changed in the server management software is synchronized in a targeted manner, which reduces the data update amount of the server management software and improves the data synchronization efficiency.
[0061] The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.
[0062] First, the structure of the server data synchronization system on which this application is based is described:
[0063] The server data synchronization method, device, electronic device and storage medium provided in the embodiments of the present application are suitable for performing server data synchronization processing on server management software. Figure 1As shown, it is a structural diagram of the server data synchronization system based on the embodiment of the present application, which mainly includes a server cluster, a server management software server and an electronic device for executing the server data synchronization method. Specifically, the electronic device subscribes to the data synchronization events of each target server in the server cluster, so that each target server reports the corresponding data synchronization event message when the firmware information changes, and provides synchronization data to the server management software server according to the obtained data synchronization event message, so as to synchronize the data of the server management software of the server cluster.
[0064] The embodiment of the present application provides a server data synchronization method for performing server data synchronization processing on server management software. The execution subject of the embodiment of the present application is an electronic device, such as a server, a desktop computer, a laptop computer, a tablet computer, and other electronic devices that can be used for performing server data synchronization processing on server management software.
[0065] like Figure 2 FIG. 1 is a flow chart of a method for synchronizing server data provided by an embodiment of the present application, the method comprising:
[0066] Step 201 : subscribing to data synchronization events of each target server in the server cluster, so that each target server reports a corresponding data synchronization event message when firmware information changes.
[0067] Specifically, the Redfish standard protocol may be used to subscribe to data synchronization events of each target server in the server cluster.
[0068] Among them, Redfish is also an advanced server management software solution. It aims to provide simplified, flexible and interoperable remote management capabilities, which can be used alone or in conjunction with traditional remote management technologies (such as IPMI). Redfish uses modern RESTful APIs and standard data formats to make remote management simpler, easier to use, and compatible with modern technology environments such as cloud computing and containerization. It provides functions such as power control, hardware monitoring, system configuration, etc., enabling administrators to remotely manage and monitor the entire hardware ecosystem. In addition, Redfish also has the advantages of scalability, security and interoperability. It can adapt to the needs of different manufacturers and device types, support custom extensions and business-specific functions, and ensure that access and operation of remote management interfaces are limited to authorized users.
[0069] Specifically, in one embodiment, an event subscription request may be generated according to preset configuration information; the generated event subscription request is sent to a data synchronization event subscription interface of each target server in the server cluster.
[0070] The preset configuration information at least includes a target address and event subscription requirements, and the data synchronization event subscription interface of the target server specifically refers to a Redfish subscription module interface.
[0071] Specifically, the IP address of the electronic device that executes the server data synchronization method provided in the embodiment of the present application can be used as the target address, and the event subscription requirement is to subscribe to all event types. In practical applications, the electronic device that executes the server data synchronization method provided in the embodiment of the present application can be a server management software server. After any target server in the server cluster has corresponding event information, the data synchronization event message is pushed to the target address.
[0072] Exemplarily, when managing the corresponding server, the server management software automatically configures and creates a Redfish subscription event interface, which is a unified Redfish interface specification, and the address is
[0073] / redfish / EventService / Subscriptions, the request parameters of this interface are as follows:
[0074]
[0075] Among them, Destination in this parameter is the server management software background event receiving address (destination address), that is, this address receives the alarm information generated by the server, and EventTypes is the subscribed event type. EventTypes is the subscribed event type, which is divided into five types of events. StatusChange, ResourceUpdated, ResourceAdded, and ResourceRemoved are collectively referred to as non-alarm event types. Alert is an alarm event type. Different from the other 4 event types, this event type pushes mostly server alarm information, such as CPU temperature is too high, hard disk failure, etc.
[0076] Step 202: Analyze the data synchronization event messages reported by each target server to obtain corresponding data synchronization event analysis results.
[0077] Specifically, by analyzing the data synchronization event message reported by the target server, it is possible to analyze which firmware changes, the content of the firmware changes, and the time of the changes on the target server, so as to obtain the corresponding data synchronization event analysis result.
[0078] Step 203: synchronize the data of the server management software of the server cluster according to the data synchronization event analysis result.
[0079] It should be noted that the server management software stores information such as firmware performance of each database in the server cluster based on a preset database.
[0080] Specifically, in one embodiment, server change information may be generated according to the data synchronization event analysis result; the server change information may be sent to the server management software service end to synchronize data with the server management software.
[0081] Specifically, after obtaining the data synchronization event analysis results, server change information can be generated based on the data synchronization event analysis results to perform targeted updates on the data in the preset database to achieve data synchronization of the server management software, so that the server management software can achieve real-time updates of the status of corresponding server components.
[0082] On the basis of the above embodiments, due to the problems of vague alarm information and inability to provide alarm reasons in related technologies, users or operation and maintenance personnel are unable to troubleshoot problems through alarm information. In order to solve this technical problem, the embodiment of the present application proposes a data synchronization event message classification analysis method to improve the reliability of the data synchronization event analysis results while realizing the analysis function of the target server alarm information. As an implementable method, in one embodiment, the data synchronization event messages reported by each target server are analyzed to obtain the corresponding data synchronization event analysis results, including:
[0083] Step 2021, for a data synchronization event message reported by any target server, target extract key fields from the data synchronization event message to obtain a target key field extraction result;
[0084] Step 2022, determining the data event type corresponding to the data synchronization event message according to the target key field extraction result;
[0085] Step 2023: When the data event type corresponding to the data synchronization event message is a non-alarm event, cache the data synchronization event message to the first queue;
[0086] Step 2024: When the data event type corresponding to the data synchronization event message is an alarm event, the data synchronization event message is cached in the second queue; wherein the capacity of the second queue is smaller than the capacity of the first queue;
[0087] Step 2025, analyzing the data synchronization event messages in the first queue according to the preset non-alarm event analysis standard to obtain the data synchronization event analysis result of the non-alarm event;
[0088] Step 2026, analyzing the data synchronization event message in the second queue according to the preset alarm event analysis standard to obtain the data synchronization event analysis result of the alarm event;
[0089] Step 2027, in the case where the preset alarm cause rule base covers the alarm event, based on the preset alarm cause rule base, according to the alarm event characteristic information represented by the data synchronization event analysis result of the alarm event, determine the cause of the alarm event;
[0090] Step 2028: Generate an alarm analysis list based on the cause of the alarm event and the data synchronization event analysis result.
[0091] Among them, the target key field is the EventType field, and whether the received event message type is an alarm event message is determined according to the EventType field. If EventType is Alert, it means that the event message is an alarm event, otherwise, it is a non-alarm event.
[0092] Specifically, in the process of analyzing the data synchronization event message, the key fields are first extracted from the data synchronization event message to determine the data event type corresponding to the data synchronization event message, and the data event type is divided into alarm events and non-alarm events. For non-alarm events, they are first cached to the first queue, and then the data synchronization event messages in the first queue are analyzed according to the preset non-alarm event analysis standard to obtain the data synchronization event analysis results of the non-alarm events. For alarm events, they are first cached to the second queue, and then the data synchronization event messages in the second queue are analyzed according to the preset alarm event analysis standard to obtain the data synchronization event analysis results of the alarm events, and further combined with the data synchronization event analysis results of the alarm events, the cause of the alarm event is analyzed, and finally the corresponding alarm analysis list is generated, and then the alarm analysis list is pushed to the server management and operation personnel. Subsequently, the server management and operation personnel determine the accurate cause of the alarm based on the alarm analysis list.
[0093] Specifically, in one embodiment, non-alarm event analysis fields can be extracted from data synchronization event messages in the first queue according to preset non-alarm event analysis standards to obtain non-alarm event analysis field extraction results; based on the non-alarm event analysis field extraction results, the data synchronization event analysis results of the non-alarm events are determined.
[0094] The non-alarm event analysis field at least includes a non-alarm event type field, an event information field, and a firmware type field.
[0095] It should be noted that the preset non-alarm event analysis standard can be represented by a non-alarm event analysis template, such as Figure 3 , which is a schematic diagram of an exemplary non-alarm event parsing template provided in an embodiment of the present application. The non-alarm event parsing template includes an event type (non-alarm event type), event information, and a firmware type.
[0096] It needs to be further explained that if Figure 3 As shown, non-alarm event types include StatusChange, ResourceUpdated, ResourceAdded, and ResourceRemoved, where StatusChange is a status change event type (e.g., the server is powered on or off, i.e., the power status changes), ResourceUpdated is a resource modification event type (e.g., CPU usage rate increases), ResourceAdded is a resource addition event type (e.g., a new memory stick is inserted into the server), and ResourceRemoved is a resource removal event type (e.g., a hard disk is removed from the server). Event information indicates the specific changes in the firmware that has changed, poweron indicates that the power is turned on, memory usage rate up 10% indicates that the memory usage rate increases by 10%, disk add X710 indicates that hard disk X710 is added, cpu remove CPU_0 indicates that CPU_0 is removed from the target server, and so on.
[0097] Specifically, Figure 4 As shown, it is a flow chart of an exemplary server data synchronization method provided by an embodiment of the present application. First, the management software receives an alarm event while receiving a non-alarm event, that is, receives a data synchronization event message, selects non-alarm events from all events, and then initializes a cache queue, stores non-alarm information in the queue (first queue), parses non-alarm events, and then based on the following example, Figure 3 The non-alarm event parsing template shown is matched and parsed to generate server change information (data synchronization event analysis results), and finally the server change information is sent to the server management software server to enable the server management software to synchronize the data and record the alarm processing history and resource change history.
[0098] Specifically, in one embodiment, when the data event type corresponding to the data synchronization event message is an alarm event, the alarm level field of the data synchronization event message is extracted to obtain the alarm level field extraction result; according to the alarm level field extraction result, the data synchronization event message corresponding to the target alarm event is filtered in the data synchronization event message; the data synchronization event message corresponding to the target alarm event is cached in the second queue.
[0099] It should be noted that, since in actual applications, the number of non-alarm events in a server cluster is much greater than the number of alarm events, the corresponding cache queue size can be configured according to the hardware characteristics such as the memory and disk capacity of the electronic device that executes the server data synchronization method provided in the embodiment of the present application. That is, the cache queue size of the alarm event can be configured according to the server management software hardware information.
[0100] Specifically, the cache queue includes a first queue and a second queue. Since the frequency of alarm events is much lower than the frequency of non-alarm events, the size of the second queue is much smaller than the size of the first queue.
[0101] Furthermore, since the space of the second queue is relatively small, the target alarm events that meet the preset conditions can be screened according to the alarm level of the alarm event represented by the alarm level field, and finally only the data synchronization event message corresponding to the target alarm event is cached in the second queue.
[0102] For example, when an alarm occurs on the target server, the corresponding alarm event will be sent to the subscribed management software background. The management software background receives the data synchronization event message of the corresponding alarm event as follows:
[0103] {
[0104] "Id":"66", / / Event ID
[0105] "Name":"Event Array", / / Event name
[0106] "Events":[
[0107] {
[0108] "EventType":"Alert", / / Event type
[0109] "EventId":"ABC132489713478812346",
[0110] "Severity":"Critical", / / Alarm event level
[0111] "EventTimestamp":"2017-11-23T17:17:42-0600", / / Time when the event occurred
[0112] "Message":"The PSU input lost", / / Event content
[0113] "MessageId":"Alert.1.0.PSUinputlost",
[0114] } ]
[0116] }
[0117] Among them, if the event type is Alert, it indicates that the event is an alarm event. The alarm event levels are divided into OK (normal), Warning (warning), and Critical (dangerous). Alarm events with alarm event levels of Warning and Critical can be used as target alarm events.
[0118] Specifically, in one embodiment, when the alarm event is not covered by the preset alarm cause rule base, non-alarm event information of the firmware type within a preset time period before and after the alarm event is obtained based on the firmware type and alarm time represented by the data synchronization event analysis results of the alarm event; the cause of the alarm event is determined based on the non-alarm event information of the firmware type within the preset time period before and after the alarm event.
[0119] For example, Figure 5 As shown, it is a schematic diagram of an exemplary preset alarm cause rule base provided in an embodiment of the present application. The preset alarm cause rule base is also called the alarm cause rule base. The alarm cause rule base includes alarm event information, alarm level, alarm event firmware and alarm cause, wherein disk cause error indicates hard disk error, and Fandualspeed too high indicates that the fan speed is too high. The alarm cause rule base is derived from the alarm event processing traceability, that is, after the alarm event is processed, the server management personnel and operation and maintenance personnel summarize the alarm cause and enter and update it.
[0120] Specifically, for any alarm event, the corresponding alarm cause may be determined in the alarm cause rule base according to the alarm event information, the alarm level and the alarm event firmware represented by the data synchronization event analysis result of the alarm event.
[0121] Among them, since the alarms that may actually occur on the server are diverse, the preset alarm cause rule base is difficult to cover all alarms. Therefore, when the preset alarm cause rule base does not cover the alarm event, the firmware type and alarm time represented by the data synchronization event analysis results of the alarm event can be used to obtain the non-alarm event information of the firmware type within the preset time period before and after the alarm event; based on the non-alarm event information of the firmware type within the preset time period before and after the alarm event, the cause of the alarm event can be determined.
[0122] For example, Figure 6 As shown, it is a flow chart of another exemplary server data synchronization method provided in an embodiment of the present application, which is similar to the Figure 4The method shown is different in that it filters the alarm events, and then matches the alarm cause rule base. If the alarm cause rule base does not match, it is determined that the preset alarm cause rule base does not cover the alarm event, and then based on the firmware type and alarm time represented by the data synchronization event analysis results of the alarm event, the non-alarm event information of the firmware type within the preset time period before and after the alarm event is obtained; based on the non-alarm event information of the firmware type within the preset time period before and after the alarm event, the cause of the alarm event is determined.
[0123] For example, if the alarm event is that the power supply temperature is too high and the firmware type is power supply, then the non-alarm event information of the power supply within the preset time period before and after the alarm event can be obtained to check whether there is a power supply version upgrade event or a server version upgrade event within 1 and a half hours before the alarm occurs. Usually, the above operations will increase the power consumption of the server, thereby causing the power supply temperature to rise. If the alarm event is a server login authentication alarm, the server login failure event of the server can be queried 1 hour before the alarm is generated, so as to provide the alarm cause of the event as multiple failed logins. If the alarm event is a hard disk failure alarm and the firmware type is hard disk, then the non-alarm event information of the hard disk within the preset time period before and after the alarm event can be obtained to check whether there is a hard disk version upgrade event or a hard disk plug-in event of the server 1 hour before the alarm is generated. Usually, mismatched firmware upgrade versions or frequent plug-in and unplug of hard disks will cause hard disk failures.
[0124] Specifically, after parsing the non-alarm events, the server firmware and status performance information of the server management software are updated in real time, the non-alarm event content and server information are updated and stored in the history, and the non-alarm event parsing template is updated. After parsing the alarm events, a possible list of alarm causes (alarm analysis list) is generated. After the server management and operation personnel determine the accurate cause of the alarm, the alarm cause rule base is updated and the alarm parsing history is stored.
[0125] Furthermore, in one embodiment, after determining the cause of the alarm event according to the non-alarm event information of the firmware type within a preset time period before and after the alarm event occurs, the preset alarm cause rule base can be further expanded according to the alarm event information, alarm level, alarm event firmware and the determined cause of the alarm event, so that the preset alarm cause rule base covers more alarm events, thereby improving the efficiency of alarm cause analysis. Among them, the efficiency of analyzing the cause of the alarm event based on the preset alarm cause rule base is higher.
[0126] The server data synchronization method provided in the embodiment of the present application, by subscribing to the data synchronization events of each target server in the server cluster, so that each target server reports the corresponding data synchronization event message when the firmware information changes; analyzing the data synchronization event message reported by each target server to obtain the corresponding data synchronization event analysis result; according to the data synchronization event analysis result, the server management software of the server cluster is synchronized. The method provided by the above scheme collects the firmware change information of each target server by adopting the data synchronization event subscription method, so that only the firmware information that has changed in the server management software is synchronized in a targeted manner, which reduces the data update amount of the server management software and improves the data synchronization efficiency. In addition, by analyzing the cause of the alarm event, while improving the data synchronization efficiency of the server management software, it helps the server management and operation personnel to check the alarm information, laying a foundation for improving the security of the target server.
[0127] An embodiment of the present application provides a server data synchronization device, which is used to execute the server data synchronization method provided in the above embodiment.
[0128] like Figure 7 , which is a schematic diagram of the structure of a server data synchronization device provided in an embodiment of the present application. The server data synchronization device 70 comprises: a subscription module 701 , an analysis module 702 and a data synchronization module 703 .
[0129] Among them, the subscription module is used to subscribe to the data synchronization events of each target server in the server cluster, so that each target server reports the corresponding data synchronization event message when the firmware information changes; the analysis module is used to analyze the data synchronization event message reported by each target server to obtain the corresponding data synchronization event analysis result; the data synchronization module is used to synchronize the server management software of the server cluster according to the data synchronization event analysis result.
[0130] Regarding the server data synchronization device in this embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0131] The server data synchronization device provided in the embodiment of the present application is used to execute the server data synchronization method provided in the above embodiment. Its implementation method and principle are the same and will not be repeated here.
[0132] An embodiment of the present application provides an electronic device for executing the server data synchronization method provided in the above embodiment.
[0133] like Figure 8FIG. 8 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 80 includes: at least one processor 81 and a memory 82.
[0134] The memory stores computer-executable instructions; the at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the server data synchronization method provided in the above embodiment.
[0135] The electronic device provided in the embodiment of the present application is used to execute the server data synchronization method provided in the above embodiment. Its implementation method and principle are the same and will not be repeated here.
[0136] An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the server data synchronization method provided in any of the above embodiments is implemented.
[0137] The storage medium containing computer executable instructions provided in the embodiment of the present application can be used to store computer executable instructions of the server data synchronization method provided in the aforementioned embodiment. Its implementation method and principle are the same and will not be repeated here.
[0138] 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. For example, 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 integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0139] The units described as separate components may or may not be physically separated, and the components shown 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 solution of this embodiment.
[0140] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0141] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0142] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0143] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A server data synchronization method, characterized in that: include: Subscribe to data synchronization events of each target server in the server cluster, so that each target server reports a corresponding data synchronization event message when firmware information changes; Analyze the data synchronization event messages reported by each of the target servers to obtain corresponding data synchronization event analysis results; According to the data synchronization event analysis result, data synchronization is performed on the server management software of the server cluster.
2. The method according to claim 1, characterized in that: The data synchronization events of each target server in the subscription server cluster include: Generate an event subscription request according to the preset configuration information; Sending the generated event subscription request to the data synchronization event subscription interface of each target server in the server cluster; The preset configuration information at least includes a target address and event subscription requirements.
3. The method according to claim 1, characterized in that The analyzing the data synchronization event messages reported by each of the target servers to obtain corresponding data synchronization event analysis results includes: For any data synchronization event message reported by the target server, target extracting key fields from the data synchronization event message to obtain a target key field extraction result; Determine the data event type corresponding to the data synchronization event message according to the target key field extraction result; When the data event type corresponding to the data synchronization event message is a non-alarm event, caching the data synchronization event message into a first queue; When the data event type corresponding to the data synchronization event message is an alarm event, the data synchronization event message is cached in a second queue; wherein the capacity of the second queue is smaller than the capacity of the first queue; Analyze the data synchronization event messages in the first queue according to the preset non-alarm event analysis standard to obtain the data synchronization event analysis result of the non-alarm event; Analyze the data synchronization event message in the second queue according to the preset alarm event analysis standard to obtain the data synchronization event analysis result of the alarm event; In the case where the preset alarm cause rule base covers the alarm event, determining the cause of the alarm event based on the preset alarm cause rule base and according to the alarm event characteristic information represented by the data synchronization event analysis result of the alarm event; Generate an alarm analysis list based on the cause of the alarm event.
4. The method according to claim 3, characterized in that The analyzing the data synchronization event messages in the first queue according to the preset non-alarm event analysis standard to obtain the data synchronization event analysis result of the non-alarm event includes: According to a preset non-alarm event analysis standard, extracting non-alarm event analysis fields from the data synchronization event messages in the first queue to obtain non-alarm event analysis field extraction results; Determining a data synchronization event analysis result of the non-alarm event according to the non-alarm event analysis field extraction result; The non-alarm event analysis field at least includes a non-alarm event type field, an event information field and a firmware type field.
5. The method according to claim 3, characterized in that: When the data event type corresponding to the data synchronization event message is an alarm event, caching the data synchronization event message to the second queue includes: When the data event type corresponding to the data synchronization event message is an alarm event, extracting the alarm level field of the data synchronization event message to obtain an alarm level field extraction result; According to the alarm level field extraction result, filtering the data synchronization event message corresponding to the target alarm event in the data synchronization event message; The data synchronization event message corresponding to the target alarm event is cached in the second queue.
6. The method according to claim 3, characterized in that: The method further comprises: In the case where the preset alarm cause rule base does not cover the alarm event, obtaining non-alarm event information of the firmware type within a preset time period before and after the occurrence of the alarm event according to the firmware type and alarm time represented by the data synchronization event analysis result of the alarm event; The cause of the alarm event is determined according to the non-alarm event information of the firmware type within a preset time period before and after the alarm event occurs.
7. The method according to claim 1, characterized in that The step of performing data synchronization on the server management software of the server cluster according to the data synchronization event analysis result includes: Generate server change information according to the data synchronization event analysis result; The server change information is sent to the server management software service end to synchronize data with the server management software.
8. A server data synchronization device, characterized in that: include: A subscription module, used to subscribe to data synchronization events of each target server in the server cluster, so that each target server reports a corresponding data synchronization event message when firmware information changes; An analysis module, used to analyze the data synchronization event messages reported by each of the target servers to obtain corresponding data synchronization event analysis results; The data synchronization module is used to synchronize the data of the server management software of the server cluster according to the data synchronization event analysis result.
9. An electronic device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the method according to any one of claims 1 to 7 is implemented.
