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

[#122] Enable load balancing strategy property configuration #156

Merged
merged 1 commit into from Oct 30, 2023

Conversation

smcvb
Copy link
Member

@smcvb smcvb commented Oct 27, 2023

This pull request introduces logic to the MultiTenantEventProcessorsControlService that checks whether the user has set load-balancing strategy properties in their properties file.
This logic, although present in the EventProcessorsControlService it inherits from, needs a rewrite because the multi-tenant variety needs to deal with the fact the processor name and context are concatenated.

Thus, a part of the changes is the mapping from processor name to strategy.
The other, larger part, is the actual invocation of the AdminChannel to set the load balancing strategy and to enable automatic load balancing (if enabled).
This latter part closely resembles the implementation of the EventProcessorsControlService on this subject, by the way.

In doing the above, this pull request resolves #122.

Whenever somebody provides load balancing settings, these should be
taken into account through the AdminChannel. This requires a little
effort to map the strategies to the processor-to-context naming scheme,
requiring a slight duplication compared to the approach taken in the
EventProcessorControlService

#112
@smcvb smcvb added this to the Release 4.9.0 milestone Oct 27, 2023
@smcvb smcvb requested review from schananas and a team October 27, 2023 13:15
@smcvb smcvb self-assigned this Oct 27, 2023
@smcvb smcvb requested review from gklijs and CodeDrivenMitch and removed request for a team October 27, 2023 13:15
@CLAassistant
Copy link

CLAassistant commented Oct 27, 2023

CLA assistant check
All committers have signed the CLA.

@sonarcloud
Copy link

sonarcloud bot commented Oct 30, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

80.0% 80.0% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@smcvb smcvb merged commit af73dea into main Oct 30, 2023
7 of 11 checks passed
@smcvb smcvb deleted the featlure/112-load-balancing-properties branch October 30, 2023 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable load balancing strategy property configuration
3 participants