Skip to content

put heartbeat_interval back #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ To run a replicated container with wal-e support.

**PG_SLAVES** - The addresses of the slaves. (default: 0.0.0.0/0)

**HEARTBEAT_INTERVAL** - The interval in seconds for the hearbeat between the master and slave. (default: 5)

**HEARTBEAT_ENABLED** - A flag to enable a heartbeat on the slave node. (default: True)

### WAL-E Environment Variables
Expand All @@ -71,4 +73,4 @@ This is not meant to be in depth documentation for wal-e which is a continuous a

*AWS is the only backend currently supported when using wal-e*

**PG_WAL_E_ENABLED** - A flag to enable wal-e continuous archiving to cloud storage. (default: False)
**PG_WAL_E_ENABLED** - A flag to enable wal-e continuous archiving to cloud storage. (default: False)
5 changes: 4 additions & 1 deletion bin/start-postgres
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ def pg_get_configuration():
# Get the IP addresses for slaves.
value = os.getenv('PG_SLAVES', '0.0.0.0/0').split(',')
configuration.update({ 'slaves': value })
# Get the slave heartbeat interval.
value = os.getenv('HEARTBEAT_INTERVAL', 5)
configuration.update({ 'hearbeat_interval': value })
# Get the slave heartbeat flag.
value = os.getenv('HEARTBEAT_ENABLED', 'True')
configuration.update({ 'heartbeat_enabled': value == 'True' })
Expand Down Expand Up @@ -200,4 +203,4 @@ if __name__ == "__main__":
try:
run('tail', '-F', '/var/log/postgresql/postgresql-9.3-main.log')
except KeyboardInterrupt:
print 'Exiting...'
print 'Exiting...'