Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for automatically acquiring cluster state based on kubernetes platform

A technology of automatic acquisition and status, applied in the direction of program control device, program control design, instrument, etc., can solve the problems of inability to monitor the startup process, inability to know the fault point, and slow restart time of the machine.

Inactive Publication Date: 2020-11-27
SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, for the increasingly complex and large cloud platform system, each functional module is becoming more and more complex, and the scale of the system is not in the same order of magnitude as before, which leads to slow restart time of the machine and slow recovery of the cluster after the machine is started. It is also unable to monitor the startup process, unable to know when the cluster has been successfully started, and unable to know the point of failure when the startup is unsuccessful

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for automatically acquiring cluster state based on kubernetes platform
  • Method and device for automatically acquiring cluster state based on kubernetes platform
  • Method and device for automatically acquiring cluster state based on kubernetes platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] like figure 1 As shown, this embodiment provides a method for automatically obtaining the cluster state based on the kubernetes platform, and performs the following steps when the host where the cluster is located is started:

[0050] S1, monitor the status of all nodes in the cluster;

[0051] S2, judging whether all nodes have returned to a normal state within the first preset period of time; if so, execute the next step, otherwise feedback an abnormal cluster status reminder;

[0052] S3, intermittently obtain and detect the running status of all pods in the cluster during the second pre-storage duration;

[0053] S4. If all the pods in the cluster are in the running state within the second pre-storage period, then feedback that the cluster has been fully started and remind, otherwise count the pods in the non-running state and generate a list, and feed back the list of pods in the non-running state.

[0054] The present invention first confirms whether the status ...

Embodiment 2

[0079] like image 3 As shown, on the basis of the embodiment, the present embodiment provides a device for automatically obtaining the cluster state based on the kubernetes platform, including the following functional modules.

[0080] Node status monitoring module 101: monitor the status of all nodes in the cluster;

[0081] Cluster state judging module 102: judging whether all nodes have returned to a normal state within the first preset time period, if so, the cluster state is normal, otherwise the cluster state is abnormal;

[0082] The first information feedback module 103: Feedback cluster state abnormal reminder;

[0083] Pod running status acquisition module 104: acquire the running status of all pods in the cluster;

[0084] Pod running state detection module 105: detect whether all pods in the cluster are in running state;

[0085] The second information feedback module 106: feedback that the cluster has been fully activated;

[0086] Pod statistics module 107: ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and device for automatically acquiring a cluster state based on a kubernetes platform. The method comprises the steps of monitoring states of all nodes of a cluster when a host where the cluster is located is started; judging whether all the nodes recover to a normal state within a first preset duration or not; if so, executing the next step, otherwise, feeding back a cluster state exception prompt; discontinuously acquiring and detecting the running states of all pods in the cluster within a second pre-stored time length; and if all pods in the cluster are inthe running state within the second pre-stored duration, feeding back that the cluster is completely started for reminding, otherwise, counting the pods in the non-running state, generating a list, and feeding back a non-running state pod list. According to the invention, a user can monitor the cluster nodes and the pod information in time to obtain the cluster starting condition and the abnormalstarting condition, so that the user experience is optimized and the starting time is saved.

Description

technical field [0001] The invention relates to the field of kubernetes platform clusters, in particular to a method and device for automatically acquiring cluster states based on the kubernetes platform. Background technique [0002] Compared with running business on virtual machines, running business through containers has the obvious advantage of being lightweight. Containers are based on the multiplexing of the basic operating system and do not require too many huge images. However, for the increasingly complex and large cloud platform system, each functional module is becoming more and more complex, and the scale of the system is not in the same order of magnitude as before, which leads to slow restart time of the machine and slow recovery of the cluster after the machine is started. It is also impossible to monitor the startup process, to know when the cluster has started successfully, and to know the point of failure when the startup fails. Contents of the invention...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/455G06F11/30
CPCG06F9/45558G06F11/3006G06F11/301G06F2009/45575G06F2009/45591G06F2009/45595
Inventor 周茂林
Owner SUZHOU LANGCHAO INTELLIGENT TECH CO LTD