Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
CleanupInterval time.Duration `mapstructure:"cleanupInterval"`
DefaultNamespace string `mapstructure:"defaultNamespace"`
HostType armotypes.HostType `mapstructure:"hostType"`
DisableVirtualCRDs bool `mapstructure:"disableVirtualCRDs"`
DisableSeccompProfileEndpoint bool `mapstructure:"disableSeccompProfileEndpoint"`
ExcludeJsonPaths []string `mapstructure:"excludeJsonPaths"`
MaxContainerProfileSize int `mapstructure:"maxContainerProfileSize"`
MaxSniffingTime time.Duration `mapstructure:"maxSniffingTimePerContainer"`
RateLimitPerClient float64 `mapstructure:"rateLimitPerClient"`
RateLimitTotal int `mapstructure:"rateLimitTotal"`
ServerBindAddress string `mapstructure:"serverBindAddress"`
ServerBindPort int `mapstructure:"serverBindPort"`
TlsClientCaFile string `mapstructure:"tlsClientCaFile"`
TlsServerCertFile string `mapstructure:"tlsServerCertFile"`
TlsServerKeyFile string `mapstructure:"tlsServerKeyFile"`
// SqlitePoolSize is the capacity of the SQLite connection pool. Defaults
// to file.DefaultPoolSize (10) when unset. This is a cheap, reversible
// tuning knob for Phase 0 of the storage-locking investigation (see
// docs/features/storage-lock-pool-metrics.md) — it does not change any
// lock/connection acquisition ordering.
SqlitePoolSize int `mapstructure:"sqlitePoolSize"`
// SqliteBusyTimeout is the busy-timeout applied to every pooled SQLite
// connection. Defaults to file.DefaultBusyTimeout (60s) when unset.
SqliteBusyTimeout time.Duration `mapstructure:"sqliteBusyTimeout"`
// PoolTimeout bounds how long a caller blocks in pool.Take() waiting for a free
// connection from the SQLite connection pool, before failing fast with a
// ServerTimeout+Retry-After signal. Defaults to file.DefaultPoolTimeout (5s) when
// unset. This is distinct from SqliteBusyTimeout, which governs SQLite's own
// internal busy-handler on a single already-acquired connection. See
// docs/features/storage-lock-pool-metrics.md.
PoolTimeout time.Duration `mapstructure:"poolTimeout"`
// SingleWriterEnabled gates the single-dedicated-writer + priority-queue
// write path prototyped on spike/single-writer-priority-queue (see
// pkg/registry/file/singlewriter.go). Defaults to false: when unset,
// Create/GuaranteedUpdate/SaveContainerProfile behave exactly as they did
// before that path existed. This is a spike/prototype flag, not yet
// validated for production use.
SingleWriterEnabled bool `mapstructure:"singleWriterEnabled"`
// New fields for per-kind queue/worker/object size config
KindQueues map[string]KindQueueConfig `mapstructure:"kindQueues"`
DefaultQueueLength int `mapstructure:"defaultQueueLength"`
DefaultWorkerCount int `mapstructure:"defaultWorkerCount"`
DefaultMaxObjectSize int `mapstructure:"defaultMaxObjectSize"`
// Debugging
QueueManagerEnabled bool `mapstructure:"queueManagerEnabled"`
QueueTimeoutPrint bool `mapstructure:"queueTimeoutPrint"`
QueueTimeout int `mapstructure:"queueTimeout"`
QueueProcessingStatsPrint bool `mapstructure:"queueProcessingStatsPrint"`
}
func LoadConfig ¶
LoadConfig reads configuration from file or environment variables.
type KindQueueConfig ¶ added in v0.0.199
Click to show internal directories.
Click to hide internal directories.