Skip to main content

Tuning and settings

Interlinked has no hidden constants. Every number or choice that an operator could reasonably want different is a named setting with a documented default, so there is nothing to find in the source before you can tune it. This page explains how settings behave and the limits worth knowing before you tune for scale. The full list is in Settings.

How a value is chosen​

The sources are read in this order, and a later one overrides an earlier one:

  1. the built-in default;
  2. the home's config.toml;
  3. the room's own value, for settings a room carries so that every member agrees;
  4. the environment variable IL_ plus the setting's name in capitals, with dots written as underscores (work.budget.agent_usd is IL_WORK_BUDGET_AGENT_USD);
  5. a command-line flag.

Some settings belong to a room because a rule depends on them: every member must reach the same answer from the same entries, so the room carries the value, and it overrides each member's own file. Those are marked per room in the reference.

Look at, change and explain​

il config list
il config explain work.budget.agent_usd
il config set work.budget.agent_usd 5
il config unset work.budget.agent_usd

il config list shows every setting, its value and where the value came from. il config explain gives the meaning, the default and the allowed range of one setting. A value outside its range is refused, and the message shows the range.

Settings that weaken safety​

A few settings lower a safety rule when you move them from their default: allowing the runner to pass permission flags to a host, allowing anonymous A2A callers, allowing plain TCP away from your own machine, or shrinking the list of actions that can never be granted. These need an explicit confirmation, so that nobody weakens one by accident. The reference marks them weakens safety.

Scale: what to know before you tune​

  • Memory per room. A program that writes to a room keeps an index of that room in memory, about 300 bytes per entry. A room with a million entries needs about 300 MB in the writing program. Split work across rooms long before a room reaches tens of millions of entries.
  • One writer at a time per room. Each append is signed inside the room's lock, so one room has a ceiling on signed appends per second whatever the number of threads. Many rooms can be written in parallel.
  • Durability against speed. store.durability decides when an append returns: none (in the operating system's cache, which survives every process crashing but not a power cut), batch (the default, with a flush within store.fsync_batch_ms), or always (flushed to disk first, which is slowest).

Next​

Store internals and repair describes what is on disk and how it recovers from a crash.