IS-Sweeper
The IS-Sweeper is an Executor plugin which keep the GHN and RI profiles updated when the related GHN dies or have communication problems.
The IS-Sweeper plugin update the GHN and RI profiles keeping those profile consistent with the real components status.
The first case managed is when a GHN profile status is READY, but his profile is not updated because the GHNManager have problems updating the profile (network problem, the machine has shutdown, etc.); in this case the plugin updates the GHN status from READY to UNREACHABLE. When the plugin update the GHN status also the related RI profiles are updated to reflect the GHN state (currently this action is not taken [1]).
The plugin define a GHN UNREACHABLE when (last update time + (GHN update time + update threshold)) < current time.
The second case managed by the plugin is when a GHN status is UNREACHABLE for a long period; in this case the plugin delete the GHN profile and all related RI profiles (the related RI profiles are automatically deleted by the IS-Registry). Currently this feature is not enable ([1]).
Parameters
The IS-Sweeper plugin accept those input parameters:
- SWEEPER_SCHEDULER_INTERVAL
- the number of seconds between the plugin execution (the plugin is a scheduled task).
- GHN_UPDATE_THRESHOLD
- the update threshold in seconds.
Output
The IS-Sweeper produced output is:
- GHN_UPDATED_LIST
- an IDs list of updated GHNs.