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

Add service for dynamic config #61

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

shashank11p
Copy link
Contributor

Depends on #60

Resolves #58

Defines a grpc service to get the configuration in agents dynamically from a service.

It defines two rpc, one for getting the initial config for agent at startup, and another to get dynamic configuration that can be updated at runtime without restarting the agent.

The preference in order for config at agent startup should be (from low to high)

  1. default config in agents
  2. InitialConfiguration retuned by this service
  3. Config file specified by user
  4. Env vars and system properties

After startup, the dynamic config returned by UpdateConfiguration should be applied and configuration timestamp updated in agents.

}

// InitialConfigurationRequest has information about the agent
message InitialConfigurationRequest {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not using service_name here as a user will anyways define it in env var or system property and they have higher preference so it will be updated by agents. Do we have any other use case for sending service_name?

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.

dynamic configuration service
1 participant