patroni.site module¶
Cluster site handling.
-
class
patroni.site.ClusterSite(site: Optional[str])¶ Bases:
abc.ABCAn abstract class that encapsulates all the
sitelogic.-
__init__(site: Optional[str]) → None¶ Initialize the
ClusterSiteobject.- 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.
-