schema configuration
cyoda-go version 0.6.2
config.schema
Section titled “config.schema”config.schema — schema-extension log tuning.
SYNOPSIS
Section titled “SYNOPSIS”cyoda maintains a schema-extension log for tracking model schema changes over time. These variables control savepoint frequency and retry behaviour when extending schemas on storage backends.
OPTIONS
Section titled “OPTIONS”CYODA_SCHEMA_SAVEPOINT_INTERVAL— number of schema extensions between savepoint rows in the schema-extension log (default:64, minimum:1). Lower values increase write amplification but reduce recovery time after a crash.CYODA_SCHEMA_EXTEND_MAX_RETRIES— plugin-layer retry budget forExtendSchemaon backends that support native schema extension with optimistic concurrency (default:8, minimum:1). Increase if you observe contention under high concurrency.
EXAMPLES
Section titled “EXAMPLES”High-write workload (more frequent savepoints):
CYODA_SCHEMA_SAVEPOINT_INTERVAL=16CYODA_SCHEMA_EXTEND_MAX_RETRIES=16Default:
CYODA_SCHEMA_SAVEPOINT_INTERVAL=64CYODA_SCHEMA_EXTEND_MAX_RETRIES=8SEE ALSO
Section titled “SEE ALSO”- config
- models
- run
See also
Section titled “See also”cyoda help config— Environment variables beat default values. The_FILEsuffix variant takes precedence over the plain variable when both are set — for example,CYODA_POSTGRES_URL_FILE=/etc/secrets/db-urlwins overCYODA_POSTGRES_URL. There are no command-line flags for configuration values; env vars are the sole configuration surface.cyoda help models— A model is a named, versioned schema registered per tenant. Every entity in the system is an instance of exactly one model. Models are identified by(entityName, modelVersion). The model ID is a deterministic UUID v5 derived from that key:UUID.newSHA1(NameSpaceURL, "{entityName}.{modelVersion}").cyoda help run— cyoda-go is a single-process, multi-tenant REST and gRPC API server. It starts in serving mode when invoked with no subcommand. All configuration is via environment variables with aCYODA_prefix. The binary, Docker image, and Helm chart run the same binary; only the environment configuration differs across run modes.
Raw formats
Section titled “Raw formats”/help/config/schema.json— full descriptor (matchesGET /help/{topic}envelope)/help/config/schema.md— body only