lighthouse.cluster

class lighthouse.cluster.Cluster[source]

Bases: lighthouse.configurable.Configurable

The class representing a cluster of member nodes in a service.

A simple class that merely keeps a list of nodes and defines which discovery method is used to track said nodes.

config_subdirectory = 'clusters'
classmethod validate_config(config)[source]

Validates a config dictionary parsed from a cluster config file.

Checks that a discovery method is defined and that at least one of the balancers in the config are installed and available.

apply_config(config)[source]

Sets the discovery and meta_cluster attributes, as well as the configured + available balancer attributes from a given validated config.