...
A maintenance window is defined by the following parameters:
Parameter | Description | Configured by | Default Value |
---|---|---|---|
down_from | a datetime in the format yyyy-mm-dd hh:mm that specifies the beginning of the maintenance window | will be set when creating the order for set_maintenance_window |
down_to | a datetime in the format yyyy-mm-dd hh:mm that specifies the end of the maintenance window | will 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
The folders have to be located below the folder specified by the | will be set when creating the order for set_maintenance_window |
source_file | name of file containing a holiday configuration | never.xml | always.xml will be set when creating the order for set_maintenance_window |
source_dir | directory containing the file that is determined by the parameter source_file | Job: set_maintenance_window | ${SCHEDULER_DATA}/config |
target_dir | directory containing the file maintenance.xml | Job: set_maintenance_window | ${SCHEDULER_DATA}/config/live/\${folder} |
root | the root directory, below this directory all folders have to be located that are specified by the folder setting | will be set when creating the order for set_maintenance_window |
recursive | specifies whether folders should be handled recursively, applicable values are true and false | will be set when creating the order for set_maintenance_window | true |
folder_regex | only 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 optional | will 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 language xml title Maintenance Window holiday file: never.xml <holidays> <weekdays > <day day="1 2 3 4 5 6 7"/> </weekdays> </holidays>
always.xml
Code Block language xml title Maintenance 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
...
- Navigate to the job chain
maintenance/set_maintenance_window
- Locate the order for the planned maintenance window
- Delete the orders
.*_to_.*
and.*_from_.*
...