Skip to content

Commit 6f289d7

Browse files
Google APIscopybara-github
authored andcommitted
feat: add Data Boost configurations to admin API
PiperOrigin-RevId: 617925342
1 parent a47753e commit 6f289d7

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

google/bigtable/admin/v2/bigtable_table_admin.proto

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,8 +836,30 @@ message CheckConsistencyRequest {
836836

837837
// Required. The token created using GenerateConsistencyToken for the Table.
838838
string consistency_token = 2 [(google.api.field_behavior) = REQUIRED];
839+
840+
// Which type of read needs to consistently observe which type of write?
841+
// Default: `standard_read_remote_writes`
842+
oneof mode {
843+
// Checks that reads using an app profile with `StandardIsolation` can
844+
// see all writes committed before the token was created, even if the
845+
// read and write target different clusters.
846+
StandardReadRemoteWrites standard_read_remote_writes = 3;
847+
848+
// Checks that reads using an app profile with `DataBoostIsolationReadOnly`
849+
// can see all writes committed before the token was created, but only if
850+
// the read and write target the same cluster.
851+
DataBoostReadLocalWrites data_boost_read_local_writes = 4;
852+
}
839853
}
840854

855+
// Checks that all writes before the consistency token was generated are
856+
// replicated in every cluster and readable.
857+
message StandardReadRemoteWrites {}
858+
859+
// Checks that all writes before the consistency token was generated in the same
860+
// cluster are readable by Databoost.
861+
message DataBoostReadLocalWrites {}
862+
841863
// Response message for
842864
// [google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency][google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency]
843865
message CheckConsistencyResponse {

google/bigtable/admin/v2/instance.proto

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,35 @@ message AppProfile {
297297
Priority priority = 1;
298298
}
299299

300+
// Data Boost is a serverless compute capability that lets you run
301+
// high-throughput read jobs on your Bigtable data, without impacting the
302+
// performance of the clusters that handle your application traffic.
303+
// Currently, Data Boost exclusively supports read-only use-cases with
304+
// single-cluster routing.
305+
//
306+
// Data Boost reads are only guaranteed to see the results of writes that
307+
// were written at least 30 minutes ago. This means newly written values may
308+
// not become visible for up to 30m, and also means that old values may
309+
// remain visible for up to 30m after being deleted or overwritten. To
310+
// mitigate the staleness of the data, users may either wait 30m, or use
311+
// CheckConsistency.
312+
message DataBoostIsolationReadOnly {
313+
// Compute Billing Owner specifies how usage should be accounted when using
314+
// Data Boost. Compute Billing Owner also configures which Cloud Project is
315+
// charged for relevant quota.
316+
enum ComputeBillingOwner {
317+
// Unspecified value.
318+
COMPUTE_BILLING_OWNER_UNSPECIFIED = 0;
319+
320+
// The host Cloud Project containing the targeted Bigtable Instance /
321+
// Table pays for compute.
322+
HOST_PAYS = 1;
323+
}
324+
325+
// The Compute Billing Owner for this Data Boost App Profile.
326+
optional ComputeBillingOwner compute_billing_owner = 1;
327+
}
328+
300329
// The unique name of the app profile. Values are of the form
301330
// `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.
302331
string name = 1;
@@ -335,6 +364,10 @@ message AppProfile {
335364
// The standard options used for isolating this app profile's traffic from
336365
// other use cases.
337366
StandardIsolation standard_isolation = 11;
367+
368+
// Specifies that this app profile is intended for read-only usage via the
369+
// Data Boost feature.
370+
DataBoostIsolationReadOnly data_boost_isolation_read_only = 10;
338371
}
339372
}
340373

0 commit comments

Comments
 (0)