patroni.site module

Cluster site handling.

class patroni.site.ClusterSite(site: Optional[str])

Bases: abc.ABC

An abstract class that encapsulates all the site logic.

__init__(site: Optional[str]) → None

Initialize the ClusterSite object.

Parameters

site – string representing name of the site assigned to the current node. loaded from the local configuration.

_abc_impl = <_abc._abc_data object>
property site

Site configured, if any.

Returns

string representing name of the site assigned to the current node.