Skip to content

Commit 452324b

Browse files
Google APIscopybara-github
authored andcommitted
feat: add compact placement feature for node pools
Use a compact placement policy to specify that nodes within the node pool should be placed in closer physical proximity to each other within a zone. Having nodes closer to each other can reduce network latency between nodes, which can be useful for tightly-coupled batch workloads. PiperOrigin-RevId: 488490422
1 parent bd9aa78 commit 452324b

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

google/container/v1/cluster_service.proto

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2994,6 +2994,23 @@ message NodePool {
29942994
ERROR = 6;
29952995
}
29962996

2997+
// PlacementPolicy defines the placement policy used by the node pool.
2998+
message PlacementPolicy {
2999+
// Type defines the type of placement policy.
3000+
enum Type {
3001+
// TYPE_UNSPECIFIED specifies no requirements on nodes
3002+
// placement.
3003+
TYPE_UNSPECIFIED = 0;
3004+
3005+
// COMPACT specifies node placement in the same availability domain to
3006+
// ensure low communication latency.
3007+
COMPACT = 1;
3008+
}
3009+
3010+
// The type of placement.
3011+
Type type = 1;
3012+
}
3013+
29973014
// The name of the node pool.
29983015
string name = 1;
29993016

@@ -3063,6 +3080,9 @@ message NodePool {
30633080
// Upgrade settings control disruption and speed of the upgrade.
30643081
UpgradeSettings upgrade_settings = 107;
30653082

3083+
// Specifies the node placement policy.
3084+
PlacementPolicy placement_policy = 108;
3085+
30663086
// Output only. [Output only] Update info contains relevant information during a node
30673087
// pool update.
30683088
UpdateInfo update_info = 109 [(google.api.field_behavior) = OUTPUT_ONLY];

0 commit comments

Comments
 (0)