Versions Compared

Key

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

...

A maintenance window is defined by the following parameters:

ParameterDescriptionConfigured byDefault Value
down_froma datetime in the format yyyy-mm-dd hh:mm that specifies the beginning of the maintenance windowwill be set when creating the order for set_maintenance_window
 

down_toa datetime in the format yyyy-mm-dd hh:mm that specifies the end of the maintenance windowwill be set when creating the order for set_maintenance_window
 

folder

the name of the folder that a maintenance window is configured for.

folders can be configured as

  • a list of folder names separated by a comma
  • a list of folder names in a file

The folders have to be located below the folder specified by the root setting

will be set when creating the order for set_maintenance_window
 

source_filename of file containing a holiday configurationnever.xml |  always.xml
will be set when creating the order for set_maintenance_window
 

source_dirdirectory containing the file that is determined by the parameter source_fileJob: set_maintenance_window${SCHEDULER_DATA}/config
target_dirdirectory containing the file maintenance.xmlJob: set_maintenance_window${SCHEDULER_DATA}/config/live/\${folder}
rootthe root directory, below this directory all folders have to be located that are specified by the folder settingwill be set when creating the order for set_maintenance_window
 

recursivespecifies whether folders should be handled recursively, applicable values are true and falsewill be set when creating the order for set_maintenance_windowtrue
folder_regexonly folders that match this regular expression will be handled and only the folder name (not the full path) will be taken into consideration; this setting is optionalwill be set when creating the order for set_maintenance_window
 


The execution of an order in the job chain job_chain_create_maintenance_window will create two orders for the job chain set_maintenance_window:

...

  • never.xml
     

    Code Block
    languagexml
    titleMaintenance Window holiday file: never.xml
    <holidays>
        <weekdays >
            <day  day="1 2 3 4 5 6 7"/>
        </weekdays>
    </holidays>
  • always.xml
     


    Code Block
    languagexml
    titleMaintenance Window holiday file: always.xml
      <holidays >  </holidays>
  • maintenance.xml: This file will be changed due to the execution. There will be a file per folder. maintenance.xml is a copy of always,xml or never.xml

...

  1. Navigate to the job chain maintenance/set_maintenance_window
  2. Locate the order for the planned maintenance window
  3. Delete the orders .*_to_.* and .*_from_.*

...