Advertisement
Guest User

Untitled

a guest
May 4th, 2016
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 37.91 KB | None | 0 0
  1. #------------------------------------------------------------------------------
  2. # CONNECTIONS
  3. #------------------------------------------------------------------------------
  4.  
  5. # - pgpool Connection Settings -
  6.  
  7. listen_addresses = '*'
  8.                                    # Host name or IP address to listen on:
  9.                                    # '*' for all, '' for no TCP/IP connections
  10.                                    # (change requires restart)
  11. port = 5432
  12.                                    # Port number
  13.                                    # (change requires restart)
  14. socket_dir = '/tmp'
  15.                                    # Unix domain socket path
  16.                                    # The Debian package defaults to
  17.                                    # /var/run/postgresql
  18.                                    # (change requires restart)
  19. listen_backlog_multiplier = 2
  20.                                    # Set the backlog parameter of listen(2) to
  21.                                                                    # num_init_children * listen_backlog_multiplier.
  22.                                    # (change requires restart)
  23. serialize_accept = off
  24.                                    # whether to serialize accept() call to avoid thundering herd problem
  25.                                    # (change requires restart)
  26.  
  27. # - pgpool Communication Manager Connection Settings -
  28.  
  29. pcp_listen_addresses = '*'
  30.                                    # Host name or IP address for pcp process to listen on:
  31.                                    # '*' for all, '' for no TCP/IP connections
  32.                                    # (change requires restart)
  33. pcp_port = 9898
  34.                                    # Port number for pcp
  35.                                    # (change requires restart)
  36. pcp_socket_dir = '/tmp'
  37.                                    # Unix domain socket path for pcp
  38.                                    # The Debian package defaults to
  39.                                    # /var/run/postgresql
  40.                                    # (change requires restart)
  41. # - Backend Connection Settings -
  42.  
  43. #backend_hostname0 = 'localhost'
  44.                                    # Host name or IP address to connect to for backend 0
  45. #backend_port0 = 5432
  46.                                    # Port number for backend 0
  47. #backend_weight0 = 1
  48.                                    # Weight for backend 0 (only in load balancing mode)
  49. #backend_data_directory0 = '/var/lib/pgsql/data'
  50.                                    # Data directory for backend 0
  51. #backend_flag0 = 'ALLOW_TO_FAILOVER'
  52.                                    # Controls various backend behavior
  53.                                    # ALLOW_TO_FAILOVER or DISALLOW_TO_FAILOVER
  54. #backend_hostname1 = 'host2'
  55. #backend_port1 = 5433
  56. #backend_weight1 = 1
  57. #backend_data_directory1 = '/data1'
  58. #backend_flag1 = 'ALLOW_TO_FAILOVER'
  59.  
  60.  
  61. backend_hostname0 = '192.168.7.35'
  62. backend_port0 = 5432
  63. backend_weight0 = 1
  64. backend_data_directory0 = '/data'
  65. backend_flag0 = 'ALLOW_TO_FAILOVER'
  66.  
  67. backend_hostname1 = '192.168.7.45'
  68. backend_port1 = 5432
  69. backend_weight1 = 1
  70. backend_data_directory1 = '/data1'
  71. backend_flag1 = 'ALLOW_TO_FAILOVER'
  72.  
  73. backend_hostname2 = '192.168.7.46'
  74. backend_port2 = 5432
  75. backend_weight2 = 1
  76. backend_data_directory2 = '/data2'
  77. backend_flag2 = 'ALLOW_TO_FAILOVER'
  78.  
  79. backend_hostname3 = '192.168.7.44'
  80. backend_port3 = 5432
  81. backend_weight3 = 1
  82. backend_data_directory3 = '/data3'
  83. backend_flag3 = 'ALLOW_TO_FAILOVER'
  84.  
  85.  
  86. # - Authentication -
  87. # - Authentication -
  88.  
  89. enable_pool_hba = off
  90.                                    # Use pool_hba.conf for client authentication
  91. pool_passwd = 'pool_passwd'
  92.                                    # File name of pool_passwd for md5 authentication.
  93.                                    # "" disables pool_passwd.
  94.                                    # (change requires restart)
  95. authentication_timeout = 60
  96.                                    # Delay in seconds to complete client authentication
  97.                                    # 0 means no timeout.
  98.  
  99. # - SSL Connections -
  100.  
  101. ssl = off
  102.                                    # Enable SSL support
  103.                                    # (change requires restart)
  104. #ssl_key = './server.key'
  105.                                    # Path to the SSL private key file
  106.                                    # (change requires restart)
  107. #ssl_cert = './server.cert'
  108.                                    # Path to the SSL public certificate file
  109.                                    # (change requires restart)
  110. #ssl_ca_cert = ''
  111.                                    # Path to a single PEM format file
  112.                                    # containing CA root certificate(s)
  113.                                    # (change requires restart)
  114. #ssl_ca_cert_dir = ''
  115.                                    # Directory containing CA root certificate(s)
  116.                                    # (change requires restart)
  117.  
  118. #------------------------------------------------------------------------------
  119. # POOLS
  120. #------------------------------------------------------------------------------
  121.  
  122. # - Pool size -
  123.  
  124. num_init_children = 100
  125.                                    # Number of pools
  126.                                    # (change requires restart)
  127. max_pool = 7
  128.                                    # Number of connections per pool
  129.                                    # (change requires restart)
  130.  
  131. # - Life time -
  132.  
  133. child_life_time = 300
  134.                                    # Pool exits after being idle for this many seconds
  135. child_max_connections = 0
  136.                                    # Pool exits after receiving that many connections
  137.                                    # 0 means no exit
  138. connection_life_time = 0
  139.                                    # Connection to backend closes after being idle for this many seconds
  140.                                    # 0 means no close
  141. client_idle_limit = 0
  142.                                    # Client is disconnected after being idle for that many seconds
  143.                                    # (even inside an explicit transactions!)
  144.                                    # 0 means no disconnection
  145.  
  146.  
  147. #------------------------------------------------------------------------------
  148. # LOGS
  149. #------------------------------------------------------------------------------
  150.  
  151. # - Where to log -
  152.  
  153. log_destination = 'stderr'
  154.                                    # Where to log
  155.                                    # Valid values are combinations of stderr,
  156.                                    # and syslog. Default to stderr.
  157.  
  158. # - What to log -
  159.  
  160. log_line_prefix = '%t: pid %p: '   # printf-style string to output at beginning of each log line.
  161.  
  162. log_connections = off
  163.                                    # Log connections
  164. log_hostname = off
  165.                                    # Hostname will be shown in ps status
  166.                                    # and in logs if connections are logged
  167. log_statement = off
  168.                                    # Log all statements
  169. log_per_node_statement = off
  170.                                    # Log all statements
  171.                                    # with node and backend informations
  172. log_standby_delay = 'none'
  173.                                    # Log standby delay
  174.                                    # Valid values are combinations of always,
  175.                                    # if_over_threshold, none
  176.  
  177. # - Syslog specific -
  178.  
  179. syslog_facility = 'LOCAL0'
  180.                                    # Syslog local facility. Default to LOCAL0
  181. syslog_ident = 'pgpool'
  182.                                    # Syslog program identification string
  183.                                    # Default to 'pgpool'
  184.  
  185. # - Debug -
  186.  
  187. debug_level = 0
  188.                                    # Debug message verbosity level
  189.                                    # 0 means no message, 1 or more mean verbose
  190.  
  191. #log_error_verbosity = default          # terse, default, or verbose messages
  192.  
  193. #client_min_messages = notice           # values in order of decreasing detail:
  194.                                         #   debug5
  195.                                         #   debug4
  196.                                         #   debug3
  197.                                         #   debug2
  198.                                         #   debug1
  199.                                         #   log
  200.                                         #   notice
  201.                                         #   warning
  202.                                         #   error
  203.  
  204. #log_min_messages = warning             # values in order of decreasing detail:
  205.                                         #   debug5
  206.                                         #   debug4
  207.                                         #   debug3
  208.                                         #   debug2
  209.                                         #   debug1
  210.                                         #   info
  211.                                         #   notice
  212.                                         #   warning
  213.                                         #   error
  214.                                         #   log
  215.                                         #   fatal
  216.                                         #   panic
  217.  
  218. #------------------------------------------------------------------------------
  219. # FILE LOCATIONS
  220. #------------------------------------------------------------------------------
  221.  
  222. pid_file_name = '/var/run/pgpool/pgpool.pid'
  223.                                    # PID file name
  224.                                    # (change requires restart)
  225. logdir = '/var/log/pgpool'
  226.                                    # Directory of pgPool status file
  227.                                    # (change requires restart)
  228.  
  229.  
  230. #------------------------------------------------------------------------------
  231. # CONNECTION POOLING
  232. #------------------------------------------------------------------------------
  233.  
  234. connection_cache = on
  235.                                    # Activate connection pools
  236.                                    # (change requires restart)
  237.  
  238.                                    # Semicolon separated list of queries
  239.                                    # to be issued at the end of a session
  240.                                    # The default is for 8.3 and later
  241. reset_query_list = 'ABORT; DISCARD ALL'
  242.                                    # The following one is for 8.2 and before
  243. #reset_query_list = 'ABORT; RESET ALL; SET SESSION AUTHORIZATION DEFAULT'
  244.  
  245. #------------------------------------------------------------------------------
  246. # REPLICATION MODE
  247. #------------------------------------------------------------------------------
  248.  
  249. replication_mode = on
  250.                                    # Activate replication mode
  251.                                    # (change requires restart)
  252. replicate_select = off
  253.                                    # Replicate SELECT statements
  254.                                    # when in replication mode
  255.                                    # replicate_select is higher priority than
  256.                                    # load_balance_mode.
  257.  
  258. insert_lock = on
  259.                                    # Automatically locks a dummy row or a table
  260.                                    # with INSERT statements to keep SERIAL data
  261.                                    # consistency
  262.                                    # Without SERIAL, no lock will be issued
  263. lobj_lock_table = ''
  264.                                    # When rewriting lo_creat command in
  265.                                    # replication mode, specify table name to
  266.                                    # lock
  267.  
  268. # - Degenerate handling -
  269.  
  270. replication_stop_on_mismatch = off
  271.                                    # On disagreement with the packet kind
  272.                                    # sent from backend, degenerate the node
  273.                                    # which is most likely "minority"
  274.                                    # If off, just force to exit this session
  275.  
  276. failover_if_affected_tuples_mismatch = off
  277.                                    # On disagreement with the number of affected
  278.                                    # tuples in UPDATE/DELETE queries, then
  279.                                    # degenerate the node which is most likely
  280.                                    # "minority".
  281.                                    # If off, just abort the transaction to
  282.                                    # keep the consistency
  283.  
  284. #------------------------------------------------------------------------------
  285. # LOAD BALANCING MODE
  286. #------------------------------------------------------------------------------
  287.  
  288. load_balance_mode = on
  289.                                    # Activate load balancing mode
  290.                                    # (change requires restart)
  291. ignore_leading_white_space = on
  292.                                    # Ignore leading white spaces of each query
  293. white_function_list = ''
  294.                                    # Comma separated list of function names
  295.                                    # that don't write to database
  296.                                   # Regexp are accepted
  297. black_function_list = 'nextval,setval,nextval,setval'
  298.                                   # Comma separated list of function names
  299.                                   # that write to database
  300.                                   # Regexp are accepted
  301.  
  302. database_redirect_preference_list = ''
  303.                                                                   # comma separated list of pairs of database and node id.
  304.                                                                   # example: postgres:primary,mydb[0-4]:1,mydb[5-9]:2'
  305.                                                                    # valid for streaming replicaton mode only.
  306.  
  307. app_name_redirect_preference_list = ''
  308.                                                                    # comma separated list of pairs of app name and node id.
  309.                                                                    # example: 'psql:primary,myapp[0-4]:1,myapp[5-9]:standby'
  310.                                                                    # valid for streaming replicaton mode only.
  311. allow_sql_comments = off
  312.                                                                    # if on, ignore SQL comments when judging if load balance or
  313.                                                                    # query cache is possible.
  314.                                                                    # If off, SQL comments effectively prevent the judgment
  315.                                                                    # (pre 3.4 behavior).
  316.  
  317. #------------------------------------------------------------------------------
  318. # MASTER/SLAVE MODE
  319. #------------------------------------------------------------------------------
  320.  
  321. master_slave_mode = off
  322.                                    # Activate master/slave mode
  323.                                    # (change requires restart)
  324. master_slave_sub_mode = 'slony'
  325.                                    # Master/slave sub mode
  326.                                    # Valid values are combinations slony or
  327.                                    # stream. Default is slony.
  328.                                    # (change requires restart)
  329.  
  330. # - Streaming -
  331.  
  332. sr_check_period = 0
  333.                                    # Streaming replication check period
  334.                                    # Disabled (0) by default
  335. sr_check_user = 'nobody'
  336.                                    # Streaming replication check user
  337.                                    # This is necessary even if you disable
  338.                                    # streaming replication delay check with
  339.                                    # sr_check_period = 0
  340. sr_check_password = ''
  341.                                    # Password for streaming replication check user
  342. sr_check_database = 'postgres'
  343.                                    # Database name for streaming replication check
  344. delay_threshold = 0
  345.                                    # Threshold before not dispatching query to standby node
  346.                                    # Unit is in bytes
  347.                                    # Disabled (0) by default
  348.  
  349. # - Special commands -
  350.  
  351. follow_master_command = ''
  352.                                    # Executes this command after master failover
  353.                                    # Special values:
  354.                                    #   %d = node id
  355.                                    #   %h = host name
  356.                                    #   %p = port number
  357.                                    #   %D = database cluster path
  358.                                    #   %m = new master node id
  359.                                    #   %H = hostname of the new master node
  360.                                    #   %M = old master node id
  361.                                    #   %P = old primary node id
  362.                                    #   %r = new master port number
  363.                                    #   %R = new master database cluster path
  364.                                    #   %% = '%' character
  365.  
  366. #------------------------------------------------------------------------------
  367. #------------------------------------------------------------------------------
  368. # HEALTH CHECK
  369. #------------------------------------------------------------------------------
  370.  
  371. health_check_period = 0
  372.                                    # Health check period
  373.                                    # Disabled (0) by default
  374. health_check_timeout = 20
  375.                                    # Health check timeout
  376.                                    # 0 means no timeout
  377. health_check_user = 'nobody'
  378.                                    # Health check user
  379. health_check_password = ''
  380.                                    # Password for health check user
  381. health_check_database = ''
  382.                                    # Database name for health check. If '', tries 'postgres' frist, then 'template1'
  383.  
  384. health_check_max_retries = 0
  385.                                    # Maximum number of times to retry a failed health check before giving up.
  386. health_check_retry_delay = 1
  387.                                    # Amount of time to wait (in seconds) between retries.
  388. connect_timeout = 10000
  389.                                    # Timeout value in milliseconds before giving up to connect to backend.
  390.                                                                    # Default is 10000 ms (10 second). Flaky network user may want to increase
  391.                                                                    # the value. 0 means no timeout.
  392.                                                                    # Note that this value is not only used for health check,
  393.                                                                    # but also for ordinary conection to backend.
  394. #------------------------------------------------------------------------------
  395. # HEALTH CHECK
  396. #------------------------------------------------------------------------------
  397.  
  398. health_check_period = 0
  399.                                    # Health check period
  400.                                    # Disabled (0) by default
  401. health_check_timeout = 20
  402.                                    # Health check timeout
  403.                                    # 0 means no timeout
  404. health_check_user = 'nobody'
  405.                                    # Health check user
  406. health_check_password = ''
  407.                                    # Password for health check user
  408. health_check_database = ''
  409.                                    # Database name for health check. If '', tries 'postgres' frist, then 'template1'
  410.  
  411. health_check_max_retries = 0
  412.                                    # Maximum number of times to retry a failed health check before giving up.
  413. health_check_retry_delay = 1
  414.                                    # Amount of time to wait (in seconds) between retries.
  415. connect_timeout = 10000
  416.                                    # Timeout value in milliseconds before giving up to connect to backend.
  417.                                                                    # Default is 10000 ms (10 second). Flaky network user may want to increase
  418.                                                                    # the value. 0 means no timeout.
  419.                                                                    # Note that this value is not only used for health check,
  420.                                                                    # but also for ordinary conection to backend.
  421. #------------------------------------------------------------------------------
  422. # ONLINE RECOVERY
  423. #------------------------------------------------------------------------------
  424.  
  425. recovery_user = 'nobody'
  426.                                    # Online recovery user
  427. recovery_password = ''
  428.                                    # Online recovery password
  429. recovery_1st_stage_command = ''
  430.                                    # Executes a command in first stage
  431. recovery_2nd_stage_command = ''
  432.                                    # Executes a command in second stage
  433. recovery_timeout = 90
  434.                                    # Timeout in seconds to wait for the
  435.                                    # recovering node's postmaster to start up
  436.                                   # 0 means no wait
  437. client_idle_limit_in_recovery = 0
  438.                                   # Client is disconnected after being idle
  439.                                   # for that many seconds in the second stage
  440.                                   # of online recovery
  441.                                   # 0 means no disconnection
  442.                                   # -1 means immediate disconnection
  443.  
  444.  
  445. #------------------------------------------------------------------------------
  446. # WATCHDOG
  447. #------------------------------------------------------------------------------
  448.  
  449. # - Enabling -
  450.  
  451. use_watchdog = off
  452.                                    # Activates watchdog
  453.                                    # (change requires restart)
  454.  
  455. # -Connection to up stream servers -
  456.  
  457. trusted_servers = ''
  458.                                    # trusted server list which are used
  459.                                    # to confirm network connection
  460.                                    # (hostA,hostB,hostC,...)
  461.                                    # (change requires restart)
  462. ping_path = '/bin'
  463.                                    # ping command path
  464.                                    # (change requires restart)
  465.  
  466. # - Watchdog communication Settings -
  467.  
  468. wd_hostname = ''
  469.                                    # Host name or IP address of this watchdog
  470.                                    # (change requires restart)
  471. wd_port = 9000
  472.                                    # port number for watchdog service
  473.                                    # (change requires restart)
  474. wd_priority = 1
  475.                                                                        # priority of this watchdog in leader election
  476.                                                                        # (change requires restart)
  477.  
  478. wd_authkey = ''
  479.                                    # Authentication key for watchdog communication
  480.                                    # (change requires restart)
  481.  
  482. wd_ipc_socket_dir = '/tmp'
  483.                                                                        # Unix domain socket path for watchdog IPC socket
  484.                                                                        # The Debian package defaults to
  485.                                                                        # /var/run/postgresql
  486.                                                                        # (change requires restart)
  487.  
  488.  
  489. # - Virtual IP control Setting -
  490.  
  491. delegate_IP = ''
  492.                                    # delegate IP address
  493.                                    # If this is empty, virtual IP never bring up.
  494.                                    # (change requires restart)
  495. if_cmd_path = '/sbin'
  496.                                    # path to the directory where if_up/down_cmd exists
  497.                                    # (change requires restart)
  498. if_up_cmd = 'ip addr add $_IP_$/24 dev eth0 label eth0:0'
  499.                                    # startup delegate IP command
  500.                                    # (change requires restart)
  501. if_down_cmd = 'ip addr del $_IP_$/24 dev eth0'
  502.                                    # shutdown delegate IP command
  503.                                    # (change requires restart)
  504. arping_path = '/usr/sbin'
  505.                                    # arping command path
  506.                                    # (change requires restart)
  507. arping_cmd = 'arping -U $_IP_$ -w 1'
  508.                                    # arping command
  509.                                    # (change requires restart)
  510.  
  511. # - Behaivor on escalation Setting -
  512.  
  513. clear_memqcache_on_escalation = on
  514.                                    # Clear all the query cache on shared memory
  515.                                    # when standby pgpool escalate to active pgpool
  516.                                    # (= virtual IP holder).
  517.                                    # This should be off if client connects to pgpool
  518.                                    # not using virtual IP.
  519.                                    # (change requires restart)
  520. wd_escalation_command = ''
  521.                                    # Executes this command at escalation on new active pgpool.
  522.                                    # (change requires restart)
  523. wd_de_escalation_command = ''
  524.                                                                        # Executes this command when master pgpool resigns from being master.
  525.                                                                        # (change requires restart)
  526.  
  527. # - Lifecheck Setting -
  528.  
  529. # -- common --
  530.  
  531. wd_monitoring_interfaces_list = ''  # Comma separated list of interfaces names to monitor.
  532.                                                                        # if any interface from the list is active the watchdog will
  533.                                                                        # consider the network is fine
  534.                                                                        # 'any' to enable monitoring on all interfaces except loopback
  535.                                                                        # '' to disable monitoring
  536.  
  537.  
  538. wd_lifecheck_method = 'heartbeat'
  539.                                    # Method of watchdog lifecheck ('heartbeat' or 'query' or 'external')
  540.                                    # (change requires restart)
  541. wd_interval = 10
  542.                                    # lifecheck interval (sec) > 0
  543.                                    # (change requires restart)
  544.  
  545. # -- heartbeat mode --
  546.  
  547. wd_heartbeat_port = 9694
  548.                                    # Port number for receiving heartbeat signal
  549.                                    # (change requires restart)
  550. wd_heartbeat_keepalive = 2
  551.                                    # Interval time of sending heartbeat signal (sec)
  552.                                    # (change requires restart)
  553. wd_heartbeat_deadtime = 30
  554.                                    # Deadtime interval for heartbeat signal (sec)
  555.                                    # (change requires restart)
  556. heartbeat_destination0 = 'host0_ip1'
  557.                                    # Host name or IP address of destination 0
  558.                                    # for sending heartbeat signal.
  559.                                    # (change requires restart)
  560. heartbeat_destination_port0 = 9694
  561.                                    # Port number of destination 0 for sending
  562.                                    # heartbeat signal. Usually this is the
  563.                                    # same as wd_heartbeat_port.
  564.                                    # (change requires restart)
  565. heartbeat_device0 = ''
  566.                                    # Name of NIC device (such like 'eth0')
  567.                                    # used for sending/receiving heartbeat
  568.                                    # signal to/from destination 0.
  569.                                    # This works only when this is not empty
  570.                                    # and pgpool has root privilege.
  571.                                    # (change requires restart)
  572. # - Lifecheck Setting -
  573.  
  574. # -- common --
  575.  
  576. wd_monitoring_interfaces_list = ''  # Comma separated list of interfaces names to monitor.
  577.                                                                        # if any interface from the list is active the watchdog will
  578.                                                                        # consider the network is fine
  579.                                                                        # 'any' to enable monitoring on all interfaces except loopback
  580.                                                                        # '' to disable monitoring
  581.  
  582.  
  583. wd_lifecheck_method = 'heartbeat'
  584.                                    # Method of watchdog lifecheck ('heartbeat' or 'query' or 'external')
  585.                                    # (change requires restart)
  586. wd_interval = 10
  587.                                    # lifecheck interval (sec) > 0
  588.                                    # (change requires restart)
  589.  
  590. # -- heartbeat mode --
  591.  
  592. wd_heartbeat_port = 9694
  593.                                    # Port number for receiving heartbeat signal
  594.                                    # (change requires restart)
  595. wd_heartbeat_keepalive = 2
  596.                                    # Interval time of sending heartbeat signal (sec)
  597.                                    # (change requires restart)
  598. wd_heartbeat_deadtime = 30
  599.                                    # Deadtime interval for heartbeat signal (sec)
  600.                                    # (change requires restart)
  601. heartbeat_destination0 = 'host0_ip1'
  602.                                    # Host name or IP address of destination 0
  603.                                    # for sending heartbeat signal.
  604.                                    # (change requires restart)
  605. heartbeat_destination_port0 = 9694
  606.                                    # Port number of destination 0 for sending
  607.                                    # heartbeat signal. Usually this is the
  608.                                    # same as wd_heartbeat_port.
  609.                                    # (change requires restart)
  610. heartbeat_device0 = ''
  611.                                    # Name of NIC device (such like 'eth0')
  612.                                    # used for sending/receiving heartbeat
  613.                                    # signal to/from destination 0.
  614.                                    # This works only when this is not empty
  615.                                    # and pgpool has root privilege.
  616.                                    # (change requires restart)
  617. # - Lifecheck Setting -
  618.  
  619. # -- common --
  620.  
  621. wd_monitoring_interfaces_list = ''  # Comma separated list of interfaces names to monitor.
  622.                                                                        # if any interface from the list is active the watchdog will
  623.                                                                        # consider the network is fine
  624.                                                                        # 'any' to enable monitoring on all interfaces except loopback
  625.                                                                        # '' to disable monitoring
  626.  
  627.  
  628. wd_lifecheck_method = 'heartbeat'
  629.                                    # Method of watchdog lifecheck ('heartbeat' or 'query' or 'external')
  630.                                    # (change requires restart)
  631. wd_interval = 10
  632.                                    # lifecheck interval (sec) > 0
  633.                                    # (change requires restart)
  634.  
  635. # -- heartbeat mode --
  636.  
  637. wd_heartbeat_port = 9694
  638.                                    # Port number for receiving heartbeat signal
  639.                                    # (change requires restart)
  640. wd_heartbeat_keepalive = 2
  641.                                    # Interval time of sending heartbeat signal (sec)
  642.                                    # (change requires restart)
  643. wd_heartbeat_deadtime = 30
  644.                                    # Deadtime interval for heartbeat signal (sec)
  645.                                    # (change requires restart)
  646. heartbeat_destination0 = 'host0_ip1'
  647.                                    # Host name or IP address of destination 0
  648.                                    # for sending heartbeat signal.
  649.                                    # (change requires restart)
  650. heartbeat_destination_port0 = 9694
  651.                                    # Port number of destination 0 for sending
  652.                                    # heartbeat signal. Usually this is the
  653.                                    # same as wd_heartbeat_port.
  654.                                    # (change requires restart)
  655. heartbeat_device0 = ''
  656.                                    # Name of NIC device (such like 'eth0')
  657.                                    # used for sending/receiving heartbeat
  658.                                    # signal to/from destination 0.
  659.                                    # This works only when this is not empty
  660.                                    # and pgpool has root privilege.
  661.                                    # (change requires restart)
  662. # - Lifecheck Setting -
  663.  
  664. # -- common --
  665.  
  666. wd_monitoring_interfaces_list = ''  # Comma separated list of interfaces names to monitor.
  667.                                                                        # if any interface from the list is active the watchdog will
  668.                                                                        # consider the network is fine
  669.                                                                        # 'any' to enable monitoring on all interfaces except loopback
  670.                                                                        # '' to disable monitoring
  671.  
  672.  
  673. wd_lifecheck_method = 'heartbeat'
  674.                                    # Method of watchdog lifecheck ('heartbeat' or 'query' or 'external')
  675.                                    # (change requires restart)
  676. wd_interval = 10
  677.                                    # lifecheck interval (sec) > 0
  678.                                    # (change requires restart)
  679.  
  680. # -- heartbeat mode --
  681.  
  682. wd_heartbeat_port = 9694
  683.                                    # Port number for receiving heartbeat signal
  684.                                    # (change requires restart)
  685. wd_heartbeat_keepalive = 2
  686.                                    # Interval time of sending heartbeat signal (sec)
  687.                                    # (change requires restart)
  688. wd_heartbeat_deadtime = 30
  689.                                    # Deadtime interval for heartbeat signal (sec)
  690.                                    # (change requires restart)
  691. heartbeat_destination0 = 'host0_ip1'
  692.                                    # Host name or IP address of destination 0
  693.                                    # for sending heartbeat signal.
  694.                                    # (change requires restart)
  695. heartbeat_destination_port0 = 9694
  696.                                    # Port number of destination 0 for sending
  697.                                    # heartbeat signal. Usually this is the
  698.                                    # same as wd_heartbeat_port.
  699.                                    # (change requires restart)
  700. heartbeat_device0 = ''
  701.                                    # Name of NIC device (such like 'eth0')
  702.                                    # used for sending/receiving heartbeat
  703.                                    # signal to/from destination 0.
  704.                                    # This works only when this is not empty
  705.                                    # and pgpool has root privilege.
  706.                                    # (change requires restart)
  707. # - Lifecheck Setting -
  708.  
  709. # -- common --
  710.  
  711. wd_monitoring_interfaces_list = ''  # Comma separated list of interfaces names to monitor.
  712.                                                                        # if any interface from the list is active the watchdog will
  713.                                                                        # consider the network is fine
  714.                                                                        # 'any' to enable monitoring on all interfaces except loopback
  715.                                                                        # '' to disable monitoring
  716.  
  717.  
  718. wd_lifecheck_method = 'heartbeat'
  719.                                    # Method of watchdog lifecheck ('heartbeat' or 'query' or 'external')
  720.                                    # (change requires restart)
  721. wd_interval = 10
  722.                                    # lifecheck interval (sec) > 0
  723.                                    # (change requires restart)
  724.  
  725. # -- heartbeat mode --
  726.  
  727. wd_heartbeat_port = 9694
  728.                                    # Port number for receiving heartbeat signal
  729.                                    # (change requires restart)
  730. wd_heartbeat_keepalive = 2
  731.                                    # Interval time of sending heartbeat signal (sec)
  732.                                    # (change requires restart)
  733. wd_heartbeat_deadtime = 30
  734.                                    # Deadtime interval for heartbeat signal (sec)
  735.                                    # (change requires restart)
  736. heartbeat_destination0 = 'host0_ip1'
  737.                                    # Host name or IP address of destination 0
  738.                                    # for sending heartbeat signal.
  739.                                    # (change requires restart)
  740. heartbeat_destination_port0 = 9694
  741.                                    # Port number of destination 0 for sending
  742.                                    # heartbeat signal. Usually this is the
  743.                                    # same as wd_heartbeat_port.
  744.                                    # (change requires restart)
  745. heartbeat_device0 = ''
  746.                                    # Name of NIC device (such like 'eth0')
  747.                                    # used for sending/receiving heartbeat
  748.                                    # signal to/from destination 0.
  749.                                    # This works only when this is not empty
  750.                                    # and pgpool has root privilege.
  751.                                    # (change requires restart)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement