Skip to main content

DistributeLoad

Description

Distributes FlowFiles to downstream processors based on a Distribution Strategy. If using the Round Robin strategy, the default is to assign each destination a weighting of 1 (evenly distributed). However, optional properties can be added to the change this; adding a property with the name '5' and value '10' means that the relationship with name '5' will be receive 10 FlowFiles in each iteration instead of 1.

Tags

distribute, load balance, round robin, route, weighted

Properties

In the list below required Properties are shown with an asterisk (*). Other properties are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.

Display NameAPI NameDefault ValueAllowable ValuesDescription
Number of Relationships *Number of Relationships1Determines the number of Relationships to which the load should be distributed
Distribution Strategy *Distribution Strategyround robin
  • round robin
  • next available
  • overflow
Determines how the load will be distributed. Relationship weight is in numeric order where '1' has the greatest weight.

Dynamic Properties

NameValueDescription
The relationship name (positive number)The relationship Weight (positive number)Adding a property with the name '5' and value '10' means that the relationship with name '5' will receive 10 FlowFiles in each iteration instead of 1.

Supports Expression Language: No

Relationships

NameDescription
1Where to route flowfiles for this relationship index

Reads Attributes

This processor does not read attributes.

Writes Attributes

NameDescription
distribute.load.relationshipThe name of the specific relationship the FlowFile has been routed through

State Management

This component does not store state.

Restricted

This component is not restricted.

Input Requirement

This component requires an incoming relationship.

System Resource Considerations

This component does not specify system resource considerations.

See Also