Container cluster management method, storage medium, electronic equipment and system

A container cluster and management method technology, applied in the field of containerized cluster management, can solve problems such as low efficiency, waste of system resources, and users' inability to monitor the status and changes of Kubernetes objects in real time

Active Publication Date: 2019-04-26
WUHAN FIBERHOME INFORMATION INTEGRATION TECH CO LTD
View PDF2 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Although the detailed information of the Kubernetes object can be obtained through the official API, this information is a description of the instantaneous state of the Kubernetes object, that is, the user cannot monitor the state of the Kubernetes object and its changes in real t

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
  • Container cluster management method, storage medium, electronic equipment and system
  • Container cluster management method, storage medium, electronic equipment and system
  • Container cluster management method, storage medium, electronic equipment and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0053] Such as figure 1 As shown, the embodiment of the present invention provides a container cluster management method, which includes:

[0054] S1: Monitor state changes in the container scheduling system and issue change notifications after changes.

[0055] By monitoring state changes in the container scheduling system, corresponding change notifications are issued. Taking Kubernetes as an example, a monitoring program is set up, which can be a single program, a series of programs, scripts, processes, services, or a combination of the above types. The monitoring program is connected to the Watch API interface in Kubernetes Deployment and establishes a connection with Kubernetes API Server. Among them, the messages sent by the Watch API of Kubernetes Deployment to the monitoring terminal are ordered, and the number will vary according to different operations. At the same time, it can also ensure that the Watch API will send messages to the monitoring terminal when the st...

Embodiment 2

[0081] Such as image 3 As shown, the embodiment of the present invention provides a container cluster management system, which includes:

[0082] API monitoring module 1, which is used to monitor and obtain changes in the status of the container scheduling system, and issue a change notification after the change;

[0083] The state machine module 2 is used to create a finite state machine FSM corresponding to each containerized instance, and set multiple container states for each finite state machine, and the finite state machine transfers to the corresponding container state according to different trigger events , the containerized instance is a containerized application deployed by the container scheduling system;

[0084] The trigger module 3 is configured to receive and parse the change notification to obtain a trigger event corresponding to the containerized instance, and send it to the corresponding finite state machine.

[0085] Various changes and specific examples ...

Embodiment 3

[0088] The third embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, a method for managing a container cluster as provided in any embodiment of the present invention is implemented. The method includes:

[0089] Monitor state changes in the container scheduling system and issue change notifications after changes;

[0090]Create a finite state machine FSM corresponding to each containerized instance, and set multiple container states for each finite state machine, the finite state machine switches to the corresponding container state according to different trigger events, and the containerized instance is A containerized application deployed by the container scheduling system;

[0091] The change notification is received and parsed to obtain a corresponding trigger event, and sent to the finite state machine of the corresponding containerized instance.

[0092] The c...

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 container cluster management method, a storage medium, electronic equipment and a system, and relates to the field of containerized cluster management, the method comprises the following steps: monitoring the state change in a container scheduling system, and sending a change notification after the change. A finite state machine (FSM) is created corresponding to each containerized instance, a plurality of container states are set for each finite state machine, the finite state machines are switched to the corresponding container states according to different trigger events, and the containerized instances are containerized applications deployed by the container scheduling system. And receiving and analyzing the change notification to obtain a corresponding triggerevent, and sending the trigger event to the finite-state machine corresponding to the containerized instance. According to the invention, the state of the containerized instance in the containerizedcluster scheduling system can be monitored in real time, and the state of the containerized instance can be displayed in real time.

Description

technical field [0001] The invention relates to the field of container cluster management, in particular to a container cluster management method, a storage medium, electronic equipment and a system. Background technique [0002] The current containerized cluster management system is widely used in cloud computing, big data, and enterprise-level systems. For example, Kubernetes is an open source containerized cluster scheduling system provided by Google, which is widely used in the industry. Kubernetes officially provides a set of APII (Application Programming Interface, Application Programming Interface) for users to schedule and manage Kubernetes objects. Through this set of APIs, users can add, modify, and delete Kubernetes container cluster management systems. Object, get the details of the Kubernetes object. [0003] Although the detailed information of the Kubernetes object can be obtained through the official API, this information is a description of the instantaneo...

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/455
CPCG06F9/45558
Inventor 张远董喆陈烈军孙梦迪
Owner WUHAN FIBERHOME INFORMATION INTEGRATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products