Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bigtable): add support for autoscaling (#5232)
* feat(bigtable): add support for autoscaling This commit adds support for autoscaling in the InstanceAdminClient with associated unit tests and a happy-path integration test. When creating either a new instance or cluster, callers may specify an AutoscalingConfig. For existing clusters, to enable autoscaling on a cluster, a caller may use SetAutoscaling. To remove autoscaling, callers may use UpdateCluster. Alternatively, callers may either update the cluster to enable or disable autoscaling with UpdateInstanceWithClusters or UpdateInstanceAndSyncClusters. * fix(bigtable): update clusters with valid nodes Previously UpdateInstanceWithClusters would try to update a cluster even if the NumNodes was 0 (or less), resulting in an erroneous error. This commit ensures a cluster is updated only when a valid and non-zero value of NumNodes is provided.
- Loading branch information
Showing
5 changed files
with
871 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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
Oops, something went wrong.