Skip to content

Comments

Adding bulker to Vnet Orch#200

Draft
ypcisco wants to merge 1 commit intoAzure:202506from
ypcisco:vnetorch_bulker
Draft

Adding bulker to Vnet Orch#200
ypcisco wants to merge 1 commit intoAzure:202506from
ypcisco:vnetorch_bulker

Conversation

@ypcisco
Copy link

@ypcisco ypcisco commented Jan 28, 2026

Implements bulk processing for VNET tunnel routes to improve performance when handling large-scale route operations.

Key Changes

  • Added context structures to track batched operations including route details, operation type, and status information, with a staging area to collect multiple requests before processing them together
  • Introduced two separate bulkers to handle different route types: a new tunnel route bulker for overlay routes that go through VXLAN tunnels to remote endpoints, and the existing route bulker for non-subnet routes which are regular IP routes that don't point to directly connected subnets
  • Implemented two-phase processing approach where requests are first parsed and queued together, then all operations are sent to hardware in one batch, and finally results are processed using the saved context information
  • Changed post-processing to happen after the bulk flush completes, checking each route's SAI programming status first and only running post-processing steps like updating state databases and reference counts if the hardware programming succeeded
  • Enhanced error handling to track which individual routes succeed or fail within a batch, automatically retry failed routes in the next iteration.

Testing

• Tested with various scenarios including single routes, large batches of hundreds of routes, mixing different operation types together, routes with monitoring and failover configurations, dependencies between routes, and error recovery

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant