Mapping Rule

  1. 在Capacity Scheduler拥有和Placement Rule类似功能的是Mapping Rule,但是这两种规则的评估行为并不一致

  2. 映射规则如下 | 映射规则 | 说明 | | :—-: | :—-: | | For the user named [userName],use the queue named [queueName] | 对于某个用户去某个队列 | | For the user named [userName],use the queue named for the user′s [primary_group] | 对于某个用户去以该用户主组为名的队列 | | For the user named [userName],use the queue named for the user′s [secondary_group] | 对于某个用户去以该用户属组为名的队列 | | For all users,use the queue named [queueName] | 对于所有用户都去指定的队列 | | For all users,use the queue named for the user′s [userName] | 对于所有用户,使用以用户名命名的队列 | | For all users,use the queue named for the user′s [primary_group] | 对于所有用户,使用以用户所属的主组命名的队列 | | For all users,use the queue named for the user′s [secondary_group] | 对于所有用户,使用以用户所属的属组命名的队列 | | For users in the group named [groupName], use the queue named [queueName] | 对于在某个组中的用户,使用指定的队列 | | For users in the group named [groupName], use the queue named for the user′s [userName] | 对于在某个组中的用户,使用以用户名命名的队列 | | For all users,use the queue named [childQueueName] under [queueName] or create the queue if it does not exist | 动态队列,对于所有用户,使用指定某个动态队列下的子队列,如果该子队列不存在 就自动创建 | | For all users,use the queue named for the user′s [userName] under [queueName] or create the queue if it does not exist | 动态队列,对于所有用户,在指定的动态队列下使用以用户名命名的队列,如果队列不存在,则创建该队列 | | For all users,use the queue named for the user′s [primary_group] under [queueName] or create the queue if it does not exist | 动态队列,对于所有用户,在指定的动态队列下使用以用户所属的主组命名的队列,如果队列不存在,则创建该队列 |

映射规则判断

  1. 在容量调度中,如果某一条规则符合,那么就返回一个queue,如果这个queue存在就提交到该queue中,如果该queue不存在就不会向下在判断别的规则,直接去default