X-Git-Url: https://git.8kb.co.uk/?p=slony-i%2Fpgbouncer_follower;a=blobdiff_plain;f=pgbouncer_follower_wal_ro.conf;fp=pgbouncer_follower_wal_ro.conf;h=72f3c6d6de4d71a538606958ff9915090c843d43;hp=0000000000000000000000000000000000000000;hb=399f595661a3c583cdd16d18e4da7ad6ea089393;hpb=52977a7794fdf0d0569cbcb0eb9e771fd8a16805 diff --git a/pgbouncer_follower_wal_ro.conf b/pgbouncer_follower_wal_ro.conf new file mode 100755 index 0000000..72f3c6d --- /dev/null +++ b/pgbouncer_follower_wal_ro.conf @@ -0,0 +1,55 @@ +#------------------------------------------------------------------------------ +# Replication cluster information +#------------------------------------------------------------------------------ +replication_method=wal # Possible values 'slony' or 'wal' + +replication_user=repuser # Username to use when connecting to PostgreSQL server to + # retrieve slony cluster configuration / streaming rep state + +replication_pass= # Password for above, leave blank to use .pgpass + +slony_cluster_name=test_replication # Slony-I replication cluster name + +#------------------------------------------------------------------------------ +# Server information +#------------------------------------------------------------------------------ +server_conninfo=dbname=test host=localhost port=5432 # Conninfo of servers. For slony this list is used to pull cluster +server_conninfo=dbname=test host=localhost port=5433 # configuration from the first contactable node so all nodes not necessarily +server_conninfo=dbname=test host=localhost port=5434 # not necessarily required. For WAL replication all servers required. + +#------------------------------------------------------------------------------ +# PgBouncer follower information +#------------------------------------------------------------------------------ +debug=false +follower_poll_interval=5000 # Cluster state poll interval (milliseconds) + +slony_sets_to_follow=all # Comma separated list of set id's to follow E.g. "1,2,3,4" or "all" + +only_follow_origins=false # If true pgbouncer will only be reconfigured and reloaded + # when the origin of a set / primary moves. If false any + # changes to origins, providers or subscribers will initiate + # a reconfigure and reload. + +pool_mode=ro # Values are rw/ro. "rw" follows the origin node + # whereas "ro" will follow a subscriber of the sets + # specified in slony_sets_to_follow + +pool_all_databases=true # If true uses a wildcard in the conninfo for the pooler + # thus hosting all databases on the node. If false + # only the database in the target servers conninfo is hosted. + +auth_user= # If set auth_user will be appended to conninfo written + # in [databases] section. + +status_file=/var/run/pgbouncer_follower.status # File used to store tate of the cluster +log_file=/var/log/pgbouncer_follower.log # Log for pool_follower script +pid_file=/var/run/pgbouncer_follower.pid # Pidfile for poll mode +pool_conf_template=/etc/pgbouncer/pgbouncer.template # Template configuration file +pool_conf_target=/etc/pgbouncer/pgbouncer.ini # Target configuration file to be modified +pool_reload_command=/etc/init.d/pgbouncer restart # Command used to action configuration changes + # Sepcial values for status_file, log_file, pool_conf_template + # pool_conf_target and pool_reload_command parameters: + # %mode - Pool Mode + # %clname - Slony cluster name +max_ro_lag=1200 # Maximum lag in seconds allowed for subscriber nodes when + # running in ro mode. 0 = don't monitor lag.