Skip to content

Storage names reference

These names are fixed by the library. They matter when you query the data yourself, back it up, grant database permissions, or keep a dashboard on it. Each name is a constant you can reference in code.

WellKnownCollectionNames, in Cratis.Choreography.Storage.MongoDB:

ConstantCollectionLives inHolds
JobsjobsThe job database of a scope and namespaceJob state
JobStepsjob-stepsThe job databaseJob step state
FailedJobStepsfailed-job-stepsThe job databaseFailed job steps
JobStepPlansjob-step-plansThe job databaseStep plans too large to live inside the job document
PatchespatchesThe patch databaseOne document per applied patch
PatchVersionspatch-versionsThe patch databaseThe patched and host version documents
FactsDatabaseChanged by
Jobs, empty namespace{scope}+jobsMongoDBJobsStorageOptions.DatabaseNameResolver
Jobs, with a namespace{scope}+jobs+{namespace}MongoDBJobsStorageOptions.DatabaseNameResolver
PatcheschoreographyMongoDBPatchStorageOptions.DatabaseName
Grain state and cluster membership of the co-hosted siloorleansCratisChoreographyOptions.DatabaseName

DatabaseNames.ForJobs throws InvalidDatabaseName for a name that is empty, longer than 63 UTF-8 bytes, or contains one of / \ . space " $ * < > : | ? or a null character.

WellKnownTableNames, in Cratis.Choreography.Storage.Sql:

ConstantTableContextHolds
JobsJobsJobsDbContextJob state
JobStepsJobStepsJobsDbContextJob steps, failed ones included, told apart by Status
PatchesPatchesPatchesDbContextOne row per applied patch
PatchVersionsPatchVersionsPatchesDbContextThe patched and host version rows

WellKnownGrainStorageProviders, in Cratis.Choreography. These are the names the grains ask Orleans for, and the names to use when you configure Orleans yourself:

ConstantNameUsed by
JobsjobsJob grains
JobStepsjob-stepsJob step grains
WorkflowsworkflowsThe facts of workflow runs

The patch manager grain is registered as cratis-choreography-patch-manager, with an integer key of 0. It appears in the Orleans placement failure that IPatchRunner waits out while the cluster’s manifests converge.

See also Storage and Choose patch storage.