Skip to content

Commit

Permalink
feat: add compact placement feature for node pools (#3636)
Browse files Browse the repository at this point in the history
- [ ] 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
  • Loading branch information
gcf-owl-bot[bot] authored Dec 9, 2022
1 parent 999b3d0 commit b907f45
Show file tree
Hide file tree
Showing 52 changed files with 100,894 additions and 288 deletions.
34 changes: 34 additions & 0 deletions packages/google-container/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,9 @@ message NodeConfig {
// All the nodes in the node pool will be Confidential VM once enabled.
ConfidentialNodes confidential_nodes = 35;

// Enable or disable NCCL fast socket for the node pool.
optional FastSocket fast_socket = 36;

// The resource labels for the node pool to use to annotate any related
// Google Compute Engine resources.
map<string, string> resource_labels = 37;
Expand Down Expand Up @@ -1278,9 +1281,8 @@ message BinaryAuthorization {
// anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
bool enabled = 1 [deprecated = true];

// Mode of operation for binauthz policy evaluation. Currently the only
// options are equivalent to enable/disable. If unspecified, defaults to
// DISABLED.
// Mode of operation for binauthz policy evaluation. If unspecified, defaults
// to DISABLED.
EvaluationMode evaluation_mode = 2;
}

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

// Enable or disable NCCL fast socket for the node pool.
FastSocket fast_socket = 31;

// Logging configuration.
NodePoolLoggingConfig logging_config = 32;

Expand Down Expand Up @@ -2994,6 +2999,23 @@ message NodePool {
ERROR = 6;
}

// PlacementPolicy defines the placement policy used by the node pool.
message PlacementPolicy {
// Type defines the type of placement policy.
enum Type {
// TYPE_UNSPECIFIED specifies no requirements on nodes
// placement.
TYPE_UNSPECIFIED = 0;

// COMPACT specifies node placement in the same availability domain to
// ensure low communication latency.
COMPACT = 1;
}

// The type of placement.
Type type = 1;
}

// The name of the node pool.
string name = 1;

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

// Specifies the node placement policy.
PlacementPolicy placement_policy = 108;

// Output only. [Output only] Update info contains relevant information during a node
// pool update.
UpdateInfo update_info = 109 [(google.api.field_behavior) = OUTPUT_ONLY];
Expand Down Expand Up @@ -4196,6 +4221,12 @@ message VirtualNIC {
bool enabled = 1;
}

// Configuration of Fast Socket feature.
message FastSocket {
// Whether Fast Socket features are enabled in the node pool.
bool enabled = 1;
}

// PrivateIPv6GoogleAccess controls whether and how the pods can communicate
// with Google Services through gRPC over IPv6.
enum PrivateIPv6GoogleAccess {
Expand Down
Loading

0 comments on commit b907f45

Please sign in to comment.