Help Center/ MapReduce Service/ FAQs/ Job Management/ How Does the System Select the Queue When an MRS Cluster User Is Associated to Multiple Queues?
Updated on 2024-12-09 GMT+08:00

How Does the System Select the Queue When an MRS Cluster User Is Associated to Multiple Queues?

Question

Users A and B share the same user group and permissions in the MRS cluster. They are associated to both queue A and queue B.

Why are tasks of user A always submitted to queue A and tasks of user B always submitted to queue B?

Answer:

  • If a user in the MRS cluster is associated to multiple queues, the system randomly selects a queue for tasks submitted by the user. You can set the queue permission of the user.and associate a user to only one queue.
  • If you have to associate multiple queues, configure a global user policy to specify the default submission queue for a user.
    1. Take the MRS 3.x cluster as an example. Log in to Manager and click Tenant Resources.
    2. Choose Dynamic Resource Plan > Global User Policy > Create Global User Policy.

      Username: indicates the user for whom resource scheduling needs to be controlled. Enter an existing username in the current cluster.

      Default Queue: indicates the queue of the user. Enter the name of an existing queue in the current cluster.

    Figure 1 Setting a global user policy