switchdb module

Fabric tasks

django_fabfile.switchdb.recover_backup()[source]

Run this to start recovery of failing backup node (run this strictly after switching_to_master)

django_fabfile.switchdb.recover_master()[source]

Run this to start recovery of failing master node (run this strictly after switching_to_backup)

django_fabfile.switchdb.return_backup()[source]

Run this after temporary network issues in eu-west-1 It will reattach backup node to pgpool server

django_fabfile.switchdb.return_master()[source]

Run this after temporary network issues in us-east-1 It will reattach master node to pgpool server

django_fabfile.switchdb.switch_to_backup()[source]

If master server failed, run this to promote backup server from slave to master-role and detach failed node from pgpool

django_fabfile.switchdb.switch_to_master()[source]

If backup server failed, run this to promote master server from slave to master-role and detach failed node from pgpool

Internals

django_fabfile.switchdb.recover_backup[source]

Run this to start recovery of failing backup node (run this strictly after switching_to_master)

django_fabfile.switchdb.recover_master[source]

Run this to start recovery of failing master node (run this strictly after switching_to_backup)

django_fabfile.switchdb.return_backup[source]

Run this after temporary network issues in eu-west-1 It will reattach backup node to pgpool server

django_fabfile.switchdb.return_master[source]

Run this after temporary network issues in us-east-1 It will reattach master node to pgpool server

django_fabfile.switchdb.switch_to_backup[source]

If master server failed, run this to promote backup server from slave to master-role and detach failed node from pgpool

django_fabfile.switchdb.switch_to_master[source]

If backup server failed, run this to promote master server from slave to master-role and detach failed node from pgpool

django_fabfile.switchdb.failover(new_primary_host, old_primary_host, failed_node_id, master_node_id)[source]
django_fabfile.switchdb.recover(primary, standby, recover_node_id)[source]

Table Of Contents

Previous topic

security_groups module

Next topic

useradd module

This Page