Skip to content

Commit b907f45

Browse files
feat: add compact placement feature for node pools (#3636)
- [ ] Regenerate this pull request now. chore: disallow "transport=rest" for services where numeric enums are not confirmed to be supported (except in PHP and Java) PiperOrigin-RevId: 493113566 Source-Link: https://togithub.com/googleapis/googleapis/commit/758f0d1217d9c7fe398aa5efb1057ce4b6409e55 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/78bd8f05e1276363eb14eae70e91fe4bc20703ab Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiNzhiZDhmMDVlMTI3NjM2M2ViMTRlYWU3MGU5MWZlNGJjMjA3MDNhYiJ9 BEGIN_NESTED_COMMIT feat: add a FastSocket API PiperOrigin-RevId: 491381130 Source-Link: https://togithub.com/googleapis/googleapis/commit/6485d9c71aa756107393c3e03a30c344aabcc2c6 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/36f17cc94e07623aa384cbd40d694c111e97e41c Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiMzZmMTdjYzk0ZTA3NjIzYWEzODRjYmQ0MGQ2OTRjMTExZTk3ZTQxYyJ9 END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: add a FastSocket API PiperOrigin-RevId: 491259489 Source-Link: https://togithub.com/googleapis/googleapis/commit/39bcdf411c9c099412ddf6b4247f50352d83e5ad Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/ee2470d9e7906d0764adb562f4d4cc41f0d6c96f Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiZWUyNDcwZDllNzkwNmQwNzY0YWRiNTYyZjRkNGNjNDFmMGQ2Yzk2ZiJ9 END_NESTED_COMMITBEGIN_NESTED_COMMITfeat: 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 Source-Link: https://togithub.com/googleapis/googleapis/commit/452324bf65d077decf455a1ef86eadf867962a66 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/008d00f619f8319eb584f26da56c1ca26e65bcd6 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiMDA4ZDAwZjYxOWY4MzE5ZWI1ODRmMjZkYTU2YzFjYTI2ZTY1YmNkNiJ9 END_NESTED_COMMIT
1 parent 999b3d0 commit b907f45

File tree

52 files changed

+100894
-288
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+100894
-288
lines changed

packages/google-container/README.md

+34
Large diffs are not rendered by default.

packages/google-container/protos/google/container/v1/cluster_service.proto

+34-3
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,9 @@ message NodeConfig {
759759
// All the nodes in the node pool will be Confidential VM once enabled.
760760
ConfidentialNodes confidential_nodes = 35;
761761

762+
// Enable or disable NCCL fast socket for the node pool.
763+
optional FastSocket fast_socket = 36;
764+
762765
// The resource labels for the node pool to use to annotate any related
763766
// Google Compute Engine resources.
764767
map<string, string> resource_labels = 37;
@@ -1278,9 +1281,8 @@ message BinaryAuthorization {
12781281
// anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
12791282
bool enabled = 1 [deprecated = true];
12801283

1281-
// Mode of operation for binauthz policy evaluation. Currently the only
1282-
// options are equivalent to enable/disable. If unspecified, defaults to
1283-
// DISABLED.
1284+
// Mode of operation for binauthz policy evaluation. If unspecified, defaults
1285+
// to DISABLED.
12841286
EvaluationMode evaluation_mode = 2;
12851287
}
12861288

@@ -2284,6 +2286,9 @@ message UpdateNodePoolRequest {
22842286
// Enable or disable gvnic on the node pool.
22852287
VirtualNIC gvnic = 29;
22862288

2289+
// Enable or disable NCCL fast socket for the node pool.
2290+
FastSocket fast_socket = 31;
2291+
22872292
// Logging configuration.
22882293
NodePoolLoggingConfig logging_config = 32;
22892294

@@ -2994,6 +2999,23 @@ message NodePool {
29942999
ERROR = 6;
29953000
}
29963001

3002+
// PlacementPolicy defines the placement policy used by the node pool.
3003+
message PlacementPolicy {
3004+
// Type defines the type of placement policy.
3005+
enum Type {
3006+
// TYPE_UNSPECIFIED specifies no requirements on nodes
3007+
// placement.
3008+
TYPE_UNSPECIFIED = 0;
3009+
3010+
// COMPACT specifies node placement in the same availability domain to
3011+
// ensure low communication latency.
3012+
COMPACT = 1;
3013+
}
3014+
3015+
// The type of placement.
3016+
Type type = 1;
3017+
}
3018+
29973019
// The name of the node pool.
29983020
string name = 1;
29993021

@@ -3063,6 +3085,9 @@ message NodePool {
30633085
// Upgrade settings control disruption and speed of the upgrade.
30643086
UpgradeSettings upgrade_settings = 107;
30653087

3088+
// Specifies the node placement policy.
3089+
PlacementPolicy placement_policy = 108;
3090+
30663091
// Output only. [Output only] Update info contains relevant information during a node
30673092
// pool update.
30683093
UpdateInfo update_info = 109 [(google.api.field_behavior) = OUTPUT_ONLY];
@@ -4196,6 +4221,12 @@ message VirtualNIC {
41964221
bool enabled = 1;
41974222
}
41984223

4224+
// Configuration of Fast Socket feature.
4225+
message FastSocket {
4226+
// Whether Fast Socket features are enabled in the node pool.
4227+
bool enabled = 1;
4228+
}
4229+
41994230
// PrivateIPv6GoogleAccess controls whether and how the pods can communicate
42004231
// with Google Services through gRPC over IPv6.
42014232
enum PrivateIPv6GoogleAccess {

0 commit comments

Comments
 (0)