A load balancing availability improvement method and device for a kubernetes cluster
A load balancing and availability technology, applied in the transmission system, electrical components, etc., to achieve the effect of realizing self-healing ability and ensuring availability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0058] The slb on Alibaba Cloud was deleted by mistake, which made the user cluster unavailable.
[0059] When the resource declaration of slb in the cluster still exists, but the resource declaration does not exist when requesting Alibaba Cloud, lb-operator will synchronize the error information such as "couldn't find specified slb instance" to the status of the slb resource declaration , that is, the current slb status errorMsg is "couldn't find specified slbinstance". When the state of the slb resource declaration is modified, lb-operator watches the error in the resource again, automatically applies for a new slb according to the configured spec.slbRecoverPolicy, and completes the configuration according to the configuration data of the previous slb in status . That is, when the resource statement of the slb in the cluster still exists, but the resource statement does not exist when requesting Alibaba Cloud, lb-operator will execute the self-healing logic according to the...
Embodiment 2
[0061] When the slb in the cluster still exists, but the backend service group or the listening port is modified by mistake, it may be due to human misoperation of the slb, or there are other operations, such as: when a service resource of type loadbalancer is created in the cluster, and use If the slb is deleted, the listening port of the slb will be modified, and incorrectly modifying the slb configuration will also cause the cluster to be unavailable.
[0062] At this time, the component lb-operator provides a self-healing strategy resetSlbConfigWhileError, that is, when the configuration of slb is found to be different from the initial configuration, the backend service group and port of slb will be reconfigured according to the initial configuration, and the cluster can be restored to an available state at this time .
[0063] In the method of the present invention, by comparing the resource declarations of load balancing in the cloud and in the cluster, when the slb of t...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


