Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Kubernetes cluster service guarantee method, assembly and system

A cluster and component technology, applied in the field of information processing, can solve problems such as the inability to guarantee the stable operation of Kubernetes cluster services, and achieve the effect of avoiding resource preemption

Pending Publication Date: 2022-07-29
新华智云科技有限公司
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a kubernetes cluster service guarantee technology in view of the disadvantages of the existing technology that only bases on the quality of service level to expel the micro-services of the nodes, which cannot guarantee the stable operation of important services in the Kubernetes cluster

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
  • Kubernetes cluster service guarantee method, assembly and system
  • Kubernetes cluster service guarantee method, assembly and system
  • Kubernetes cluster service guarantee method, assembly and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0066] Embodiment 1. A kubernetes cluster service guarantee method, including a service restoration method, the service restoration method is used for when the total resource usage of the node reaches a preset usage threshold, based on the resource usage of each service in the node and the The importance level elects the service to be repaired to expel the service to be repaired, which can not only ensure the stable state of the cluster nodes, but also ensure the stable operation of important services in the cluster.

[0067] Include the following steps:

[0068] S110. Determine whether to repair the service in the target node based on the total resource usage of the target node;

[0069] Note that the service in the target node in this embodiment refers to the pod of the microservice in the corresponding node.

[0070] S120. When it is determined to repair the service in the target node, select one or more services from the target node as the service to be repaired, so that ...

Embodiment 2

[0117] Embodiment 2, a kubernetes cluster service guarantee method, including a service scheduling method, used for service scheduling, refer to figure 2 , including the following steps:

[0118] S210. Obtain the service to be scheduled;

[0119] The to-be-scheduled service is a newly added service or a to-be-repaired service;

[0120] In this embodiment, the service to be repaired is the service to be repaired obtained by election based on the method disclosed in Embodiment 1;

[0121] S220, preprocessing:

[0122] S221, acquiring candidate nodes corresponding to the to-be-scheduled service;

[0123] Candidate nodes corresponding to the to-be-scheduled service are obtained based on the existing disclosed node preselection methods, and in this embodiment, the default node preselection strategy of the kubernetes scheduler is used for preselection.

[0124] S222, judging whether the to-be-scheduled service is an important service based on the importance score;

[0125] The...

Embodiment 3

[0229] Embodiment 3. A kubernetes cluster service guarantee component, as a service repair component 100, is used to monitor the total resource usage of a node, and is also used when the total resource usage of a node exceeds a preset usage threshold, based on The resource usage and importance of each service in the node select the service to be repaired, refer to image 3 , including: a controller 120 and several repair agents 110, the repair agents 110 are in one-to-one correspondence with nodes;

[0230] refer to Figure 4 , the repair agent 110 includes:

[0231] A repair detection module 111, configured to determine whether to repair the service in the target node based on the total resource usage of the target node, and the node where the repair agent is located is the target node;

[0232] a service election module 112, configured to select one or more services from the target node as the service to be repaired when it is determined that the service in the target node...

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 kubernetes cluster service guarantee method, a kubernetes cluster service guarantee assembly and a kubernetes cluster service guarantee system. The guarantee method comprises a service repair method and a service scheduling method. The service restoration method is used for electing the service to be restored based on the resource usage amount and the importance degree of each service in the node when the total resource usage amount of the node reaches a preset usage amount threshold value, so that the stable state of the node is ensured, and the operation of the service is ensured to be in a steady state. The service scheduling method is used for scheduling a newly added service or a to-be-repaired service as a to-be-scheduled service, and comprises the following steps: when the to-be-scheduled service is an important service, taking a candidate node without the important service as a pre-selected node; and calculating a matching degree between the to-be-scheduled service and each pre-selected node, extracting a preferred node from the pre-selected nodes based on the matching degree, and scheduling the to-be-scheduled service to the corresponding preferred node. Independent and stable operation of important services can be guaranteed.

Description

technical field [0001] The invention relates to the field of information processing, in particular to a kubernetes cluster service guarantee technology. Background technique [0002] Kubernetes, referred to as k8s, is an important tool for containerized microservices. Through kubernetes, the original huge service can be subdivided into microservices with functions as particles, which can greatly reduce development and operation and maintenance costs. [0003] Today, the Quality of Service (QoS, Quality of Service) provided by Kubernetes is used to prioritize microservices in the cluster, but the QoS value provided by Kubernetes is only obtained through the minimum guaranteed value and the highest guaranteed value of service resources. Therefore, based on the QoS provided by Kubernetes The value does not accurately represent the importance of the service, especially the importance of the service in the business system. Nowadays, when the resource utilization rate of the node...

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): H04L41/0813H04L67/60
CPCH04L41/0813
Inventor 唐祁
Owner 新华智云科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products