Navigation :
Citus support
Contributing
Contributing guidelines
Convert a Standalone to a Patroni Cluster
DCS Failsafe Mode
Dynamic Configuration Settings
Environment Configuration Settings
FAQ
HA multi datacenter
Installation
Modules
-
patroni
-
patroni package
-
patroni.api module
-
patroni.async_executor module
-
patroni.collections module
-
patroni.config module
-
patroni.config_generator module
-
patroni.ctl module
-
patroni.daemon module
-
patroni.dcs package
-
patroni.dcs.consul module
-
patroni.dcs.etcd module
-
patroni.dcs.etcd3 module
-
patroni.dcs.exhibitor module
-
patroni.dcs.kubernetes module
-
patroni.dcs.raft module
-
patroni.dcs.zookeeper module
-
patroni.exceptions module
-
patroni.file_perm module
-
patroni.ha module
-
patroni.log module
-
patroni.postgresql package
-
patroni.postgresql.bootstrap module
-
patroni.postgresql.callback_executor module
-
patroni.postgresql.cancellable module
-
patroni.postgresql.citus module
-
patroni.postgresql.config module
-
patroni.postgresql.connection module
-
patroni.postgresql.misc module
-
patroni.postgresql.postmaster module
-
patroni.postgresql.rewind module
-
patroni.postgresql.slots module
-
patroni.postgresql.sync module
-
patroni.postgresql.validator module
-
patroni.psycopg module
-
patroni.raft_controller module
-
patroni.request module
-
patroni.scripts package
-
patroni.scripts.aws module
-
patroni.scripts.wale_restore module
-
patroni.tags module
-
patroni.utils module
-
patroni.validator module
-
patroni.version module
-
patroni.watchdog package
-
patroni.watchdog.base module
-
patroni.watchdog.linux module
Patroni REST API
Patroni configuration
Pause/Resume mode for the cluster
Python Module Index
Release notes
Replica imaging and bootstrap
Replication modes
Security Considerations
Using Patroni with Kubernetes
Watchdog support
YAML Configuration Settings
patronictl
patroni.dcs.exhibitor module
class
patroni.dcs.exhibitor.
Exhibitor
(
config
:
Dict
[
str
,
Any
]
)
View
on
GitHub
Bases:
ZooKeeper
__init__
(
config
:
Dict
[
str
,
Any
]
)
→
None
View
on
GitHub
Prepare DCS paths, Citus group ID, initial values for state information and processing dependencies.
Variables
:
config
–
dict
, reference to config section of selected DCS.
i.e.:
zookeeper
for zookeeper,
etcd
for etcd, etc…
_abc_impl
=
<_abc._abc_data
object>
_load_cluster
(
path
:
str
,
loader
:
Callable
[
[
str
]
,
Cluster
|
Dict
[
int
,
Cluster
]
]
)
→
Cluster
|
Dict
[
int
,
Cluster
]
View
on
GitHub
Main abstract method that implements the loading of
Cluster
instance.
Note
Internally this method should call the
loader
method that will build
Cluster
object which
represents current state and topology of the cluster in DCS. This method supposed to be called only by
the
get_cluster()
method.
Parameters
:
Raise
:
DCSError
in case of communication problems with DCS. If the current node was running as a
primary and exception raised, instance would be demoted.
class
patroni.dcs.exhibitor.
ExhibitorEnsembleProvider
(
hosts
:
List
[
str
]
,
port
:
int
,
uri_path
:
str
=
'/exhibitor/v1/cluster/list'
,
poll_interval
:
int
=
300
)
View
on
GitHub
Bases:
object
TIMEOUT
=
3.1
__init__
(
hosts
:
List
[
str
]
,
port
:
int
,
uri_path
:
str
=
'/exhibitor/v1/cluster/list'
,
poll_interval
:
int
=
300
)
→
None
View
on
GitHub
_query_exhibitors
(
exhibitors
:
List
[
str
]
)
→
Dict
[
str
,
Any
]
|
Any
View
on
GitHub
poll
(
)
→
bool
View
on
GitHub
property
zookeeper_hosts
:
str
View
on
GitHub
© Copyright 2015 Compose, Zalando SE