Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add storage utilization gib per node for autoscaling #1317

Merged
merged 5 commits into from
Jul 22, 2022
Prev Previous commit
review comments
  • Loading branch information
kolea2 committed Jul 20, 2022
commit 033bb6c2c28fd0225fa5387f2c00623640671875
Original file line number Diff line number Diff line change
Expand Up @@ -523,12 +523,7 @@ public Cluster createCluster(CreateClusterRequest request) {
public ApiFuture<Cluster> createClusterAsync(CreateClusterRequest request) {
return ApiFutures.transform(
stub.createClusterOperationCallable().futureCall(request.toProto(projectId)),
new ApiFunction<com.google.bigtable.admin.v2.Cluster, Cluster>() {
@Override
public Cluster apply(com.google.bigtable.admin.v2.Cluster proto) {
return Cluster.fromProto(proto);
}
},
Cluster::fromProto,
MoreExecutors.directExecutor());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public CreateClusterRequest setScalingMode(@Nonnull StaticClusterSize staticClus

/**
* Sets the scaling mode to autoscaling by accepting an AutoscalingConfig where min nodes, max
* nodes, and CPU utlization percent target are set.
* nodes, CPU utilization percent target, and storage utilization gib per node are set.
*/
public CreateClusterRequest setScalingMode(@Nonnull ClusterAutoscalingConfig autoscalingConfig) {
int minNodes = autoscalingConfig.getMinNodes();
Expand Down