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

feat: add receiver signals to collectors group CRD #1426

Merged
merged 6 commits into from
Aug 6, 2024

Conversation

blumamir
Copy link
Collaborator

@blumamir blumamir commented Aug 6, 2024

No description provided.

Copy link

api/odigos/v1alpha1/collectorsgroup_types.go Show resolved Hide resolved
autoscaler/controllers/datacollection/daemonset.go Outdated Show resolved Hide resolved

func getSignalsFromOtelcolConfig(otelcolConfigContent string) ([]common.ObservabilitySignal, error) {
config := config.Config{}
err := yaml.Unmarshal([]byte(otelcolConfigContent), &config)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This unmarshilng can have bad impact on memory consumption and CPU if the reconciler is out of control.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This function should be called at most once every 10 seconds

dm.RunSyncDaemonSetWithDelayAndSkipNewCalls(time.Duration(env.GetSyncDaemonSetDelay())*time.Second, syncDaemonsetRetry, dests, dataCollection, ctx, c, scheme, imagePullSecrets, odigosVersion)

To be honest, I would love for the collector to automatically reload configuration in the future and then we can get rid of this code altogether

@blumamir blumamir merged commit e81194a into odigos-io:main Aug 6, 2024
15 checks passed
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