Clun/pcu groups#96
Merged
Merged
Conversation
…oved to clun-spring-updates branch)
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.
PCU Groups Support Implementation
Overview
This PR introduces comprehensive support for PCU (Processing Capacity Units) Groups in the Astra DB Java SDK. PCU Groups allow users to manage compute resources for databases across cloud providers and regions, providing fine-grained control over database provisioning and capacity management.
Key Features
1. PCU Groups Management API
Added complete PCU Groups operations in
AstraDBAdmin:List PCU Groups
Check PCU Group Existence
2. Database Creation with PCU Groups
Enhanced database creation to support PCU group assignment:
3. Automatic PCU Group Validation
When creating a database with a PCU group, the SDK automatically validates:
Validation Logic:
"Pcu group {id} does not exist"- Group not found globally"Pcu group {id} is not in expected cloud/region: {cloud}/{region}"- Group not in target region4. DevOps API Integration
Added comprehensive PCU Groups client in
astra-sdk-devops:PCUGroupsOpsClient
findAll()- List all PCU groupscreate(request)- Create new PCU grouppcuGroup(id)- Get specific PCU group clientPCUGroupOpsClient
find()- Get PCU group detailsupdate(request)- Update PCU groupdelete()- Delete PCU groupdatacenterAssociations()- Manage datacenter associationsDomain Models
PCUGroup- Complete PCU group representationPCUType- PCU type configurationPCUGroupCreationRequest- Request for creating PCU groupsPCUGroupUpdateRequest- Request for updating PCU groupsPCUGroupDatacenterAssociation- Datacenter association detailsPCUInstanceType,PCUProvisionType,PCUGroupStatusType,PCUCapacityWorkloadType5. Database Creation Request Enhancement
Updated
DatabaseCreationRequestto support PCU groups:API Changes
New Methods in AstraDBAdmin
listPCUGroups()listPCUGroups(CloudProviderType, String)PCUGroupExists(UUID)PCUGroupExists(UUID, CloudProviderType, String)Enhanced Methods
createDatabase(String, DatabaseDefinition, CreateDatabaseOptions)New Options
DatabaseDefinitionpcuGroupIdCreateDatabaseOptionswaitForDb