apecloud / kubeblocks

KubeBlocks is an open-source control plane software that runs and manages databases, message queues and other stateful applications on K8s.
https://kubeblocks.io
GNU Affero General Public License v3.0
2.1k stars 170 forks source link

[Features] support check consensus role for PolarDB-X data node #5063

Closed vettalwu closed 1 year ago

vettalwu commented 1 year ago

What is the user interaction of your feature

PolarDB-X is a cloud-native high-performance distributed database. It uses a shared-nothing system architecture to decouple storage and computing resources.

I'm trying to integrate PolarDB-X into KubeBlocks. The data node in PolarDB-X use a three-node architecture based on X-Paxos, so I use consensus workload to deploy the data node. But the current kb-checkrole container generated by KubeBlocks does not support the consensus role of PolarDB-X's data node. The label kubeblocks.io/role: leader cannot be attached to the correct leader pod which cause the service not ready.

shanshanying commented 1 year ago

BTW, and the sql to get X-Store role is

select role from information_schema.alisql_cluster_local