-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: too high pack size for multi-schedulers environnements. Can redu…
…ce a LOT the boot time for large envrionnements, and reduce the scheduler memory consumption too.
- Loading branch information
Showing
5 changed files
with
319 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
define command{ | ||
command_name check-host-alive | ||
command_line $USER1$/test_hostcheck.pl --type=$ARG1$ --failchance=2% --previous-state=$HOSTSTATE$ --state-duration=$HOSTDURATIONSEC$ --hostname $HOSTNAME$ | ||
} | ||
define command{ | ||
command_name check-host-alive-parent | ||
command_line $USER1$/test_hostcheck.pl --type=$ARG1$ --failchance=2% --previous-state=$HOSTSTATE$ --state-duration=$HOSTDURATIONSEC$ --parent-state=$ARG2$ --hostname $HOSTNAME$ | ||
} | ||
define command{ | ||
command_name notify-host | ||
#command_line sleep 1 && /bin/true | ||
command_line $USER1$/notifier.pl --hostname $HOSTNAME$ --notificationtype $NOTIFICATIONTYPE$ --hoststate $HOSTSTATE$ --hostoutput $HOSTOUTPUT$ --longdatetime $LONGDATETIME$ --hostattempt $HOSTATTEMPT$ --hoststatetype $HOSTSTATETYPE$ | ||
} | ||
define command{ | ||
command_name notify-service | ||
command_line $USER1$/notifier.pl --hostname $HOSTNAME$ --servicedesc $SERVICEDESC$ --notificationtype $NOTIFICATIONTYPE$ --servicestate $SERVICESTATE$ --serviceoutput $SERVICEOUTPUT$ --longdatetime $LONGDATETIME$ --serviceattempt $SERVICEATTEMPT$ --servicestatetype $SERVICESTATETYPE$ | ||
#command_line sleep 1 && /bin/true | ||
} | ||
define command{ | ||
command_name check_service | ||
command_line $USER1$/test_servicecheck.pl --type=$ARG1$ --failchance=5% --previous-state=$SERVICESTATE$ --state-duration=$SERVICEDURATIONSEC$ --total-critical-on-host=$TOTALHOSTSERVICESCRITICAL$ --total-warning-on-host=$TOTALHOSTSERVICESWARNING$ --hostname $HOSTNAME$ --servicedesc $SERVICEDESC$ --custom $_SERVICECUSTNAME$ | ||
} | ||
define command{ | ||
command_name eventhandler | ||
command_line $USER1$/test_eventhandler.pl $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ | ||
} | ||
define command{ | ||
command_name special_macro | ||
command_line $USER1$/nothing $ARG1$ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
|
||
define realm{ | ||
realm_name World | ||
default 1 | ||
realm_members R1, R2 | ||
} | ||
|
||
|
||
define realm{ | ||
realm_name R1 | ||
} | ||
|
||
define realm{ | ||
realm_name R2 | ||
} | ||
|
||
define scheduler { | ||
scheduler_name R1 | ||
address localhost | ||
realm R1 | ||
} | ||
|
||
|
||
define scheduler { | ||
scheduler_name world | ||
address localhsot | ||
realm World | ||
} | ||
|
||
define scheduler { | ||
scheduler_name R2 | ||
address localhsot | ||
realm R2 | ||
} | ||
|
||
|
||
define hostgroup{ | ||
hostgroup_name everyone | ||
members * | ||
} | ||
|
||
|
||
define host{ | ||
use generic-host | ||
host_name HR1 | ||
realm R1 | ||
hostgoups everyone | ||
} | ||
|
||
|
||
define host{ | ||
use generic-host | ||
host_name HR2 | ||
realm R2 | ||
hostgroups everyone | ||
} |
Oops, something went wrong.
a9a0ef1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise:
for non-trivial changes (docs, typo, etc..), please always create a dedicated branch..
otherwise we risk getting errors in tests , as it resulted here, that could be hard to fix afterwhile and so leave an unstable master (even if it's only in the tests)..
a9a0ef1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to commit before go, so the current was good. I'm currently fixing the tests. But code is good, only tests must be fixed.