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 test for adding new collector after completed initial allocation #2478

Merged
merged 4 commits into from
Jan 2, 2024

Conversation

utr1903
Copy link
Contributor

@utr1903 utr1903 commented Dec 22, 2023

Description:
As mentioned in the linked issue, the least-weighted allocation strategy is at the moment not capable of scaling out. Shortly explained, after the targets are distributed across the initial set of collector instances, the newly added collector instance will not be assigned any targets.

This added test ensures that the current capability is covered. In case it will be decided in the future to change the implementation in order to achieve scaling capability, this test will fail and will thereby signal for a new test to be created.

Link to tracking Issue:
2477

Testing:
The test allocation/TestNoAssignmentToNewCollector is added.

Documentation:
The test assures that the newly added collectors are not assigned any targets after a successful target distribution across the initially detected collectors.

…ation (#1)

* Rename target creator helper function

* Add test for adding new collector
@utr1903 utr1903 requested a review from a team December 22, 2023 15:18
Copy link

linux-foundation-easycla bot commented Dec 22, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@utr1903
Copy link
Contributor Author

utr1903 commented Dec 23, 2023

I think this simple PR does not require any addition to change log. Could we add the Skip Changelog label if you agree as well?

@swiatekm swiatekm added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jan 2, 2024
@jaronoff97 jaronoff97 merged commit ab7e6f5 into open-telemetry:main Jan 2, 2024
27 checks passed
@utr1903 utr1903 deleted the 2477/main/utr1903 branch January 3, 2024 16:16
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
…pen-telemetry#2478)

* Implement test for adding new collector after completed initial allocation (open-telemetry#1)

* Rename target creator helper function

* Add test for adding new collector

* Add dot to test comment to fix lint

* Revert target creator helper function

* Remove unused collector label to avoid confusion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants