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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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: ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


