Skip to main content
Version: 0.8.0

The operations

Sixteen operations, each taking one of four kinds of subject. Policy is per plugin, execution is per unit, and the rest is per instance. The set is initial: an addition is a member of the one union, so it appears on both projections at once.

The set​

OperationSubjectChangesWhere the change lives
plugin.enable, plugin.disablepluginwhether it is enabledthe Registry, with a decision record beside it
plugin.grant, plugin.withdrawplugin and capabilitya grantthe Registry, with a decision record beside it
unit.start, unit.stop, unit.restartunitwhat is runningnowhere durable: this life of the instance
unit.stream.start, unit.stream.stopunit and streamwhether a stream is flowingnowhere durable: a control instruction
unit.retention.set, unit.retention.clearunitits group's retention overridethe log store
unit.askunitnothingnothing: an answer
reada subject kind, and an identity where one is namednothingnothing
log.query, log.followunit, incarnation, a time range, a severity floornothingnothing
subscribea filter on the event axesnothingnothing

An incarnation qualifies rather than addresses: nothing is done to an incarnation, and log entries and past states are read by one.

What a change answers​

FieldHolds
previouslythe value the operation replaced: the enablement, the grant, the state, the retention override
effectiveimmediately, or at the unit's next admission
consequencesone entry per unit affected: the unit, its incarnation, and what happened to it
  • An operation whose effect is already true succeeds and says nothing changed. previously carries what the value was, so a caller knows whether it changed anything without reading first.
  • A decision and its consequences are reported separately, and the consequences are a list.
Operationeffectiveconsequences
plugin.disableimmediatelyevery live Session of the plugin is revoked; one entry per unit
plugin.enableimmediatelynone: an enabled plugin runs when a unit of it is launched
plugin.grant, plugin.withdrawat the unit's next admissioneach unit running that plugin, still under the scope computed at its own admission
unit.start, unit.stop, unit.restartimmediatelythe one unit named, with the incarnation ended and the one begun
unit.stream.start, unit.stream.stopimmediatelythe one unit named
unit.retention.set, unit.retention.clearimmediatelynone: the next cleaning cycle reads the override
  • A change of policy reaches a unit at its next admission, never mid-Session. To apply it now, change the policy and restart the unit — not the instance.
  • Disabling is not stopping. It prevents future admission. A disabled plugin whose unit is still running is a coherent state, and the surface reports it.
  • A decision is durable; an act against a running unit is not. A stopped unit stays stopped for this life of the instance and comes back at the next start unless something declared otherwise.
  • No operation sets what the Core observed. Nothing marks a unit healthy, places it in a state or assigns it a Session, and no request field carries a state.

Every operation terminates in the Core​

An administrative caller never opens a unit's socket, and nothing is forwarded to a unit as if the caller were the Core. An operation about a unit causes the Core to act.

OperationThe CoreThe caller observes
unit.start, unit.stop, unit.restartlaunches or ends a processthe answer, and the state changes as events
unit.stream.startcreates the stream's transport, listens on it, then sends the activation as a control message on the unit's Sessionthe unit's acknowledgement, and unit.stream.activated
unit.stream.stopsends the instruction, then removes the transportthe acknowledgement, and unit.stream.stopped
unit.asksends a query message on the unit's Session and correlates the answerthe opaque answer
  • A unit that is not answering cannot be reached by an operator either: nobody has a path around the state the Core reports.
  • The Core waits 30 s for a unit's acknowledgement or answer. The figure is not declarable. An elapsed wait is refused unit.unanswered, and an answer arriving after it is discarded.

unit.ask​

What travelsan opaque question and an opaque answer, each at most 1 MiB
Howthe query family of the unit's Session, correlated by the message identity the Core assigns there
What is recordeda log entry naming the actor, the unit, the incarnation and that a question was asked — never the question or the answer
What is emittednothing

The Core routes and correlates the question and never decodes it.

A stream's data never travels on this surface. That a stream was activated is an event; what the stream carries travels only on its own transport.

Figures​

the wait for a unit's acknowledgement or answer30 s, not declarable
the bound on a question or an answer1 MiB each way
an answer after the waitdiscarded