Placement of PEs during job submission
The Teracloud®
Streams application manager (SAM) service selects the resource where each processing element in a submitted job is placed.
The application manager service chooses resources in accordance with any requirements specified by the stream application or by your job configuration overlays.
You can influence the placement of PEs for a resource by specifying an upper and lower threshold value for the corresponding properties for each of these metrics:
- CPU utilization
- Memory utilization
- Network bandwidth utilization
If any metric value for a resource exceeds its upper threshold, the resource is classified as overloaded. If all the metrics values go below their thresholds, the resource is classified as underloaded.
The application manager service selects the resource that a processing element is associated with from a set of candidate resources in this order:
- If resource load protection is enabled, overloaded resources are removed from consideration for new PE placements. And if all the candidate resources for any PE within a job are overloaded, the job submission fails.
- PE placement scheme. The placement scheme balances the processing load of the resources by examining the number of PEs on the resources. You can change the default placement scheme. See Setting the default placement scheme at the instance or domain level.
- Load thresholds determine tiebreakers for balancedJob or balancedInstance placement schemes. For example, if two candidate resources both have one PE, then the one that is the least loaded is selected.