-
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.
feat: add settings to set concurrent encode limit
- Loading branch information
1 parent
f1a010e
commit 25c1ac0
Showing
6 changed files
with
42 additions
and
5 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
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
17 changes: 17 additions & 0 deletions
17
src/Service.Encoder/src/Application.Components/Settings/LimitSettings.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,17 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace Giantnodes.Service.Encoder.Application.Components.Settings; | ||
|
||
public sealed class LimitSettings | ||
{ | ||
public const string ConfigurationSection = "Limit"; | ||
|
||
/// <summary> | ||
/// Specifies the maximum number of file encoding jobs that can be processed concurrently. | ||
/// | ||
/// It should be carefully chosen based on the available system resources, setting a higher value may improve | ||
/// overall throughput, but it could also lead to resource contention and degraded performance or stability. | ||
/// </summary> | ||
[Required] | ||
public int MaxConcurrentEncodes { get; init; } | ||
} |
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