kubeblocks icon indicating copy to clipboard operation
kubeblocks copied to clipboard

[Imporve] The current use of K8s ConfigMap as lease judgement in Lorry may lead to availability defects.

Open lingdie opened this issue 9 months ago • 0 comments

Consider the following scenarios:

  1. In a single-master Kubernetes cluster: After the apiserver master node exits, Lorry's lease judgment becomes entirely unavailable.

  2. In a three-master Kubernetes cluster: After the apiserver master node exits, testing reveals that Lorry's lease judgment might result in errors, causing the high-availability PostgreSQL cluster to re-elect a new primary.

code ref:

https://github.com/apecloud/kubeblocks/blob/2d82e5a62bdef0338764e31fa9740806ca0b8781/pkg/lorry/dcs/k8s.go#L299

lingdie avatar May 09 '24 06:05 lingdie