Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Scroll Ignore
scroll-pdftrue
scroll-officetrue
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmltrue


Panel
titleSommaire

Table of Contents
stylenone



Module chargés dans le Broker


Code Block
[2019-09-17 16:49:59] INFO   : [broker-dev4    ] I correctly loaded the modules: [sla,Simple-log,WebUI,Livestatus,Graphite-Perfdata]


Initialisation du module SLA - CHAPITRE [ INITIALISATION ]

Sur le Broker

Création du module


Code Block
[2021-04-13 15:03:08] INFO   : [ broker-master   ] [ sla              ] [ INITIALISATION ] =============          Starting module initialisation     ==============
[2021-04-13 15:07:59] INFO   : [ broker-master   ] [ sla              ] [ INITIALISATION ] Creating new migration process named : broker [ - Module: sla - migration]
[2021-04-13 15:07:59] INFO   : [ broker-master   ] [ sla              ] [ INITIALISATION ] Creating new archive process named : broker [ - Module: sla - archive]
[2021-04-13 15:08:02] INFO   : [ broker-master   ] [ sla              ] [ INITIALISATION ] Creating a queue manager process for the module.
[2021-04-13 15:08:04] INFO   : [ broker-master   ] [ sla              ] [ INITIALISATION ] Reading module configuration
[2021-04-13 15:08:04] INFO   : [ broker-master   ] [ sla              ] [ INITIALISATION ] Creating 1 workers


Paramètre de connexion à la base mongo


Code Block
[2021-04-13 15:08:04] INFO   : [ broker-master   ] [ sla              ] [ INITIALISATION ] [ MONGO ] Creating connection to sla database [shinken]
[2021-04-13 15:08:04] INFO   : [ broker-master   ] [ sla              ] [ INITIALISATION ] [ MONGO ] Parameter load for database connection
[2021-04-13 15:08:04] INFO   : [ broker-master   ] [ sla              ] [ INITIALISATION ] [ MONGO ]    - database ------------------------- :[shinken]
[2021-04-13 15:08:04] INFO   : [ broker-master   ] [ sla              ] [ INITIALISATION ] [ MONGO ]    - uri ------------------------------ :[mongodb://localhost/?w=1&fsync=false]
[2021-04-13 15:08:04] INFO   : [ broker-master   ] [ sla              ] [ INITIALISATION ] [ MONGO ]    - replica_set ---------------------- :[]
[2021-04-13 15:08:04] INFO   : [ broker-master   ] [ sla              ] [ INITIALISATION ] [ MONGO ]    - use_ssh_tunnel ------------------- :[False]
[2021-04-13 15:08:04] INFO   : [ broker-master   ] [ sla              ] [ INITIALISATION ] [ MONGO ]    - ssh_keyfile ---------------------- :[~shinken/.ssh/id_rsa]
[2021-04-13 15:08:04] INFO   : [ broker-master   ] [ sla              ] [ INITIALISATION ] [ MONGO ]    - ssh_user ------------------------- :[root]
[2021-04-13 15:08:04] INFO   : [ broker-master   ] [ sla              ] [ INITIALISATION ] [ MONGO ]    - ssh_tunnel_timeout --------------- :[2]
[2021-04-13 15:08:04] INFO   : [ broker-master   ] [ sla              ] [ INITIALISATION ] [ MONGO ]    - use_ssh_retry_failure ------------ :[1]
[2021-04-13 15:08:04] INFO   : [ broker-master   ] [ sla              ] [ INITIALISATION ] [ MONGO ]    - auto_reconnect_max_try ----------- :[3]
[2021-04-13 15:08:04] INFO   : [ broker-master   ] [ sla              ] [ INITIALISATION ] [ MONGO ]    - auto_reconnect_sleep_between_try - :[3]
[2021-04-13 15:08:04] INFO   : [ broker-master   ] [ sla              ] [ INITIALISATION ] [ MONGO ] Try to open a Mongodb connection to mongodb://localhost/?w=1&fsync=false:shinken
[2021-04-13 15:08:04] INFO   : [ broker-master   ] [ sla              ] [ INITIALISATION ] [ MONGO ] Mongo connection established in 8.69ms
[2021-04-13 15:08:04] INFO   : [ broker-master   ] [ sla              ] [ INITIALISATION ] [ MONGO ] Ensure mongo index done in 5.01ms


Fin de l'initialisation du module


Code Block
[2021-04-13 15:11:49] INFO : [ broker-master ] [ sla ] [ INITIALISATION ] Load from collection 28 elements info in cache done in 0.84ms
[2021-04-13 15:11:49] INFO : [ broker-master ] [ sla ] [ INITIALISATION ] Found first element monitoring at 17-06-2020 10:42:52
[2021-04-13 15:11:49] INFO : [ broker-master ] [ sla ] [ INITIALISATION ] ============= Module initialized in 234.97ms ==============


Démarrage du processus de migration


Code Block
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ migration (pid:31197) ] [ INITIALISATION ] Sub process ready to work.
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ migration (pid:31197) ] [ INITIALISATION ] Migration process broker [ - Module: sla-writer - migration] initialization
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ migration (pid:31197) ] [ INITIALISATION ] Parameter load for migrating
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ migration (pid:31197) ] [ INITIALISATION ]    - daily_clean_batch_size ----------------- :[10000]
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ migration (pid:31197) ] [ INITIALISATION ]    - daily_clean_pause_time ----------------- :[2.0]
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ migration (pid:31197) ] [ INITIALISATION ]    - broker_module_sla_migration_batch_size - :[1000]
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ migration (pid:31197) ] [ INITIALISATION ]    - broker_module_sla_migration_pause_time - :[0.1]
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ migration (pid:31197) ] [ INITIALISATION ]    - nb_stored_days ------------------------- :[INFINITE]
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ migration (pid:31197) ] [ INITIALISATION ]    - time_when_delete_old_SLA --------------- :[03:02]
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ migration (pid:31197) ] [ INITIALISATION ] [ MONGO ] Creating connection to sla database [shinken]
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ migration (pid:31197) ] [ INITIALISATION ] [ MONGO ] Try to open a Mongodb connection to mongodb://localhost/?w=1&fsync=false:shinken
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ migration (pid:31197) ] [ INITIALISATION ] [ MONGO ] Mongo connection established in 6.62ms
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ migration (pid:31197) ] [ INITIALISATION ] [ MONGO ] Ensure mongo index done in 4.18ms
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ migration (pid:31197) ] [ INITIALISATION ] Load from collection 28 elements info in cache done in 0.92ms
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ migration (pid:31197) ] [ INITIALISATION ] Migration process broker [ - Module: sla-writer - migration] initialized


Erreurs - La connexion au serveur Mongo n'est pas établie à l'initialisation du module SLA
Avec Tunnel SSH
Démarrage du processus d'archive


Code Block
[2021-0402-1310 1510:4039:5645] INFO  ERROR : [ brokerWebUI ] [SLA][INITIALISATION] Initialisation Module: Error : [ WebUI -sla ] [ slaSSH TUNNEL ] [ MONGODB ] - mongo connection failure : localhost:43577   ] [ archive (pid:31201) ] [ INITIALISATION==(ssh tunnel)==> 192.168.1.87:22 ==(mongodb)==> 192.168.1.87:27017.


Sans Tunnel SSH


Code Block
[YYYY-MM-DD HH:MM:SS] ERROR ] Sub process ready to work.
[2021-04-13 15:40:56] INFO   : [ broker         WebUI ] [SLA][INITIALISATION] Initialisation Module: Error : [ broker-master  -sla ] [ slaMONGODB          ]   - ]mongo [connection failure to 192.168.1.87:27017


Démarrage du processus d'archive


Code Block
archive (pid:31201) ] [ INITIALISATION ] Starting initialization of archive process [broker [ - Module: sla-writer - archive]]
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ archive (pid:31201) ] [ INITIALISATION ] ReadingSub configurationprocess forready sla archive writingto work.
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ archive (pid:31201) ] [ INITIALISATION ] Starting initialization of archive process [broker [ - time_before_shinken_inactive ----------------------------------:[30]
[2021-04-13 15:Module: sla-writer - archive]]
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ archive (pid:31201) ] [ INITIALISATION ] Reading configuration for - minimal_time_before_an_element_become_missing_data ------------:[0]sla archive writing
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ archive (pid:31201) ] [ INITIALISATION ]    - minimal_time_before_an_element_become_missing_data_at_startup -:[0shinken_inactive ----------------------------------:[30]
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ archive (pid:31201) ] [ INITIALISATION ] Parameter  load for sla writing- minimal_time_before_an_element_become_missing_data ------------:[0]
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ archive (pid:31201) ] [ INITIALISATION ]    - size_chunk_to_archive --- :[10000minimal_time_before_an_element_become_missing_data_at_startup -:[0]
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ archive (pid:31201) ] [ INITIALISATION ] Parameter load for - time_between_two_chunks - :[0.1]sla writing
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ archive (pid:31201) ] [ INITIALISATION ]    - keepsize_rawchunk_slato_dayarchive -------- :[710000]
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ archive (pid:31201) ] [ INITIALISATION ] [ MONGO ] Creating connection to sla database [shinken- time_between_two_chunks - :[0.1]
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ archive (pid:31201) ] [ INITIALISATION ] [  MONGO ] Try to open a Mongodb connection to mongodb://localhost/?w=1&fsync=false:shinken
[2021-04-13 15:40:56] INFO   : - keep_raw_sla_day -------- :[7]
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ archive (pid:31201) ] [ INITIALISATION ] [ MONGO ] MongoCreating connection establishedto sla in 16.50msdatabase [shinken]
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ archive (pid:31201) ] [ INITIALISATION ] [ MONGO ] Ensure mongo index done in 6.95msTry to open a Mongodb connection to mongodb://localhost/?w=1&fsync=false:shinken
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ archive (pid:31201) ] [ INITIALISATION ] Load[ fromMONGO collection] 28Mongo elementsconnection infoestablished in cache done in 0.79ms
16.50ms
[2021-04-13 15:40:56] INFO   : [ broker          ] [ sla              ] [ archive (pid:31201) ] [ INITIALISATION ] Archive process broker [ -MONGO Module: sla-writer - archive] initialized] Ensure mongo index done in 51.06ms

Démarrage des workers

Code Block
6.95ms
[2021-04-13 15:1140:5056] INFO   : [ broker-master          ] [ sla              ] [ WORKER MANAGER ] Starting worker 0archive (pid:31201) ] [ INITIALISATION ] Load from collection 28 elements info in cache done in 0.79ms
[2021-04-13 15:1140:5056] INFO   : [ broker-master   ] [ sla     ] [ sla              ] [ WORKER MANAGERarchive (pid:31201) ] The[ INITIALISATION worker] 0Archive isprocess nowbroker started[ as- pid:29585Module: sla-writer - archive] initialized in 51.06ms


Démarrage des workers


Code Block
[2021-04-13 15:4011:5750] INFO   : [ broker-master   ] [ sla              ] [ Worker: 0 (pid:31252)WORKER MANAGER ] [Starting INITIALISATION ] Sub process ready to work.worker 0
[2021-04-13 15:4011:5750] INFO   : [ broker-master   ] [ sla              ] [ WORKER Worker:MANAGER ] The worker 0 is now started as pid:29585

Code Block
0 (pid:31252) ] [ INITIALISATION ] Staring new worker.
[2021-04-13 15:40:57] INFO   : [ broker-master   ] [ sla              ] [ Worker: 0 (pid:31252) ] [ INITIALISATION ] [Sub MONGOprocess ]ready Creating connection to sla database [shinken]work.
[2021-04-13 15:40:57] INFO   : [ broker-master   ] [ sla              ] [ Worker: 0 (pid:31252) ] [ INITIALISATION ] [Staring MONGO ] Try to open a Mongodb connection to mongodb://localhost/?w=1&fsync=false:shinkennew worker.
[2021-04-13 15:40:57] INFO   : [ broker-master   ] [ sla              ] [ Worker: 0 (pid:31252) ] [ INITIALISATION ] [ MONGO ] MongoCreating connection to establishedsla in 5.85msdatabase [shinken]
[2021-04-13 15:40:57] INFO   : [ broker-master   ] [ sla              ] [ Worker: 0 (pid:31252) ] [ INITIALISATION ] [ MONGO ] EnsureTry mongo index done in 15.31msto open a Mongodb connection to mongodb://localhost/?w=1&fsync=false:shinken
[2021-04-13 15:40:57] INFO   : [ broker-master   ] [ sla              ] [ Worker: 0 (pid:31252) ] [ INITIALISATION ] Load[ previousMONGO state] ofMongo 28connection elements doneestablished in 4665.86ms.85ms
[2021-04-13 15:40:57] INFO   : [ broker-master   ] [ sla              ] [ Worker: 0 (pid:31252) ] [ INITIALISATION ] Parameter load for build raw sla [ MONGO ] Ensure mongo index done in 15.31ms
[2021-04-13 15:40:57] INFO   : [ broker-master   ] [ sla              ] [ Worker: 0 (pid:31252) ] [ INITIALISATION ] Load previous state of 28 - time_before_shinken_inactive - :[30]elements done in 466.86ms.
[2021-04-13 15:40:57] INFO   : [ broker-master   ] [ sla              ] [ Worker: 0 (pid:31252) ] [ INITIALISATION ] Parameter load for -build store_output ----------------- :[True]raw sla
[2021-04-13 15:40:57] INFO   : [ broker-master   ] [ sla              ] [ Worker: 0 (pid:31252) ] [ INITIALISATION ]    - storetime_before_longshinken_outputinactive ------------ :[True30]
[2021-04-13 15:40:57] INFO   : [ broker-master   ] [ sla              ] [ Worker: 0 (pid:31252) ] [ INITIALISATION ]    - list_ofstore_stored_output_status ----------------- :[set([])True]
[2021-04-13 15:40:57] INFO   : [ broker-master   ] [ sla              ] [ Worker: 0 (pid:31252) ] [ INITIALISATION ] New worker start in 468.01ms.

Sur la WebUI

Création du module

Code Block
[2021-04-13 15:50:24 store_long_output ------------ :[True]
[2021-04-13 15:40:57] INFO   : [ WebUIbroker-master           ] [ sla              ] [ INITIALISATIONWorker: ] =============    0 (pid:31252) ] [ INITIALISATION ]    -  Starting module initialisation     ==============
[list_of_stored_output_status - :[set([])]
[2021-04-13 15:5040:2457] INFO   : [ WebUIbroker-master   ] [ sla      ] [ sla      ] [ Worker:     0 (pid:31252) ] [ INITIALISATION ] ReadingNew configurationworker forstart in 468.01ms.


Sur la WebUI

Création du module


Code Block
sla archive building
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ] =============    - time_before_shinken_inactive ----------------------------------:[30]      Starting module initialisation     ==============
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ] Reading configuration for - minimal_time_before_an_element_become_missing_data ------------:[0]sla archive building
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ]    - minimal_time_before_an_element_become_missing_data_at_startup -:[0shinken_inactive ----------------------------------:[30]
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ]  Reading module configuration

Paramètre de connexion à la base mongo

Code Block
  - minimal_time_before_an_element_become_missing_data ------------:[0]
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ] [ MONGO ] Creating connection to sla database [shinken- minimal_time_before_an_element_become_missing_data_at_startup -:[0]
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ] [Reading module configuration


Paramètre de connexion à la base mongo


Code Block
MONGO ] Parameter load for database connection
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ] [ MONGO ] Creating connection to -sla database ------------------------- :[shinken]
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ] [ MONGO ] Parameter load for - uri ------------------------------ :[mongodb://localhost/?w=1&fsync=false]
[database connection
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ] [ MONGO ]    - replica_setdatabase ------------------------- :[shinken]
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ] [ MONGO ]    - use_ssh_tunnel uri ------------------------------ :[Falsemongodb://localhost/?w=1&fsync=false]
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ] [ MONGO ]    - sshreplica_keyfileset ---------------------- :[~shinken/.ssh/id_rsa]
[[]
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ] [ MONGO ]    - use_ssh_usertunnel ------------------------- :[rootFalse]
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ] [ MONGO ]    - ssh_tunnel_timeoutkeyfile ---------------------- :[2~shinken/.ssh/id_rsa]
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ] [ MONGO ]    - use_ssh_retry_failure user ------------------------- :[1root]
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ] [ MONGO ]    - autossh_reconnecttunnel_max_try timeout --------------- :[32]
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ] [ MONGO ]    - autouse_reconnectssh_sleepretry_between_tryfailure ------------ :[31]
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ] [ MONGO ] Try to open a Mongodb connection to mongodb://localhost/?w=1&fsync=false:shinken- auto_reconnect_max_try ----------- :[3]
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ] [ MONGO ]  Mongo  connection established in 4.09ms- auto_reconnect_sleep_between_try - :[3]
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ] [ MONGO ] Try to Ensureopen mongoa indexMongodb doneconnection in 3.35msto mongodb://localhost/?w=1&fsync=false:shinken
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ] Load[ fromMONGO collection] 28Mongo elementsconnection infoestablished in cache done in 0.85ms

Fin de l'initialisation du module

Code Block
4.09ms
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ] =============           Module initialized in 24.19ms     ==============[ MONGO ] Ensure mongo index done in 3.35ms
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ] FoundLoad firstfrom elementcollection monitoring28 at 17-06-2020 10:42:52elements info in cache done in 0.85ms


Fin de l'initialisation du module

Cas de 2 modules qui archive le même jour en base


Code Block
[20192021-0904-1813 0015:0850:4524] INFO ERROR  : [broker-dev4 WebUI           ] [ sla              ] [archive (pid:1434)INITIALISATION ] =============  ] Fail to archive collection 150_2020 (for date 29-05-2020) because it was lock by [broker-int-13 sla2 archive (pid:23460)] and i am [broker-int-13 sla2 archive (pid:23058)] (an other process try to archive this day)

Dans le cas où 2 modules SLA écrivent dans la même base, les 2 modules vont tenter de faire l'archive du jour en même temps. C'est pourquoi nous avons mis un lock afin d'éviter les doublons dans les entrées SLA.

Si vous avez ce log, vérifiez votre configuration si vous n’avez pas 2 modules SLA ou 2 brokers qui écrivent dans la même base Mongo.

Ecriture des états futurs ( les états qu'on reporte sur les jours d'après )

 Module initialized in 24.19ms     ==============
[2021-04-13 15:50:24] INFO   : [ WebUI           ] [ sla              ] [ INITIALISATION ] Found first element monitoring at 17-06-2020 10:42:52


Fonctionnement du module - chapitre [ RUNNING ]

Cas de 2 modules qui archive le même jour en base


Code Block

Lors de l'écriture des états futurs, on a le log suivant :

Code Block
[2019-09-18 00:08:45] ERROR  : [broker-dev4    ] [sla             ] [Worker:archive 0 (pid:132661434) ] Save future states] in [31.00ms]. Found [10] entries in base in [0.00ms]. Saving [4] new entries in [31.00ms]. Update [0] entries in [0.00ms]Fail to archive collection 150_2020 (for date 29-05-2020) because it was lock by [broker-int-13 sla2 archive (pid:23460)] and i am [broker-int-13 sla2 archive (pid:23058)] (an other process try to archive this day)

Dans le cas où 2 modules SLA écrivent dans la même base, les 2 modules vont tenter de faire l'archive du jour en même temps. C'est pourquoi nous avons mis un lock afin d'éviter les doublons dans les entrées SLA.

Si vous avez ce log, vérifiez votre configuration si vous n’avez pas 2 modules SLA ou 2 brokers qui écrivent dans la même base Mongo.

Ecriture des états futurs ( les états qu'on reporte sur les jours d'après )

Lors de l'écriture des états futurs, on a le log suivant :Une fois par jour, le module nettoie aussi les états futurs à supprimer

Code Block
[2019-09-18 00:08:45] ERROR  : [broker-dev4    ] [sla             ] [Worker: 0 (pid:13266) ] The clean ofSave future states foundin [431.00ms]. entriesFound to delete. There was deleted [10] entries in base in [350.00ms (2.00ms for found entries, 33.00ms for delete entries)].

Log de migration des données SLA

]. Saving [4] new entries in [31.00ms]. Update [0] entries in [0.00ms]

Une fois par jour, le module nettoie aussi les états futurs à supprimer

Code Block
[2019-09-18 00:08:45] ERROR

A chaque démarrage du module, le module fait une recherche des données à migrer :

Code Block
[2020-07-22 15:11:39] INFO   : [broker-masterdev4    ] [sla                   ] [migrationWorker: 0 (pid:3223313266) ] NeedThe toclean migrateof 931144 archivesfuture states found [4] entries to delete. There was deleted in [35.00ms (2.00ms for found entries, 33.00ms for delete entries)].


Log de migration des données SLA

A chaque démarrage du module, le module fait une recherche des données à migrer :

Code Block

Puis si il y a des données à migrer on log la progression : 

Code Block
[2020-07-22 15:11:39] INFO   : [broker-master  ] [sla                   ] [migration (pid:32233) ] Migrating in progress 1000/931144 archives
[2020-07-22 15:11:39] INFO   : [broker-master  ] [sla                   ] [migration (pid:32233) ] MigratingNeed into progressmigrate 2000/931144 archives

Puis si il y a des données à migrer on log la progression : 

Code Block

[2020-07-22 15:11:39] INFO   : [broker-master  ] [sla                   ] [migration (pid:32233) ] Migrating in progress 30001000/931144 archives
[2020-07-22 15:11:4039] INFO   : [broker-master  ] [sla                   ] [migration (pid:32233) ] Migrating in progress 40002000/931144 archives

Puis enfin :

Si il y a eu une migration : 

Code Block

[2020-07-22 15:1811:3739] INFO   : [broker-master  ] [sla                   ] [migration (pid:32233) ] MigrateMigrating 931144in archiveprogress done in:7m 0.14s.

Sinon:

Code Block
3000/931144 archives
[2020-07-22 0915:5811:4740] INFO   : [broker-dev4  master  ] [sla                   ] [migration (pid:1087832233) ] NoMigrating archivein need migration. Check done in:1.09ms.

Erreurs

La connexion au serveur Mongo n'est pas établie à l'initialisation du module SLA

progress 4000/931144 archives

Puis enfin :

Si il y a eu une migration : 

Avec Tunnel SSH

Code Block
[20212020-0207-1022 1015:3918:4537] ERRORINFO   : [broker-master WebUI ] [SLA][INITIALISATION] Initialisation Module: Error : [ WebUI -sla ] [ SSH TUNNEL ] [ MONGODB ] - mongo connection failure : localhost:43577 ==(ssh tunnel)==> 192.168.1.87:22 ==(mongodb)==> 192.168.1.87:27017.

Sans Tunnel SSH

sla                   ] [migration (pid:32233) ] Migrate 931144 archive done in:7m 0.14s.

Sinon:

Code Block
[2020-07-22 09:58:47] INFO   : [broker-dev4    ] [sla            
Code Block
[YYYY-MM-DD HH:MM:SS] ERROR : [ WebUI ] [SLA][INITIALISATION] Initialisation Module: Error : [ broker-master  -sla ] [ MONGODB       ] [migration (pid:10878) ] No archive -need mongomigration. connectionCheck failure to 192.168.1.87:27017done in:1.09ms.