Get-LocalNodeMaxConcurrentTaskPolicy

Synopsis

Gets the policy that is used to determine the maximum number of tasks that the node will run at once.

Syntax

Get-LocalNodeMaxConcurrentTaskPolicy

Detailed Description

The Get-LocalNodeMaxConcurrentTaskPolicy function returns an object that represents the policy used to determine the maximum number of concurrent tasks that the node will run.

Laserfiche Distributed Computing Cluster currently supports three policies for setting the maximum number of concurrent tasks:

  • Automatic: The Automatic policy uses a number that the service estimates will maximize throughput.
  • NumberOfCoresOnNode: The NumberOfCoresOnNode uses the number of cores on the machine.
  • ExplicitNumber: The ExplicitNumber policy uses a user specified number.

Inputs

None

You cannot pipe input to this function.

Outputs

Laserfiche.DistributedComputingCluster.PowerShellModules.LfDccLocalNodeAdmin.Data.LocalNodeMaxConcurrentTaskCountPolicy

An object that represents the policy that is used to determine the maximum number of tasks that the node will run at once.

Examples

Example 1

This command gets the policy that is used to determine the maximum number of tasks that the node will run at once. It is using the Automatic policy.

PS C:\> Get-LocalNodeMaxConcurrentTaskPolicy
	PolicyType                           ExplicitCount
	----------                           -------------
	Automatic                                       0

Example 2

This command gets the policy used to determine the maximum number of tasks that the node will run at once. It sets ExplicitNumber policy to run up to six tasks at once.

PS C:\> Get-LocalNodeMaxConcurrentTaskPolicy
	PolicyType                           ExplicitCount
	----------                           -------------
	ExplicitNumber                                  6

Related Links

Set-LocalNodeMaxConcurrentTaskPolicy

Reset-LocalNodeMaxConcurrentTaskPolicy