Management Namespace

Namespace: Management.

class zlogging.enum.management.Role(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntFlag

Enum: Management::Role.

Management infrastructure node type. This intentionally does not include the managed cluster node types (worker, logger, etc) – those continue to be managed by the cluster framework.

NONE = 1

No active role in cluster management

AGENT = 2

A cluster management agent.

CONTROLLER = 4

The cluster’s controller.

NODE = 8

A managed cluster node (worker, manager, etc).

static _generate_next_value_(name, start, count, last_values)

Generate the next value when not given.

name: the name of the member start: the initial start value or None count: the number of existing members last_values: the last value assigned or None

class zlogging.enum.management.State(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntFlag

Enum: Management::State.

State that a Cluster Node can be in. State changes trigger an API notification (see notify_change()). The Pending state corresponds to the Supervisor not yet reporting a PID for a node when it has not yet fully launched.

PENDING = 1

Not yet running

RUNNING = 2

Running and operating normally

STOPPED = 4

Explicitly stopped

FAILED = 8

Failed to start; and permanently halted

CRASHED = 16

Crashed, will be restarted,

UNKNOWN = 32

State not known currently (e.g., because of lost connectivity)

static _generate_next_value_(name, start, count, last_values)

Generate the next value when not given.

name: the name of the member start: the initial start value or None count: the number of existing members last_values: the last value assigned or None