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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com