Service monitoring method, device, electronic device and storage medium

By using middleware service collection instructions and reverse learning technology in virtual machines to automatically analyze and restart abnormal services, the problem of low efficiency of service monitoring during virtual machine hot migration is solved, and efficient service monitoring and automated processing are achieved.

CN115934478BActive Publication Date: 2025-10-03CCB FINTECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310016883.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-06
Publication Date
2025-10-03
Estimated Expiration
2043-01-06

AI Technical Summary

Technical Problem

In the prior art, there is a lack of efficient service monitoring means during hot migration of virtual machines, which makes it difficult to analyze the services and service status of the target virtual machine when some services migrate abnormally.

Method used

Through the built-in middleware service collection instructions, service monitoring instructions are sent to the controlled terminal to obtain service status information, analyze abnormal services and obtain restart instructions through reverse learning to automatically start the service.

Benefits of technology

It simplifies the operation process of operation and maintenance personnel, improves service monitoring efficiency, automatically handles service exceptions, and improves the degree of automation of service monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115934478B_ABST
    Figure CN115934478B_ABST
Patent Text Reader

Abstract

The present disclosure provides a service monitoring method, device, electronic device and storage medium, which relate to the field of computer technology. The method includes: sending at least one service monitoring instruction to a connected controlled terminal according to at least one built-in middleware service collection instruction; obtaining the collected service status information, and determining a first commonly used monitoring service with an abnormal service status and a first controlled terminal corresponding to the first commonly used monitoring service; sending an abnormal service collection instruction to the first controlled terminal; obtaining the collected instructions before and after the start and stop of the first commonly used monitoring service, and analyzing the instructions before and after the start and stop of the first commonly used monitoring service to obtain valid instructions related to the start and stop of the first commonly used monitoring service; and obtaining a restart instruction of the first commonly used monitoring service through reverse learning based on the valid instructions and the service status information of the first commonly used monitoring service.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a service monitoring method, device, electronic device, and storage medium. Background Art

[0002] As enterprises expand their cloud migration, the server resources that operations and maintenance personnel need to maintain are also increasing. Common virtual machine live migration techniques, when a failure occurs, seamlessly migrate the running state to another virtual machine. When some service migration anomalies occur, there is a lack of efficient service monitoring methods to analyze the services and service status corresponding to the target virtual machine. Summary of the Invention

[0003] The present disclosure provides a service monitoring method, device, electronic device and storage medium to improve service monitoring efficiency.

[0004] According to a first aspect of an embodiment of the present disclosure, a service monitoring method is provided, including:

[0005] Sending at least one service monitoring instruction to a connected controlled terminal according to at least one built-in middleware service collection instruction; wherein each of the service monitoring instructions is used to instruct the controlled terminal to collect service status information of the corresponding service;

[0006] Acquire the collected service status information, and determine, based on the collected service status information, a first commonly used monitoring service whose service status is abnormal and a first controlled terminal corresponding to the first commonly used monitoring service;

[0007] Sending an abnormal service collection instruction to the first controlled terminal; the abnormal service collection instruction is used to instruct the first controlled terminal to collect instructions before and after the first common monitoring service is started and stopped;

[0008] Acquire the collected instructions before and after the start and stop of the first commonly used monitoring service, and analyze the instructions before and after the start and stop of the first commonly used monitoring service to obtain valid instructions related to the start and stop of the first commonly used monitoring service;

[0009] According to the valid instruction and the service status information of the first commonly used monitoring service, a restart instruction of the first commonly used monitoring service is obtained through reverse learning.

[0010] According to a second aspect of an embodiment of the present disclosure, there is provided a service monitoring device, including:

[0011] A main control center module is configured to send at least one service monitoring instruction to a connected controlled terminal according to at least one built-in middleware service collection instruction; wherein each of the service monitoring instructions is configured to instruct the controlled terminal to collect service status information of a corresponding service;

[0012] The main control center module is further configured to obtain the collected service status information and determine, based on the collected service status information, a first commonly used monitoring service with an abnormal service status and a first controlled terminal corresponding to the first commonly used monitoring service;

[0013] The main control center module is further configured to send an abnormal service collection instruction to the first controlled terminal; the abnormal service collection instruction is configured to instruct the first controlled terminal to collect instructions before and after the first commonly used monitoring service is started and stopped;

[0014] The main control center module is further used to obtain the collected instructions before and after the start and stop of the first common monitoring service;

[0015] an instruction analysis module, configured to receive instructions before and after the start and stop of the first commonly used monitoring service sent by the main control center module, and analyze the instructions before and after the start and stop of the first commonly used monitoring service to obtain valid instructions related to the start and stop of the first commonly used monitoring service;

[0016] The main control center module is further configured to obtain a restart instruction for the first commonly used monitoring service through reverse learning according to the valid instruction and the service status information of the first commonly used monitoring service.

[0017] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0018] The memory stores computer-executable instructions;

[0019] The processor executes the computer-executable instructions stored in the memory to implement the method described in the first aspect.

[0020] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect above.

[0021] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, characterized in that it includes a computer program, and when the computer program is executed by a processor, it implements the method described in the first aspect above.

[0022] According to the service monitoring method of the embodiment of the present disclosure, based on the built-in middleware service collection instructions, the controlled terminal is instructed to collect the service status information of the corresponding service, so that the operation and maintenance personnel do not need to understand the corresponding service of each controlled terminal to complete the service monitoring, simplifying the operation process. When the collected service status information is abnormal, the instructions before and after the start and stop of the first commonly used monitoring service are analyzed to obtain valid instructions. Based on the valid instructions and the service status information of the first commonly used monitoring service, the restart instruction of the first commonly used monitoring service is obtained by reverse learning, and the first commonly used monitoring service is automatically started, thereby improving the efficiency of service monitoring.

[0023] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute an improper limitation of the present disclosure.

[0025] Figure 1 The figure is a flow chart showing a service monitoring method according to an exemplary embodiment.

[0026] Figure 2 The figure is a flow chart showing another service monitoring method according to an exemplary embodiment.

[0027] Figure 3 The flowchart of another service monitoring method is shown according to an exemplary embodiment.

[0028] Figure 4 The figure is a schematic structural diagram of a service monitoring device according to an exemplary embodiment.

[0029] Figure 5 It is a structural diagram of another service monitoring device according to an exemplary embodiment.

[0030] Figure 6 It is a structural diagram of another service monitoring device according to an exemplary embodiment.

[0031] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0032] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0033] It should be noted that the terms "first," "second," and the like in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the numbers used in this manner are interchangeable where appropriate so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure as detailed in the appended claims.

[0034] The present disclosure provides a service monitoring method, device, electronic device and storage medium to improve service monitoring efficiency. Figure 1 is a flow chart showing a service monitoring method according to an exemplary embodiment. Figure 1 As shown, the service monitoring method includes the following steps.

[0035] Step 101: Send at least one service monitoring instruction to a connected controlled terminal according to at least one built-in middleware service collection instruction, wherein each service monitoring instruction is used to instruct the controlled terminal to collect service status information of a corresponding service.

[0036] Optionally, in some embodiments of the present application, a connection between the master terminal and the controlled terminal may be pre-established before executing this step. As a possible implementation method, the host configuration information of the controlled terminal may be determined. The host configuration information includes the Internet Protocol (IP) address information, port information, and Secure Shell (SSH) key information of the controlled terminal. Based on the host configuration information, a connection instruction is sent to the controlled terminal, thereby establishing a connection with the controlled terminals in the same cluster, thereby reducing the coupling between the controlled terminal and the master terminal. Therefore, the service status of the corresponding service of the controlled terminal can be monitored without installing additional programs on the host.

[0037] Step 102: Acquire the collected service status information, and determine a first commonly used monitoring service with an abnormal service status and a first controlled terminal corresponding to the first commonly used monitoring service based on the collected service status information.

[0038] Step 103: Send an abnormal service collection instruction to the first controlled terminal. The abnormal service collection instruction is used to instruct the first controlled terminal to collect instructions before and after the first commonly used monitoring service is started and stopped.

[0039] Step 104 : Acquire the collected instructions before and after the start and stop of the first frequently used monitoring service, and analyze the instructions before and after the start and stop of the first frequently used monitoring service to obtain valid instructions related to the start and stop of the first frequently used monitoring service.

[0040] As an example, based on the instructions before and after the start and stop of the first commonly used monitoring service, invalid instructions unrelated to the start and stop of the first commonly used monitoring service can be filtered out, and then valid instructions can be obtained, such as the analyzed commands, scripts, execution parameters and other information for starting the first commonly used monitoring service.

[0041] Step 105 : Obtain a restart instruction of the first frequently used monitoring service through reverse learning according to the valid instruction and the service status information of the first frequently used monitoring service.

[0042] In some embodiments of the present application, as the first commonly used monitoring service is started and stopped multiple times, the samples of valid instructions and service status information of the first commonly used monitoring service obtained will be more comprehensive, so the restart instructions obtained will also be more complete to optimize the service restart process.

[0043] According to the service monitoring method of the embodiment of the present disclosure, based on the built-in middleware service collection instructions, the controlled terminal is instructed to collect the service status information of the corresponding service, so that the operation and maintenance personnel do not need to understand the corresponding service of each controlled terminal to complete the service monitoring, simplifying the operation process. When the collected service status information is abnormal, the instructions before and after the start and stop of the first commonly used monitoring service are analyzed to obtain valid instructions. Based on the valid instructions and the service status information of the first commonly used monitoring service, the restart instruction of the first commonly used monitoring service is obtained by reverse learning, and the first commonly used monitoring service is automatically started, thereby improving the efficiency of service monitoring.

[0044] Figure 2 is a flow chart showing another service monitoring method according to an exemplary embodiment. Figure 1 As shown, the service monitoring method includes the following steps.

[0045] Step 201: Send at least one service monitoring instruction to a connected controlled terminal according to at least one built-in middleware service collection instruction, wherein each service monitoring instruction is used to instruct the controlled terminal to collect service status information of a corresponding service.

[0046] Step 202: Acquire the collected service status information.

[0047] Step 203, in response to determining that the service status is abnormal based on the collected service status information, and the collection of the service status information is non-initialized collection, determine the first commonly used monitoring service with abnormal service status and the first controlled terminal corresponding to the first commonly used monitoring service, and remind the first commonly used monitoring service and / or the first controlled terminal in the form of an alarm.

[0048] It should be noted that initialization collection can be understood as the first time service status information is collected, and service status information has not been collected before. Non-initialization collection can be understood as the collection of service status information has been performed before.

[0049] Step 204, in response to determining that the service status is abnormal based on the collected service status information, and the collection of the service status information is initialization collection, determine the unmatched service based on at least one service monitoring instruction, and determine the unmatched service as a monitoring-free service for the corresponding controlled terminal.

[0050] Optionally, in some embodiments of the present disclosure, the monitoring-free services of the controlled terminal may be displayed in a list on the first page to be provided to relevant personnel.

[0051] Step 205, in response to determining that the service status is normal according to the collected service status information, and the collection of the service status information is initialization collection, determine the matched service according to at least one service monitoring instruction, and determine the matched service as the commonly used monitoring service of the corresponding controlled terminal.

[0052] Optionally, in some embodiments of the present disclosure, commonly used monitoring services of the controlled terminal may be displayed in a list on the first page to be provided to relevant personnel.

[0053] Step 206 : In response to determining that the service status is normal according to the collected service status information, and the collection of the service status information is non-initialized collection, the collected service status information is displayed on the first page in a list and / or graphical manner.

[0054] Step 207: Send an abnormal service collection instruction to the first controlled terminal. The abnormal service collection instruction is used to instruct the first controlled terminal to collect instructions before and after the first commonly used monitoring service is started and stopped.

[0055] Step 208 : Acquire the collected instructions before and after the start and stop of the first frequently used monitoring service, and analyze the instructions before and after the start and stop of the first frequently used monitoring service to obtain valid instructions related to the start and stop of the first frequently used monitoring service.

[0056] Step 209 : Obtain a restart instruction of the first frequently used monitoring service through reverse learning according to the valid instruction and the service status information of the first frequently used monitoring service.

[0057] It should be noted that, in the embodiment of the present disclosure, steps 201 to 202 and steps 207 to 209 can be implemented in any manner in the embodiments of the present disclosure, and the present disclosure is not limited thereto.

[0058] According to the service monitoring method of the embodiment of the present disclosure, based on the built-in middleware service collection instructions, the controlled terminal is instructed to collect the service status information of the corresponding service, so that the operation and maintenance personnel do not need to understand the corresponding service of each controlled terminal to complete the service monitoring, thereby simplifying the operation process. When the collected service status information is abnormal and the collection of the service status information is non-initialized collection, the first commonly used monitoring service and / or the first controlled terminal will be reminded in the form of an alarm. The instructions before and after the start and stop of the first commonly used monitoring service are analyzed to obtain valid instructions. According to the valid instructions and the service status information of the first commonly used monitoring service, the restart instruction of the first commonly used monitoring service is obtained by reverse learning, and the first commonly used monitoring service is automatically started to improve the service monitoring efficiency.

[0059] Figure 3 is a flow chart showing another service monitoring method according to an exemplary embodiment. Figure 3 As shown, the service monitoring method includes the following steps.

[0060] Step 301: Send at least one service monitoring instruction to a connected controlled terminal according to at least one built-in middleware service collection instruction, wherein each service monitoring instruction is used to instruct the controlled terminal to collect service status information of a corresponding service.

[0061] Step 302: Acquire the collected service status information, and determine a first commonly used monitoring service with an abnormal service status and a first controlled terminal corresponding to the first commonly used monitoring service based on the collected service status information.

[0062] Step 303: Send an abnormal service collection instruction to the first controlled terminal. The abnormal service collection instruction is used to instruct the first controlled terminal to collect instructions before and after the first commonly used monitoring service is started and stopped.

[0063] Step 304: Acquire the collected instructions before and after the start and stop of the first frequently used monitoring service, analyze the instructions before and after the start and stop of the first frequently used monitoring service, and provide the analyzed instructions to the corresponding personnel in the form of suggestions.

[0064] Step 305: Acquire instructions that have been manually intervened by corresponding personnel, and determine the instructions that have been manually intervened by corresponding personnel as valid instructions related to starting and stopping the first commonly used monitoring service.

[0065] That is to say, after analyzing the instructions before and after the start and stop of the first commonly used monitoring service, relevant personnel need to confirm and determine the instructions that have been manually intervened by the relevant personnel as valid instructions related to the start and stop of the first commonly used monitoring service.

[0066] Step 306 : Obtain a restart instruction of the first frequently used monitoring service through reverse learning according to the valid instruction and the service status information of the first frequently used monitoring service.

[0067] Optionally, in some embodiments of the present disclosure, routine maintenance can be performed on the first commonly used monitoring service of the first controlled terminal based on the restart instruction. In one possible implementation, when the service status is abnormal, the service restart instruction can be manually executed to restore the service, or the restart instruction can be automatically initiated when the service status is abnormal.

[0068] It should be noted that, in the embodiment of the present disclosure, steps 301 to 303 and step 306 may be implemented in any manner in the embodiments of the present disclosure, and the present disclosure is not limited thereto.

[0069] According to the service monitoring method of the embodiment of the present disclosure, based on the built-in middleware service collection instructions, the controlled terminal is instructed to collect the service status information of the corresponding service, so that the operation and maintenance personnel do not need to understand the corresponding service of each controlled terminal to complete the service monitoring, thereby simplifying the operation process. When the collected service status information is abnormal, the instructions before and after the start and stop of the first commonly used monitoring service are analyzed, and the analyzed instructions are provided to the corresponding personnel in the form of suggestions, and the instructions that have been manually intervened by the corresponding personnel are determined to be valid instructions related to the start and stop of the first commonly used monitoring service, thereby improving the quality of the instructions. Based on the valid instructions and the service status information of the first commonly used monitoring service, the restart instruction of the first commonly used monitoring service is obtained by reverse learning, and the first commonly used monitoring service is automatically started, thereby improving the efficiency of service monitoring.

[0070] In order to implement the above embodiments, the present disclosure provides a service monitoring device. Figure 4 FIG. 1 is a structural diagram of a service monitoring device according to an exemplary embodiment. Figure 4 As shown, the service monitoring device includes: a main control center module 401 and an instruction analysis module 402.

[0071] The main control center module 401 is configured to send at least one service monitoring instruction to a connected controlled terminal according to at least one built-in middleware service collection instruction, wherein each service monitoring instruction is configured to instruct the controlled terminal to collect service status information of a corresponding service.

[0072] The main control center module 401 is further configured to obtain the collected service status information and determine, based on the collected service status information, a first commonly used monitoring service with an abnormal service status and a first controlled terminal corresponding to the first commonly used monitoring service.

[0073] The main control center module 401 is further configured to send an abnormal service collection instruction to the first controlled terminal, wherein the abnormal service collection instruction is used to instruct the first controlled terminal to collect instructions before and after the first commonly used monitoring service is started or stopped.

[0074] The main control center module 401 is further configured to obtain the collected instructions before and after the start and stop of the first commonly used monitoring service.

[0075] The instruction analysis module 402 is used to receive the instructions before and after the start and stop of the first commonly used monitoring service sent by the main control center module 401, and analyze the instructions before and after the start and stop of the first commonly used monitoring service to obtain valid instructions related to the start and stop of the first commonly used monitoring service;

[0076] The main control center module 401 is further configured to obtain a restart instruction of the first commonly used monitoring service through reverse learning according to the valid instruction and the service status information of the first commonly used monitoring service.

[0077] In some embodiments of the present disclosure, the main control center module 401 is specifically used to: when the service status is determined to be abnormal based on the collected service status information, and the collection of the service status information is non-initialized collection, determine the first commonly used monitoring service with abnormal service status and the first controlled terminal corresponding to the first commonly used monitoring service, and remind the first commonly used monitoring service and / or the first controlled terminal in the form of an alarm.

[0078] In some embodiments of the present disclosure, the main control center module 401 is also used to: when the service status is determined to be abnormal based on the collected service status information, and the collection of the service status information is initialization collection, determine the unmatched service according to at least one service monitoring instruction, and determine the unmatched service as a monitoring-free service for the corresponding controlled terminal.

[0079] In some embodiments of the present disclosure, the main control center module 401 is specifically used to: analyze the instructions before and after the start and stop of the first commonly used monitoring service, and provide the analyzed instructions to the corresponding personnel in the form of suggestions; obtain the instructions that have been manually intervened by the corresponding personnel, and determine the instructions that have been manually intervened by the corresponding personnel as valid instructions related to the start and stop of the first commonly used monitoring service.

[0080] In some embodiments of the present disclosure, the main control center module 401 is further configured to perform routine maintenance on the first commonly used monitoring service of the first controlled terminal based on the restart instruction.

[0081] Optionally, in some embodiments of the present disclosure, Figure 5 As shown, the service monitoring device may further include a terminal connection module 503. The terminal connection module 503 is configured to determine the host configuration information of the controlled terminal and, based on the host configuration information, send a connection instruction to the controlled terminal to establish a connection with the controlled terminal in the same cluster; wherein the host configuration information includes the Internet Protocol (IP) address information, port information, and Secure Shell (SSH) key information of the controlled terminal. Figure 5 Medium 501-502 and Figure 4401-402 have the same function and structure.

[0082] Optionally, in some embodiments of the present disclosure, Figure 6 As shown, the service monitoring device may further include a service management module 604.

[0083] The main control center module 601 is further configured to: when it is determined that the service status is normal according to the collected service status information and the collection of the service status information is initialization collection, determine a matched service according to at least one service monitoring instruction, and determine the matched service as a commonly used monitoring service for the corresponding controlled terminal;

[0084] Alternatively, the main control center module 601 is also used to: when the service status is determined to be normal based on the collected service status information and the collection of the service status information is non-initialized collection, the collected service status information is sent to the service management module 604; the service management module 604 is used to display the collected service status information in a list and / or graphical format on the first page.

[0085] In some embodiments of the present disclosure, the service management module 604 is further configured to display the monitoring-free services and commonly used monitoring services of the controlled terminal on the first page in a list format.

[0086] in, Figure 6 Medium 601-603 and Figure 5 501-503 have the same function and structure.

[0087] Regarding the apparatus in the above 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.

[0088] According to the service monitoring device of the embodiment of the present disclosure, based on the built-in middleware service collection instructions, the controlled terminal is instructed to collect the service status information of the corresponding service, so that the operation and maintenance personnel do not need to understand the corresponding service of each controlled terminal to complete the service monitoring, thereby simplifying the operation process. When the collected service status information is abnormal, the instructions before and after the start and stop of the first commonly used monitoring service are analyzed to obtain valid instructions. Based on the valid instructions and the service status information of the first commonly used monitoring service, the restart instruction of the first commonly used monitoring service is obtained by reverse learning, and the first commonly used monitoring service is automatically started, thereby improving the efficiency of service monitoring.

[0089] Figure 7 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 7 As shown, the electronic device may include: a transceiver 701 , a processor 702 , and a memory 703 .

[0090] The processor 702 executes the computer-executable instructions stored in the memory, so that the processor 702 implements the solution in the above embodiment. The processor 702 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0091] The memory 703 is connected to the processor 702 via a system bus and implements communication therebetween. The memory 703 is used to store computer program instructions.

[0092] The transceiver 701 may be used to obtain tasks to be executed and configuration information of the tasks to be executed.

[0093] The system bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, among others. The system bus can be divided into an address bus, a data bus, a control bus, and so on. For ease of illustration, the figure shows only one thick line, but this does not imply that there is only one bus or only one type of bus. Transceivers are used to enable communication between the database access device and other computers (e.g., clients, read-write libraries, and read-only libraries). Memory may include random access memory (RAM) and non-volatile memory.

[0094] The electronic device provided by the embodiments of the present disclosure may be the terminal device of the above embodiments.

[0095] The embodiment of the present disclosure also provides a chip for running instructions, which is used to execute the technical solution of the service monitoring method in the above embodiment.

[0096] The embodiment of the present disclosure further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a computer, the computer executes the technical solution of the service monitoring method in the above embodiment.

[0097] An embodiment of the present disclosure also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium, and when at least one processor executes the computer program, it can implement the technical solution of the service monitoring method in the above embodiment.

[0098] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.

[0099] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A service monitoring method, characterized in that: The method is applied to a master control terminal, and includes: Sending at least one service monitoring instruction to a connected controlled terminal according to at least one built-in middleware service collection instruction; wherein each of the service monitoring instructions is used to instruct the controlled terminal to collect service status information of the corresponding service; Acquire the collected service status information, and determine, based on the collected service status information, a first commonly used monitoring service whose service status is abnormal and a first controlled terminal corresponding to the first commonly used monitoring service; Sending an abnormal service collection instruction to the first controlled terminal; the abnormal service collection instruction is used to instruct the first controlled terminal to collect instructions before and after the first common monitoring service is started and stopped; Acquire the collected instructions before and after the start and stop of the first commonly used monitoring service, and analyze the instructions before and after the start and stop of the first commonly used monitoring service to obtain valid instructions related to the start and stop of the first commonly used monitoring service; According to the valid instruction and the service status information of the first commonly used monitoring service, a restart instruction of the first commonly used monitoring service is obtained through reverse learning.

2. The method according to claim 1, wherein Before sending at least one service monitoring instruction to the connected controlled terminal according to the at least one built-in middleware service collection instruction, the method further includes: Determine host configuration information of the controlled terminal; wherein the host configuration information includes Internet Protocol (IP) address information, port information, and Secure Shell (SSH) key information of the controlled terminal; According to the host configuration information, a connection instruction is sent to the controlled terminal to establish a connection with the controlled terminal in the same cluster.

3. The method according to claim 1, wherein The determining, based on the collected service status information, a first commonly used monitoring service with an abnormal service status and a first controlled terminal corresponding to the first commonly used monitoring service includes: In response to determining that the service status is abnormal based on the collected service status information, and the collection of the service status information is non-initialized collection, the first commonly used monitoring service with abnormal service status and the first controlled terminal corresponding to the first commonly used monitoring service are determined, and the first commonly used monitoring service and / or the first controlled terminal are reminded in the form of an alarm.

4. The method according to claim 3, wherein The method further comprises: In response to determining that the service status is abnormal based on the collected service status information, and the collection of the service status information is initialization collection, according to the at least one service monitoring instruction, determining the unmatched service, and determining the unmatched service as a monitoring-free service for the corresponding controlled terminal.

5. The method according to claim 3, wherein The method further comprises: In response to determining that the service status is normal according to the collected service status information, and that the collection of the service status information is initialization collection, determining a matched service according to the at least one service monitoring instruction, and determining the matched service as a commonly used monitoring service corresponding to the controlled terminal; Alternatively, in response to determining that the service status is normal according to the collected service status information, and the collection of the service status information is non-initialized collection, the collected service status information is displayed on the first page in a list and / or graphical manner.

6. The method according to claim 4 or 5, characterized in that The method further comprises: The monitoring-free services and common monitoring services of the controlled terminal are displayed in a list on the first page.

7. The method according to claim 1, wherein The analyzing the instructions before and after the start and stop of the first commonly used monitoring service to obtain valid instructions related to the start and stop of the first commonly used monitoring service includes: Analyze the instructions before and after the first commonly used monitoring service is started and stopped, and provide the analyzed instructions to relevant personnel in the form of suggestions; An instruction that has been manually intervened by the corresponding personnel is obtained, and the instruction that has been manually intervened by the corresponding personnel is determined as a valid instruction related to starting and stopping the first commonly used monitoring service.

8. The method according to claim 1, wherein The method further comprises: Based on the restart instruction, routine maintenance is performed on the first commonly used monitoring service of the first controlled terminal.

9. A service monitoring device, characterized in that: The device is applied to a master control terminal, and includes: A main control center module is configured to send at least one service monitoring instruction to a connected controlled terminal according to at least one built-in middleware service collection instruction; wherein each of the service monitoring instructions is configured to instruct the controlled terminal to collect service status information of a corresponding service; The main control center module is further configured to obtain the collected service status information and determine, based on the collected service status information, a first commonly used monitoring service with an abnormal service status and a first controlled terminal corresponding to the first commonly used monitoring service; The main control center module is further configured to send an abnormal service collection instruction to the first controlled terminal; the abnormal service collection instruction is configured to instruct the first controlled terminal to collect instructions before and after the first commonly used monitoring service is started and stopped; The main control center module is further used to obtain the collected instructions before and after the start and stop of the first common monitoring service; an instruction analysis module, configured to receive instructions before and after the start and stop of the first commonly used monitoring service sent by the main control center module, and analyze the instructions before and after the start and stop of the first commonly used monitoring service to obtain valid instructions related to the start and stop of the first commonly used monitoring service; The main control center module is further configured to obtain a restart instruction for the first commonly used monitoring service through reverse learning according to the valid instruction and the service status information of the first commonly used monitoring service.

10. The device according to claim 9, wherein Also includes: The terminal connection module is used to determine the host configuration information of the controlled terminal and send a connection instruction to the controlled terminal based on the host configuration information to establish a connection with the controlled terminals in the same cluster; wherein the host configuration information includes the Internet Protocol IP address information, port information and Secure Shell Protocol SSH key information of the controlled terminal.

11. The device according to claim 9, wherein The main control center module is specifically used to: when the service status is determined to be abnormal based on the collected service status information, and the collection of the service status information is non-initialized collection, determine the first commonly used monitoring service with abnormal service status and the first controlled terminal corresponding to the first commonly used monitoring service, and remind the first commonly used monitoring service and / or the first controlled terminal in the form of an alarm.

12. The device according to claim 11, wherein The main control center module is also used for: When the service status is determined to be abnormal based on the collected service status information and the collection of the service status information is initialized, the unmatched service is determined based on the at least one service monitoring instruction, and the unmatched service is determined as a monitoring-free service for the corresponding controlled terminal.

13. The device according to claim 11, wherein The device also includes a service management module, wherein: The main control center module is further configured to: when it is determined that the service status is normal according to the collected service status information and the collection of the service status information is initialization collection, determine a matched service according to the at least one service monitoring instruction, and determine the matched service as a commonly used monitoring service for the corresponding controlled terminal; Alternatively, the main control center module is also used to: when the service status is determined to be normal based on the collected service status information and the collection of the service status information is non-initialized collection, send the collected service status information to the service management module; the service management module is used to display the collected service status information in a list and / or graphical form on the first page.

14. The device according to claim 13, wherein The service management module is also used to: The monitoring-free services and common monitoring services of the controlled terminal are displayed in a list on the first page.

15. The device according to claim 9, wherein The main control center module is specifically used for: Analyze the instructions before and after the first commonly used monitoring service is started and stopped, and provide the analyzed instructions to relevant personnel in the form of suggestions; An instruction that has been manually intervened by the corresponding personnel is obtained, and the instruction that has been manually intervened by the corresponding personnel is determined as a valid instruction related to starting and stopping the first commonly used monitoring service.

16. The device according to claim 9, wherein The main control center module is further configured to perform routine maintenance on the first commonly used monitoring service of the first controlled terminal based on the restart instruction.

17. An electronic device, characterized in that: include: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 8.

18. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 8 when executed by a processor.

19. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 8 when the computer program is executed by a processor.

Citation Information

Patent Citations

  • Server operation state alarm method and device, server and storage medium

    CN111459770A

  • Service state processing method and device, model training method and device, equipment and storage medium

    CN111897705A