module Supervisor
Nested Classes and Modules
class ClientA client provides a mechanism to connect to a supervisor server in order to execute operations.
module EnvironmentAn environment mixin for supervisor services.
class MemoryMonitorMonitors worker memory usage and restarts workers that exceed limits.
class MonitorBase class for supervisor monitors that run periodically within the supervisor process.
class ProcessMonitorMonitors process metrics and logs them periodically.
class ServerThe server represents the main supervisor process which is responsible for managing the lifecycle of other processes.
class ServiceThe supervisor service implementation.
module SupervisedAn environment mixin for supervised worker services.
class SupervisorControllerController for supervisor operations.
class UtilizationMonitorMonitors worker utilization metrics aggregated by service name.
class WorkerA worker represents a long running process that can be controlled by the supervisor.
class WorkerControllerController for worker operations.
Definitions
def self.endpoint(path = "supervisor.ipc")
Get the supervisor IPC endpoint.
Signature
-
parameter
pathString The path for the Unix socket (default: "supervisor.ipc").
-
returns
IO::Endpoint The Unix socket endpoint.
Implementation
def self.endpoint(path = "supervisor.ipc")
::IO::Endpoint.unix(path)
end