Dynamic Queue Scheduling
The Dynamic Queue Scheduling feature enables you to dynamically change the system state by reconfiguring the values of properties at a predefined time.
The Dynamic Queue Scheduling feature supports queue-level resource allocation configurations only. Additionally, the feature is only supported in relative and absolute resource allocation mode, and does not include dynamic queues.
The Dynamic Queue Scheduling feature enables you to set a time when a predefined configuration is applied to the YARN Queue Manager system.
- Scheduling rule A takes effect at 8 AM and applies Dynamic Configuration State-A to the system.
- Scheduling rule B takes effect at 8 PM and applies Dynamic Configuration State-B to the system.
When a new Dynamic Configuration is created, it is based on the current configuration and enabled by default. Dynamic Configurations can be disabled at any time, either manually or by the system. If a Dynamic Configuration is an invalid configuration, it is disabled automatically by the system and it cannot be enabled manually until it is brought back into a valid state.
Dynamic Configurations do not contain any structural changes such as adding or deleting queues. Moreover, some manual structural changes can invalidate already existing Dynamic Configurations. As a result, existing Dynamic Configurations are validated when any structural changes occur. The following table explains how and when the system validates a Dynamic Configuration and the results of validation.
|Validation time||Triggering event||What is checked?||Action if Dynamic Configuration is invalid||Action if Dynamic Configuration is valid|
|Design time||When saving a Dynamic Configuration.||The system checks if the Dynamic Configuration is valid and can be applied.||The Dynamic Configuration is saved in a disabled state and marked as invalid.||Dynamic Configuration is saved in an enabled state.|
|Run time||When the system begins to apply a Dynamic Configuration.||The system checks if the Dynamic Configuration is valid and can be applied.||Dynamic Configuration is not applied and is disabled.||Dynamic Configuration is applied to the system.|
In addition to the listed automatic validation, manual validation is required after queue configuration changes. This validation is not triggered automatically, but the UI will prompt you to perform Dynamic Configuration revalidation when you make any queue configuration changes. For more information, see Revalidate Dynamic Configurations.