Throttling SharePoint Workflow

Sometimes the default SharePoint configuration for executing the workflows might not be feasible if you have more workflows in the system.

You might come across the following error when you do so .
“Due to heavy load, the latest workflow operation has been queued. It will attempt to resume at a later time” is coming sometimes”
to overcome this problem sharepoint gives you the flexibility to throttle the number of queues the thread can run.

There are two ways which you can attack it
1.Increasing the Throttle Size and
2.Increasing Batch Size

Throttle Size: Is a farm setting in which system defined for the maximum number of concurrently running workflows on the farm, The default value is 15
To check the exisiting configuration you can run this powershell command
Get-SPFarmConfig | Select WorkflowPostponeThreshold
to modify this you can use
Set-SPFarmConfig -WorkflowPostponeThreshold 50
where 50 is value you set to run for concurrency.

Batch Size: It is the items that are allowed in the queue of the Timer Service. Since Timer Service handles lots of other services, workflow is not necessarily its main priority.
To check the exisiting configuration you can run this powershell command
Get-SPFarmConfig | Select WorkflowBatchSize
to modify this you can use
Set-SPFarmConfig -WorkflowBatchSize 150
where 50 is value you set to run for BatchSize.

Leave a Reply

Your email address will not be published. Required fields are marked *

Bitnami