How akfvh/ditto works
DITTO extends OpenWhisk activation execution with per-action memory right-sizing: the controller classifies activation behavior, the invoker and host agent probe container memory, and committed sizes inform pool accounting. The graph emphasizes that workflow and its distinct protection and measurement stages. README statements support the DITTO interactions; sampled controller and scheduler code also shows broader OpenWhisk request handling, but the excerpts do not establish their full runtime wiring.
Main entry points: main.go Probe state machine · ProbingAgentBridge.scala Agent bridge · Controller.scala Controller API · InvokerReactive.scala Invoker runtime
Components 15
Control plane
- Controller API
core/controller/src/main/scala/org/apache/openwhisk/core/controller/Controller.scala - IAT/CV classifier
core/controller/src/main/scala/org/apache/openwhisk/core/controller/actions/PrimitiveActions.scala - Activation scheduler
core/scheduler/src/main/scala/org/apache/openwhisk/core/scheduler/container/ContainerManager.scala - Activation queues
core/scheduler/src/main/scala/org/apache/openwhisk/core/scheduler/queue/QueueManager.scala - Activation records
common/scala/src/main/scala/org/apache/openwhisk/core/database/ArtifactStore.scala
Invoker runtime
- Invoker runtime
core/invoker/src/main/scala/org/apache/openwhisk/core/invoker/InvokerReactive.scala - Container proxy
core/invoker/src/main/scala/org/apache/openwhisk/core/containerpool/ContainerProxy.scala - Agent bridge
core/invoker/src/main/scala/org/apache/openwhisk/core/containerpool/ProbingAgentBridge.scala - Pool accounting
core/invoker/src/main/scala/org/apache/openwhisk/core/containerpool/ContainerPool.scala - Action statistics
core/invoker/src/main/scala/org/apache/openwhisk/core/containerpool/ActionStats.scala
DITTO host agent
- Probe state machine
ditto-agent/main.go - Node circuit breaker
ditto-agent/node_monitor.go
Host memory
- Container cgroups
- PSI pressure events
Other components
- Action caller
Connections 16
- Action caller → Controller API: invokes action
README.md - Controller API → IAT/CV classifier: classifies requests
README.md - IAT/CV classifier → Invoker runtime: adds IAT/CV
README.md - Invoker runtime → Container proxy: dispatches activation
- Container proxy → Agent bridge: requests probe
README.md - Agent bridge → Probe state machine: HTTP probe/commit
README.md - Probe state machine → Container cgroups: adjusts memory.high
README.md - Container cgroups → PSI pressure events: emits pressure
README.md - PSI pressure events → Probe state machine: restores and retries
README.md - Probe state machine → Node circuit breaker: checks node limit
README.md - Probe state machine → Agent bridge: sends commits
README.md - Agent bridge → Pool accounting: updates commits
README.md - Pool accounting → Container proxy: accounts downsized space
README.md - Controller API → Activation scheduler: submits activations
- Activation scheduler → Activation queues: creates and recovers queues
core/scheduler/src/main/scala/org/apache/openwhisk/core/scheduler/queue/QueueManager.scala - Invoker runtime → Activation records: stores results