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

Prometheus high-availability system based on Kubernetes environment and implementation method of system

An implementation method and environment technology, applied in the field of cloud computing, can solve problems such as data collection loss

Active Publication Date: 2021-01-22
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The technical task of the present invention is to provide a high-availability system and implementation method of Prometheus based on the Kubernetes environment, to solve the problem of how to ensure that multiple copies of Prometheus nodes work at the same time, and avoid the risk of loss of single-node monitoring data collection

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
  • Prometheus high-availability system based on Kubernetes environment and implementation method of system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0071] as attached figure 1 Shown, the Prometheus high-availability system based on the Kubernetes environment of the present invention, this system comprises Manager end (service end) and Client end (client end), and Manager end and Client end are all deployed in Kubernetes with Pod mode;

[0072] Among them, the Manager side is used to dynamically obtain the access address of the Pod node of the Client side through the Apiserver of Kubernetes, pull the monitoring data of the Client side corresponding to the address and deduplicate the data, and send a command to update the Prometheus configuration;

[0073] The client side is used to determine the node of the Master role in the cluster through a distributed election strategy.

[0074] The Manager side in this embodiment includes,

[0075] The Metric module is used to obtain monitoring data from multiple Pod nodes, and deduplicate the monitoring data and return it to the monitoring data requester;

[0076] The Configure mod...

Embodiment 2

[0088] The Prometheus high-availability implementation method based on the Kubernetes environment of the present invention is specifically as follows:

[0089] S1. Deploy an odd number of Pod nodes in StatefulSet mode in Kubernetes, and label each Pod node as label={"prometheus_cluster":"true"};

[0090] The Manager side is deployed in Deployment mode, and the number of Pods is not limited;

[0091] S2. The Pod node storage on each client side uses persistent storage PersistentVolume to ensure that after the Pod node is rebuilt, the data of the original Pod node will not be lost, thereby ensuring that its update is an incremental update;

[0092] S3. After the Sidecar on the client side is started, it enters the sleep state for a duration of T sleep , and set Sidecar's own status as candidate candidate;

[0093] S4, Sidecar obtains and filters out the IP addresses of the Pod nodes of each node of the Prometheus cluster through the Apiserver of Kubernetes and the identificati...

Embodiment 3

[0127] An embodiment of the present invention also provides an electronic device, including: a memory and at least one processor;

[0128] Wherein, the memory stores computer-executable instructions;

[0129] The at least one processor executes the computer-executed instructions stored in the memory, so that the at least one processor executes the Prometheus high-availability implementation method based on the Kubernetes environment in any embodiment of the present invention.

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 Prometheus high-availability system based on a Kubernetes environment and an implementation method, belongs to the technical field of meta-computing, and aims to solve the technical problem of how to ensure that multiple copies of Prometheus nodes work at the same time and avoid the risk of single-node monitoring data acquisition loss. According to the technical scheme, the system comprises a Manager end and a Client end, wherein the Manager end and the Client end are both deployed in the Kubernetes in a Pod mode; wherein the Manager end is used for dynamically acquiring an access address of a Pod node of the Client end through an Apiserver of Kubernetes, pulling Client end monitoring data of a corresponding address, carrying out duplicate removal on the data, andsending a command of updating Prometheus configuration; and the Client end is used for determining the node of the Master role in the cluster through a distributed election strategy. The invention further discloses a Prometheus high availability implementation method based on the Kubernetes environment. The Prometheus high availability implementation method is based on the Kubernetes environment.

Description

technical field [0001] The invention relates to the technical field of cloud computing, in particular to a Prometheus high-availability system and an implementation method based on a Kubernetes environment. Background technique [0002] Kubernetes is an open source container cluster management tool for managing various containerized applications on cloud platforms. Prometheus is an open source monitoring and alarming solution in a container environment. It is the second graduation project of CNCF and has become the de facto standard for monitoring and alarming solutions in a container environment. However, Prometheus currently mainly works on a single node, and there is no better high-availability solution. A mature and stable monitoring and alarm solution is very important for the cloud platform. Therefore, how to ensure that multiple copies of Prometheus nodes work at the same time and avoid the risk of loss of single-node monitoring data collection is a technical proble...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/455G06F11/20G06F11/30
CPCG06F9/45558G06F11/2023G06F11/301G06F11/3055G06F2009/45595
Inventor 张建伟魏金雷张晖孙思清高传集蔡卫卫
Owner SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More