Support creation of a computing unit cluster#3449
Closed
shengquan-ni wants to merge 32 commits into
Closed
Conversation
Contributor
|
@shengquan-ni Any comments before closing this PR? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces support for multi-node (cluster-based) Computing Units.
Design Overview
This initial implementation supports a basic cluster configuration, with several assumptions:
Users can specify the desired number of nodes when creating a Computing Unit (CU). If the number of nodes is greater than one, the Computing Unit Manager initiates the cluster creation process.
Cluster configuration details—including the number of nodes and additional metadata—are stored in a JSON column within the Computing Unit’s database record.
Updated CU Creation Process
When creating a CU:
The manager first allocates a PersistentVolumeClaim (PVC) with the requested disk space.
It then starts a master node as a standalone pod with the PVC attached.
If the number of nodes > 1, the manager:
Creates a Kubernetes service to expose the master's address.
Launches a StatefulSet of worker nodes (equal to the number of nodes - 1), each configured with:
Passing Cluster Mode and Master IP as ENV VARs
Previously, cluster mode was set using a JVM flag, and the system automatically detected the IP address. Now, both are configured via environment variables. This change simplifies configuration and avoids the complexity and unreliability of automatic IP detection in Kubernetes environments.
Backward Compatibility for CU table
To maintain backward compatibility, all CUs created prior to this PR are treated as single-node Computing Units.
UI Changes
How to check if the cluster is ready