CN117376105A - Application diagnosis method, device, equipment and computer readable storage medium - Google Patents
Application diagnosis method, device, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN117376105A CN117376105A CN202311198866.3A CN202311198866A CN117376105A CN 117376105 A CN117376105 A CN 117376105A CN 202311198866 A CN202311198866 A CN 202311198866A CN 117376105 A CN117376105 A CN 117376105A
- Authority
- CN
- China
- Prior art keywords
- application
- service
- diagnostic
- information
- service information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003745 diagnosis Methods 0.000 title claims abstract description 92
- 238000000034 method Methods 0.000 title abstract description 29
- 239000000523 sample Substances 0.000 claims abstract description 131
- 238000004891 communication Methods 0.000 claims description 34
- 238000002405 diagnostic procedure Methods 0.000 claims description 22
- 230000002457 bidirectional effect Effects 0.000 claims description 10
- 230000000712 assembly Effects 0.000 claims description 6
- 238000000429 assembly Methods 0.000 claims description 6
- 238000012423 maintenance Methods 0.000 abstract description 4
- 238000011835 investigation Methods 0.000 abstract description 3
- 238000005516 engineering process Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000013024 troubleshooting Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/079—Root cause analysis, i.e. error or fault diagnosis
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0677—Localisation of faults
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
The invention discloses an application diagnosis method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: the diagnostic client component receives notification information of the change of the probe service information sent by the registration discovery component; acquiring first service information of a first application service in a K8s container corresponding to notification information, and controlling a diagnostic probe assembly in the K8s container to start; and diagnosing the application problem of the first application service through the diagnosis probe assembly based on the first service information. According to the invention, the diagnosis client assembly can be automatically linked with the K8s container to diagnose the application service through the diagnosis probe assembly, and no intervention of operation and maintenance personnel is needed in the fault diagnosis process of the application service in the K8s container, so that the fault diagnosis efficiency of the application service in the K8s container is improved, the problem investigation efficiency is further improved, and the problem positioning time is reduced.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an application diagnosis method, apparatus, device, and computer readable storage medium.
Background
With the continuous maturity of cloud computing technology, container technology gradually becomes a development hot spot in the industry, and is increasingly applied to various fields. K8s (collectively Kubernetes) is a orchestration tool based on container technology that provides a series of functions for containerized applications, such as deployment operation, resource scheduling, and service discovery. The stability of the application on K8s is very important, and at present, the scheme idea of detecting the stability of the application is generally to perform programmed verification by means of external data, such as monitoring a Warning event and configuring a threshold early Warning.
However, when the data of faults need to be collected, operation staff is required to enter the container manually, a diagnosis tool in the application is started to diagnose, and fault data on the line cannot be observed and acquired at the first time, so that the efficiency of fault diagnosis in application monitoring is low, and the time for defining abnormal states is long.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide an application diagnosis method, an application diagnosis device, application diagnosis equipment and a computer readable storage medium, and aims to solve the technical problem that the existing fault diagnosis of application services in a K8s container is low in efficiency.
To achieve the above object, the present invention provides an application diagnostic method comprising the steps of:
the diagnostic client component receives notification information of the change of the probe service information sent by the registration discovery component;
acquiring first service information of a first application service in a K8s container corresponding to notification information, and controlling a diagnostic probe assembly in the K8s container to start;
and diagnosing the application problem of the first application service through the diagnosis probe assembly based on the first service information.
Further, the step of performing application problem diagnosis on the first application service through the diagnostic probe assembly based on the first service information includes:
opening a diagnosis console and establishing a communication link with the first application service based on the first service information;
and diagnosing application problems of the first application service through the diagnosis probe assembly based on the communication link.
Further, the step of establishing a communication link with the first application service based on the first service information includes:
acquiring a target ip address and target port information in the first service information;
and establishing the communication link with the first application service based on the target ip address and the target port information, wherein the communication link is a socket bidirectional link.
Further, the step of receiving, by the diagnostic client component, notification information that the probe service information sent by the registration discovery component has changed includes:
and the diagnostic client component receives the notification information, wherein the registration discovery component sends the notification information of the change of the probe service information of the first application service to the diagnostic client component when detecting the first application service with the change of the service information in the application services corresponding to the registered probe component.
Further, before the step of receiving, by the diagnostic client component, notification information that the probe service information sent by the registration discovery component changes, the application diagnostic method further includes:
acquiring registered diagnostic probe assemblies in the registration discovery assembly, and determining a diagnostic service list based on application services corresponding to the registered diagnostic probe assemblies;
the step of obtaining the first service information of the first application service in the K8s container corresponding to the notification information includes:
and if the first application service belongs to the diagnosis service list, acquiring the first service information.
Further, before the step of obtaining the registered diagnostic probe assembly in the registration discovery assembly, the applying a diagnostic method further includes:
and a second application service in the K8s container acquires corresponding second service information, and performs registration operation of the diagnostic probe assembly in the registration discovery assembly based on the second service information.
Further, the step of obtaining corresponding second service information by the second application service in the K8s container and performing the registration operation of the diagnostic probe assembly in the registration discovery assembly based on the second service information includes:
loading the diagnostic probe assembly when the second application service is started;
and the second application service acquires corresponding second service information and performs registration operation of the diagnostic probe assembly in the registration discovery assembly based on the second service information.
In addition, in order to achieve the above object, the present invention also provides an application diagnostic apparatus including:
the receiving module is used for receiving the notification information of the change of the probe service information sent by the registration discovery component;
the acquisition module is used for acquiring first service information of a first application service in the K8s container corresponding to the notification information and controlling the diagnosis probe assembly in the K8s container to start;
and the diagnosis module is used for diagnosing the application problems of the first application service through the diagnosis probe assembly based on the first service information.
In addition, in order to achieve the above object, the present invention also provides an application diagnostic apparatus including: the system comprises a memory, a processor and an application diagnostic program stored on the memory and capable of running on the processor, wherein the application diagnostic program realizes the steps of the application diagnostic method when being executed by the processor.
In addition, in order to achieve the above object, the present invention further provides a computer readable storage medium, wherein an application diagnostic program is stored on the computer readable storage medium, and the application diagnostic program when executed by a processor implements the steps of the application diagnostic method described above.
The invention receives the notification information of the change of the probe service information sent by the registration discovery component through the diagnosis client component; then, first service information of a first application service in a K8s container corresponding to the notification information is obtained, and the diagnosis probe assembly in the K8s container is controlled to be started; and then, performing application problem diagnosis on the first application service through the diagnosis probe assembly based on the first service information, wherein the diagnosis client assembly can be automatically linked with the K8s container through the diagnosis probe assembly to perform application service diagnosis, and operation and maintenance personnel are not needed in the fault diagnosis process of the application service in the K8s container, so that the fault diagnosis efficiency of the application service in the K8s container is improved, the problem troubleshooting efficiency is further improved, and the problem positioning time is shortened.
Drawings
FIG. 1 is a schematic diagram of an application diagnostic apparatus in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flow chart of a first embodiment of an application diagnostic method of the present invention;
FIG. 3 is a schematic diagram of functional modules of an embodiment of an applied diagnostic device of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an application diagnostic apparatus in a hardware running environment according to an embodiment of the present invention.
The application diagnosis device of the embodiment of the invention can be a PC, or can be a mobile terminal device with a display function, such as a smart phone, a tablet personal computer, an electronic book reader, an MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression standard audio layer 4) player, a portable computer and the like.
As shown in fig. 1, the application diagnostic apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the application diagnostic device may also include a camera, RF (Radio Frequency) circuitry, sensors, audio circuitry, wiFi modules, and the like. Among other sensors, such as light sensors, motion sensors, and other sensors. In particular, the light sensor may comprise an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the application diagnostic device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile terminal is stationary, and the mobile terminal can be used for recognizing the gesture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; of course, other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. may also be configured with the diagnostic device, and will not be described in detail herein.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the application diagnostic apparatus and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and an application diagnostic program may be included in a memory 1005, which is one type of computer storage medium.
In the application diagnostic apparatus shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server, and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be used to invoke an application diagnostic program stored in the memory 1005.
In the present embodiment, the application diagnostic apparatus includes: the processor 1001 includes a memory 1005, a processor 1001, and an application diagnostic program stored on the memory 1005 and executable on the processor 1001, wherein when the processor 1001 calls the application diagnostic program stored in the memory 1005, the following operations are performed:
the diagnostic client component receives notification information of the change of the probe service information sent by the registration discovery component;
acquiring first service information of a first application service in a K8s container corresponding to notification information, and controlling a diagnostic probe assembly in the K8s container to start;
and diagnosing the application problem of the first application service through the diagnosis probe assembly based on the first service information.
Further, the processor 1001 may call the application diagnostic program stored in the memory 1005, and further perform the following operations:
opening a diagnosis console and establishing a communication link with the first application service based on the first service information;
and diagnosing application problems of the first application service through the diagnosis probe assembly based on the communication link.
Further, the processor 1001 may call the application diagnostic program stored in the memory 1005, and further perform the following operations:
acquiring a target ip address and target port information in the first service information;
and establishing the communication link with the first application service based on the target ip address and the target port information, wherein the communication link is a socket bidirectional link.
Further, the processor 1001 may call the application diagnostic program stored in the memory 1005, and further perform the following operations:
and the diagnostic client component receives the notification information, wherein the registration discovery component sends the notification information of the change of the probe service information of the first application service to the diagnostic client component when detecting the first application service with the change of the service information in the application services corresponding to the registered probe component.
Further, the processor 1001 may call the application diagnostic program stored in the memory 1005, and further perform the following operations:
acquiring registered diagnostic probe assemblies in the registration discovery assembly, and determining a diagnostic service list based on application services corresponding to the registered diagnostic probe assemblies;
the step of obtaining the first service information of the first application service in the K8s container corresponding to the notification information includes:
and if the first application service belongs to the diagnosis service list, acquiring the first service information.
Further, the processor 1001 may call the application diagnostic program stored in the memory 1005, and further perform the following operations:
and a second application service in the K8s container acquires corresponding second service information, and performs registration operation of the diagnostic probe assembly in the registration discovery assembly based on the second service information.
Further, the processor 1001 may call the application diagnostic program stored in the memory 1005, and further perform the following operations:
loading the diagnostic probe assembly when the second application service is started;
and the second application service acquires corresponding second service information and performs registration operation of the diagnostic probe assembly in the registration discovery assembly based on the second service information.
The invention also provides an application diagnosis method, referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the application diagnosis method of the invention.
In this embodiment, the application diagnosis method includes:
step S101, a diagnosis client component receives notification information of the change of probe service information sent by a registration discovery component;
in this embodiment, a diagnostic probe component is set for each K8s container, when each application service in the K8s container is started, the diagnostic probe component is loaded, then the currently started application service obtains corresponding service information, the service information may include a service name, an ip address, port information, and the like, and then the currently started application service performs a registration operation of the diagnostic probe component in the registration discovery component based on the service information, and specifically, the registration discovery component may bind the service information of the currently started application service with the corresponding diagnostic probe component.
Next, the diagnostic client component subscribes to discover the registered diagnostic probe components to obtain a list of diagnostic services, and specifically, the diagnostic client component obtains the registered diagnostic probe components in the registration discovery component and determines the list of diagnostic services based on the application services corresponding to the registered diagnostic probe components, e.g., the diagnosable client component obtains all the service information bound by the registered diagnostic probe components in the registration discovery component, and generates a list of diagnostic services based on each registered diagnostic probe component and all the service information bound by the registered diagnostic probe components, where the list of diagnostic services may include the service information of each application service and the corresponding diagnostic probe component. After the diagnostic client component subscribes to the diagnostic probe component, when the probe service information in the registration discovery component changes, the diagnostic client component is notified, for example, notification information of the change in the probe service information may be sent to the diagnostic client component.
In this embodiment, the diagnostic client component receives the notification information that the probe service information sent by the registration discovery component changes, and further, in a possible implementation manner, the step S101 includes:
and the diagnostic client component receives the notification information, wherein the registration discovery component sends the notification information of the change of the probe service information of the first application service to the diagnostic client component when detecting the first application service with the change of the service information in the application services corresponding to the registered probe component.
In this embodiment, when there is a first application service whose service information changes in the application service corresponding to the registered probe component, the registration discovery component sends notification information that the probe service information of the first application service changes to the diagnostic client component, for example, when an IP address changes after the application service is restarted, the registration discovery component determines that the probe service information of the application service changes, and when port information of the application service changes, the registration discovery component determines that the probe service information of the application service changes.
Step S102, first service information of a first application service in a K8S container corresponding to notification information is obtained, and a diagnosis probe assembly in the K8S container is controlled to be started;
in this embodiment, after receiving the notification information that the probe service information sent by the registration discovery component changes, the diagnostic client component obtains first service information of a first application service in a K8s container corresponding to the notification information, and specifically, the diagnostic client component may first obtain a diagnostic probe component corresponding to the notification information, determine, according to the diagnostic probe component, the K8s container corresponding to the notification information, determine an application service in the K8s container in which the probe service information changes, and then obtain first service information of the first application service in which the probe service information changes.
In this embodiment, when the first service information is obtained, the diagnostic client component controls the diagnostic probe component in the K8s container to start, so as to diagnose the first application service through the diagnostic probe component in the K8s container.
And step S103, performing application problem diagnosis on the first application service through the diagnosis probe assembly based on the first service information.
In this embodiment, after the diagnostic probe assembly in the K8s container is started, the diagnostic client assembly performs application problem diagnosis on the first application service through the diagnostic probe assembly based on the first service information, so as to implement timely diagnosis of the first application service, and improve failure diagnosis efficiency of the application service in the K8s container.
Further, in one possible implementation manner, before step S101, the application diagnosis method further includes:
step S104, a registered diagnostic probe assembly in the registered discovery assembly is obtained, and a diagnostic service list is determined based on application services corresponding to the registered diagnostic probe assembly;
step S102 includes: and if the first application service belongs to the diagnosis service list, acquiring the first service information.
Further, in still another possible implementation manner, before step S104, the application diagnosis method further includes:
step S105, the second application service in the K8S container obtains the corresponding second service information, and performs the registration operation of the diagnostic probe component in the registration discovery component based on the second service information.
Further, in yet another possible implementation manner, step S105 includes:
step S1051, loading the diagnostic probe assembly when the second application service is started;
step S1052, the second application service obtains the corresponding second service information, and performs the registration operation of the diagnostic probe assembly in the registration discovery assembly based on the second service information.
In this embodiment, a diagnostic probe component is set for each K8s container, when each second application service in the K8s container is started, the second application service loads the diagnostic probe component, then the currently started second application service obtains corresponding second service information, where the second service information may include a service name, an ip address, port information, and the like of the second application service, and then the currently started second application service performs a registration operation of the diagnostic probe component in the registration discovery component based on the second service information, and specifically, the registration discovery component may bind the second service information of the currently started second application service with the corresponding diagnostic probe component.
In this embodiment, the diagnostic client component subscribes to discover the registered diagnostic probe component to obtain a diagnostic service list, specifically, the diagnostic client component obtains the registered diagnostic probe component in the registered discovery component, and determines the diagnostic service list based on the application service corresponding to the registered diagnostic probe component, for example, the diagnostic client component may obtain all service information bound by the registered diagnostic probe component in the registered discovery component, and generate the diagnostic service list based on each registered diagnostic probe component and all service information bound by the registered diagnostic probe component, where the diagnostic service list may include service information of each application service and the corresponding diagnostic probe component. After the diagnostic client component subscribes to the diagnostic probe component, when the probe service information in the registration discovery component changes, the diagnostic client component is notified, for example, notification information of the change in the probe service information may be sent to the diagnostic client component.
In this embodiment, when there is a first application service whose service information changes in the application service corresponding to the registered probe component, the registration discovery component sends notification information that the probe service information of the first application service changes to the diagnostic client component, for example, when an IP address changes after the application service is restarted, the registration discovery component determines that the probe service information of the application service changes, and when port information of the application service changes, the registration discovery component determines that the probe service information of the application service changes.
In this embodiment, after receiving the notification information that the probe service information sent by the registration discovery component changes, the diagnostic client component determines whether the first application service belongs to the diagnostic service list, if the first application service belongs to the diagnostic service list, the first service information is obtained, specifically, the diagnostic client component may first obtain the diagnostic probe component corresponding to the notification information, determine a K8s container corresponding to the notification information according to the diagnostic probe component, determine an application service that the probe service information in the K8s container changes, and then obtain the first service information of the first application service that the probe service information changes.
According to the application diagnosis method provided by the embodiment, the diagnosis client side component receives notification information of the change of the probe service information sent by the registration discovery component; then, first service information of a first application service in a K8s container corresponding to the notification information is obtained, and the diagnosis probe assembly in the K8s container is controlled to be started; and then, performing application problem diagnosis on the first application service through the diagnosis probe assembly based on the first service information, wherein the diagnosis client assembly can be automatically linked with the K8s container through the diagnosis probe assembly to perform application service diagnosis, and operation and maintenance personnel are not needed in the fault diagnosis process of the application service in the K8s container, so that the fault diagnosis efficiency of the application service in the K8s container is improved, the problem troubleshooting efficiency is further improved, and the problem positioning time is shortened.
Based on the first embodiment, a second embodiment of the application diagnostic method of the present invention is proposed, in which step S103 includes:
step S301, a diagnosis console is opened, and a communication link is established with the first application service based on the first service information;
step S302, performing application problem diagnosis on the first application service through the diagnostic probe assembly based on the communication link.
In this embodiment, after the diagnostic probe assembly in the K8s container is started, the diagnostic client assembly opens the diagnostic console and establishes a communication link with the first application service based on the first service information.
Then, after the communication link is established, the diagnosis client component performs application problem diagnosis on the first application service through the diagnosis probe component based on the communication link, namely performs application problem diagnosis on the first application service through the diagnosis probe component based on the communication link, so that timely diagnosis of the first application service is realized, and fault diagnosis efficiency of the application service in the K8s container is improved.
According to the application diagnosis method provided by the embodiment, a diagnosis control console is opened, and a communication link is established with the first application service based on the first service information; and then, carrying out application problem diagnosis on the first application service through the diagnosis probe assembly based on the communication link, and carrying out application problem diagnosis on the application service through the diagnosis probe assembly by automatically opening a diagnosis console, so that the diagnosis client assembly can automatically link the K8s container to carry out diagnosis on the application service, operation and maintenance personnel are not needed in the fault diagnosis process of the application service in the K8s container, the fault diagnosis efficiency of the application service in the K8s container is improved, the problem investigation efficiency is further improved, and the problem positioning time is reduced.
Based on the second embodiment, a third embodiment of the present invention to which the diagnostic method is applied is proposed, in which step S201 includes:
step S301, obtaining a target ip address and target port information in the first service information;
step S302, establishing the communication link with the first application service based on the target ip address and the target port information, where the communication link is a socket bidirectional link.
In this embodiment, after the diagnostic console is turned on, the diagnostic client component obtains the target ip address and the target port information in the first service information, and specifically, the diagnostic client component may obtain the target ip address and the target port information in the first service information in the diagnostic service list.
After the target ip address and the target port information are acquired, the diagnostic client component establishes the communication link with the first application service based on the target ip address and the target port information, wherein the communication link is a socket bidirectional link, and it can be understood that the diagnostic client component establishes a socket bidirectional link channel with the first application service through the existing socket bidirectional link algorithm based on the target ip address and the target port information.
According to the application diagnosis method provided by the embodiment, the target ip address and the target port information in the first service information are obtained; and then establishing the communication link with the first application service based on the target ip address and the target port information, wherein the communication link is a socket bidirectional link, and diagnosing the application service in the K8s container through the socket bidirectional link by establishing the socket bidirectional link between the diagnosis client component and the application service, thereby further improving the fault diagnosis efficiency of the application service in the K8s container, further improving the problem investigation efficiency and reducing the problem positioning time.
The present invention also provides an application diagnostic apparatus, referring to fig. 3, comprising:
a receiving module 10, configured to receive notification information that the probe service information sent by the registration discovery component changes;
the acquisition module 20 is configured to acquire first service information of a first application service in a K8s container corresponding to the notification information, and control a diagnostic probe assembly in the K8s container to be started;
a diagnostic module 30 for performing application problem diagnosis on the first application service through the diagnostic probe assembly based on the first service information.
The method executed by each program element may refer to each embodiment of the diagnostic method applied to the present invention, and will not be described herein.
The invention also provides a computer readable storage medium.
The computer readable storage medium of the present invention has stored thereon an application diagnostic program which, when executed by a processor, implements the steps of the application diagnostic method as described above.
The method implemented when the application diagnostic program running on the processor is executed may refer to various embodiments of the application diagnostic method of the present invention, which are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
Claims (10)
1. An application diagnostic method, characterized in that it comprises the steps of:
the diagnostic client component receives notification information of the change of the probe service information sent by the registration discovery component;
acquiring first service information of a first application service in a K8s container corresponding to notification information, and controlling a diagnostic probe assembly in the K8s container to start;
and diagnosing the application problem of the first application service through the diagnosis probe assembly based on the first service information.
2. The application diagnostic method of claim 1, wherein the step of performing application problem diagnosis on the first application service through the diagnostic probe assembly based on the first service information comprises:
opening a diagnosis console and establishing a communication link with the first application service based on the first service information;
and diagnosing application problems of the first application service through the diagnosis probe assembly based on the communication link.
3. The application diagnostic method of claim 2, wherein the step of establishing a communication link with the first application service based on the first service information comprises:
acquiring a target ip address and target port information in the first service information;
and establishing the communication link with the first application service based on the target ip address and the target port information, wherein the communication link is a socket bidirectional link.
4. The application diagnostic method of claim 1, wherein the step of the diagnostic client component receiving notification information of the change in probe service information sent by the registration discovery component comprises:
and the diagnostic client component receives the notification information, wherein the registration discovery component sends the notification information of the change of the probe service information of the first application service to the diagnostic client component when detecting the first application service with the change of the service information in the application services corresponding to the registered probe component.
5. The application diagnostic method according to any one of claims 1 to 4, wherein before the step of the diagnostic client component receiving notification information of a change in probe service information transmitted by the registration discovery component, the application diagnostic method further comprises:
acquiring registered diagnostic probe assemblies in the registration discovery assembly, and determining a diagnostic service list based on application services corresponding to the registered diagnostic probe assemblies;
the step of obtaining the first service information of the first application service in the K8s container corresponding to the notification information includes:
and if the first application service belongs to the diagnosis service list, acquiring the first service information.
6. The application diagnostic method of claim 5, wherein prior to the step of obtaining a registered diagnostic probe assembly in the registration discovery assembly, the application diagnostic method further comprises:
and a second application service in the K8s container acquires corresponding second service information, and performs registration operation of the diagnostic probe assembly in the registration discovery assembly based on the second service information.
7. The application diagnostic method of claim 6, wherein the step of the second application service in the K8s container obtaining corresponding second service information and performing a registration operation of the diagnostic probe assembly in the registration discovery assembly based on the second service information comprises:
loading the diagnostic probe assembly when the second application service is started;
and the second application service acquires corresponding second service information and performs registration operation of the diagnostic probe assembly in the registration discovery assembly based on the second service information.
8. An application diagnostic apparatus, characterized in that the application diagnostic apparatus comprises:
the receiving module is used for receiving the notification information of the change of the probe service information sent by the registration discovery component;
the acquisition module is used for acquiring first service information of a first application service in the K8s container corresponding to the notification information and controlling the diagnosis probe assembly in the K8s container to start;
and the diagnosis module is used for diagnosing the application problems of the first application service through the diagnosis probe assembly based on the first service information.
9. An application diagnostic apparatus, characterized in that the application diagnostic apparatus comprises: memory, a processor and an application diagnostic program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the application diagnostic method of any one of claims 1 to 7.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon an application diagnostic program, which when executed by a processor, implements the steps of the application diagnostic method according to any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311198866.3A CN117376105A (en) | 2023-09-15 | 2023-09-15 | Application diagnosis method, device, equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311198866.3A CN117376105A (en) | 2023-09-15 | 2023-09-15 | Application diagnosis method, device, equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117376105A true CN117376105A (en) | 2024-01-09 |
Family
ID=89390043
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311198866.3A Pending CN117376105A (en) | 2023-09-15 | 2023-09-15 | Application diagnosis method, device, equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117376105A (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108737215A (en) * | 2018-05-29 | 2018-11-02 | 郑州云海信息技术有限公司 | A kind of method and apparatus of cloud data center Kubernetes clusters container health examination |
CN110659184A (en) * | 2019-09-23 | 2020-01-07 | 北京百度网讯科技有限公司 | Health state checking method, device and system |
CN111538889A (en) * | 2020-03-30 | 2020-08-14 | 中国平安人寿保险股份有限公司 | Interface request method, device, equipment and computer readable storage medium |
CN112084004A (en) * | 2020-09-02 | 2020-12-15 | 中国电力科学研究院有限公司 | Container detection and maintenance method and system for container application |
CN113377610A (en) * | 2021-06-07 | 2021-09-10 | 北京博睿宏远数据科技股份有限公司 | Performance monitoring method and device, computer equipment and storage medium |
CN113452793A (en) * | 2021-06-30 | 2021-09-28 | 东软睿驰汽车技术(沈阳)有限公司 | Diagnostic service processing method and device, vehicle-mounted terminal and medium |
WO2021197579A1 (en) * | 2020-03-31 | 2021-10-07 | Telefonaktiebolaget Lm Ericsson (Publ) | Method for deploying application software in cloud environments |
CN114884840A (en) * | 2022-03-21 | 2022-08-09 | 新华三大数据技术有限公司 | Application health state checking method and electronic equipment |
CN115145682A (en) * | 2022-06-20 | 2022-10-04 | 中教云智数字科技有限公司 | Micro-service no-perception online and offline method based on kubernets |
CN116048618A (en) * | 2022-12-29 | 2023-05-02 | 阿里巴巴(中国)有限公司 | Probe processing method, system, electronic device and readable storage medium |
CN116132344A (en) * | 2022-12-28 | 2023-05-16 | 中国电信股份有限公司 | Container service debugging method and device based on K8s cluster and electronic equipment |
-
2023
- 2023-09-15 CN CN202311198866.3A patent/CN117376105A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108737215A (en) * | 2018-05-29 | 2018-11-02 | 郑州云海信息技术有限公司 | A kind of method and apparatus of cloud data center Kubernetes clusters container health examination |
CN110659184A (en) * | 2019-09-23 | 2020-01-07 | 北京百度网讯科技有限公司 | Health state checking method, device and system |
CN111538889A (en) * | 2020-03-30 | 2020-08-14 | 中国平安人寿保险股份有限公司 | Interface request method, device, equipment and computer readable storage medium |
WO2021197579A1 (en) * | 2020-03-31 | 2021-10-07 | Telefonaktiebolaget Lm Ericsson (Publ) | Method for deploying application software in cloud environments |
CN112084004A (en) * | 2020-09-02 | 2020-12-15 | 中国电力科学研究院有限公司 | Container detection and maintenance method and system for container application |
CN113377610A (en) * | 2021-06-07 | 2021-09-10 | 北京博睿宏远数据科技股份有限公司 | Performance monitoring method and device, computer equipment and storage medium |
CN113452793A (en) * | 2021-06-30 | 2021-09-28 | 东软睿驰汽车技术(沈阳)有限公司 | Diagnostic service processing method and device, vehicle-mounted terminal and medium |
CN114884840A (en) * | 2022-03-21 | 2022-08-09 | 新华三大数据技术有限公司 | Application health state checking method and electronic equipment |
CN115145682A (en) * | 2022-06-20 | 2022-10-04 | 中教云智数字科技有限公司 | Micro-service no-perception online and offline method based on kubernets |
CN116132344A (en) * | 2022-12-28 | 2023-05-16 | 中国电信股份有限公司 | Container service debugging method and device based on K8s cluster and electronic equipment |
CN116048618A (en) * | 2022-12-29 | 2023-05-02 | 阿里巴巴(中国)有限公司 | Probe processing method, system, electronic device and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107276789B (en) | Log uploading method and device and computer readable storage medium | |
US20170099560A1 (en) | System, a method and a computer program product for automated remote control | |
CN107908487B (en) | Task control management method, device and equipment and computer readable storage medium | |
CN111078556B (en) | Application testing method and device | |
CN104376340A (en) | Clock punching method and device | |
WO2022222657A1 (en) | Automobile diagnosis system and method, and cloud server | |
CN108874653B (en) | Task testing method, tester, shared server and readable storage medium | |
CN109753425A (en) | Pop-up processing method and processing device | |
CN107783906A (en) | Method of testing, device and storage medium | |
CN114879640A (en) | Automobile remote diagnosis system, method and computer readable storage medium | |
CN114363225B (en) | MTQQ protocol-based equipment debugging mode, system and storage medium | |
CN109408080A (en) | A kind of method and terminal of application upgrade | |
CN109218082B (en) | Network configuration parameter processing method, device and equipment | |
CN110650051A (en) | Self-service terminal monitoring method and system and computer readable storage medium | |
CN117376105A (en) | Application diagnosis method, device, equipment and computer readable storage medium | |
CN112997507B (en) | Audio system control method, device, terminal and computer readable storage medium | |
CN110717486B (en) | Text detection method and device, electronic equipment and storage medium | |
CN111339196B (en) | Data processing method and system based on block chain and computer readable storage medium | |
CN112987597B (en) | FSU control method, device, equipment and computer readable storage medium | |
CN115167378A (en) | Vehicle diagnosis mode control method, system, equipment and storage medium | |
CN112486573B (en) | Data processing method, data processing equipment and storage medium of monitoring system | |
CN110321251B (en) | Data backup method, device, equipment and storage medium based on network block equipment | |
CN112667868B (en) | Data detection method and device | |
CN113076201A (en) | Mutual exclusion checking method for task instruction and electronic equipment | |
CN108280798B (en) | Method and device for rendering and displaying browser kernel |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |