forked from Azure/azure-functions-host
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Rpc]Add processOptions in worker.config (Azure#6806)
- Loading branch information
1 parent
2169801
commit 6976eb5
Showing
9 changed files
with
206 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/WebJobs.Script/Workers/ProcessManagement/WorkerProcessCountOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
|
||
using System; | ||
|
||
namespace Microsoft.Azure.WebJobs.Script.Workers | ||
{ | ||
public class WorkerProcessCountOptions | ||
{ | ||
/// <summary> | ||
/// Gets or sets a value indicating whether to set FUNCTIONS_WORKER_PROCESS_COUNT to number of cpu cores on the host machine | ||
/// </summary> | ||
public bool SetWorkerCountToNumberOfCpuCores { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets number of worker processes to start. Default process count is 1 | ||
/// </summary> | ||
public int ProcessCount { get; set; } = 1; | ||
|
||
/// <summary> | ||
/// Gets or sets maximum number worker processes allowed. Default max process count is 10 | ||
/// </summary> | ||
public int MaxProcessCount { get; set; } = 10; | ||
|
||
/// <summary> | ||
/// Gets or sets interval between process startups. Default 10secs | ||
/// </summary> | ||
public TimeSpan ProcessStartupInterval { get; set; } = TimeSpan.FromSeconds(10); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.