-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
107 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
#:pg{:users #:users{:usr/replication #:usr{:password "secret"}} | ||
:hba [["local" "all" "all" "trust"] | ||
["local" "replication" "replication" "trust"] | ||
["host" "replication" "replication" "0.0.0.0/0" "md5"] | ||
["host" "all" "all" "0.0.0.0/0" "md5"]] | ||
:failover {:tx/timeout 5000} | ||
:health {:tx/timeout 3000 | ||
:chk/master {:simple-read "SELECT 1" | ||
:snapshot "SELECT txid_current_snapshot()" | ||
:transaction-id "SELECT txid_current()"} | ||
:chk/replica {:simple-read "SELECT 1" | ||
:snapshot "SELECT txid_current_snapshot()"}} | ||
:postgres #:pg{:max_connections 100 | ||
:listen_addresses "*" | ||
:wal_level "logical" | ||
:hot_standby "on" | ||
:archive_mode "on" | ||
:archive_timeout 60 | ||
:max_wal_senders 10 | ||
:wal_keep_segments 100 | ||
:shared_buffers "128MB"}} | ||
#:glb{:users #:usrs{:usr/replication #:usr{:password "secret"}} | ||
:hba [["local" "all" "all" "trust"] | ||
["local" "replication" "replication" "trust"] | ||
["host" "replication" "replication" "0.0.0.0/0" "md5"] | ||
["host" "all" "all" "0.0.0.0/0" "md5"]] | ||
:failover {:tx/timeout 5000} | ||
:health {:tx/timeout 3000 | ||
:chk/master {:simple-read "SELECT 1" | ||
:snapshot "SELECT txid_current_snapshot()" | ||
:transaction-id "SELECT txid_current()"} | ||
:chk/replica {:simple-read "SELECT 1" | ||
:snapshot "SELECT txid_current_snapshot()"}} | ||
:postgres #:pg{:max_connections 100 | ||
:listen_addresses "*" | ||
:wal_level "logical" | ||
:hot_standby "on" | ||
:archive_mode "on" | ||
:archive_timeout 60 | ||
:max_wal_senders 10 | ||
:wal_keep_segments 100 | ||
:shared_buffers "128MB"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
#:cfg{:name "node-1" | ||
#:lcl{:name "node-1" | ||
:host "127.0.0.1" | ||
:postgres-bin "/usr/lib/postgresql/9.5/bin" | ||
:data-dir "/tmp/node-1" | ||
:web #:web{:port 8080} | ||
:atomix #:ax{:port 4444 | ||
:host "127.0.0.1"} | ||
:atomix #:ax{:port 4444} | ||
:postgres #:pg{:port 5434 | ||
:host "127.0.0.1" | ||
:restore_command "cp /tmp/wallogs/pg_xlog/%f %p" | ||
:archive_cleanup_command "rm -f %r" | ||
:archive_command "cp %p /tmp/wallogs/%p"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
#:cfg{:name "node-2" | ||
#:lcl{:name "node-2" | ||
:postgres-bin "/usr/lib/postgresql/9.5/bin" | ||
:data-dir "/tmp/node-2" | ||
:web #:web{:port 8081} | ||
:host "127.0.0.1" | ||
:atomix #:ax{:port 4445 | ||
:host "127.0.0.1" | ||
:join [{:host "127.0.0.1" :port 4444}] | ||
:discovery ["http://localhost:8080/discovery"]} | ||
:postgres #:pg{:port 5435 | ||
:host "127.0.0.1" | ||
:archive_command "cp %p /tmp/wallogs/%p"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
#:cfg{:name "node-3" | ||
#:lcl{:name "node-3" | ||
:postgres-bin "/usr/lib/postgresql/9.5/bin" | ||
:data-dir "/tmp/node-3" | ||
:web #:web{:port 8082} | ||
:host "127.0.0.1" | ||
:atomix #:ax{:port 4446 | ||
:host "127.0.0.1" | ||
:join [{:host "127.0.0.1" :port 4444}] | ||
:discovery ["http://localhost:8080/discovery"]} | ||
:postgres #:pg{:port 5435 | ||
:host "127.0.0.1" | ||
:archive_command "cp %p /tmp/wallogs/%p"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters