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
Integration with other tools
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.dynamic_loader module
-
patroni.exceptions module
-
patroni.file_perm module
-
patroni.global_config module
-
patroni.ha module
-
patroni.log module
-
patroni.postgresql package
-
patroni.postgresql.available_parameters package
-
patroni.postgresql.bootstrap module
-
patroni.postgresql.callback_executor module
-
patroni.postgresql.cancellable module
-
patroni.postgresql.config module
-
patroni.postgresql.connection module
-
patroni.postgresql.misc module
-
patroni.postgresql.mpp package
-
patroni.postgresql.mpp.citus 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.barman package
-
patroni.scripts.barman.cli module
-
patroni.scripts.barman.config_switch module
-
patroni.scripts.barman.recover module
-
patroni.scripts.barman.utils 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
Standby cluster
Using Patroni with Kubernetes
Watchdog support
YAML Configuration Settings
patronictl
patroni.file_perm module
Helper object that helps with figuring out file and directory permissions based on permissions of PGDATA.
var logger
:
logger of this module.
var pg_perm
:
instance of the
__FilePermissions
object.
class
patroni.file_perm.
__FilePermissions
View
on
GitHub
Bases:
object
Helper class for managing permissions of directories and files under PGDATA.
Execute
set_permissions_from_data_directory()
to figure out which permissions should be used for files and
directories under PGDATA based on permissions of PGDATA root directory.
_FilePermissions__PG_DIR_MODE_GROUP
=
488
_FilePermissions__PG_DIR_MODE_OWNER
=
448
_FilePermissions__PG_FILE_MODE_GROUP
=
416
_FilePermissions__PG_FILE_MODE_OWNER
=
384
_FilePermissions__PG_MODE_MASK_GROUP
=
23
_FilePermissions__PG_MODE_MASK_OWNER
=
63
_FilePermissions__set_group_permissions
(
)
→
None
View
on
GitHub
Make directories/files accessible by the owner and readable by group.
_FilePermissions__set_owner_permissions
(
)
→
None
View
on
GitHub
Make directories/files accessible only by the owner.
_FilePermissions__set_umask
(
)
→
None
View
on
GitHub
Set umask value based on calculations.
Note
Should only be called once either
__set_owner_permissions()
or
__set_group_permissions()
has been executed.
__init__
(
)
→
None
View
on
GitHub
Create a
__FilePermissions
object and set default permissions.
property
dir_create_mode
:
int
View
on
GitHub
Directory permissions.
property
file_create_mode
:
int
View
on
GitHub
File permissions.
set_permissions_from_data_directory
(
data_dir
:
str
)
→
None
View
on
GitHub
Set new permissions based on provided
data_dir
.
Parameters
:
data_dir
– reference to PGDATA to calculate permissions from.
© Copyright 2015 Compose, Zalando SE