Skip to content
GitHub

Configuration

This page is the canonical lookup for every Fleans configuration key, what it does, and which environment variable equivalent operators set on a container or systemd unit. If you’re trying to figure out why Persistence__Provider isn’t taking effect on a production silo, or whether Authentication__ClientId belongs on the API or the Web host, this is the right page.

Fleans configuration uses two notations that map onto each other via .NET’s standard configuration provider:

Every key has a colon form for appsettings.json and CLI args and a double-underscore form for environment variables; each key group switches one behaviour at silo startup. Open interactive diagram ↗
  • A:B:C — colon-separated, used in appsettings.json and CLI args. Example: Fleans:Streaming:Provider.
  • A__B__C — double-underscore-separated, used in environment variables. Example: Fleans__Streaming__Provider.

The mapping is mechanical: each : in a config key becomes __ (double underscore) when the value is supplied as an environment variable. This is the behavior of EnvironmentVariablesConfigurationProvider — the same convention every ASP.NET Core / .NET host uses, not a Fleans invention.

Terminal window
# These three are equivalent:
appsettings.json: "Fleans": { "Role": "Worker" }
CLI: dotnet run -- --Fleans:Role Worker
env var: Fleans__Role=Worker dotnet run

For all keys below, the column “Env var” shows the double-underscore form; the column “Config key” shows the canonical colon form you’d put in appsettings.json.

These are the keys every production silo reads at startup.

Env varConfig keyRead atDefault
Fleans__RoleFleans:RoleFleans.Api, Fleans.WorkerHost"Combined" (Api), "Worker" (WorkerHost — defaulted at startup if absent)

Allowed values: Core, Worker, Combined (case-insensitive), plus Api on Fleans.Api. Invalid values throw at startup. The role is stamped into the Orleans SiloName as {role}-{machine}-{guid}, visible in the Orleans Dashboard’s silo membership page. With Fleans:Kubernetes:Enabled the silo name is the pod name instead, which must start with {role}-.

Api makes Fleans.Api an Orleans client with no grains instead of a silo: it serves only the REST API, so REST capacity scales without adding silos. It joins the cluster through the membership table like the Web and MCP hosts, so it needs the silos’ Fleans:Clustering:Provider and connection, Orleans:ServiceId / Orleans:ClusterId, and the persistence keys (REST reads the query database). Silo-only keys (Fleans:Reminders:*, Fleans:Streaming:*, Fleans:Kubernetes:Enabled, Fleans:LoadShedding:*) are ignored. Run at least one Core or Combined silo next to it.

Env varConfig keyRead atDefault
Persistence__ProviderPersistence:ProviderFleans.ServiceDefaults"Sqlite" (case-insensitive; accepts Sqlite or Postgres)
Persistence__MaxEventsPerLoadPersistence:MaxEventsPerLoadFleans.Persistence1000
Persistence__SnapshotIntervalPersistence:SnapshotIntervalFleans.Persistence500
Persistence__Journal__ProviderPersistence:Journal:ProviderFleans.ServiceDefaultsEmpty = Postgres (case-insensitive; accepts Postgres, Citus or Sqlite). On a SQLite main database without fleans-journal the journal stays in the SQLite file.
Persistence__Journal__Citus__ShardCountPersistence:Journal:Citus:ShardCountFleans.Persistence128 (1–64000; validated at startup; applied when the journal tables are first distributed)

The provider toggle. Postgres runs MigrateAsync() at startup; Sqlite runs EnsureCreated(). SQLite is for local development only, but it is not ignored in containers: an unset provider selects SQLite (a fleans-dev.db file inside the container, lost with it), so always set Persistence__Provider=Postgres on every process. Any other value (typo like PostgreSQL, empty string, whitespace) throws ArgumentException at silo startup so misconfigured deployments fail fast instead of silently falling back to an in-pod SQLite file.

Persistence:Journal:Provider picks the store for the workflow journal (event batches + snapshots), which can live in a different database from everything else — see Separate journal database. Citus is PostgreSQL with the journal tables distributed by instance id at startup. Unknown values throw ArgumentException at startup.

Env varConfig keyRead atDefault
Fleans__Variables__MaxSizeBytesFleans:Variables:MaxSizeBytesFleans.Application1048576 (1 MiB)

The largest variables document, measured as JSON bytes, that one operation may pass to a workflow instance: start variables, activity completion variables (script tasks, custom tasks, REST), a user-task completion and a message delivery. The engine rejects a larger document before it applies anything. REST callers get 400 Bad Request, and a script or custom task fails its activity. An activity failure that carries oversized variables still fails the activity, without those variables. Must be greater than 0; the silo fails at startup otherwise. See Variables and scope.

Env varConfig keyRead atDefault
Fleans__Instances__IdleCollectionAgeFleans:Instances:IdleCollectionAgeFleans.Application (Core silos)00:02:00

How long a workflow instance stays activated in a silo’s memory while nothing calls it. Orleans’ default for every grain is 15 minutes; an instance waiting on a timer, a message or a user task would hold its activation that long (~23 KB each), so many waiting instances fill the silos’ memory. A collected instance reactivates from its journal snapshot when its timer fires or its message arrives. Raise it for processes that receive a call every few minutes, to avoid the reactivation. Must be longer than one minute (Orleans’ collection quantum); the silo fails at startup otherwise.

Env varConfig keyRead atDefault
Fleans__Projector__MaxBatchSizeFleans:Projector:MaxBatchSizeFleans.Application (Worker / Combined silos)64 (1–1000)
Fleans__Projector__MaxBatchDelayMsFleans:Projector:MaxBatchDelayMsFleans.Application (Worker / Combined silos)20
Fleans__Projector__MaxConcurrentBatchesFleans:Projector:MaxConcurrentBatchesFleans.Application (Worker / Combined silos)4
Fleans__Projector__BucketCountFleans:Projector:BucketCountFleans.Application (Core / Combined silos)64 (1–4096)
Fleans__Projector__MaxConcurrentReplaysFleans:Projector:MaxConcurrentReplaysFleans.Application (Worker / Combined silos)8 (1–256)

The projector writes the read model in batches: each silo that runs it groups the projections of many instances into one database write. One batch holds up to MaxBatchSize projections. It waits up to MaxBatchDelayMs for more after its first one, so it adds at most that much lag. Each bucket projector (see BucketCount) waits for its own write before it takes its next notification, so a batch holds at most one projection per bucket projector on the silo: with the default 64 buckets a batch rarely fills, and BucketCount — not MaxBatchSize — is what raises throughput in a burst. A silo writes up to MaxConcurrentBatches batches at the same time. When all of them are in flight, new projections queue (up to MaxBatchSize × MaxConcurrentBatches), and past that the projector stops taking stream notifications until the database catches up. MaxBatchSize=1 turns batching off. BucketCount is how many projectors the instances are spread over: each projects its instances one at a time, so it sets how many projections the cluster runs at once, and the worker holds that many projectors however many instances wait. A higher count projects a burst faster; a slow projection holds back only its own bucket. It is read where instances run (core silos) and can be changed with a restart. MaxConcurrentReplays is how many instance journals a silo’s projectors read at the same time; the others wait their turn. Keep it below the Maximum Pool Size of ConnectionStrings:fleans-journal: when more reads than that run at once, they wait for a connection and fail after the pool’s timeout, which is how a burst of completions used to stall the worker. Invalid values fail the silo at startup. See Read-model batching.

Env varConfig keyRead atDefault
Fleans__Worker__EvaluatorKeyCountFleans:Worker:EvaluatorKeyCountFleans.Application16
Fleans__Worker__ScriptResultTimeoutFleans:Worker:ScriptResultTimeoutFleans.Application00:00:30

Conditions — gateway flows, complex-gateway activation, multi-instance completion and conditional events — are evaluated inside the workflow instance, with no network hop. Script tasks run on the script executor, a stateless worker placed on Worker / Combined silos — or, when the cluster has neither, on any silo (logged as Warning, EventId 11301): the instance dispatches the script to it and the executor reports the result back.

EvaluatorKeyCount is how many grain keys the engine spreads script dispatches (and conditional start events’ evaluations) over. A Core silo sends each key to one worker silo and keeps that choice, so the key count caps how many worker silos one core silo can use. Keep it well above the number of worker silos; a larger value only adds idle activations. On Worker / Combined silos every key runs locally. Set the same value on every silo. Must be greater than 0; the silo fails at startup otherwise.

ScriptResultTimeout is how long an instance waits for a dispatched script’s result before it dispatches the script again — the dispatch or its result may have been lost with a silo. After 3 dispatches without a result the script task fails with a timeout, which an error boundary event can catch. A script may therefore run more than once; only its first result is applied. Keep it above the script timeout (10 s). Must be greater than 0.

Env varConfig keyRead atDefault
Fleans__Signals__BucketCountFleans:Signals:BucketCountFleans.Application64
Fleans__Signals__DeliveryConcurrencyFleans:Signals:DeliveryConcurrencyFleans.Application1

How many buckets the subscriptions of one signal name are spread over. Each bucket is its own grain and holds the workflow instances whose id hashes to it; a broadcast (POST /Execution/signal or a signal throw event) calls every bucket in parallel, so no single grain handles all of a signal’s subscribers. Set the same value on every Fleans process (core and worker silos, API, Web, MCP), and change it only on an empty cluster: a subscription stored under one bucket count is not found by a broadcast under another. Must be greater than 0; the process fails at startup otherwise.

DeliveryConcurrency sets the pace of a broadcast. A signal is not delivered by the call that sends it: the call queues one delivery per waiting instance on the stream provider and returns, and each bucket then signals its instances this many at a time. A broadcast therefore keeps at most BucketCount × DeliveryConcurrency deliveries in flight, however many instances wait for it, and running workflows keep their pace. On the load-test stack the default delivered one signal to 20 000 waiting instances in about 20 s while other workflows kept their start rate. Raise it to deliver faster when the journal and the read-model projector have room. Read only by the silos. Must be greater than 0.

Env varConfig keyRead atDefault
Fleans__Streaming__ProviderFleans:Streaming:ProviderFleans.ServiceDefaults"redis" (case-insensitive; accepts redis, memory, kafka or azurequeue — see Streaming)
Fleans__Streaming__Kafka__BrokersFleans:Streaming:Kafka:BrokersFleans.ServiceDefaults (binding)—
Fleans__Streaming__Kafka__ConsumerGroupFleans:Streaming:Kafka:ConsumerGroup(binding)"fleans"
Fleans__Streaming__Kafka__TopicPrefixFleans:Streaming:Kafka:TopicPrefix(binding)"fleans-"
Fleans__Streaming__Kafka__EnableDeadLetterQueueFleans:Streaming:Kafka:EnableDeadLetterQueue(binding)false (see Streaming)
Fleans__Streaming__Kafka__DeadLetterTopicSuffixFleans:Streaming:Kafka:DeadLetterTopicSuffix(binding)"-dlq"
Fleans__Streaming__Kafka__DeliveryRetryWindowFleans:Streaming:Kafka:DeliveryRetryWindow(binding)unset — MaxEventDeliveryTime applies
Fleans__Streaming__PollPeriodFleans:Streaming:PollPeriodFleans.ServiceDefaults00:00:00.100 (Orleans default)
Fleans__Streaming__MaxEventDeliveryTimeFleans:Streaming:MaxEventDeliveryTimeFleans.ServiceDefaults00:06:00
Fleans__Streaming__Redis__MaxStreamLengthFleans:Streaming:Redis:MaxStreamLengthFleans.ServiceDefaults100000
Fleans__Streaming__Redis__TrimTimeMinutesFleans:Streaming:Redis:TrimTimeMinutesFleans.ServiceDefaults5

PollPeriod is how often every pulling agent reads its queue, for any provider. A stream event (a custom task, a read-model notification) waits up to one period before delivery; a shorter period lowers that wait and polls the backend more often. Must be a positive TimeSpan; the silo fails at startup otherwise.

MaxEventDeliveryTime is how long a silo keeps retrying one stream event before it skips it for good, for any provider; set it on every engine silo. It must be longer than Fleans:ExternalTasks:ExecutionTimeout, and it is also how long a custom task waits for a worker to connect: past it, the task is no longer offered and the activity stays active until settled over REST. Kafka’s DeliveryRetryWindow overrides it when set. Redis__MaxStreamLength caps each Redis stream; trimming ignores whether an entry was delivered, so keep it far above any backlog — see Streaming.

memory is single-silo only — it silently drops cross-silo events. Use redis, kafka or azurequeue for any deployment with more than one silo. See Streaming for at-least-once semantics.

Set on the engine silos, the same value on each. Every custom task goes to a worker connected over gRPC; there is no list of task types to configure. See External workers (gRPC).

Env varConfig keyRead atDefault
Fleans__ExternalTasks__HeartbeatIntervalFleans:ExternalTasks:HeartbeatIntervalFleans.Application00:00:15
Fleans__ExternalTasks__WorkerTimeoutFleans:ExternalTasks:WorkerTimeoutFleans.Application00:00:45
Fleans__ExternalTasks__ExecutionTimeoutFleans:ExternalTasks:ExecutionTimeoutFleans.Application00:05:00

HeartbeatInterval is how often a connected worker is renewed (and sent a heartbeat); a worker not renewed for WorkerTimeout (must be longer) is no longer picked and leaves the catalog. WorkerTimeout is also how long a delivery holds a task without renewing it, so the longest wait before a task held by a silo that died is offered again. ExecutionTimeout is how long the engine waits for one delivery’s outcome before it cancels the task on the worker and delivers it again; keep it below MaxEventDeliveryTime above. Invalid values fail at startup.

Workers built on Fleans.ExternalTasks.Sdk read Fleans:ExternalTaskWorker (EngineUrl, WorkerName, UseGrpcWeb, AccessToken, MaxConcurrentTasks, ReconnectDelay) — see the guide.

Every pending BPMN timer is one Orleans reminder. Every silo — engine and custom worker hosts — must use the same provider.

Env varConfig keyRead atDefault
Fleans__Reminders__ProviderFleans:Reminders:ProviderFleans.ServiceDefaults"Redis" (case-insensitive; accepts Redis or Postgres)
Fleans__Reminders__ReminderLoadingWindowFleans:Reminders:ReminderLoadingWindowFleans.ServiceDefaults (bound onto Orleans ReminderOptions)00:10:00
Fleans__Reminders__RefreshReminderListPeriodFleans:Reminders:RefreshReminderListPeriod(binding)00:05:00

Redis keeps the reminders on the orleans-redis connection — no extra infrastructure, but every reminder of the cluster lives in one Redis key. Postgres is the recommended production provider once pending timers reach the millions; it requires Persistence:Provider=Postgres (the silo refuses to start otherwise) and uses ConnectionStrings:fleans-reminders, falling back to ConnectionStrings:fleans. Give the reminders their own database: every silo re-reads its slice of the reminder ring every RefreshReminderListPeriod, and those reads should not compete with the journal and read model. The reminders tables are created at startup; the database must exist.

ReminderLoadingWindow keeps only reminders due within the window in memory (it must be at least RefreshReminderListPeriod). A longer window rides out a longer reminder-store outage without late timers, at the cost of silo memory.

Env varConfig keyRead atDefault
Fleans__Timers__DeliveryConcurrencyFleans:Timers:DeliveryConcurrencyFleans.Application (Core silos)64. Since v0.15.0.

DeliveryConcurrency is how many due timers one Core silo delivers to their workflow instances at a time; the instances themselves can live on any Core silo, so the cluster as a whole delivers about silos × DeliveryConcurrency at once. Orleans fires every due reminder at once; each delivery reactivates its instance, so a burst of timers above what the cluster can process would otherwise run all at once and exhaust the silos’ memory. A timer that falls due while every slot is busy is not delivered on that tick: its reminder stays and ticks again a minute later, and fleans.timer.deferred counts the skipped tick. A saturated silo logs one Warning (EventId 10007) at most once a minute. A burst above capacity therefore shows up as timer lag (fleans.timer.lag) in steps of a minute instead of failing silos. Below capacity no tick is deferred. Deferred timers have no priority over newly due ones, so under a sustained overload (not a one-off burst) a single timer can be deferred many minutes in a row. On a 4-vCPU test stack with three 1 GB Core silos, 64 drained 60 000 timers due within one minute in about 6.5 minutes with no silo lost; 128 was barely faster and used more memory, 32 took 10.5 minutes (load testing). Raise it on Core silos with more CPU and memory, lower it if silos run short of memory when many timers fall due together. Values below 1 fail at startup.

The membership table decides which silo is alive. Every silo and every Orleans client (Web, MCP, custom worker hosts) of one cluster must use the same provider — the table is also the clients’ gateway list.

Env varConfig keyRead atDefault
Fleans__Clustering__ProviderFleans:Clustering:ProviderFleans.ServiceDefaults (Api, Worker, Web, MCP)"Redis" (case-insensitive; accepts Redis or Postgres)
Fleans__Kubernetes__EnabledFleans:Kubernetes:EnabledFleans.ServiceDefaults (silos)false (the Helm chart sets true)
POD_NAME, POD_NAMESPACE, POD_IP—Orleans Kubernetes hostingFrom the Kubernetes downward API.
shutdownTimeoutSecondsshutdownTimeoutSeconds.NET host (HostOptions.ShutdownTimeout)30; the Helm chart sets terminationGracePeriodSeconds − 10.
Fleans__Clustering__Membership__<Option>Fleans:Clustering:Membership:<Option>Fleans.ServiceDefaults (silos)Orleans’ ClusterMembershipOptions defaults, e.g. IAmAliveTablePublishTimeout 00:00:30, NumMissedTableIAmAliveLimit 3, ProbeTimeout 00:00:05, MaxJoinAttemptTime 00:05:00, DefunctSiloExpiration 7.00:00:00. Since v0.15.0.

Redis keeps membership on the orleans-redis connection. Redis replication is asynchronous, so a Redis failover can drop an acknowledged membership write. Postgres is the recommended production provider: it requires Persistence:Provider=Postgres (the silo refuses to start otherwise), uses ConnectionStrings:fleans-cluster, falling back to ConnectionStrings:fleans, and creates its tables at startup (the database must exist). Run that Postgres highly available (e.g. Patroni) — while the table is unreachable no silo can join or be declared dead. Unknown provider values fail startup.

Restarting after a crash. A silo that crashed, or whose stop ran out of time, stays Active in a persistent membership table, and Orleans won’t let a new silo join while it can’t reach an Active one. A starting silo therefore declares dead any other Active silo whose heartbeat it has watched stay unchanged for longer than IAmAliveTablePublishTimeout × NumMissedTableIAmAliveLimit (90 s by default) and logs EventId 11410 for each; live silos rewrite their heartbeat every 30 s. So a single silo restarted right after a crash turns healthy within about 100 s instead of failing to start. To shorten that on a single-silo install, set Fleans__Clustering__Membership__IAmAliveTablePublishTimeout=00:00:10 (30 s window).

This sweep is new in v0.15.0. On v0.14.0 and earlier a restarted silo never declares the stale silo dead and exits after 5 minutes, so waiting ends in a restart loop. Recover by hand instead: stop every silo, mark the stale entries dead, then start the silos. On Postgres run UPDATE orleansmembershiptable SET status = 6 WHERE status = 3;. On Redis delete the membership key <Orleans:ServiceId>/members/<Orleans:ClusterId> (DEL fleans/members/fleans with the default ids).

To keep the stale entry from appearing at all, give every silo container 60 s to stop and set shutdownTimeoutSeconds=50, the same 10 s margin the Helm chart uses: docker run --stop-timeout 60 or Compose stop_grace_period: 60s. Docker’s default of 10 s can kill a silo before it leaves the table. The topology Compose files and the release Compose bundle set both.

Fleans:Kubernetes:Enabled=true turns on Orleans Kubernetes hosting: a silo whose pod is gone is declared dead immediately instead of after the probe window. The pod name becomes the silo name and must start with the silo’s role (core-…, worker-…, combined-…), because Fleans placement reads the role from that prefix; the silo refuses to start otherwise. The pod’s service account needs get, list, watch and patch on pods, and the pods need the labels orleans/serviceId / orleans/clusterId matching Orleans__ServiceId / Orleans__ClusterId. The Helm chart sets all of this up.

Redis is optional. A host connects to ConnectionStrings:orleans-redis — and adds the Redis check to /health — only when a provider it uses is Redis: on a silo, any of Fleans:Clustering:Provider, Fleans:Reminders:Provider and Fleans:Streaming:Provider (all three default to Redis); on an Orleans client (Web, MCP, Fleans.Api with Fleans:Role=Api), the clustering provider alone. To run without Redis, set all three on every host:

Terminal window
Fleans__Clustering__Provider=Postgres
Fleans__Reminders__Provider=Postgres
Fleans__Streaming__Provider=Kafka # or AzureQueue; Memory for a single silo
Persistence__Provider=Postgres # required by the two Postgres providers

Without Redis the Web admin UI keeps its ASP.NET Core Data Protection keys (sign-in cookies) inside the process, so with OIDC enabled run one Web instance.

Env varConfig keyRead atDefault
Fleans__LoadShedding__EnabledFleans:LoadShedding:EnabledFleans.ServiceDefaults (silos)false
Fleans__LoadShedding__CpuThresholdFleans:LoadShedding:CpuThresholdFleans.ServiceDefaults (silos)95 (Orleans default; 1–100, validated by Orleans at startup)

Orleans load shedding: while a silo’s CPU is above the threshold, its gateway rejects new requests from Orleans clients (Web, MCP, Fleans.Api with Fleans:Role=Api) instead of queueing them, and stream pulling agents slow down. The REST API answers a rejected call with 503 Service Unavailable. Calls between silos — and REST calls a Core / Combined silo serves itself — are not shed, so pair it with Fleans:Role=Api. Set it on every silo.

Env varConfig keyRead atDefault
Fleans__Admission__EnabledFleans:Admission:EnabledFleans.Apitrue
Fleans__Admission__TargetLatencyMsFleans:Admission:TargetLatencyMsFleans.Api500
Fleans__Admission__InitialLimitFleans:Admission:InitialLimitFleans.Api64
Fleans__Admission__MinLimitFleans:Admission:MinLimitFleans.Api8
Fleans__Admission__MaxLimitFleans:Admission:MaxLimitFleans.Api1024
Fleans__Admission__WindowMsFleans:Admission:WindowMsFleans.Api1000

An adaptive limit on how many REST mutations one Fleans.Api process has in flight: the endpoints with the workflow-mutation and task-operation policies (start, messages, signals, deploy, user-task and custom-task operations). A request over the limit is answered at once with 429 Too Many Requests and Retry-After: 1; it never reaches the cluster. Reads and admin endpoints are not limited.

The limit follows the cluster. Once a second it looks at the p95 latency of the requests that finished: over TargetLatencyMs — or any request failed with a grain-call timeout or an Orleans error such as a shedding gateway — it is cut by a quarter, never below MinLimit; under the target with at least half the limit in use, it grows by one, never above MaxLimit. Past the CPU ceiling a cluster stops completing work rather than slowing down, and the rate it can sustain under contention is lower than the peak it reaches on an idle start, so a fixed rate limit has to sit well below the ceiling; this limit moves with it.

It is on by default because it only moves when the target is missed — a healthy cluster answers far below 500 ms — and it never limits a process below MinLimit concurrent requests, so a single client does not see a 429. Set TargetLatencyMs to about twice the p99 of your start requests at normal load. Every Fleans.Api process keeps its own limit, so it scales with the number of API replicas. The fixed RateLimiting policies (REST API reference) still apply and run first. Limit changes are logged (EventId 8300, Warning, when it shrinks) and exported as fleans.admission.limit and fleans.admission.rejected (Observability). Invalid values fail at startup.

Auth keys are per-host — the API and the Web admin UI use different OIDC flows (JWT-bearer vs OIDC code-flow), so the keys split cleanly between hosts. Setting an API-only key on the Web host (or vice-versa) has no effect.

Env varConfig keyRead atApplies to
Authentication__AuthorityAuthentication:AuthorityFleans.Api, Fleans.Web, Fleans.McpAll HTTP hosts. OIDC issuer URL. Setting this enables JWT enforcement on every API and MCP endpoint and OIDC sign-in on the admin UI. Auth disabled when missing.
Authentication__AudienceAuthentication:AudienceFleans.Api, Fleans.McpJWT aud claim the host requires. Default: "fleans-api" (API), "fleans-mcp" (MCP). Setting it on the Web host has no effect.
Authentication__RequireHttpsMetadataAuthentication:RequireHttpsMetadataFleans.Api, Fleans.Web, Fleans.McpDefault true: the IdP’s metadata must be served over HTTPS. Set false only for a local IdP on plain HTTP.
Authentication__RoleClaimAuthentication:RoleClaimFleans.Api, Fleans.WebClaim holding the caller’s Fleans roles (admin, operator, user, deployer, debugger). Default: "roles". Set the same value on both hosts. See Authorization (roles).
Authentication__ClientIdAuthentication:ClientIdFleans.WebWeb only. OIDC client identifier for the Blazor Server admin UI. Setting on the API has no effect.
Authentication__ClientSecretAuthentication:ClientSecretFleans.WebWeb only. OIDC client secret. Source from a Secret/Key Vault, not appsettings, in production.
Authentication__CookieExpireMinutesAuthentication:CookieExpireMinutesFleans.WebWeb only. Lifetime of the sign-in cookie, sliding. Default 60.
Authentication__UserIdClaimAuthentication:UserIdClaimFleans.ApiClaim that identifies the caller for user-task claims and assignments. Default "preferred_username".
Authentication__GroupsClaimAuthentication:GroupsClaimFleans.Api, Fleans.WebClaim holding the caller’s groups, for user-task candidate groups and deploy reviewer groups. Default "groups". Set the same value on both hosts.
Authentication__KnownProxies__NAuthentication:KnownProxies:NFleans.WebWeb only. IP addresses of reverse proxies whose X-Forwarded-For / X-Forwarded-Proto are honoured, e.g. Authentication__KnownProxies__0=10.0.0.5. Default: none, so the headers are ignored.
Authentication__KnownNetworks__NAuthentication:KnownNetworks:NFleans.WebWeb only. The same as CIDR ranges, e.g. Authentication__KnownNetworks__0=10.0.0.0/8. Behind a TLS-terminating proxy or Kubernetes Ingress set one of the two, or the admin UI builds an http:// OIDC redirect URI.

With Authentication:Authority unset, the REST API, the gRPC external-task endpoint, the MCP server and the admin UI accept anonymous requests, and every role check allows everyone. The admin UI turns sign-in on only when ClientId is set as well.

See Authentication for the full role-claim plan and reverse-proxy guidance.

See the Deploy approvals and environments guide.

Env varConfig keyRead atDefaultPurpose
Fleans__Deployments__RequiredApprovalsFleans:Deployments:RequiredApprovalsFleans.Api, Fleans.Web, Fleans.Mcp — set it on all of them0Approvals from distinct non-requesters a deploy needs. 0 deploys immediately; above it direct deploys answer 409 and go through deployment requests.
Fleans__Deployments__ReviewerGroups__NFleans:Deployments:ReviewerGroups:NFleans.Api, Fleans.Web, Fleans.Mcp(none)Groups (from Authentication:GroupsClaim; roles for roles) whose members may approve or reject. Empty: anyone but the requester.
Fleans__Environment__NameFleans:Environment:NameFleans.Web(empty: “this Fleans cluster”)This cluster’s name in the Admin UI.
Fleans__Environment__PromotionTargets__N__Name, …__ApiUrlFleans:Environment:PromotionTargets:N:Name, …:ApiUrlFleans.Web(none)Clusters this Admin UI can promote a version to. Names must be unique, URLs absolute — checked at startup.
Fleans__Environment__PromotionTargets__N__TokenUrl, …__ClientId, …__ClientSecret, …__Scope…:TokenUrl, …:ClientId, …:ClientSecret, …:ScopeFleans.Web(none)OAuth2 client credentials for a target with authentication on.

See the Instance migration guide.

Env varConfig keyRead atDefaultPurpose
Fleans__Migration__MaxBatchSizeFleans:Migration:MaxBatchSizeFleans.Api, Fleans.Web100Most instances one migrate request handles; a version with more migrates a batch at a time (continuation token).
Fleans__Migration__MaxParallelismFleans:Migration:MaxParallelismFleans.Api, Fleans.Web16Instances migrated at once within a request.

See the assistant backend contract. The same endpoint serves the optional Knowledge tab when the backend offers a knowledge index; there is no separate setting.

Env varConfig keyRead atDefaultPurpose
Fleans__Assistant__EndpointFleans:Assistant:EndpointFleans.Web(empty: panel hidden)Base URL of the assistant backend; the editor runs the AG-UI agent at {Endpoint}/assistant/agent. Must be an absolute http(s) URL — checked at startup. With authentication on, the signed-in user’s access token is forwarded to it.
Fleans__Assistant__TimeoutFleans:Assistant:TimeoutFleans.Web00:02:00How long one answer, event stream included, may take before the panel reports a timeout.
Env varConfig keyRead atNotes
ConnectionStrings__fleansConnectionStrings:fleansFleans.ServiceDefaultsRequired when Persistence:Provider=Postgres. Workflow command-side database (grain state + read model, and the journal unless fleans-journal is set). Throws at startup if missing.
ConnectionStrings__fleans-queryConnectionStrings:fleans-queryFleans.ServiceDefaultsOptional read-replica for the query-side projection. Falls back to the fleans write connection when unset.
ConnectionStrings__fleans-journalConnectionStrings:fleans-journalFleans.ServiceDefaultsOptional database for the workflow journal (event batches + snapshots). Falls back to the fleans database when unset; required when Persistence:Journal:Provider is not of the main provider’s family (e.g. a PostgreSQL journal next to SQLite).
ConnectionStrings__fleans-remindersConnectionStrings:fleans-remindersFleans.ServiceDefaultsOptional dedicated database for the Orleans reminders when Fleans:Reminders:Provider=Postgres (recommended in production). Falls back to fleans when unset. See Reminders.
ConnectionStrings__fleans-clusterConnectionStrings:fleans-clusterFleans.ServiceDefaultsOptional dedicated database for the Orleans membership table when Fleans:Clustering:Provider=Postgres. Falls back to fleans when unset. See Clustering.
ConnectionStrings__orleans-redisConnectionStrings:orleans-redisFleans.Api, Fleans.WorkerHost, Fleans.Web, Fleans.McpRequired while clustering, reminders or streams use Redis (all three default to Redis; on Orleans clients only clustering counts) — see Redis. The process fails at startup when it needs the connection and it is missing. Note the name — it’s orleans-redis, not bare redis.

These are standard ASP.NET Core / .NET runtime keys, not Fleans-specific — listed here for completeness because every operator sets them.

Env varEffect
ASPNETCORE_URLSKestrel binding URL(s). Overrides launchSettings.json and applicationUrl.
ASPNETCORE_HTTP_PORTSNewer alternative to ASPNETCORE_URLS for plain-port binding (e.g. 8080).
DOTNET_PRINT_TELEMETRY_MESSAGESet false to suppress the .NET CLI telemetry banner at process startup.
Orleans__ClusterIdOrleans cluster identifier. Set it explicitly per environment (e.g. fleans-production), the same on every process of the cluster. See Deployment / Update strategy for rolling-restart constraints.
Orleans__ServiceIdOrleans service identifier. Stable per logical service, the same on every process.
Orleans__Endpoints__SiloPortPort silos use to talk to each other. Default 11111. Silos only.
Orleans__Endpoints__GatewayPortPort Orleans clients (Web, MCP, Fleans:Role=Api) connect to on every silo. Default 30000. Silos only.
Orleans__Endpoints__AdvertisedIPAddressAddress a silo writes into the membership table for the others to dial. Default: detected from the host’s network interfaces. See Running the containers yourself.
HTTP_PORTSPlain-port Kestrel binding, the same as ASPNETCORE_HTTP_PORTS; the images listen on 8080 by default.
  • Deployment — the Compose bundle, Kubernetes manifests, and running the containers yourself with the minimum keys per process.
  • Persistence — provider-specific connection-string semantics and migration behavior.
  • Streaming — Kafka topic naming, at-least-once semantics, and the memory-vs-kafka decision.
  • Authentication — full IdP setup walkthrough that consumes the Authentication:* keys above.