Skip to content

Commit

Permalink
feat: allow creating featurestore without online node (#1180)
Browse files Browse the repository at this point in the history
  • Loading branch information
morgandu committed Apr 22, 2022
1 parent c871e73 commit 3224ae3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions google/cloud/aiplatform/featurestore/featurestore.py
Expand Up @@ -447,7 +447,7 @@ def create(
The value must be unique within the project and location.
online_store_fixed_node_count (int):
Optional. Config for online serving resources.
When not specified, default node count is 1. The
When not specified, no fixed node count for online serving. The
number of nodes will not scale automatically but
can be scaled manually by providing different
values when updating.
Expand Down Expand Up @@ -496,7 +496,7 @@ def create(
"""
gapic_featurestore = gca_featurestore.Featurestore(
online_serving_config=gca_featurestore.Featurestore.OnlineServingConfig(
fixed_node_count=online_store_fixed_node_count or 1
fixed_node_count=online_store_fixed_node_count
)
)

Expand Down
4 changes: 3 additions & 1 deletion tests/system/aiplatform/test_featurestore.py
Expand Up @@ -65,7 +65,9 @@ def test_create_get_list_featurestore(self, shared_state):
featurestore_id = self._make_display_name(key=_TEST_FEATURESTORE_ID).replace(
"-", "_"
)[:60]
featurestore = aiplatform.Featurestore.create(featurestore_id=featurestore_id)
featurestore = aiplatform.Featurestore.create(
featurestore_id=featurestore_id, online_store_fixed_node_count=1
)

shared_state["resources"] = [featurestore]
shared_state["featurestore"] = featurestore
Expand Down

0 comments on commit 3224ae3

Please sign in to comment.