CrucibleIR.Deployment.Config (CrucibleIR v0.3.0)

View Source

Configuration for model deployment.

Defines where and how a model version should be deployed, including resource requirements and scaling settings.

Fields

  • :id - Deployment identifier (required)
  • :model_version_id - Model version to deploy (required)
  • :target - Deployment target configuration
  • :replicas - Number of replicas
  • :resources - Resource requirements
  • :scaling - Auto-scaling configuration
  • :environment - Target environment
  • :strategy - Deployment strategy
  • :health_check - Health check settings
  • :endpoint - API endpoint configuration
  • :metadata - Additional metadata
  • :options - Additional options

Examples

iex> config = %CrucibleIR.Deployment.Config{
...>   id: :deploy_prod,
...>   model_version_id: :v1_0_0,
...>   environment: :production
...> }
iex> config.environment
:production

Summary

Types

environment()

@type environment() :: :development | :staging | :production | atom()

strategy()

@type strategy() :: :rolling | :blue_green | :canary | :recreate | atom()

t()

@type t() :: %CrucibleIR.Deployment.Config{
  endpoint: map() | nil,
  environment: environment(),
  health_check: map() | nil,
  id: atom(),
  metadata: map() | nil,
  model_version_id: atom(),
  options: map() | nil,
  replicas: pos_integer(),
  resources: map() | nil,
  scaling: map() | nil,
  strategy: strategy(),
  target: map() | nil
}