| Scroll Ignore | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
|
Concept
Lorsqu'un utilisateur fait une demande de rapport SLA dans l'Interface de Visualisation, la gรฉnรฉration peut avoir un impact non nรฉgligeable sur le fonctionnement de l'Interface de Visualisation.
- Une demande de rapport ( suivant les critรจres choisis ) peut nรฉcessiter la rรฉcupรฉration d'une grosse quantitรฉ de donnรฉes :
- Le traitement de ces donnรฉes peut avoir un coรปt CPU รฉlevรฉ,
- ainsi qu'un surcoรปt de consommation mรฉmoire nรฉcessaire ร la rรฉcupรฉration des informations brutes et pour la gรฉnรฉration du rapport en lui-mรชme.
- ย Cela peut avoir comme effet :
- de bloquer ou ralentir l'interface, qui met du temps ร rรฉpondre aux autres utilisateurs,ย
- et de pรฉnaliser les autres programmes qui s'exรฉcutent sur le mรชme systรจme, s'ils ont besoin de RAM au moment de la gรฉnรฉration du rapport.
Le fait de dรฉporter la gรฉnรฉration des rapports sur le module "broker--module-report-builder" permet :
- de consommer les ressources d'autres CPUs que celui de la WebUI ( Broker 1 ),
- mais aussi, de donner la possibilitรฉ de gรฉnรฉrer les rapports sur une autre machine, avec un Broker portant un ou plusieurs
"broker--module-report-builder".- dans ce cas, les resources CPU et RAM nรฉcessaire ร la gรฉnรฉration des rapports ne surcharge plus le serveur hรฉbergeant la WebUI ( Broker 2 ).
ย ( voir la pagePartage Rรฉpartition de charge lors de la gรฉnรฉration des rapports SLA depuis le module WebUI )
Activation du module
Les modules de type "broker__module_report_builder" sont des modules qui doivent รชtre activรฉs sur un dรฉmon de type "broker" qu'on appellera le dรฉmon.
- L'activation du module s'effectue en ajoutant le nom du module dans la configuration du dรฉmon.
- Pour cela, il faut ouvrir le fichier de configuration du dรฉmon ( de type "
broker"), et ajouter dans le paramรจtre modules, le nom du module de type"broker__module_report_builder".
- Pour cela, il faut ouvrir le fichier de configuration du dรฉmon ( de type "
- Il est possible de faire plusieurs modules de type
"broker__module_report_builder".- Cela permet, par exemple, d'avoir des configurations diffรฉrentes en fonction des royaumes.
- Cela permet, par exemple, d'avoir des configurations diffรฉrentes en fonction des royaumes.
- Contraintes :
- Activable uniquement sur un dรฉmon de type
"broker"( voir la pageย Configuration du broker-module-livedata )Le Broker ). - Il est possible d'activer plusieur module de type
"broker__module_report_builder"sur un dรฉmon de type"broker".- Cependant il faudra vรฉrifier qu'il y a asser de ressource ( RAM et CPU ) sur la machine pour gรฉnรฉrer les rapports.
- Activable uniquement sur un dรฉmon de type
Pour prendre en compte le changement de configuration, il faut redรฉmarrer l'Arbiter :
| language | text |
|---|---|
| theme | Emacs |
| Excerpt Include | ||||||||
|---|---|---|---|---|---|---|---|---|
|
Exemple d'activation du module nommรฉ "
livedatabroker--module-
slareport-
providerbuilder" sur le
moduledรฉmon nommรฉ "broker-
module-livedatamaster" ( configuration livrรฉe par dรฉfaut par Shinken )
L'exemple suivant
- active le module
"broker--module-report-builder", - sur le dรฉmonย
"broker-master",dont la configuration est dans le fichier /etc/shinken/brokers/broker-master.cfg.
Modification dans le fichier du module /etc/shinken/brokers/broker-master.cfgย :
| Code Block | ||||
|---|---|---|---|---|
| ||||
define broker {
[...]
modules Module 1, Module 2, Module 3, broker--module-report-builder
ย [...]
} |
Puis redรฉmarrage de l'Arbiter
| Excerpt Include | ||||||
|---|---|---|---|---|---|---|
|
|
Puis redรฉmarrage de l'Arbiter
| Code Block | ||||
|---|---|---|---|---|
| ||||
service shinken-arbiter restart |
|
Crรฉer
Configurerun nouveau module de type broker__module_report_builder
Pour pouvoir configurer un module de type "broker__module_report_builder", il faut faire un nouveau fichier de configuration grรขce au fichier d'exemple fourni par dรฉfaut.
- Pour commencer, il faut choisir le nom du nouveau module.
- Pour l'exemple, on l'appelle "
Mon-Module-Report-Builder". - Remplacer dans l'exemple le mot "
Mon-Module-Report-Builder" par le nom qui a รฉtรฉ choisi.
- Pour l'exemple, on l'appelle "
- Puis il faut crรฉer le fichier de configuration :ย
Copier le fichier de dรฉfinition du module d'exemple : /etc/shinken-user-example/configuration/daemons/brokers/modules/broker__module_report_builder/broker--module-report-builder-example.cfgย dans le rรฉpertoire de dรฉfinition des modulesย /etc/shinken/modules/ .
( Exemple : /etc/shinken/modules/broker--module-report-builder__Mon-Module-Report-Builder.cfg )
Scroll Title title โ Code Block language text theme Emacs cp /etc/shinken-user-example/configuration/daemons/brokers/modules/broker__module_report_builder/broker--module-report-builder-example.cfg /etc/shinken/modules/broker--module-report-builder__Mon-Module-Report-Builder.cfg
- Ensuite, il faut modifier le fichier nouvellement crรฉรฉ pour configurer le nouveau module.
Il faut vรฉrifier que le fichier appartienne ร l'utilisateur shinken et qu'il possรจde le droit d'รฉdition. Si ce n'est pas le cas, il faut effectuer les commandes suivante suivantes :
Code Block language text theme Emacs chown -R shinken:shinken /etc/shinken/modules/broker--module-report-builder__Mon-Module-Report-Builder.cfg chmod u+w /etc/shinken/modules/broker--module-report-builder__Mon-Module-Report-Builder.cfg
On change le nom du module enย
"Mon-Module-Report-Builder"dans le fichier /etc/shinken/modules/broker--module-report-builder__Mon-Module-Report-Builder.cfgCode Block language js theme Confluence ... ย ย # โโโ Module name [ Must be unique ] [ MANDATORY ] โโโ # โโโ โโโ module_name ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย Mon-Module-Report-Builderย ...
Ensuite, il faut ajouter le nouveau module dans le dรฉmon de type
"broker"correspondant.Dans notre exemple, on ajoute le module
"Mon-Module-Report-Builder"au dรฉmon"broker-master"dรฉfinie dans le fichier /etc/shinken/brokers/broker-master.cfgCode Block language js theme Confluence define module { [...] modules ย ย ย Module 1, Module 2, Module 3, Mon-Module-Report-Builder ย [...] }
Puis pour finir, il faut redรฉmarrer l'Arbiter pour que le Broker puisse prendre en compte ce nouveau module.
Code Block service shinken-arbiter restartlanguage text theme Emacs Excerpt Include Fichier de configuration ( shinken.cfg ) Fichier de configuration ( shinken.cfg ) page DefaultLink[destination=Optional[PageResourceIdentifier[spaceKey=<null>,title=Fichier de configuration ( shinken.cfg )]],body=Optional.empty,tooltip=Optional.empty,anchor=Optional.empty,target=Optional.empty] nopanel true
Configuration
La configuration du module se trouve par dรฉfaut dans le fichierย /etc/shinken/modules/broker--module-report-builder.cfg
- Un exemple de configuration est รฉgalement disponibleย dansย /etc/shinken-user-example/configuration/daemons/brokers/modules/broker__module_report_builder/broker--module-report-builder-example.cfg
Exemple de fichier de configuration
| Code Block | ||||
|---|---|---|---|---|
| ||||
# CFG_FORMAT_VERSION 1 ( SHINKEN : DON'T TOUCH THIS LINE )
#================================================================================
# broker--module-report-builder
#================================================================================
# Daemon that can load this module:
# - broker
# This module is used to generate reports on Broker
#================================================================================
define module {
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ MODULE IDENTITY โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Module name [ Must be unique ] [ MANDATORY ] โโโ
# โโโ โโโ
module_name broker--module-report-builder
# โโโ Module type [ Do not edit ] [ MANDATORY ] โโโ
# โโโ โโโ
module_type broker__module_report_builder
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ LISTENING PARAMETERS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ IP address to listen to โโโ
# โโโ
# Default : 0.0.0.0 ( all interfaces ) โโโ
# โโโ โโโ
# broker__module_report_builder__listening_address 0.0.0.0
# โโโ Port to listen to โโโ
# โโโ
# Default : 24100 โโโ
# โโโ โโโ
# broker__module_report_builder__listening_port 24100
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ HTTPS PARAMETERS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Enable this parameter if you want to receive requests in HTTPs mode โโโ
# โโโ
# Default : 0 => Disable โโโ
# ... : 1 => Enable โโโ
# โโโ โโโ
# broker__module_report_builder__use_ssl 0
# โโโ Certificate file โโโ
# โโโ
# Default : /etc/shinken/certs/server.cert โโโ
# โโโ โโโ
# broker__module_report_builder__ssl_cert /etc/shinken/certs/server.cert
# โโโ Key file โโโ
# โโโ
# Default : /etc/shinken/certs/server.key โโโ
# โโโ โโโ
# broker__module_report_builder__ssl_key /etc/shinken/certs/server.key
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ AUTHENTICATION โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Token used to authenticate on this module โโโ
# โโโ
# Default : change_me โโโ
# โโโ โโโ
# broker__module_report_builder__token change_me
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ MODULES โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ This parameter defines the name of SLA module to use for report generation โโโ
# โโโ
# ... : report-builder--module-sla-reader => [mandatory] read sla from โโโ
# this module definition โโโ
# โโโ โโโ
modules report-builder--module-sla-reader
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ STATISTICS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Ranges definition for the check "Broker - $KEY$ - Module Report Builder - Performance" โโโ
# โโโ Example: โโโ
# โโโ - Reports written in less than 5 seconds will be classified in the first category. โโโ
# โโโ - Those made in less than 10 seconds will be in the second. โโโ
# โโโ - etc. โโโ
# โโโ
# Default : 5,10,20,30,60,120,300,600 ( seconds ) โโโ
# โโโ โโโ
# broker__module_report_builder__exec_stats_ranges 5,10,20,30,60,120,300,600
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ BROKS GETTER PARAMETERS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ These parameters allow some internal tuning in broks management in this module โโโ
# โโโ Late broks sets catchup โโโ
# โโโ
# ... : 0 => Disable โโโ
# Default : 1 => Enable โโโ
# โโโ โโโ
# broker__module_report_builder__broks_getter__activate_late_set_catchup 1
# โโโ Take extra broks sets to manage if more than this parameter sets are waiting โโโ
# โโโ
# Default : 10 โโโ
# โโโ โโโ
# broker__module_report_builder__broks_getter__nb_late_set_allowed_before_catchup 10
# โโโ Stop taking extra broks sets in catchup when we reach this number of broks โโโ
# โโโ
# Default : 200000 โโโ
# โโโ โโโ
# broker__module_report_builder__broks_getter__catchup_broks_managed_by_module_in_a_catchup_loop 200000
# โโโ Continue catchup if too many late broks sets remains after โโโ
# โโโ
# ... : 0 => Disable โโโ
# Default : 1 => Enable โโโ
# โโโ โโโ
# broker__module_report_builder__broks_getter__catchup_run_endless_until_nb_late_set_allowed_reached 1
# โโโ Take the lock as soon as getter thread has some broks to manage โโโ
# โโโ
# Default : 0 => Disable โโโ
# ... : 1 => Enable โโโ
# โโโ โโโ
# broker__module_report_builder__broks_getter__include_deserialisation_and_catchup_in_lock 0
} |
Dรฉtails des sections composant le fichier de configuration
Identification du module
| Code Block | ||||
|---|---|---|---|---|
| ||||
ย ย # โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ MODULE IDENTITY โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Module name [ Must be unique ] [ MANDATORY ] โโโ
# โโโ โโโ
module_name broker--module-report-builder
# โโโ Module type [ Do not edit ] [ MANDATORY ] โโโ
# โโโ โโโ
module_type broker__module_report_builder |
Il est possible de dรฉfinir plusieurs instances de module de type "broker--module-report-builder" dans une architecture Shinken.
- Chaque instance devra avoir un nom unique.
| Scroll Title | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||
|
Paramรจtres rรฉseau
| Code Block | ||||
|---|---|---|---|---|
| ||||
ย # โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ LISTENING PARAMETERS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ IP address to listen to โโโ
# โโโ
# Default : 0.0.0.0 ( all interfaces ) โโโ
# โโโ โโโ
# broker__module_report_builder__listening_address 0.0.0.0
# โโโ Port to listen to โโโ
# โโโ
# Default : 24100 โโโ
# โโโ โโโ
# broker__module_report_builder__listening_port 24100 ย |
| Scroll Title | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||
|
Autorisation dans le pare feuย
Si le module doit rรฉpondre ร des requรชtes provenant du rรฉseau, et que le systรจme sur lequel s'exรฉcute le Broker dispose d'un pare feu, il faudra autoriser le trafic entrant sur le port d'รฉcoute configurรฉ.
Par exemple, si firewalldย est actif sur le serveur sur lequel s'exรฉcute le Broker les commandes suivantes peuvent รชtre utilisรฉe pour autoriser le trafic entrant sur le port 24100 :
| Code Block | ||||
|---|---|---|---|---|
| ||||
firewall-cmd --add-port=24100/tcp firewall-cmd --runtime-to-permanent |
Chiffrement des รฉchanges rรฉseau
| Code Block | ||||
|---|---|---|---|---|
| ||||
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ HTTPS PARAMETERS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Enable this parameter if you want to receive requests in HTTPs mode โโโ
# โโโ
# Default : 0 => Disable โโโ
# ... : 1 => Enable โโโ
# โโโ โโโ
# broker__module_report_builder__use_ssl 0
# โโโ Certificate file โโโ
# โโโ
# Default : /etc/shinken/certs/server.cert โโโ
# โโโ โโโ
# broker__module_report_builder__ssl_cert /etc/shinken/certs/server.cert
# โโโ Key file โโโ
# โโโ
# Default : /etc/shinken/certs/server.key โโโ
# โโโ โโโ
# broker__module_report_builder__ssl_key /etc/shinken/certs/server.key
|
| Scroll Title | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||
|
Paramรจtre d'identification
Afin de sรฉcuriser l'utilisation du module, un jeton d'identification est nรฉcessaire et il doit รชtre fourni avec chaque requรชte.
Ce jeton est dรฉfini via le paramรจtre suivant :
| Code Block | ||||
|---|---|---|---|---|
| ||||
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ AUTHENTICATION โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Token used to authenticate on this module โโโ
# โโโ
# Default : change_me โโโ
# โโโ โโโ
# broker__module_report_builder__token change_me |
| Scroll Title | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
Modules
Cette section permet de dรฉfinir quel module SLA utiliser pour la gรฉnรฉration des rapports.
| Code Block | ||||
|---|---|---|---|---|
| ||||
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ MODULES โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ This parameter defines the name of SLA module to use for report generation โโโ
# โโโ
# ... : report-builder--module-sla-reader => [mandatory] read sla from โโโ
# this module definition โโโ
# โโโ โโโ
modules report-builder--module-sla-reader |
| Scroll Title | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
Statistiques ( pour la supervision )
| Code Block | ||||
|---|---|---|---|---|
| ||||
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ STATISTICS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Ranges definition for the check "Broker - $KEY$ - Module Report Builder - Performance" โโโ
# โโโ Example: โโโ
# โโโ - Reports written in less than 5 seconds will be classified in the first category. โโโ
# โโโ - Those made in less than 10 seconds will be in the second. โโโ
# โโโ - etc. โโโ
# โโโ
# Default : 5,10,20,30,60,120,300,600 ( seconds ) โโโ
# โโโ โโโ
# broker__module_report_builder__exec_stats_ranges 5,10,20,30,60,120,300,600 |
| Scroll Title | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
Absorption des broks ( information de supervision venant des Schedulers, options internes )
| Code Block | ||||
|---|---|---|---|---|
| ||||
ย # โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ BROKS GETTER PARAMETERS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ These parameters allow some internal tuning in broks management in this module โโโ
# โโโ Late broks sets catchup โโโ
# โโโ
# ... : 0 => Disable โโโ
# Default : 1 => Enable โโโ
# โโโ โโโ
# broker__module_report_builder__broks_getter__activate_late_set_catchup 1
# โโโ Take extra broks sets to manage if more than this parameter sets are waiting โโโ
# โโโ
# Default : 10 โโโ
# โโโ โโโ
# broker__module_report_builder__broks_getter__nb_late_set_allowed_before_catchup 10
# โโโ Stop taking extra broks sets in catchup when we reach this number of broks โโโ
# โโโ
# Default : 200000 โโโ
# โโโ โโโ
# broker__module_report_builder__broks_getter__catchup_broks_managed_by_module_in_a_catchup_loop 200000
# โโโ Continue catchup if too many late broks sets remains after โโโ
# โโโ
# ... : 0 => Disable โโโ
# Default : 1 => Enable โโโ
# โโโ โโโ
# broker__module_report_builder__broks_getter__catchup_run_endless_until_nb_late_set_allowed_reached 1
# โโโ Take the lock as soon as getter thread has some broks to manage โโโ
# โโโ
# Default : 0 => Disable โโโ
# ... : 1 => Enable โโโ
# โโโ โโโ
# broker__module_report_builder__broks_getter__include_deserialisation_and_catchup_in_lock 0 |
| Warning |
|---|
Ces paramรจtres sont dรฉdiรฉs au fonctionnement interne au module, il est fortement recommandรฉ de ne pas les modifier sans le support dรฉdiรฉ.ย |
Le fonctionnement du thread de rรฉcupรฉration des broks peut รชtre configurรฉ via certains paramรจtres, afin de modifier son "agressivitรฉ".
Pendant la mise ร jour des donnรฉes de supervision, le module ne peut pas rรฉpondre aux requรชtes HTTP qu'il reรงoit.
Principe de l'algorithme d'absorption des broks :
- Attente de broks ร traiter
- Rรฉcupรฉration de broks en retard ( fonctionnalitรฉ de rattrapage )
- Dรฉ-sรฉrialisation des broks
- Entrรฉe en session critique ( les requรชtes ร l'API sont bloquรฉes )
- Traitement des broksย
- Libรฉrer la session critique et attendre de nouveaux broks, ou continuer l'absorption de broks ( en cas de retard important, on repart ร l'รฉtape 1, en restant sur la session critique )
| Scroll Title | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||
|
