Skip to content

dosyfier/repmgr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repmgr

Installs and configures repmgr to enable and monitor PostgreSQL replication.

Usage

Nodes should be labeled as master or slave. Generally done within a role:

name 'master_role'
run_list('role[pg]', 'recipe[repmgr]')
override_attributes(
  :repmgr => {
    :replication => {
      :role => 'master'
    }
  }
)
name 'slave_role'
run_list('role[pg]', 'recipe[repmgr]')
override_attributes(
  :repmgr => {
    :replication => {
      :role => 'slave'
    }
  }
)

Slaves will search for master node within their current environment and sync to that master. By default slave nodes will allow read-only access.

Infos

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 93.8%
  • Shell 4.5%
  • HTML 1.7%