Skip to content

Commit a6cbf80

Browse files
Google APIscopybara-github
authored andcommitted
feat: add TieredStorageConfig to table admin api
PiperOrigin-RevId: 863493708
1 parent f0e6fd9 commit a6cbf80

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

google/bigtable/admin/v2/table.proto

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -205,6 +205,15 @@ message Table {
205205
AutomatedBackupPolicy automated_backup_policy = 13;
206206
}
207207

208+
// Rules to specify what data is stored in each storage tier.
209+
// Different tiers store data differently, providing different trade-offs
210+
// between cost and performance. Different parts of a table can be stored
211+
// separately on different tiers.
212+
// If a config is specified, tiered storage is enabled for this table.
213+
// Otherwise, tiered storage is disabled.
214+
// Only SSD instances can configure tiered storage.
215+
TieredStorageConfig tiered_storage_config = 14;
216+
208217
// The row key schema for this table. The schema is used to decode the raw row
209218
// key bytes into a structured format. The order of field declarations in this
210219
// schema is important, as it reflects how the raw row key bytes are
@@ -638,6 +647,27 @@ enum RestoreSourceType {
638647
BACKUP = 1;
639648
}
640649

650+
// Config for tiered storage.
651+
// A valid config must have a valid TieredStorageRule. Otherwise the whole
652+
// TieredStorageConfig must be unset.
653+
// By default all data is stored in the SSD tier (only SSD instances can
654+
// configure tiered storage).
655+
message TieredStorageConfig {
656+
// Rule to specify what data is stored in the infrequent access(IA) tier.
657+
// The IA tier allows storing more data per node with reduced performance.
658+
TieredStorageRule infrequent_access = 1;
659+
}
660+
661+
// Rule to specify what data is stored in a storage tier.
662+
message TieredStorageRule {
663+
// Rules to specify what data is stored in this tier.
664+
oneof rule {
665+
// Include cells older than the given age.
666+
// For the infrequent access tier, this value must be at least 30 days.
667+
google.protobuf.Duration include_if_older_than = 1;
668+
}
669+
}
670+
641671
// Represents a protobuf schema.
642672
message ProtoSchema {
643673
// Required. Contains a protobuf-serialized

0 commit comments

Comments
 (0)