Skip to content

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

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

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

@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.

@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 103 at r2 (raw file):

    "state_sync_config.static_config.central_sync_client_config.sync_config.store_sierras_and_casms_block_threshold",
    "state_sync_config.static_config.network_config.#is_none",
    "state_sync_config.static_config.network_config.port",

is this needed?

Code quote:

 "state_sync_config.static_config.network_config.port"

@nimrod-starkware nimrod-starkware self-assigned this Jun 25, 2026
@nimrod-starkware nimrod-starkware marked this pull request as ready for review June 25, 2026 06:54
@cursor

cursor Bot commented Jun 25, 2026

Copy link
Copy Markdown

PR Summary

Medium Risk
Fixed listen ports must match K8s service exposure; misalignment would break storage-reader connectivity, though values align with existing hybrid service port definitions.

Overview
Storage-reader-server ports are no longer deployment overrides or $$$_..._$$$ replacer placeholders. Batcher (55011), class manager (55210), and state sync (55014) are set directly in applicative jsonnet and app_configs (replacing the old shared 8091 default).

Replacer generation in service.rs now only auto-templatizes .port / .url keys under components.*; applicative ports like storage readers stay literal. state_sync_config.static_config.network_config.port is added to KEYS_TO_BE_REPLACED so P2P network port overrides stay explicit.

Hybrid core overlay YAML drops the redundant storage-reader port entries from sequencerConfig (Kubernetes service.ports for those listeners is unchanged).

Reviewed by Cursor Bugbot for commit 6ca2fa5. Bugbot is set up for automated code reviews on this repo. Configure here.

…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>
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