Table of Contents

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

bool

CacheEvictionPolicy

Gets or sets the cache eviction policy.

public CacheEvictionPolicy CacheEvictionPolicy { get; set; }

Property Value

CacheEvictionPolicy

CacheSizeMB

Gets or sets the cache size in megabytes (default: 100 MB).

public double CacheSizeMB { get; set; }

Property Value

double

EnableABTesting

Gets or sets whether to enable A/B testing support (default: false).

public bool EnableABTesting { get; set; }

Property Value

bool

EnableCaching

Gets or sets whether to enable model caching (default: true).

public bool EnableCaching { get; set; }

Property Value

bool

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

bool

EnableHealthChecks

Gets or sets whether to enable health checks (default: true).

public bool EnableHealthChecks { get; set; }

Property Value

bool

EnablePerformanceMonitoring

Gets or sets whether to enable performance monitoring (default: true).

public bool EnablePerformanceMonitoring { get; set; }

Property Value

bool

EnableTelemetry

Gets or sets whether to enable telemetry collection (default: true).

public bool EnableTelemetry { get; set; }

Property Value

bool

EnableVersioning

Gets or sets whether to enable versioning (default: true).

public bool EnableVersioning { get; set; }

Property Value

bool

HealthCheckIntervalSeconds

Gets or sets the health check interval in seconds (default: 300 = 5 minutes).

public int HealthCheckIntervalSeconds { get; set; }

Property Value

int

InferenceTimeoutSeconds

Gets or sets the inference timeout in seconds (default: 30).

public int InferenceTimeoutSeconds { get; set; }

Property Value

int

MaxVersionsPerModel

Gets or sets the maximum number of versions to keep per model (default: 3).

public int MaxVersionsPerModel { get; set; }

Property Value

int

ModelLoadTimeoutSeconds

Gets or sets the model load timeout in seconds (default: 60).

public int ModelLoadTimeoutSeconds { get; set; }

Property Value

int

PerformanceAlertThresholdMs

Gets or sets the performance alert threshold in milliseconds (default: 1000).

public double PerformanceAlertThresholdMs { get; set; }

Property Value

double

TelemetryBufferSize

Gets or sets the telemetry buffer size (default: 1000 events).

public int TelemetryBufferSize { get; set; }

Property Value

int

TelemetryFlushIntervalSeconds

Gets or sets the telemetry flush interval in seconds (default: 60).

public int TelemetryFlushIntervalSeconds { get; set; }

Property Value

int

TelemetrySamplingRate

Gets or sets the telemetry sampling rate (0.0 to 1.0, default: 1.0 = 100%).

public double TelemetrySamplingRate { get; set; }

Property Value

double

WarmUpIterations

Gets or sets the number of warm-up iterations (default: 10).

public int WarmUpIterations { get; set; }

Property Value

int

Methods

ForDevelopment()

Creates a configuration for development/testing.

public static RuntimeConfiguration ForDevelopment()

Returns

RuntimeConfiguration

ForEdge()

Creates a minimal configuration for edge devices.

public static RuntimeConfiguration ForEdge()

Returns

RuntimeConfiguration

ForProduction()

Creates a configuration for production deployment.

public static RuntimeConfiguration ForProduction()

Returns

RuntimeConfiguration