Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operator Runtime Config Rotating Store Verticle #1405

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

BehnamMozafari
Copy link
Contributor

  • Add RotatingRuntimeConfigStore to load operator runtime config using UIDCoreClient
  • Publishes runtime config to event bus
  • Change Main to inject event-bus config retriever into ConfigService
  • Update config files - add runtime_config_path and runtime_config_refresh_ms

- Retrieves operator remote config from core endpoint
- updated local and integ config
- moved runtime-config-defaults.json to runtime_config/metadata.json in com.uid2.core
- moved createStoreVerticles method to complete before initialiseConfigService
Comment on lines +338 to +348
ConfigRetriever dynamicConfigRetriever = ConfigRetrieverFactory.create(
vertx,
new JsonObject()
.put("type", "event-bus")
.put("config", new JsonObject()
.put("address", OperatorRuntimeConfigEventBus))
);

this.createStoreVerticles()
.compose(v -> this.initialiseConfigService(dynamicConfigRetriever))
.compose(configService -> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reason for this change ->createStoreVerticles method needs to be before initialiseConfigService so that the runtime config is retrieved from core and published to event-bus. dynamicConfigRetriever needs to listen to runtime config address on event bus before publishing config otherwise the message will be discarded.

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