Skip to content

Add channel profile-based sizing overrides - #108

Open
dallison wants to merge 1 commit into
subspace-latency-queuesfrom
subspace-channel-profiles
Open

Add channel profile-based sizing overrides#108
dallison wants to merge 1 commit into
subspace-latency-queuesfrom
subspace-channel-profiles

Conversation

@dallison

@dallison dallison commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds an apply_profile option to publisher and subscriber options across the C++, C, Python, and Rust clients, letting the server override requested sizing (slot size, num slots, subscriber queue size, max active messages) from a loaded channel profile. When apply_profile is false, the requested values are authoritative.
  • Adds channel profile proto messages (ChannelProfileObservation, ChannelProfileRecommendation, ChannelProfile, ChannelProfileFile) and resolved-sizing fields in the create publisher/subscriber responses.
  • Implements the server-side profiling and profile-file handling.

Note: this PR is stacked on subspace-latency-queues, which it depends on for the subscriber-queue sizing work. It targets that branch so the diff shows only the profile feature.

Test plan

  • bazelisk test //...
  • Verify apply_profile defaults and toggling in the C++, C, Python, and Rust client tests
  • Verify server profile-file load/override behavior

Add an apply_profile option to publisher and subscriber options across the
C++, C, Python, and Rust clients, allowing the server to override requested
sizing values (slot size, num slots, subscriber queue size, max active
messages) from a loaded channel profile. Add channel profile proto messages,
resolved-sizing fields in the create responses, and the server-side profiling
and profile-file handling.
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