Skip to content

apollo_deployments,deployment: set storage-reader-server ports as constants#14607

Draft
nimrod-starkware wants to merge 1 commit into
nimrod/jsonnet/add-cli-argfrom
nimrod/jsonnet/storage-reader-ports
Draft

apollo_deployments,deployment: set storage-reader-server ports as constants#14607
nimrod-starkware wants to merge 1 commit into
nimrod/jsonnet/add-cli-argfrom
nimrod/jsonnet/storage-reader-ports

Conversation

@nimrod-starkware

Copy link
Copy Markdown
Contributor

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

@reviewable-StarkWare

Copy link
Copy Markdown

This change is Reviewable

nimrod-starkware commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

…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>
@nimrod-starkware nimrod-starkware force-pushed the nimrod/jsonnet/storage-reader-ports branch from 08a9e6a to fa2de48 Compare June 23, 2026 11:58

@nimrod-starkware nimrod-starkware left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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 nimrod-starkware left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nimrod-starkware resolved 1 discussion.
Reviewable status: 0 of 10 files reviewed, all discussions resolved.

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.

2 participants