Skip to content

Commit

Permalink
feat(bigtable-admin-v2): Support for row affinity in app profiles (#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Sep 11, 2024
1 parent dc8ccfb commit 5280309
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,27 @@ class AppProfile
# @return [::Array<::String>]
# The set of clusters to route to. The order is ignored; clusters will be
# tried in order of distance. If left empty, all clusters are eligible.
# @!attribute [rw] row_affinity
# @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::MultiClusterRoutingUseAny::RowAffinity]
# Row affinity sticky routing based on the row key of the request.
# Requests that span multiple rows are routed non-deterministically.
class MultiClusterRoutingUseAny
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods

# If enabled, Bigtable will route the request based on the row key of the
# request, rather than randomly. Instead, each row key will be assigned
# to a cluster, and will stick to that cluster. If clusters are added or
# removed, then this may affect which row keys stick to which clusters.
# To avoid this, users can use a cluster group to specify which clusters
# are to be used. In this case, new clusters that are not a part of the
# cluster group will not be routed to, and routing will be unaffected by
# the new cluster. Moreover, clusters specified in the cluster group cannot
# be deleted unless removed from the cluster group.
class RowAffinity
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
end
end

# Unconditionally routes all read/write requests to a specific cluster.
Expand Down

0 comments on commit 5280309

Please sign in to comment.