队列控制

Select发动机管理>队列控制,Job Routing Rules, orEngine Assignment Rules

队列控制是一个针对的机制FME Engines运行特定工作。使用队列控件的原因包括:

  • 控制作业请求的优先级。
  • 将作业发送到FME引擎,靠近数据源。
  • Reserving FME Engines for scheduled tasks.
  • Reserving Dynamic Engines for specific jobs.
  • 保留一些用于快速工作的FME发动机,以及用于高负荷作业的其他人。
  • Sending a job to an FME Engine that supports a particular format.

How It Works

Queue control is configured through three mechanisms that work together to ensure the right engines run your jobs.

  • Job Routing Rules:要满足的工作的标准,以资格获得特定队列。标准可以基于工作空间的性能指标,这些标准是在上报的工作区page. Or, the criteria can be based simply on the repository to which a workspace belongs.
  • Engine Assignment Rules: The assignment of engines to queues based on engine properties, which are reported on the引擎标签。或者,可以通过引擎名称将引擎分配给队列。
  • 队列: The FME Server mechanism that holds jobs and routes them to engines based on job routing and engine assignment rules.

例子

Things to Consider

使用队列控制时,请记住以下内容:

  • You can assign priorities to queues. Depending on timing, jobs that route to higher-priority queues may be submitted before those in lower-priority queues.
  • 作业路由规则只能应用于一个队列。但是,可以将队列分配给多个规则。如果作业符合多个规则的标准,则在“作业路由规则”选项卡上以命令列出优先级的规则。有关更多信息,请参阅优先考虑作业路由规则(below).
  • 提交作业时,它可能有资格获得多个队列。但是,如果重新提交相同的作业,则将其分配了先前其余的相同队列。
  • Jobs that do not route to any user-defined queues route to the Default queue.
  • For a metric-based job routing rule to take effect, the workspace must have run enough times since statistics are initially collected or reset to generate a statistically significant sample. The required minimum number of jobs to run for a significant sample may vary between 30 to 100, depending on variability of data and the degree of precision required by the rule (for example, minutes versus seconds). The more variable the input data, and the higher degree of precision that is required of this data, the larger the sample size that is required. If a job routing rule does not reference a statistically significant sample of jobs run, the next applicable rule takes effect, by priority, or the job routes to the Default queue.
  • Explicitly defining a queue, such as on theRun Workspacepage, a运行一个工作区action, in附表, or through工作指令,有效地绕过作业路由规则。
  • You can view the queues to which your FME Engines are assigned on the引擎标签。

Getting Started with Queue Control

要开始使用队列控件,请创建自己的队列,指定适用于每个队列的作业路由规则,并将引擎分配以运行排队作业。

管理队列和规则

优先考虑作业路由规则

A rule can apply to only one queue. However, a queue can be assigned to multiple rules. If a job meets the criteria for more than one rule, the rules that takes precedence are listed in order on the Job Routing Rules tab. To change the priority of a rule, click the Priority icon beside the rule, and selectMove Up或者向下移动

编辑队列和规则

Open the队列,Job Routing Rules, orEngine Assignment Rules选项卡,具体取决于要编辑的内容。单击队列或规则以编辑。

启用和禁用规则

Open theJob Routing Rules或者Engine Assignment Rules选项卡,具体取决于要编辑的内容。Select one or more rules, click行动, and selectEnable或者Disable

禁用作业路由规则时,否则基于规则将队列路由到队列的作业,而不是优先级(参见优先考虑作业路由规则, 以上)。如果没有其他规则适用,则作业路由到默认队列。

禁用引擎分配规则时,否则将基于此规则路由到引擎的作业,而不是将其路由到默认队列。

删除队列和规则

Note: ">Note:您无法删除默认队列。

Open the队列,Job Routing Rules, orEngine Assignment Rulestab, depending on what you want to remove. Select one or more queues or rules, click行动, and select去掉