Real-time protection method and system for server
By dynamically obtaining and analyzing server data, determining the protection logic and level, dynamically triggering protection means, and controlling the coordination relationship of the collaborative controller, the existing servers' undynamic protection and poor protection effect are solved, and efficient collaborative protection and normal operation are achieved.
Patent Information
- Application Number
- CN202410854833.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2044-06-28
AI Technical Summary
The existing server failed to achieve dynamic protection during operation, resulting in poor protection effect and lack of collaborative protection mechanism.
By obtaining the data transmitted by the server, estimating the server's operating status, determining the actual status, determining the protection logic and level based on the actual status and data transmission efficiency, dynamically triggering the protection means, and controlling the coordination relationship of the collaborative controller based on the workload of the protection means to achieve collaborative control.
It realizes the synchronization of server operation and protection, improves the protection effect, ensures the normal operation of the server, and makes full use of the protection workload of the collaborative controller.
Smart Images

Figure CN118586006B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servers, and in particular to a real-time protection method and system for a server. Background Art
[0002] With the development of science and technology, servers are used in life and connected to network data. At this time, the server interacts with multiple working devices and transmits data to multiple working devices during the interaction. In the existing technology, the server is protected based on previous protection measures or protective walls, which is mainly reflected in the investigation of received data. However, the server does not dynamically trigger the protection measures during operation, but triggers the protection measures only when the server is in an idle state, which affects the protection effect of the server. At the same time, the server does not achieve collaborative protection. Summary of the invention
[0003] The purpose of the present invention is to overcome the shortcomings of the prior art. The present invention provides a real-time protection method and system for a server, which determines the protection logic based on the actual state of the server, and determines the protection level based on the data transmission efficiency; determines a protection list according to the protection logic and the protection level, triggers the sorting of multiple protection means based on the current running node and running scenario of the server, and dynamically triggers the sorted multiple protection means as the server runs, ensuring that the operation and protection of the server are carried out synchronously, and regulates the collaborative relationship between the server and the collaborative controller according to the workload of each protection means, realizes the collaborative management and control between the server and the collaborative controller, so as to continuously maintain the normal operation of the server, and makes full use of the collaborative controller to undertake the protection workload of the server, while being compatible with the protection of the server, thereby improving the protection effect of the server.
[0004] In order to solve the above technical problems, an embodiment of the present invention provides a real-time protection method for a server, which is applied to the server;
[0005] The real-time protection method of the server comprises:
[0006] Obtain data transmitted by the server, and estimate the operating status of the server based on the data transmitted by the server;
[0007] The actual state of the server is defined according to the running state of the server and the matching of the current running node of the server;
[0008] Determine the protection logic based on the actual status of the server, and determine the protection level based on the data transmission efficiency;
[0009] Determine the protection list based on the protection logic and protection level, and the protection list records the corresponding protection measures;
[0010] Trigger the sorting of multiple protection measures based on the current running node and running scenario of the server, and dynamically trigger the sorted multiple protection measures as the server runs;
[0011] In each protection measure, the collaborative controller corresponding to the server is collected, and the collaborative relationship between the server and the collaborative controller is adjusted according to the workload of each protection measure;
[0012] The collaborative controller is used to collaboratively manage and control the servers and continuously maintain the normal operation of the servers.
[0013] Optionally, acquiring data transmitted by the server and estimating the operating status of the server based on the data transmitted by the server includes:
[0014] Monitor the server in real time and obtain the data transmitted by the server;
[0015] Divide the data transmitted by the server into multiple data sets, and mark the set types of the data sets;
[0016] Define core collections and current collections based on multiple collection types;
[0017] The running status of the server is estimated based on the core set and the current set. The running status includes computing status, transmission status, regulation status or abnormal status.
[0018] Optionally, defining the actual state of the server according to the running state of the server and the matching of the current running node of the server includes:
[0019] The running status of the freeze server;
[0020] Locate the content output by the server, and locate the output area of the server according to the content output by the server;
[0021] Define the current running node of the server according to the server's output area;
[0022] Compare the current running node of the server and the running status of the server, and determine the matching coefficient;
[0023] If the matching coefficient is greater than the preset matching coefficient, the actual state of the server is defined. At this time, the running state of the server is the actual state of the server.
[0024] Optionally, determining the protection logic based on the actual state of the server and determining the protection level based on the data transmission efficiency includes:
[0025] The actual status of the freeze frame server;
[0026] Associate the actual status of the server with the protection matching table;
[0027] Determine the protection logic based on the actual status of the server and the mapping relationship of the protection matching table;
[0028] Collect data transmission efficiency and determine the server's working efficiency based on the data transmission efficiency;
[0029] Determine the protection level based on the server's work efficiency, and associate the protection level with the protection logic to control the server's protection effect.
[0030] Optionally, the protection list is determined according to the protection logic and the protection level, and the protection list records corresponding protection measures, including:
[0031] Get protection logic and protection level;
[0032] Determine the interactive relationship between multiple protection measures based on protection logic;
[0033] Associate the interactions between multiple protection measures and the protection levels;
[0034] Determine the protection list based on the interaction relationship between multiple protection means and the protection level;
[0035] Based on the protection list matching the protection program of the current server, the protection list records the corresponding protection measures.
[0036] Optionally, the triggering of sorting of multiple protection measures based on the current running node and running scenario of the server, and dynamically triggering the sorted multiple protection measures as the server runs, includes:
[0037] Get the current running node of the server;
[0038] Determine the server's pending items based on the server's current running node;
[0039] Associate the server's pending items with the running scenario;
[0040] Trigger the sorting of multiple protection measures based on the server's pending items and operating scenarios.
[0041] Optionally, the triggering of sorting of multiple protection measures based on the current running node and running scenario of the server, and dynamically triggering the sorted multiple protection measures as the server runs, further includes:
[0042] Collect the protection order between multiple protection means;
[0043] Match the corresponding trigger nodes based on the protection order;
[0044] During the operation of the server, the corresponding trigger nodes are triggered in sequence as the server runs, and the sorted multiple protection measures are dynamically triggered.
[0045] Optionally, in each protection means, collecting the collaborative controller corresponding to the server, and regulating the collaborative relationship between the server and the collaborative controller according to the workload of each protection means, includes:
[0046] Among various protection measures, monitor the interactive content of the server;
[0047] Determine the corresponding collaborative controller according to the interactive content of the server;
[0048] Collect collaborative control and define the workload of each protection method;
[0049] Based on the workload of each protection method, the content undertaken by the server and the content undertaken by the collaborative controller are divided;
[0050] The collaborative relationship between the server and the collaborative controller is controlled according to the content undertaken by the server and the content undertaken by the collaborative controller.
[0051] Optionally, the collaborative control of the server based on the collaborative controller and continuously maintaining the normal operation of the server includes:
[0052] Associating the collaborative controller with the server and triggering the interaction between the collaborative controller and the server;
[0053] Collect the functions corresponding to the collaborative controller and the functions corresponding to the server;
[0054] Build collaborative control based on the functions of the collaborative controller and the functions of the server, and use the operation of the server as the main line of operation;
[0055] Monitor the load of the server during operation;
[0056] The dynamic coordination of the coordination controller is triggered according to the load of the server during operation to reduce the load of the server during operation, while maintaining the normal operation of the server.
[0057] In addition, an embodiment of the present invention further provides a real-time protection system for a server, the real-time protection system for the server comprising:
[0058] An acquisition module, used to acquire data transmitted by the server and estimate the operating status of the server based on the data transmitted by the server;
[0059] A status module, used to define the actual status of the server according to the running status of the server and the matching of the current running node of the server;
[0060] The protection level module is used to determine the protection logic based on the actual status of the server and the protection level based on the data transmission efficiency;
[0061] List module, used to determine the protection list according to the protection logic and protection level. The protection list records the corresponding protection measures;
[0062] The dynamic module is used to trigger the sorting of multiple protection measures based on the current running node and running scenario of the server, and dynamically trigger the sorted multiple protection measures as the server runs;
[0063] A first coordination module is used to collect the coordination controller corresponding to the server in each protection means, and regulate the coordination relationship between the server and the coordination controller according to the workload of each protection means;
[0064] The second collaborative module is used to collaboratively manage and control the servers based on the collaborative controller and continuously maintain the normal operation of the servers.
[0065] In an embodiment of the present invention, through the method in the embodiment of the present invention, the data transmitted by the server is obtained, and the operating status of the server is estimated based on the data transmitted by the server; the actual status of the server is defined according to the matching of the operating status of the server and the current operating node of the server, so as to strictly control the actual status of the server and avoid detection errors of the server status. At the same time, the protection logic is determined based on the actual status of the server, and the protection level is determined based on the transmission efficiency of the data; the protection list is determined according to the protection logic and the protection level, and the sorting of multiple protection means is triggered based on the current operating node and operating scenario of the server, and the sorted multiple protection means are dynamically triggered as the server runs, ensuring that the operation and protection of the server are carried out synchronously, and the collaborative relationship between the server and the collaborative controller is regulated according to the workload of each protection means, and the collaborative management and control between the server and the collaborative controller is realized, so as to continuously maintain the normal operation of the server, and make full use of the collaborative controller to bear the protection workload of the server, while being compatible with the protection of the server, thereby improving the protection effect of the server. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0067] Figure 1is a flow chart of a real-time protection method for a server in an embodiment of the present invention;
[0068] Figure 2 is a flow chart of S11 in the real-time protection method for a server in an embodiment of the present invention;
[0069] Figure 3 is a flow chart of S12 in the real-time protection method for a server in an embodiment of the present invention;
[0070] Figure 4 is a flow chart of S13 in the real-time protection method for a server in an embodiment of the present invention;
[0071] Figure 5 is a flow chart of S14 in the real-time protection method for a server in an embodiment of the present invention;
[0072] Figure 6 is a flow chart of S15 in the real-time protection method for a server in an embodiment of the present invention;
[0073] Figure 7 is a flow chart of S16 in the real-time protection method for a server in an embodiment of the present invention;
[0074] Figure 8 is a flow chart of S17 in the real-time protection method for a server in an embodiment of the present invention;
[0075] Fig. 9 It is a schematic diagram of the structure of the real-time protection system of the server in the embodiment of the present invention;
[0076] Fig.10 The figure is a hardware diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0077] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0078] Example
[0079] See also Figures 1 to 10 , a real-time protection method for a server, applied to a server; the real-time protection method for a server includes:
[0080] Step S11: acquiring data transmitted by the server, and estimating the operating status of the server based on the data transmitted by the server;
[0081] Step S12: defining the actual state of the server according to the running state of the server and the matching of the current running node of the server;
[0082] Step S13: Determine the protection logic based on the actual state of the server, and determine the protection level based on the data transmission efficiency;
[0083] Step S14: Determine a protection list according to the protection logic and the protection level, the protection list records the corresponding protection means;
[0084] Step S15: triggering the sorting of multiple protection measures based on the current running node and running scenario of the server, and dynamically triggering the sorted multiple protection measures as the server runs;
[0085] Step S16: In each protection means, collect the collaborative controller corresponding to the server, and adjust the collaborative relationship between the server and the collaborative controller according to the workload of each protection means;
[0086] Step S17: collaboratively manage and control the server based on the collaborative controller, and continuously maintain the normal operation of the server.
[0087] In an embodiment of the present invention, through the method in the embodiment of the present invention, the protection logic is determined based on the actual state of the server, and the protection level is determined based on the transmission efficiency of the data; the protection list is determined according to the protection logic and the protection level, and the sorting of multiple protection means is triggered based on the current running node and running scenario of the server, and the sorted multiple protection means are dynamically triggered as the server runs, ensuring that the operation and protection of the server are carried out synchronously, and the collaborative relationship between the server and the collaborative controller is regulated according to the workload of each protection means, and the collaborative management and control between the server and the collaborative controller is realized, so as to continuously maintain the normal operation of the server, and make full use of the collaborative controller to undertake the protection workload of the server, while being compatible with the protection of the server, thereby improving the protection effect of the server.
[0088] In step S11, data transmitted by the server is obtained, and the operating status of the server is estimated based on the data transmitted by the server;
[0089] In the specific implementation process of the present invention, the specific steps may be:
[0090] S111: monitor the server in real time and obtain data transmitted by the server;
[0091] S112: Divide the data transmitted by the server into multiple data sets, and mark the types of the data sets;
[0092] S113: defining a core set and a current set according to multiple set types;
[0093] S114: Estimate the running status of the server based on the core set and the current set, where the running status includes a computing status, a transmission status, a regulation status, or an abnormal status.
[0094] In an embodiment of the present application, the server is monitored in real time to facilitate dynamic tracking of the server. At the same time, the data transmitted by the server is obtained, and multiple data sets are divided based on the data transmitted by the server, so as to facilitate integration based on multiple data sets, thereby controlling multiple data sets as a whole and then marking the collection type of the data set.
[0095] At this time, multiple collection types are sorted so that they can be sorted according to multiple collection types and proportions, thereby defining a core collection and a current collection, thereby controlling the core collection and the current collection. At the same time, the operating status of the server is estimated based on the core collection and the current collection. The operating status includes computing status, transmission status, regulation status or abnormal status.
[0096] The computing state is that the server performs calculations on the data, which is mainly reflected in the computing part of the server; the transmission state is that the server performs transmissions on the data, which is mainly reflected in the transmission part of the server; the control state is that the server performs control on the data, which is mainly reflected in the control part of the server; the abnormal state is that the server sends an abnormal signal, which is mainly reflected in the abnormal signal of the server.
[0097] In step S12, the actual state of the server is defined according to the running state of the server and the matching of the current running node of the server;
[0098] In the specific implementation process of the present invention, the specific steps may be:
[0099] S121: freeze the running status of the server;
[0100] S122: locating the content output by the server, and locating the output area of the server according to the content output by the server;
[0101] S123: defining the current running node of the server according to the output area of the server;
[0102] S124: Compare the current running node of the server and the running status of the server, and determine a matching coefficient;
[0103] S125: If the matching coefficient is greater than the preset matching coefficient, the actual state of the server is defined. At this time, the running state of the server is the actual state of the server.
[0104] In an embodiment of the present application, the running status of the server is frozen to facilitate management and control of the running status of the server. At the same time, the content output by the server is located, and the output area of the server is located according to the content output by the server, so as to define the current running node of the server according to the output area of the server, thereby ensuring the accuracy of the current running node.
[0105] At this time, the current running node of the server and the running status of the server are associated to facilitate the control of the current running node of the server and the running status of the server. At this time, the current running node of the server and the running status of the server are compared, and the matching coefficient is determined; if the matching coefficient is greater than the preset matching coefficient, the actual status of the server is defined. At this time, the running status of the server is the actual status of the server, which ensures the accuracy of the prediction of the running status of the server.
[0106] In step S13, the protection logic is determined based on the actual state of the server, and the protection level is determined based on the data transmission efficiency;
[0107] In the specific implementation process of the present invention, the specific steps may be:
[0108] S131: freeze the actual status of the server;
[0109] S132: Associating the actual state of the server with the protection matching table;
[0110] S133: Determine the protection logic based on the actual state of the server and the mapping relationship of the protection matching table;
[0111] S134: collecting data transmission efficiency, and determining the working efficiency of the server according to the data transmission efficiency;
[0112] S135: Determine the protection level according to the work efficiency of the server, and associate the protection level with the protection logic to control the protection effect of the server.
[0113] In an embodiment of the present application, the actual state of the server is frozen to facilitate associating the actual state of the server and the protection matching table, thereby determining the protection logic based on the mapping relationship between the actual state of the server and the protection matching table, thereby ensuring the correspondence of the protection logic and dynamically controlling the server during operation.
[0114] At this time, the data transmission efficiency is introduced and collected, and the server's working efficiency is determined based on the data transmission efficiency, so as to determine the server's working efficiency based on the data transmission efficiency, thereby ensuring the determination of the server's working efficiency. At the same time, the protection level is determined according to the server's working efficiency, and the protection level and protection logic are associated to control the protection effect of the server.
[0115] S14: Determine a protection list based on the protection logic and protection level, and the protection list records the corresponding protection measures;
[0116] In the specific implementation process of the present invention, the specific steps may be:
[0117] S141: Obtain protection logic and protection level;
[0118] S142: Determine the interaction relationship between multiple protection means according to the protection logic;
[0119] S143: Associate the interaction between multiple protection means and the protection level;
[0120] S144: Determine a protection list based on the interaction relationship between the multiple protection means and the protection levels;
[0121] S145: matching the protection program of the current server based on the protection list, the protection list recording the corresponding protection means;
[0122] In an embodiment of the present application, protection logic and protection level are obtained, and the protection logic and protection level are controlled, so as to determine the interactive relationship between multiple protection means according to the protection logic, so as to facilitate combined matching of multiple protection means, so as to facilitate interactive protection of the server by multiple protection means.
[0123] At this time, the interaction relationship and protection level of multiple protection means are associated; the protection list is determined based on the interaction relationship and protection level of multiple protection means; the protection program of the current server is matched based on the protection list, so as to control the current status of the server according to the protection list, and then perform multiple protections on the server, and the protection list records the corresponding protection means.
[0124] S15: triggering the sorting of multiple protection measures based on the current running node and running scenario of the server, and dynamically triggering the sorted multiple protection measures as the server runs;
[0125] In the specific implementation process of the present invention, the specific steps may be:
[0126] S151: Get the current running node of the server;
[0127] S152: Determine the pending items of the server according to the current running node of the server;
[0128] S153: Associating the pending items of the server with the running scenario;
[0129] S154: triggering the sorting of multiple protection measures according to the pending items and operation scenarios of the server;
[0130] S155: Collect the protection order between multiple protection means;
[0131] S156: Matching corresponding trigger nodes based on the protection order;
[0132] S157: During the operation of the server, the corresponding trigger nodes are triggered in sequence as the server runs, and the sorted multiple protection measures are dynamically triggered.
[0133] In an embodiment of the present application, the current running node of the server is obtained, and the current running node of the server is managed and controlled so as to determine the server's pending items based on the server's current running node, thereby ensuring the processing of the server's pending items. At the same time, subsequent targeted management and control are performed based on the server's pending items.
[0134] Furthermore, the sorting of multiple protection means is triggered according to the server's pending items and operating scenarios, so that the multiple protection means can be sorted and processed. At the same time, the protection order between the multiple protection means is collected, so that prevention and control can be carried out based on the protection order. At the same time, the corresponding trigger nodes are matched based on the protection order; during the operation of the server, the corresponding trigger nodes are triggered in sequence as the server runs, and the sorted multiple protection means are dynamically triggered.
[0135] Therefore, the protection list is determined according to the protection logic and protection level, and the sorting of multiple protection measures is triggered based on the current running node and running scenario of the server. The sorted multiple protection measures are dynamically triggered as the server runs, ensuring that the server runs and the protection are carried out synchronously.
[0136] S16: In each protection means, collect the collaborative controller corresponding to the server, and adjust the collaborative relationship between the server and the collaborative controller according to the workload of each protection means;
[0137] In the specific implementation process of the present invention, the specific steps may be:
[0138] S161: monitoring the interactive content of the server in various protection measures;
[0139] S162: Determine a corresponding collaborative controller according to the interactive content of the server;
[0140] S163: Collect collaborative control and define the workload of each protection measure;
[0141] S164: dividing the content undertaken by the server and the content undertaken by the collaborative controller based on the workload of each protection means;
[0142] S165: Control the collaborative relationship between the server and the collaborative controller according to the content undertaken by the server and the content undertaken by the collaborative controller.
[0143] In the embodiment of the present application, in each protection means, the interactive content of the server is monitored to facilitate content analysis for the interactive content, thereby determining the corresponding collaborative controller according to the interactive content of the server, and thus freezing the collaborative controller.
[0144] Furthermore, collaborative control is collected and the workload of each protection means is defined in order to determine the workload of each protection means, thereby introducing the management and control of the workload of each protection means, and then dividing the content undertaken by the server and the content undertaken by the collaborative controller based on the workload of each protection means; the collaborative relationship between the server and the collaborative controller is controlled according to the content undertaken by the server and the content undertaken by the collaborative controller, and the collaborative management and control between the server and the collaborative controller is realized, so as to continuously maintain the normal operation of the server, and make full use of the protection workload of the server undertaken by the collaborative controller, while being compatible with the protection of the server, thereby improving the protection effect of the server.
[0145] S17: Coordinated management and control of the server based on the collaborative controller, and continuous maintenance of the normal operation of the server;
[0146] In the specific implementation process of the present invention, the specific steps may be:
[0147] S171: Associating the collaborative controller with the server, and triggering interaction between the collaborative controller and the server;
[0148] S172: Collecting the functions corresponding to the collaborative controller and the functions corresponding to the server;
[0149] S173: Building collaborative control based on the functions corresponding to the collaborative controller and the functions corresponding to the server, and taking the operation of the server as the main line of operation;
[0150] S174: monitoring the load of the server during operation;
[0151] S175: triggering dynamic collaboration of the collaborative controller according to the load of the server during operation, so as to reduce the load of the server during operation, and at the same time, continuously maintain the normal operation of the server.
[0152] In an embodiment of the present application, a collaborative controller and a server are associated, and the interaction between the collaborative controller and the server is triggered to facilitate the management and control of the interaction between the collaborative controller and the server. At the same time, the functions corresponding to the collaborative controller and the functions corresponding to the server are collected; collaborative management and control are constructed based on the functions corresponding to the collaborative controller and the functions corresponding to the server, and the operation of the server is used as the main line of operation.
[0153] Therefore, the protection logic is determined based on the actual status of the server, and the protection level is determined based on the data transmission efficiency; the protection list is determined based on the protection logic and the protection level, and the sorting of multiple protection means is triggered based on the current running node and running scenario of the server, and the sorted multiple protection means are dynamically triggered as the server runs, ensuring that the operation and protection of the server are carried out synchronously, and the collaborative relationship between the server and the collaborative controller is regulated according to the workload of each protection means, realizing collaborative management and control between the server and the collaborative controller, so as to continuously maintain the normal operation of the server, and make full use of the collaborative controller to undertake the protection workload of the server, while being compatible with the protection of the server, thereby improving the protection effect of the server.
[0154] In another embodiment of the present application, a server watchdog is introduced, which continuously monitors various key indicators of the server, including hardware status, system performance, application program operation status, etc. Once any abnormality or failure is detected, such as hardware failure, system crash, performance degradation, etc., the watchdog will immediately trigger the corresponding processing mechanism.
[0155] At the hardware level, a watchdog usually consists of a timer circuit that periodically sends a signal to the server's microprocessor (MCU) to indicate that it is functioning properly. If the MCU stops responding for some reason (such as a program runaway or an infinite loop), the watchdog timer will time out, at which point it will output a reset signal to the MCU to restart it. This can effectively prevent the server from becoming unresponsive due to a program failure.
[0156] At the software level, the watchdog runs specific monitoring programs that check system logs, performance data, and other information to detect anomalies. If an anomaly is detected, the watchdog will attempt to automatically repair it, such as restarting services, releasing resources, etc. If the automatic repair fails, the watchdog will send an alert notification to the system administrator so that the administrator can intervene in time.
[0157] The watchdog system of this solution also has power monitoring and data protection functions. For example, in the event of a power outage, the watchdog can proactively notify the server to shut down safely to protect the integrity of data and hardware. At the same time, it can also monitor power supply voltage fluctuations and take corresponding protective measures when the voltage is abnormal.
[0158] Structurally, the server watchdog is powered by AC power; the UPS obtains AC power through the server watchdog; at the same time, the server watchdog is powered by the UPS; the server is powered by the server watchdog; data communication is carried out between the server watchdog and the server through the network cable (not limited to the network cable).
[0159] In terms of control, under normal circumstances, the server watchdog will monitor the on-off status of the mains power; the server watchdog maintains regular heartbeat confirmation with the server through the network to understand the health status of the server; the current server watchdog detects that the mains power supply is cut off, and the system switches to UPS energy storage power supply; the server watchdog notifies the server through network communication: the mains power has been cut off, and the server enters the active shutdown procedure; when the server cannot work normally due to various abnormalities, the server watchdog understands through the heartbeat situation that there is a problem with the server health and needs to be handled; the server watchdog starts the server abnormal situation recovery procedure (for example, power off the server for 1 minute and then power it on again) to make the server work again.
[0160] Therefore, the server watchdog will actively notify the server to shut down when the mains power is cut off;
[0161] When the utility power fails, the server watchdog immediately detects the interruption of power supply. A watchdog is usually a hardware or software component that is dedicated to monitoring the operating status of the server and taking predetermined actions when an abnormal situation is detected.
[0162] In the event of a mains power outage, the watchdog will trigger a shutdown sequence. This sequence may include the following steps:
[0163] Detecting power interruptions: The watchdog first detects an interruption in the power supply, usually by monitoring the voltage or current of the power line.
[0164] Notify the server: Once a power outage is detected, the watchdog will send a shutdown signal to the server. This signal can be sent through a specific hardware interface or through a service or process of the operating system.
[0165] Execute shutdown operation: After receiving the shutdown signal, the server will start to execute the shutdown operation, which may include saving the current working status, closing running applications, disconnecting the network connection, etc.
[0166] Safe shutdown: The server will eventually shut down safely, ensuring that data is not corrupted by sudden power outages.
[0167] The server watchdog will proactively repair the fault handling mechanism when the server health status is abnormal;
[0168] When the server health status is abnormal, the server watchdog will immediately detect these abnormal conditions. These abnormalities may include hardware failure, system crash, performance degradation, etc.
[0169] In addition, after detecting an anomaly, the watchdog will trigger a fault handling mechanism. This mechanism may include the following steps:
[0170] Anomaly detection and diagnosis: The watchdog will first detect and diagnose the abnormal situation and determine the specific fault type and cause. This may involve collecting system log information, analyzing performance data, etc.
[0171] Automatic repair attempts: The watchdog may attempt to perform automatic repair operations, such as restarting services, freeing up memory resources, restoring configuration settings, etc. These operations are intended to quickly restore the server to normal operating conditions.
[0172] Notify administrators: If an automatic repair attempt fails or requires manual intervention, Watchdog sends an alert notification to the system administrator. This can be done via email, SMS, or a dedicated monitoring system. The notification contains detailed information about the type of failure, when it occurred, and possible causes.
[0173] Fault recording and reporting: The watchdog will also record the time, cause and handling process of the fault and generate a fault report. These reports are very valuable for subsequent problem analysis and system optimization.
[0174] See also Fig. 9 , Fig. 9 It is a schematic diagram of the structural composition of the real-time protection system of the server in the embodiment of the present invention.
[0175] like Fig. 9 As shown, a real-time protection system for a server, the real-time protection system for the server comprises:
[0176] An acquisition module 21, used to acquire data transmitted by the server and estimate the operation status of the server based on the data transmitted by the server;
[0177] A state module 22, used to define the actual state of the server according to the running state of the server and the matching of the current running node of the server;
[0178] The protection level module 23 is used to determine the protection logic based on the actual state of the server and determine the protection level based on the data transmission efficiency;
[0179] A list module 24 is used to determine a protection list according to the protection logic and the protection level, and the protection list records the corresponding protection means;
[0180] The dynamic module 25 is used to trigger the sorting of multiple protection means based on the current running node and running scenario of the server, and dynamically trigger the sorted multiple protection means as the server runs;
[0181] A first coordination module 26, for collecting the coordination controller corresponding to the server in each protection means, and regulating the coordination relationship between the server and the coordination controller according to the workload of each protection means;
[0182] The second collaboration module 27 is used to collaboratively manage and control the servers based on the collaborative controller and continuously maintain the normal operation of the servers.
[0183] Example
[0184] See also Fig.10 , refer to the following Fig.10 The electronic device 40 according to this embodiment of the present invention will be described. Fig.10 The electronic device 40 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0185] like Fig.10 As shown, the electronic device 40 is in the form of a general computing device. The components of the electronic device 40 may include but are not limited to: at least one processing unit 41, at least one storage unit 42, and a bus 43 connecting different system components (including the storage unit 42 and the processing unit 41).
[0186] The storage unit stores program codes, which can be executed by the processing unit 41, so that the processing unit 41 executes the steps according to various exemplary embodiments of the present invention described in the above “Embodiment Method” section of this specification.
[0187] The storage unit 42 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 421 and / or a cache memory unit 422 , and may further include a read-only memory unit (ROM) 423 .
[0188] The storage unit 42 may also include a program / utility 424 having a set (at least one) of program modules 425, such program modules 425 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0189] Bus 43 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0190] The electronic device 40 may also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 40, and / or any device that enables the electronic device 40 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 44. Furthermore, the electronic device 40 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 45. Fig.10 As shown, the network adapter 45 communicates with other modules of the electronic device 40 via the bus 43. It should be understood that although Fig.10 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 40, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup planning systems.
[0191] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0192] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. In addition, it stores computer program instructions, and when the computer program instructions are executed by a computer, the computer executes the above method.
[0193] In addition, the real-time protection method and system for the server provided in the embodiments of the present invention are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A real-time protection method for a server, characterized in that: Applied to servers; The real-time protection method of the server comprises: Obtain data transmitted by the server, and estimate the operating status of the server based on the data transmitted by the server; The actual state of the server is defined according to the running state of the server and the matching of the current running node of the server; Determine the protection logic based on the actual status of the server, and determine the protection level based on the data transmission efficiency; Determine the protection list based on the protection logic and protection level, and the protection list records the corresponding protection measures; Trigger the sorting of multiple protection measures based on the current running node and running scenario of the server, and dynamically trigger the sorted multiple protection measures as the server runs; In each protection measure, the collaborative controller corresponding to the server is collected, and the collaborative relationship between the server and the collaborative controller is adjusted according to the workload of each protection measure; Based on the collaborative controller, the server is collaboratively managed and controlled, and the normal operation of the server is continuously maintained; The method of determining the protection logic based on the actual state of the server and determining the protection level based on the transmission efficiency of the data includes: freezing the actual state of the server; associating the actual state of the server with the protection matching table; determining the protection logic based on the mapping relationship between the actual state of the server and the protection matching table; collecting the transmission efficiency of the data, and determining the working efficiency of the server according to the transmission efficiency of the data; determining the protection level according to the working efficiency of the server, and associating the protection level with the protection logic to control the protection effect of the server; Determining a protection list according to the protection logic and the protection level, wherein the protection list records corresponding protection means, includes: obtaining the protection logic and the protection level; determining the interaction relationship between multiple protection means according to the protection logic; associating the interaction relationship and the protection level between multiple protection means; determining the protection list based on the interaction relationship and the protection level between multiple protection means; matching the protection program of the current server based on the protection list, wherein the protection list records corresponding protection means; The method triggers the sorting of multiple protection means based on the current running node and running scenario of the server, and dynamically triggers the sorted multiple protection means as the server runs, including: obtaining the current running node of the server; determining the pending items of the server according to the current running node of the server; associating the pending items of the server with the running scenario; triggering the sorting of multiple protection means according to the pending items of the server and the running scenario; The method triggers the sorting of multiple protection means based on the current running node and running scenario of the server, and dynamically triggers the sorted multiple protection means as the server runs, and further includes: collecting the protection order between the multiple protection means; matching the corresponding triggering nodes based on the protection order; during the operation of the server, triggering the corresponding triggering nodes in sequence as the server runs, and dynamically triggering the sorted multiple protection means; In each protection means, the collaborative controller corresponding to the server is collected, and the collaborative relationship between the server and the collaborative controller is regulated according to the workload of each protection means, including: in each protection means, the interactive content of the server is monitored; the corresponding collaborative controller is determined according to the interactive content of the server; the collaborative control is collected, and the workload of each protection means is defined; based on the workload of each protection means, the content undertaken by the server and the content undertaken by the collaborative controller are divided; according to the content undertaken by the server and the content undertaken by the collaborative controller, the collaborative relationship between the server and the collaborative controller is controlled.
2. The real-time protection method for a server according to claim 1, characterized in that: The acquiring of data transmitted by the server and estimating the operating status of the server based on the data transmitted by the server includes: Monitor the server in real time and obtain the data transmitted by the server; Divide the data transmitted by the server into multiple data sets, and mark the set types of the data sets; Define core collections and current collections based on multiple collection types; The running status of the server is estimated based on the core set and the current set. The running status includes computing status, transmission status, regulation status or abnormal status.
3. The real-time protection method for a server according to claim 2, characterized in that: Defining the actual state of the server according to the running state of the server and the matching of the current running node of the server includes: Determine the running status of the server; Locate the content output by the server, and locate the output area of the server according to the content output by the server; Define the current running node of the server according to the server's output area; Compare the current running node of the server and the running status of the server, and determine the matching coefficient; If the matching coefficient is greater than the preset matching coefficient, the actual state of the server is defined. At this time, the running state of the server is the actual state of the server.
4. The real-time protection method for a server according to claim 1, characterized in that: The collaborative control of the server based on the collaborative controller and continuous maintenance of the normal operation of the server include: Associating the collaborative controller with the server and triggering the interaction between the collaborative controller and the server; Collect the functions corresponding to the collaborative controller and the functions corresponding to the server; Build collaborative control based on the functions of the collaborative controller and the functions of the server, and use the operation of the server as the main line of operation; Monitor the load of the server during operation; The dynamic coordination of the coordination controller is triggered according to the load of the server during operation to reduce the load of the server during operation, while maintaining the normal operation of the server.
5. A real-time protection system for a server, characterized in that: The real-time protection system of the server is applied to the real-time protection method of the server as claimed in any one of claims 1 to 4, and the real-time protection system of the server includes: An acquisition module, used to acquire data transmitted by the server and estimate the operating status of the server based on the data transmitted by the server; A status module, used to define the actual status of the server according to the running status of the server and the matching of the current running node of the server; The protection level module is used to determine the protection logic based on the actual status of the server and the protection level based on the data transmission efficiency; List module, used to determine the protection list according to the protection logic and protection level. The protection list records the corresponding protection measures; The dynamic module is used to trigger the sorting of multiple protection measures based on the current running node and running scenario of the server, and dynamically trigger the sorted multiple protection measures as the server runs; A first coordination module is used to collect the coordination controller corresponding to the server in each protection means, and regulate the coordination relationship between the server and the coordination controller according to the workload of each protection means; The second collaborative module is used to collaboratively manage and control the servers based on the collaborative controller and continuously maintain the normal operation of the servers.
Citation Information
Patent Citations
Digital information infrastructure and method
US20090254572A1
Network slicing method and network slicing apparatus for 5g core network
WO2021022764A1