Class RuntimeConfiguration
- Namespace
- AiDotNet.Deployment.Runtime
- Assembly
- AiDotNet.dll
Configuration for the deployment runtime environment.
public class RuntimeConfiguration
- Inheritance
-
RuntimeConfiguration
- Inherited Members
Properties
AutoWarmUp
Gets or sets whether to enable automatic model warm-up on registration (default: true).
public bool AutoWarmUp { get; set; }
Property Value
CacheEvictionPolicy
Gets or sets the cache eviction policy.
public CacheEvictionPolicy CacheEvictionPolicy { get; set; }
Property Value
CacheSizeMB
Gets or sets the cache size in megabytes (default: 100 MB).
public double CacheSizeMB { get; set; }
Property Value
EnableABTesting
Gets or sets whether to enable A/B testing support (default: false).
public bool EnableABTesting { get; set; }
Property Value
EnableCaching
Gets or sets whether to enable model caching (default: true).
public bool EnableCaching { get; set; }
Property Value
EnableGpuAcceleration
Gets or sets whether to enable GPU acceleration for inference (default: true). Falls back to CPU if GPU is not available.
public bool EnableGpuAcceleration { get; set; }
Property Value
EnableHealthChecks
Gets or sets whether to enable health checks (default: true).
public bool EnableHealthChecks { get; set; }
Property Value
EnablePerformanceMonitoring
Gets or sets whether to enable performance monitoring (default: true).
public bool EnablePerformanceMonitoring { get; set; }
Property Value
EnableTelemetry
Gets or sets whether to enable telemetry collection (default: true).
public bool EnableTelemetry { get; set; }
Property Value
EnableVersioning
Gets or sets whether to enable versioning (default: true).
public bool EnableVersioning { get; set; }
Property Value
HealthCheckIntervalSeconds
Gets or sets the health check interval in seconds (default: 300 = 5 minutes).
public int HealthCheckIntervalSeconds { get; set; }
Property Value
InferenceTimeoutSeconds
Gets or sets the inference timeout in seconds (default: 30).
public int InferenceTimeoutSeconds { get; set; }
Property Value
MaxVersionsPerModel
Gets or sets the maximum number of versions to keep per model (default: 3).
public int MaxVersionsPerModel { get; set; }
Property Value
ModelLoadTimeoutSeconds
Gets or sets the model load timeout in seconds (default: 60).
public int ModelLoadTimeoutSeconds { get; set; }
Property Value
PerformanceAlertThresholdMs
Gets or sets the performance alert threshold in milliseconds (default: 1000).
public double PerformanceAlertThresholdMs { get; set; }
Property Value
TelemetryBufferSize
Gets or sets the telemetry buffer size (default: 1000 events).
public int TelemetryBufferSize { get; set; }
Property Value
TelemetryFlushIntervalSeconds
Gets or sets the telemetry flush interval in seconds (default: 60).
public int TelemetryFlushIntervalSeconds { get; set; }
Property Value
TelemetrySamplingRate
Gets or sets the telemetry sampling rate (0.0 to 1.0, default: 1.0 = 100%).
public double TelemetrySamplingRate { get; set; }
Property Value
WarmUpIterations
Gets or sets the number of warm-up iterations (default: 10).
public int WarmUpIterations { get; set; }
Property Value
Methods
ForDevelopment()
Creates a configuration for development/testing.
public static RuntimeConfiguration ForDevelopment()
Returns
ForEdge()
Creates a minimal configuration for edge devices.
public static RuntimeConfiguration ForEdge()
Returns
ForProduction()
Creates a configuration for production deployment.
public static RuntimeConfiguration ForProduction()