Skip to content

[Feature] Added reloading for config files without redeploying process - #68

Open
Saaketh0 wants to merge 3 commits into
improvement/global-pollingfrom
feature/config-reloading
Open

[Feature] Added reloading for config files without redeploying process#68
Saaketh0 wants to merge 3 commits into
improvement/global-pollingfrom
feature/config-reloading

Conversation

@Saaketh0

@Saaketh0 Saaketh0 commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Currently, if you make a change, you need to redeploy the project entirely.

That is expected behavior for code changes, but for config changes, you merely should be able to update the values without having to hard reset.

This addition allows you to modify/add OTLP endpoints during runtime without redeploying.

This is part of a larger shift towards storing the config values in Redis, and merely updating those values when the config is changed, allowing for "hot reloading".

We had some of this functionality previously, but it didn't extend to the OTLP Exporter process running. Now the OTLP Exporter queries Redis every polling cycle and updates it's endpoints based on the Redis values.

The tradeoff now is that OTLP Exporter becomes coupled to Redis for new configs updates, but nothing breaks if Redis goes down, and we simply didn't have this functionality before so net positive.

…ull redeploy

Moves otel.destinations from a one-shot VENTIS_OTEL_DESTINATIONS env var
(frozen at exporter subprocess spawn) to a Redis key (otel:destinations),
mirroring the existing routing-table live-reload pattern. GlobalController
writes it at startup and again in reload_config() (SIGHUP); otel_exporter.py's
existing 5s poll tick re-reads it each cycle and rebuilds its
BatchSpanProcessors only when it changed. No signal-forwarding, no subprocess
restart, no ProcessSupervisor.restart -- just a small ProcessSupervisor.is_registered()
so reload_config knows whether the exporter is even running.

Kept in scope: exporter start-gating at boot is unchanged (still skipped
entirely if otel.destinations is absent at startup); destinations added after
boot only take effect if the exporter was already running.
Drops the redis-connection-info env plumbing (VENTIS_REDIS_HOST/PORT/DB,
GlobalController._otel_exporter_env) added in the previous commit --
otel_exporter and GlobalController always run on the same host, and
RedisClient's own defaults already are localhost:6379/db0, so passing
them through was dead flexibility for a case that doesn't exist yet.
Kept comments only where behavior is genuinely non-obvious (why the
exporter polls Redis instead of restarting, why reload_config gates on
is_registered, the invalid-update-keeps-old-processors fallback). Dropped
comments/docstrings that just narrated 'this was added' on trivial
pass-through code.
@Saaketh0
Saaketh0 requested a review from iidsample September 3, 2026 20:05
@Saaketh0 Saaketh0 self-assigned this Sep 3, 2026
@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (1)
  • main

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 1650b643-f29f-4c0c-a6e5-606c7cfd37ef

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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