Search

CN-121985366-A - Health state monitoring method, computer equipment, storage medium and product

CN121985366ACN 121985366 ACN121985366 ACN 121985366ACN-121985366-A

Abstract

The application relates to a health state monitoring method, computer equipment, a storage medium and a product, which relate to the technical field of computers; the method comprises the steps of periodically sending an information acquisition request to a first application program instance through a health status monitoring interface, enabling the first application program instance to be an application program instance registered in a mobile edge platform, performing information interaction with the mobile edge platform through the health status monitoring interface, receiving status indication information fed back by the first application program instance based on the information acquisition request, determining the health status of the first application program instance based on health status parameters in the status indication information, and enabling the mobile edge platform to determine the available status of each produced service instance based on the health status of the application program instance.

Inventors

  • ZHANG JIE
  • HOU LICHANG

Assignees

  • 中兴通讯股份有限公司

Dates

Publication Date
20260505
Application Date
20241031

Claims (14)

  1. 1. A method of health status monitoring, the method performed by a mobile edge platform, the method comprising: Periodically sending an information acquisition request to a first application program instance through a health status monitoring interface, wherein the first application program instance is an application program instance registered in the mobile edge platform, and carrying out information interaction with the mobile edge platform through the health status monitoring interface; receiving state indication information fed back by the first application program instance based on the information acquisition request; Based on the health status parameter in the status indication information, a health status of the first application instance is determined.
  2. 2. The method of claim 1, wherein the determining the health status of the first application instance based on the health status parameter in the status indication information comprises: determining that the health state of the first application program instance is normal when the availability state of each service instance produced by the first application program instance in the health state parameter is an active state, the time difference between the generation time stamp of the information acquisition request and the current time point is within a target duration and the power-on time stamp of the first application program instance is unchanged; And determining that the health state of the first application program instance is abnormal under the condition that the health state parameter meets any one of the conditions that the availability state of each service instance comprises an inactive state, the time difference between the generation time stamp and the current time point exceeds the target duration and the power-on time stamp is changed.
  3. 3. The method according to claim 2, wherein the method further comprises: and under the condition that the health state of the first application program instance is abnormal, sending abnormality indication information to a second application program instance, wherein the second application program instance is an application program instance subscribed with the service instance produced by the first application program instance.
  4. 4. A method according to claim 3, wherein the abnormality indication information is used to indicate that the second application instance updates a service rule in case the health status abnormality is an abnormality caused by a power-on time stamp in the health status parameter.
  5. 5. A method according to claim 3, wherein the abnormality indication information is used to indicate that a service instance produced by the first application instance is not available in case the health status abnormality is that generating a timestamp in the health status parameter results in an abnormality.
  6. 6. A method according to claim 3, wherein in case the health status anomaly is an anomaly caused by the availability status of a service instance in the health status parameter, the method further comprises: And sending the abnormality indication information to a target application program instance, wherein the abnormality indication information is used for indicating that the availability state of the target service instance is changed, and the target application program instance is an application program instance subscribed with the target service instance in the second application program instance.
  7. 7. A method according to claim 3, characterized in that the method further comprises: And under the condition that the health state of the first application program instance is determined to be abnormal, continuing to send the information acquisition request to the first application program instance until the health state of the first application program instance is determined to be normal based on the health state parameter in the received state indication information, and sending normal indication information to the second application program instance.
  8. 8. The method according to claim 1, wherein the method further comprises: Receiving a registration request sent by the first application program instance, wherein the registration request comprises instance information of the first application program instance, and the instance information comprises an application program instance name, an application program instance identifier, an Internet Protocol (IP) address and health status monitoring interface information; After the saving operation of the instance information of the first application program instance is completed based on the registration request, registration success response information is sent to the first application program instance.
  9. 9. A method for health monitoring, wherein the method is performed by a first application instance registered in a mobile edge platform, the method comprising: Periodically receiving an information acquisition request sent by the mobile edge platform through a health status monitoring interface, wherein information interaction is carried out between the mobile edge platform and the first application program instance through the health status monitoring interface; And feeding back state indication information to the mobile edge platform based on the information acquisition request, so that the mobile edge platform determines the health state of the first application program instance based on the health state parameters in the state indication information.
  10. 10. The method of claim 9, wherein the health status parameter includes availability status of each service instance produced by the first application instance, a generation timestamp of the information retrieval request, and a power-up timestamp of the first application instance.
  11. 11. The method according to claim 10, wherein the method further comprises: the method comprises the steps of sending a registration request to the mobile edge platform, wherein the registration request comprises instance information of a first application program instance, and the instance information comprises an application program instance name, an application program instance identifier, an IP address and health status monitoring interface information; And receiving registration success response information, wherein the registration success response information is sent by the mobile edge platform after completing the preservation operation of the instance information of the first application program instance based on the registration request.
  12. 12. A computer device, characterized in that it comprises a processor and a memory, said memory storing at least one computer program, said at least one computer program being loaded and executed by said processor to implement the health status monitoring method of any of claims 1 to 11.
  13. 13. A computer readable storage medium having stored therein at least one computer program loaded and executed by a processor to implement the health status monitoring method of any of claims 1 to 11.
  14. 14. A computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer device, cause the computer device to perform the health status monitoring method of any of claims 1 to 11.

Description

Health state monitoring method, computer equipment, storage medium and product Technical Field The embodiment of the application relates to the technical field of computers, in particular to a health state monitoring method, computer equipment, a storage medium and a product. Background In the 5G edge scenario, an ME APP (Multi-ACCESS EDGE Application, mobile edge Application) instance registers its offered services with an MEP (Multi-ACCESS EDGE Computing platform, mobile edge platform), which needs to monitor the availability of MEC (Multi-ACCESS EDGE Computing) services in real time. In the health monitoring mechanism provided by the current protocol, each MEC service instance registered in the MEC platform can send heartbeat messages to the MEC platform regularly to indicate that the MEC service instance is still operating normally, however, the health monitoring mechanism needs each third party APP registered in the MEP to realize a set of heartbeat mechanism for each service provided by the APP, and the APP realizes the heartbeat mechanism for each service and wastes network flow and computing resources. Disclosure of Invention The embodiment of the application provides a health state monitoring method, computer equipment, a storage medium and a product, which can improve the monitoring efficiency of service instances and reduce the waste of network flow and computing resources. The technical scheme is as follows: in one aspect, a method of health status monitoring is provided, the method performed by a mobile edge platform, the method comprising: Periodically sending an information acquisition request to a first application program instance through a health status monitoring interface, wherein the first application program instance is an application program instance registered in the mobile edge platform, and carrying out information interaction with the mobile edge platform through the health status monitoring interface; receiving state indication information fed back by the first application program instance based on the information acquisition request; Based on the health status parameter in the status indication information, a health status of the first application instance is determined. In another aspect, a computer device is provided, the computer device comprising a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to implement the above-described health status monitoring method. In another aspect, a computer readable storage medium having at least one computer program stored therein is provided, the computer program being loaded and executed by a processor to implement the above-described health status monitoring method. In another aspect, a computer program product is provided, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the health status monitoring method provided in the various alternative implementations described above. According to the health state monitoring method provided by the embodiment of the application, the health state monitoring interface is newly added between the application program instance and the mobile edge platform, the mobile edge platform can periodically send the information acquisition request to the application program instance through the health state monitoring interface, and the health state of the application program instance is determined based on the health state parameters in the state indication information fed back by the received application program instance. It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed. Drawings The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. FIG. 1 illustrates a flow chart of a health status monitoring method provided by an exemplary embodiment of the present application; FIG. 2 illustrates a schematic diagram of a health status monitoring system provided in accordance with an exemplary embodiment of the present application; FIG. 3 illustrates a flowchart of yet another health status monitoring method provided by an exemplary embodiment of the present application; FIG. 4 illustrates a flowchart of another health status monitoring method provided by an exemplary embodiment of the present application; FIG. 5 is an interactive schematic diagram of a health status monitoring method according to an exemplary embodiment of the present application; FIG. 6 illustrates a block diagram of a computer device in accordanc