Search before asking
Linkis Component
Description
In production environments, YARN queues may become unavailable due to resource constraints, maintenance, or other issues. Currently, Linkis does not have a mechanism to automatically switch to a backup queue when the primary queue is unavailable, leading to task failures.
Additionally, not all users or engine types should be allowed to use secondary queues due to resource management and cost control requirements.
Steps to reproduce
N/A - This is a feature request
Expected behavior
When enabled, the system should:
- Check if the task creator is in the allowed list for secondary queue usage
- Check if the engine type is supported
- Query LinkisManager for the optimal queue (primary or secondary)
- Automatically use the secondary queue when the primary queue is unavailable
- Include permission checks to prevent unauthorized access to secondary queues
Your environment
- Linkis version used: 2.0.0
- Environment name and version:
- hadoop 3.3.4
- jdk 1.8.0_xxx
Anything else
This change adds:
- QueueSelectionInterceptor at Entrance layer for intelligent queue selection
- SecondaryYarnConf protocol for RPC communication
- Configuration options to enable/disable the feature and control access
- Permission checks based on creator and engine type
- Integration with LinkisManager for queue availability detection
- Comprehensive documentation, requirements, and test cases
Are you willing to submit a PR?
Search before asking
Linkis Component
Description
In production environments, YARN queues may become unavailable due to resource constraints, maintenance, or other issues. Currently, Linkis does not have a mechanism to automatically switch to a backup queue when the primary queue is unavailable, leading to task failures.
Additionally, not all users or engine types should be allowed to use secondary queues due to resource management and cost control requirements.
Steps to reproduce
N/A - This is a feature request
Expected behavior
When enabled, the system should:
Your environment
Anything else
This change adds:
Are you willing to submit a PR?