apollo_deployments,deployment: set storage-reader-server ports as constants#14607
Draft
nimrod-starkware wants to merge 1 commit into
Draft
apollo_deployments,deployment: set storage-reader-server ports as constants#14607nimrod-starkware wants to merge 1 commit into
nimrod-starkware wants to merge 1 commit into
Conversation
Contributor
Author
This was referenced Jun 23, 2026
…stants The three storage-reader-server ports (batcher 55011, class_manager 55210, state_sync 55014) are fixed infra constants, not per-deployment overrides. Bake them into the app_configs and applicative_config jsonnet instead of templatizing them as $$$_..._$$$ placeholders, and restrict the generic port/url auto-templatizing in replace_pred to components.* keys only. Add state_sync_config...network_config.port to KEYS_TO_BE_REPLACED to preserve its existing overridability. Drop the now-redundant storage-reader port overrides from the common and testing overlay YAMLs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
08a9e6a to
fa2de48
Compare
nimrod-starkware
left a comment
Contributor
Author
There was a problem hiding this comment.
@nimrod-starkware made 1 comment.
Reviewable status: 0 of 10 files reviewed, 1 unresolved discussion.
crates/apollo_deployments/src/service.rs line 369 at r1 (raw file):
// auto-templatized — an overridable one must be listed explicitly in `KEYS_TO_BE_REPLACED`; // the rest (e.g. the fixed storage-reader-server ports) keep their literal app_config // value.
shrink comment
Code quote:
// Only `components.*` infra fields are auto-templatized: the layout assigns each component's
// remote URL and port per deployment. Ports/URLs OUTSIDE `components.*` are NOT
// auto-templatized — an overridable one must be listed explicitly in `KEYS_TO_BE_REPLACED`;
// the rest (e.g. the fixed storage-reader-server ports) keep their literal app_config
// value.
nimrod-starkware
left a comment
Contributor
Author
There was a problem hiding this comment.
@nimrod-starkware resolved 1 discussion.
Reviewable status: 0 of 10 files reviewed, all discussions resolved.
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.

The three storage-reader-server ports (batcher 55011, class_manager 55210,
state_sync 55014) are fixed infra constants, not per-deployment overrides. Bake
them into the app_configs and applicative_config jsonnet instead of templatizing
them as $$$...$$$ placeholders, and restrict the generic port/url
auto-templatizing in replace_pred to components.* keys only. Add
state_sync_config...network_config.port to KEYS_TO_BE_REPLACED to preserve its
existing overridability. Drop the now-redundant storage-reader port overrides
from the common and testing overlay YAMLs.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com