Repository navigation
Conversation
An edge site runs two egress shards, and both announce the site's IPv4 unicast prefix upstream. The standby prepends its announcement, so every IPv4 reply, including replies to the standby's own shardAddressIPv4, arrives at the primary, which holds no session for it and drops it. NAT66 is unaffected because each shard announces its own IPv6 /128. Compute nodes that spread egress across shards cannot see this from the shard spec, so they hash NAT64 tenants onto the standby and those tenants lose NAT64 entirely. Add spec.nat64Standby. Compute nodes that spread egress keep NAT64 tenants off a standby shard while any shard without the flag can serve that NAT64 class, and use it only when none can. NAT66 placement is unaffected, and compute nodes in ordered mode ignore it. The field is optional and mutable, and a CEL rule requires shardAddressIPv4 alongside it. Related to datum-cloud/infra#7033 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Compute nodes that spread egress across shards place NAT64 tenants on the standby edge shard, whose IPv4 replies all arrive at the primary and are dropped.
This adds an optional, mutable
nat64Standbyflag that tells them to use such a shard for NAT64 only when no unflagged shard can serve.The flag requires an IPv4 address on the shard, and leaves NAT66 and ordered mode unchanged.
Test plan
Related to datum-cloud/infra#7033
🤖 Generated with Claude Code