Class ResourceBasedTunerOptions
- Namespace
- Temporalio.Worker.Tuning
- Assembly
- Temporalio.dll
Options for target resource usage.
public sealed record ResourceBasedTunerOptions : IEquatable<ResourceBasedTunerOptions>
- Inheritance
-
ResourceBasedTunerOptions
- Implements
- Inherited Members
Remarks
WARNING: Resource based tuning is currently experimental.
Constructors
ResourceBasedTunerOptions(double, double)
Options for target resource usage.
public ResourceBasedTunerOptions(double TargetMemoryUsage, double TargetCpuUsage)
Parameters
TargetMemoryUsage
doubleA value between 0 and 1 that represents the target (system) memory usage. It's not recommended to set this higher than 0.8, since how much memory a workflow may use is not predictable, and you don't want to encounter OOM errors.
TargetCpuUsage
doubleA value between 0 and 1 that represents the target (system) CPU usage. This can be set to 1.0 if desired, but it's recommended to leave some headroom for other processes.
Remarks
WARNING: Resource based tuning is currently experimental.
Properties
TargetCpuUsage
A value between 0 and 1 that represents the target (system) CPU usage. This can be set to 1.0 if desired, but it's recommended to leave some headroom for other processes.
public double TargetCpuUsage { get; init; }
Property Value
TargetMemoryUsage
A value between 0 and 1 that represents the target (system) memory usage. It's not recommended to set this higher than 0.8, since how much memory a workflow may use is not predictable, and you don't want to encounter OOM errors.
public double TargetMemoryUsage { get; init; }