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

Implement test for adding new collector after completed initial allocation #1

Merged
merged 2 commits into from
Dec 22, 2023

Conversation

utr1903
Copy link
Owner

@utr1903 utr1903 commented Dec 22, 2023

Description:
As mentioned in the linked issue, the least-weighted allocation strategy is at the moment not capably 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.

@utr1903 utr1903 merged commit 8358ab1 into 2477/main/utr1903 Dec 22, 2023
@utr1903 utr1903 deleted the 2477/dev/utr1903 branch December 22, 2023 15:14
utr1903 added a commit that referenced this pull request Jan 3, 2024
…pen-telemetry#2478)

* Implement test for adding new collector after completed initial allocation (#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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant