Share via


如何設定 Runbook 節流功能

 

發佈時間: 2016年3月

適用於: System Center 2012 SP1 - Orchestrator, System Center 2012 - Orchestrator, System Center 2012 R2 Orchestrator

依預設,每部 Runbook 伺服器都設定成最多可同時執行 50 個 Runbook。 您可以使用 Runbook 伺服器 Runbook 節流工具來變更這個數目。 在大部分的情況下,您都可以保留這項預設設定,但是當您考慮是否要變更這項設定時,應該將 Runbook 在特定伺服器上的資源需求納入考量。 如果伺服器上有一些資源需求較高的 Runbook,您可以減少在 Runbook 伺服器上同時執行的 Runbook 數目。 對於需求較低的簡單 Runbook,則可以考慮增加同時執行的 Runbook 數目。

設定 Runbook 伺服器處理的 Runbook 數目上限

  1. 瀏覽至 Runbook 伺服器 Runbook 節流工具的預設儲存資料夾:<System Drive>:\Program Files (x86)\Microsoft System Center 2012\Orchestrator\Management Server

  2. 輸入下列其中一個命令:

    - 將變更套用到一部 Runbook 伺服器:
    
      **aspt \<RunbookServerName\> \<MaximumRunningRunbooks\>.**
    
      例如,若要將 RunbookServer1 執行的 Runbook 數目上限設定為 40:
    
      **aspt RunbookServer1 40**
    
    - 將變更套用到所有 Runbook 伺服器:
    
      **aspt \* \<MaximumRunningRunbooks\>.**
    
      例如,若要將所有 Runbook 伺服器執行的 Runbook 數目上限設定為 40:
    
      **aspt \* 40**
    
  3. 重新啟動 Orchestrator Runbook Service