Set-SPProjectQueueSettings

設定特定 Project Server 服務應用程式的一或多個 Project Server 佇列設定值。

Syntax

Set-SPProjectQueueSettings
   [-ServiceApplication <PsiServiceApplicationPipeBind>]
   [-AssignmentCollection <SPAssignmentCollection>]
   [-CleanupNonSuccessAgeLimit <Int32>]
   [-CleanupSuccessAgeLimit <Int32>]
   [-MaxConnections <Int32>]
   [-MaxDegreeOfConcurrency <Int32>]
   [-MsgRetryInterval <Int32>]
   [-MsgRetryLimit <Int32>]
   [-PeriodicTasksInterval <Int32>]
   [-QueueTimeout <Int32>]
   [-SqlCommandTimeout <Int32>]
   [-SqlRetryInterval <Int32>]
   [-SqlRetryLimit <Int32>]
   [-NetTcpPort <Int32>]
   [<CommonParameters>]

Description

設定特定 Project Server 服務應用程式的一或多個 Project Server 佇列設定值。

如需有關適用於 Project Server 的 Windows PowerShell 權限和最新資訊,請參閱位於 https://go.microsoft.com/fwlink/p/?LinkId=251833 的線上文件 (https://go.microsoft.com/fwlink/p/?LinkId=251833)。

範例

----------------------範例-----------------------

Set-SPProjectQueueSettings -ServiceApplication "Project Service Application" -MaxDegreeOfConcurrency 6

此範例會將指定服務應用程式一次可處理的工作數設為最大值 6。

參數

-AssignmentCollection

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-CleanupNonSuccessAgeLimit

This setting determines the age threshold at which any job in a completed, non-successful state (example: Failed But Not Blocking Correlation) can be purged when the Queue Cleanup job runs. The age of each job is determined by the completed date and time. For example, if a job was cancelled at 2/1/2007 10:41 p.m. and the Queue Cleanup job runs at 2/2/2007 11:55 p.m., then the job will not be purged (assuming the Cleanup Age Limit For Non-successful Jobs was 7 days). Because the number of completed, non-successful jobs is usually not high, the Cleanup Age Limit For Non-successful Jobs setting is usually set to a high value of 168 (7 days).

最小值:1;最大值:100000;預設值:168 (7 天)

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-CleanupSuccessAgeLimit

This setting determines the age threshold at which successful jobs can be purged when the Queue Cleanup job runs. The age of each job is determined by the completed date and time. For example, if a job succeeded at 2/1/2007 10:41 p.m. and the Queue Cleanup job runs at 2/2/2007 11:55 p.m., then the job will be purged (assuming the Cleanup Age Limit For Successful Jobs was 1 day). Since the number of successful jobs is usually high, the Cleanup Age Limit For Successful Jobs setting is usually set to a low value of 24 (1 day).

最小值:1;最大值:100000;預設值:24 (1 天)

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-MaxConnections

伺服器上允許處於擱置分派狀態的佇列連線數上限。

預設值:10

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-MaxDegreeOfConcurrency

此佇列為多執行緒,可讓多個工作同時處理。 此設定會限制佇列的並行程度。 請注意,此設定是根據 Project Server 服務應用程式。

最小值:1;最大值:10;預設值:4

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-MsgRetryInterval

如果工作處理失敗的原因是暫時性問題 (例如 SQL 死結),而不是工作失敗,佇列將會等到「重試間隔」時間過了之後,再重試工作。

最小值:0 (立即重試);最大值:300000 (5 分鐘);預設值:1000 (1 秒鐘)

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-MsgRetryLimit

If job processing fails due to transient issues (like a SQL Deadlock), instead of failing the job, the Queue will retry the job. The number of retries is bound by the Retry Limit.

最小值:0 (不重試);最大值:100;預設值:5

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-NetTcpPort

設定專案佇列服務使用的 TCP 埠。

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-PeriodicTasksInterval

佇列系統已執行數個簿記任務。 一些範例包括喚醒處於「睡眠中」狀態的工作、更新活動訊號時間戳記、檢查是否需要執行佇列清除等等。 此設定控制任務執行的時間間隔。

最小值:500 (1/2 秒);最大值:300000 (5 分鐘);預設值:10000 (10 秒)

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-QueueTimeout

佇列系統具備容錯移轉復原功能。 如果伺服器陣列包含多部執行 Project Server 應用程式服務的伺服器,而佇列服務在一部伺服器上失敗,則作業會自動轉散發給佇列服務在線上的其他伺服器。 如果無法在「佇列逾時」間隔內,從佇列健康狀況計時器工作存取佇列服務,該佇列服務將被視為逾時。

最小值:5 分鐘;最大值:60 分鐘;預設值:15 分鐘

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-ServiceApplication

指定要設為目標的 Project Server 服務應用程式。

此類型必須是格式為 12345678-90ab-cdef-1234-567890bcdefgh 的有效 GUID;Project Server 服務應用程式的有效名稱, (例如 ProjectServiceApp1) ;或有效 PsiServiceApplication 物件的實例。

Type:PsiServiceApplicationPipeBind
Aliases:sa
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-SqlCommandTimeout

The Queue makes SQL calls for retrieving and executing jobs. This setting controls the timeout value for all such calls. If any job fails due to a SQL Timeout error, administrators can increase this setting and retry the job.

最小值:30 秒;最大值:86400 (1 天);預設值:1800 (30 分鐘)

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-SqlRetryInterval

如果佇列因為暫時性 SQL 問題而無法連線到Project Web App資料庫, (像是 SQL 死結) ,佇列將會等候 SQL 重試間隔過去,然後重試查詢。

最小值:0 (立即重試);最大值:60000 (1 分鐘);預設值:1000 (1 秒鐘)

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-SqlRetryLimit

如果佇列因為暫時性 SQL 問題而無法連線到Project Web App資料庫, (如 SQL 死結) ,佇列會在 SQL 重試間隔過後重試查詢。 重試的次數受到「SQL 重試限制」的限制。

最小值:0 (不重試);最大值:100;預設值:5

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition