Pure: which live section holds a service another section is about to recreate (card 20261113112930-07a70584, DC-SHARED).
Several sections can run in one compose project (dc): an escala session's
section and a gestao-usuarios session's section share envoy, auth-service
and the web relay. compose has one container per service per project, so a
section that recreates a shared service takes it from under every other
section holding it: on 2026-11-13 an up with other compose files and
another HOST_GATEWAY_IP recreated dc-envoy and every page of the other
session answered 503.
A section HOLDS a service when the service is in its footprint (the
services it runs and the depends_on closure it needs, see
promote.plan/footprint). A holder is LIVE while it is active and not
orphaned (its last claim ended; the reaper takes it soon), or while it is
orphaned but something still uses it.
A call recreates a held service when:
restart recreate=true: compose recreates the named containers
whatever their config;up/switch and the call's compose inputs differ from those the
holder ran with: compose recreates a running container whose config hash
changed, and the hash follows the files, the project directory and the
interpolated env. Equal inputs leave the container as it is, so two
sections of the same project share their dependencies freely.Inputs are compared as configured, references rendered (never read): a variable that differs is a conflict even when the service does not read it, so the guard errs on the side of refusing, and the call can override.
Pure: which live section holds a service another section is about to recreate (card 20261113112930-07a70584, DC-SHARED). Several sections can run in one compose project (`dc`): an escala session's section and a gestao-usuarios session's section share envoy, auth-service and the web relay. compose has one container per service per project, so a section that recreates a shared service takes it from under every other section holding it: on 2026-11-13 an `up` with other compose files and another HOST_GATEWAY_IP recreated dc-envoy and every page of the other session answered 503. A section HOLDS a service when the service is in its footprint (the services it runs and the depends_on closure it needs, see `promote.plan/footprint`). A holder is LIVE while it is active and not orphaned (its last claim ended; the reaper takes it soon), or while it is orphaned but something still uses it. A call recreates a held service when: - it is `restart recreate=true`: compose recreates the named containers whatever their config; - it is `up`/`switch` and the call's compose inputs differ from those the holder ran with: compose recreates a running container whose config hash changed, and the hash follows the files, the project directory and the interpolated env. Equal inputs leave the container as it is, so two sections of the same project share their dependencies freely. Inputs are compared as configured, references rendered (never read): a variable that differs is a conflict even when the service does not read it, so the guard errs on the side of refusing, and the call can override.
(agents-of a)Sorted agent ids that own active entry a: those claiming it, then those
the last usage pass saw working in its project.
Sorted agent ids that own active entry `a`: those claiming it, then those the last usage pass saw working in its project.
(conflicts {:keys [active self project p services recreate?]})[Conflict] of a call by section self (Profile p, compose project
project) about to bring services up, or recreate them when
recreate?, over active ({id Active}). A Conflict:
{:section holder-id :agents [id] :services [s] :reason :recreate|:config-differs
:differs {..}} (see differences). Empty when nothing held is touched.
Pure.
[Conflict] of a call by section `self` (Profile `p`, compose project
`project`) about to bring `services` up, or recreate them when
`recreate?`, over `active` ({id Active}). A Conflict:
{:section holder-id :agents [id] :services [s] :reason :recreate|:config-differs
:differs {..}} (see `differences`). Empty when nothing held is touched.
Pure.(describe found)One line naming each holder of found, its agents and what differs.
One line naming each holder of `found`, its agents and what differs.
(differences mine theirs)What differs between compose inputs mine and theirs, as
{:dir bool? :files bool? :env [var]}: only the keys that differ, env as the
sorted names of the variables that differ (never a value). {:unknown true}
when theirs is nil (an entry that kept no profile). {} when equal.
What differs between compose inputs `mine` and `theirs`, as
{:dir bool? :files bool? :env [var]}: only the keys that differ, env as the
sorted names of the variables that differ (never a value). {:unknown true}
when `theirs` is nil (an entry that kept no profile). {} when equal.(holders active self project services)[{:section id :agents [id] :services [s]}] of the live active entries
other than self in compose project project whose footprint holds any
of services, by section id. Pure.
[{:section id :agents [id] :services [s]}] of the live active entries
other than `self` in compose project `project` whose footprint holds any
of `services`, by section id. Pure.(inputs p)What compose derives a service's config from, of Profile p: project
directory, files and env (references rendered). Nil when p is nil.
What compose derives a service's config from, of Profile `p`: project directory, files and env (references rendered). Nil when `p` is nil.
(live? a)True when active entry a still answers for what it holds: not orphaned,
or orphaned but seen in use by the last usage pass.
True when active entry `a` still answers for what it holds: not orphaned, or orphaned but seen in use by the last usage pass.
(outcomes services before after){service "recreated"|"kept"|"created"|"absent"} of services from
the container ids before and after a call ({service id}): kept when the same
container still runs it, recreated when another replaced it, created when
it had none before, absent when it has none after. What the engine did,
not what was allowed. Pure.
{service "recreated"|"kept"|"created"|"absent"} of `services` from
the container ids before and after a call ({service id}): kept when the same
container still runs it, recreated when another replaced it, created when
it had none before, absent when it has none after. What the engine did,
not what was allowed. Pure.(pick-holder active project services only)Which live section's compose inputs a call on services of project runs
with (card 20261123112129-701a7d69): {:holder Profile :section id} when the
sections holding them agree on dir, files and env (one section, or several
with equal inputs; the first by id answers), {:none true} when none does,
{:disagree [{:section :services :differs}]} when they differ, each row
saying what differs from the first. only (a section id or nil) narrows
the holders to that one section. Pure.
Which live section's compose inputs a call on `services` of `project` runs
with (card 20261123112129-701a7d69): {:holder Profile :section id} when the
sections holding them agree on dir, files and env (one section, or several
with equal inputs; the first by id answers), {:none true} when none does,
{:disagree [{:section :services :differs}]} when they differ, each row
saying what differs from the first. `only` (a section id or nil) narrows
the holders to that one section. Pure.(section-holders active project services)[{:section id :services [s] :profile Profile}] of the active entries of
compose project project whose footprint holds any of services and that
kept the Profile they ran with, by section id. Orphaned ones count: their
containers still run the code they were created from, so they say where a
recreate must come from (liveness only decides who may object, see
holders). Pure.
[{:section id :services [s] :profile Profile}] of the active entries of
compose project `project` whose footprint holds any of `services` and that
kept the Profile they ran with, by section id. Orphaned ones count: their
containers still run the code they were created from, so they say where a
recreate must come from (liveness only decides who may object, see
`holders`). Pure.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |