FME Flow: 2024.2

Queue Control

Select Engine Management > Queues, Job Routing Rules, or Engine Assignment Rules.

Queue control is a mechanism for targeting FME Engines to run specific jobs. The reasons for using queue control include:

  • Controlling the priority of job requests.
  • Sending a job to an FME Engine in close proximity to a data source.
  • Reserving FME Engines for scheduled tasks.
  • Reserving Dynamic Engines for specific jobs.
  • Reserving some FME Engines for quick jobs, and others for high-load jobs.
  • 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: The criteria for a job to meet in order to qualify for a specific queue. Criteria can be based on performance metrics of workspaces, which are reported on the Workspaces page. Or, the criteria can be based on other properties of workspaces, such as name or repository.
  • Engine Assignment Rules: The assignment of engines to queues based on properties of engines or queues. Alternatively, engines can be assigned to queues by engine name. Optionally, with Active Periods, engine assignment rules can apply only at specified times.
  • Queues: The FME Flow mechanism that holds jobs and routes them to engines based on job routing and engine assignment rules.

Example: Routing Jobs from a Specified Repository

Example: Routing Jobs Based on Performance Metrics

Things to Consider

When working with queue control, keep in mind the following:

  • Queue priority: 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.
  • Job routing priority: A job routing 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. For more information, see Prioritizing Job Routing Rules (below).
  • When a job is submitted, it may qualify for more than one queue. However, if that same job is resubmitted, it is assigned the same queue from which it ran previously.
  • 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 the Run Workspace page, a Run a Workspace action, in Schedules, or through Job Directives, effectively bypasses job routing rules.
  • You can view the queues to which your FME Engines are assigned on the Overview or Queues tab of the Engine Management page. Additionally, to assist in balancing engine load, you can set a limit on the number of queues to which engines can be assigned.

Getting Started with Queue Control

To get started with queue control, create your own queues, specify the job routing rules that apply to each queue, and assign engines to run queued jobs.

Managing Queues and Rules

Viewing and Resetting Queue Statistics

FME Flow keeps track of statistics on completed jobs for each queue. On the Queues tab, select a queue of interest. In the right pane, click Stats. Statistics values are cumulative until explicitly reset. To reset, click Reset Statistics.

Warning  Reset Statistics affects all queues.

Prioritizing Job Routing Rules

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 select Move Up or Move Down.

Updating the Priorities of Multiple Queues

On the Queues tab, click Edit Priorities. Move the cursor over the Priority field for the queue you want to configure. Use the up/down arrows to change the priority as desired. Click Save.

Limiting the Number of Queues to which Engines can Be Assigned.

You can view the queues to which your FME Engines are assigned on the Overview or Queues tab of the Engine Management page. You may find that some engines bear a heavier queue load than others based on the current configuration of your engine assignment rules. To redistribute this load, you can set a limit on the number of queues to which engines can be assigned.

From the Engine Assignment Rules tab, click Set Limit. On the Queue Limit Per Engine dialog, move the Unlimited Queues slider to the left, specify the Maximum Queues per Engine, and click OK.

Editing Queues

Open the Queues tab and click on the queue you want to edit. In the right pane, click the edit icon (at top right).

Editing Rules

Open the Job Routing Rules, or Engine Assignment Rules tab, depending on what you want to edit. Click on a rule to edit it.

Enabling and Disabling Rules

Open the Job Routing Rules or Engine Assignment Rules tab, depending on what you want to edit. Select one or more rules, click Actions, and select Enable or Disable.

When a job routing rule is disabled, jobs that would otherwise route to a queue based on the rule instead route to the next applicable rule, by priority (see Prioritizing Job Routing Rules, above). If no other rules apply, jobs route to the Default queue.

When an engine assignment rule is disabled, jobs that would otherwise route to engines based on this rule instead route to the Default queue.

Removing Queues

Note  You cannot remove the Default queue.

Open the Queues tab. Select the queue you want to remove. Remove. In the right pane, click the remove icon (at top right).

Removing Rules

Open the Job Routing Rules,or Engine Assignment Rules tab, depending on what you want to remove. Select one or more or rules, click Actions, and select Remove.