ores.controller.service_instance

Table of Contents

Represents a Kubernetes-style Pod: one concrete running instance of a service definition. Tracks the OS process ID, lifecycle phase, start/stop times, and how many times the instance has been restarted. Non-temporal: only the current state is kept here; history is captured in service_events.

Flags

Primary key

UUID primary key for the service instance.

Natural keys

Columns

service_name

Name of the service definition this instance belongs to.

replica_index

Zero-based replica number; used to generate unique log file names.

pid

OS process ID while running; NULL when stopped or pending.

phase

Lifecycle phase: pending, running, stopping, stopped, failed.

started_at

Timestamp when the process was last successfully started.

stopped_at

Timestamp when the process last stopped or was stopped.

restart_count

Number of times this instance has been automatically restarted.

SQL

Flags

C++

Flags

Repository

Domain includes

#include <string>
#include <chrono>

Conventions

Qt

Columns (Qt model)

enum_name field header type width
ServiceName service_name Service string 200
ReplicaIndex replica_index Replica int 60
Phase phase Phase string 80
Pid pid PID int 70
StartedAt started_at Started timestamp 140
StoppedAt stopped_at Stopped timestamp 140
RestartCount restart_count Restarts int 70

Custom repository methods

See also

Emacs 29.1 (Org mode 9.6.6)