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

Enh: better objects balancing between schedulers #1999

Merged

Conversation

geektophe
Copy link
Collaborator

The current balancing strategy spreading objects between schedulers is a simple round robin.

This is sufficient for configurations with homogeneous pack sizes, but with heterogeneous configuration with host/service groups of different sizes, complex service dependencies or large business rules, this can result sometimes in a greatly unbalanced dispatching.

This patch introduce a routine that selects the scheduler managing the lowest amount of objects for each pack. The result is a more evenly balanced load across the schedulers.

Also, modifies the behavior of service_overrides property when overriding a parameter for an unknown service. The previous behavior raised an error. The new one only raises a warning. This is way more convenient when dealing with portion of configuration that are enabled or disabled.

The current balancing strategy spreading objects between schedulers is a
simple round robin.

This is sufficient for configurations with homogeneous pack sizes, but with
heterogeneous configuration with host/service groups of different sizes,
complex service dependencies or large business rules, this can result
sometimes in a greatly unbalanced dispatching.

This patch introduce a routine that selects the scheduler managing the
lowest amount of objects for each pack. The result is a more evenly
balanced load across the schedulers.

Also, modifies the behavior of `service_overrides` property when overriding
a parameter for an unknown service. The previous behavior raised an error.
The new one only raises a warning. This is way more convenient when
dealing with portion of configuration that are enabled or disabled.
@geektophe geektophe force-pushed the enh/schedulers_packs_balancing branch from 3be1b60 to a464ea3 Compare May 11, 2020 09:52
@naparuba naparuba merged commit e9b367a into shinken-solutions:master Feb 17, 2021
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.

None yet

2 participants