kubeblocks icon indicating copy to clipboard operation
kubeblocks copied to clipboard

[Features] enhance multi-cluster support for production-ready

Open jinuxstyle opened this issue 7 months ago • 8 comments

I am working on a project that plans to use multi-cluster for multi AZ deployment in Q2 this year. I am wondering:

  1. Is there any dev and release plan for multi-cluster capability?
  2. And if I am willing to participate in developping, could you please give some suggestions and guidance?

jinuxstyle avatar Apr 10 '26 08:04 jinuxstyle

hi @jinuxstyle

@leon-ape is working on this feature and it is very nice if you are willing to contribute. You may join our slack for more detailed discussions with leon: http://kubeblockshq.slack.com/

shanshanying avatar Apr 13 '26 03:04 shanshanying

hi @jinuxstyle

@leon-ape is working on this feature and it is very nice if you are willing to contribute. You may join our slack for more detailed discussions with leon: http://kubeblockshq.slack.com/

It's great to known the feature is in progress. I will join slack to see how to help.

jinuxstyle avatar Apr 14 '26 09:04 jinuxstyle

Thanks for your interest. Multi-cluster support is already under active development, and some foundation has landed in the codebase, including:

  • multi-cluster manager / context support
  • placement annotations and basic context assignment
  • Instance API based reconciliation for multi-cluster workloads
  • initial support for service placement and assistant objects
  • data protection related adaptation for multi-cluster access

That said, we are still closing gaps before calling it fully production-ready. The current implementation is mainly based on the Instance API path, and we are continuing to improve scheduling/placement strategy, service exposure, day-2 operations, and operational visibility across clusters.

To help us prioritize the roadmap, it would be very helpful if you could share more about your target scenario and expectations:

  1. What topology are you targeting?

    • multi-AZ within one region
    • cross-region DR
    • active-standby
    • active-active
  2. What workloads do you plan to run in multi-cluster mode?

    • which database / middleware types
    • expected replica count and cluster count
  3. Which capabilities are most important for your production use case?

    • high availability / failover
    • service exposure and traffic routing
    • backup / restore
    • upgrade / scaling / maintenance
    • observability and troubleshooting

If you can share your requirements and suggestions, that will help us better align the design and priorities for this feature.

leon-ape avatar Apr 15 '26 02:04 leon-ape

Thanks for the detailed update — it’s very helpful to understand what has already landed and what is still evolving. For you questions, Topology Multi-AZ within a single region.

Workloads PostgreSQL / MySQL / Redis / Milvus / Zookeeper / Kafka / VictoriaMetrics / ClickHouse / MongoDB in multi-cluster mode. Roughly 10k+ logical database clusters across 10+ Kubernetes clusters, 3 or 5 Instances for each database cluster.

Production priorities (ranked) p1. high availability / failover p2. service exposure and traffic routing p3. backup / restore p4. upgrade / scaling / maintenance p5. observability and troubleshooting

jinuxstyle avatar Apr 15 '26 03:04 jinuxstyle

Thanks for the detailed update — it’s very helpful to understand what has already landed and what is still evolving. For you questions, Topology Multi-AZ within a single region.

Workloads PostgreSQL / MySQL / Redis / Milvus / Zookeeper / Kafka / VictoriaMetrics / ClickHouse / MongoDB in multi-cluster mode. Roughly 10k+ logical database clusters across 10+ Kubernetes clusters, 3 or 5 Instances for each database cluster.

Production priorities (ranked) p1. high availability / failover p2. service exposure and traffic routing p3. backup / restore p4. upgrade / scaling / maintenance p5. observability and troubleshooting

Thanks, this is very helpful.

We will put together a more detailed summary of the current multi-cluster design and implementation status, including what has already landed, what is still evolving, and the main gaps toward production readiness. That should give you a clearer baseline for reference.

From there, we can align on the most important priorities based on your specific requirements, and decide together where to start pushing first. We can continue the discussion on Slack for more timely communication and follow-up.

leon-ape avatar Apr 15 '26 04:04 leon-ape

Here is a quick update on the current status.

We have made good progress on both parameter management and the ops path. Parameter management is now aligned with the new multi-cluster path, and the common ops handling is also much closer to the expected multi-cluster model, with significantly less direct dependency on low-level workload resources.

At this point, the main remaining gaps are placement refinement for the single-region multi-AZ scenario, the service discovery model in multi-cluster mode, and a few remaining ops cases, especially planned switchover and some sharding-related flows.

It would be especially helpful if you could share more concrete behavior requirements and design expectations around placement and service discovery. @jinuxstyle

leon-ape avatar Apr 24 '26 08:04 leon-ape

Here is a quick update on the current status.

We have made good progress on both parameter management and the ops path. Parameter management is now aligned with the new multi-cluster path, and the common ops handling is also much closer to the expected multi-cluster model, with significantly less direct dependency on low-level workload resources.

At this point, the main remaining gaps are placement refinement for the single-region multi-AZ scenario, the service discovery model in multi-cluster mode, and a few remaining ops cases, especially planned switchover and some sharding-related flows.

It would be especially helpful if you could share more concrete behavior requirements and design expectations around placement and service discovery. @jinuxstyle

Thanks for the status update. With your great support recently, my test of pg cluster creation is finnally ready, which marks a major milestone, and I believe the subsequent progress will be accelerated accordingly.

I plan to test the multi-cluster functionalities in the following order:

  1. Cluster lifecycle management: creation and deletion
  2. Cluster service
  3. OpsRequest: switchover, rebuild, reconfiguration, scaling and other related operations
  4. Backup & Restore

Regarding service discovery, our use case maybe different from others: we leverage cluster services for endpoint selection and domain registration, but not for load balancing. This is because we are using layer 3 netwoking for k8s.

jinuxstyle avatar Apr 27 '26 02:04 jinuxstyle

This issue has been marked as stale because it has been open for 30 days with no activity

github-actions[bot] avatar Jun 01 '26 01:06 github-actions[bot]