8000 Bigtable autoscaler: use size variable (#1156) · johnmanong/python-docs-samples@5fc13b2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5fc13b2

Browse files
waprinJon Wayne Parrott
authored andcommitted
Bigtable autoscaler: use size variable (GoogleCloudPlatform#1156)
1 parent ab7752e commit 5fc13b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bigtable/metricscaler/metricscaler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ def scale_bigtable(bigtable_instance, bigtable_cluster, scale_up):
7878

7979
if scale_up:
8080
if current_node_count < max_node_count:
81-
new_node_count = min(current_node_count + 3, max_node_count)
81+
new_node_count = min(
82+
current_node_count + size_change_step, max_node_count)
8283
cluster.serve_nodes = new_node_count
8384
cluster.update()
8485
print('Scaled up from {} to {} nodes.'.format(

0 commit comments

Comments
 (0)
0