Advertisement
Guest User

pgpool.conf

a guest
Dec 30th, 2014
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 33.03 KB | None | 0 0
  1. # ----------------------------
  2. # pgPool-II configuration file
  3. # ----------------------------
  4. #
  5. # This file consists of lines of the form:
  6. #
  7. #   name = value
  8. #
  9. # Whitespace may be used.  Comments are introduced with "#" anywhere on a line.
  10. # The complete list of parameter names and allowed values can be found in the
  11. # pgPool-II documentation.
  12. #
  13. # This file is read on server startup and when the server receives a SIGHUP
  14. # signal.  If you edit the file on a running system, you have to SIGHUP the
  15. # server for the changes to take effect, or use "pgpool reload".  Some
  16. # parameters, which are marked below, require a server shutdown and restart to
  17. # take effect.
  18. #
  19.  
  20.  
  21. #------------------------------------------------------------------------------
  22. # CONNECTIONS
  23. #------------------------------------------------------------------------------
  24.  
  25. # - pgpool Connection Settings -
  26.  
  27. listen_addresses = '*'
  28.                                    # Host name or IP address to listen on:
  29.                                    # '*' for all, '' for no TCP/IP connections
  30.                                    # (change requires restart)
  31. port = 9999
  32.                                    # Port number
  33.                                    # (change requires restart)
  34. socket_dir = '/tmp'
  35.                                    # Unix domain socket path
  36.                                    # The Debian package defaults to
  37.                                    # /var/run/postgresql
  38.                                    # (change requires restart)
  39.  
  40.  
  41. # - pgpool Communication Manager Connection Settings -
  42.  
  43. pcp_listen_addresses = '*'
  44.                                    # Host name or IP address for pcp process to listen on:
  45.                                    # '*' for all, '' for no TCP/IP connections
  46.                                    # (change requires restart)
  47. pcp_port = 9898
  48.                                    # Port number for pcp
  49.                                    # (change requires restart)
  50. pcp_socket_dir = '/tmp'
  51.                                    # Unix domain socket path for pcp
  52.                                    # The Debian package defaults to
  53.                                    # /var/run/postgresql
  54.                                    # (change requires restart)
  55. listen_backlog_multiplier = 2
  56.                                    # Set the backlog parameter of listen(2) to
  57.                                    # num_init_children * listen_backlog_multiplier.
  58.                                    # (change requires restart)
  59.  
  60. # - Backend Connection Settings -
  61.  
  62. backend_hostname0 = '10.88.9.216'
  63.                                    # Host name or IP address to connect to for backend 0
  64. backend_port0 = 5433
  65.                                    # Port number for backend 0
  66. backend_weight0 = 1
  67.                                    # Weight for backend 0 (only in load balancing mode)
  68. backend_data_directory0 = '/home/postgres/data'
  69.                                    # Data directory for backend 0
  70. backend_flag0 = 'ALLOW_TO_FAILOVER'
  71.                                    # Controls various backend behavior
  72.                                    # ALLOW_TO_FAILOVER or DISALLOW_TO_FAILOVER
  73. backend_hostname1 = '10.88.9.215'
  74. backend_port1 = 5434
  75. backend_weight1 = 1
  76. backend_data_directory1 = '/home/postgres/9.2/data'
  77. backend_flag1 = 'ALLOW_TO_FAILOVER'
  78.  
  79. # - Authentication -
  80.  
  81. enable_pool_hba = on
  82.                                    # Use pool_hba.conf for client authentication
  83. pool_passwd = 'pool_passwd'
  84.                                    # File name of pool_passwd for md5 authentication.
  85.                                    # "" disables pool_passwd.
  86.                                    # (change requires restart)
  87. authentication_timeout = 60
  88.                                    # Delay in seconds to complete client authentication
  89.                                    # 0 means no timeout.
  90.  
  91. # - SSL Connections -
  92.  
  93. ssl = off
  94.                                    # Enable SSL support
  95.                                    # (change requires restart)
  96. #ssl_key = './server.key'
  97.                                    # Path to the SSL private key file
  98.                                    # (change requires restart)
  99. #ssl_cert = './server.cert'
  100.                                    # Path to the SSL public certificate file
  101.                                    # (change requires restart)
  102. #ssl_ca_cert = ''
  103.                                    # Path to a single PEM format file
  104.                                    # containing CA root certificate(s)
  105.                                    # (change requires restart)
  106. #ssl_ca_cert_dir = ''
  107.                                    # Directory containing CA root certificate(s)
  108.                                    # (change requires restart)
  109.  
  110.  
  111. #------------------------------------------------------------------------------
  112. # POOLS
  113. #------------------------------------------------------------------------------
  114.  
  115. # - Pool size -
  116.  
  117. num_init_children = 100
  118.                                    # Number of pools
  119.                                    # (change requires restart)
  120. max_pool = 4
  121.                                    # Number of connections per pool
  122.                                    # (change requires restart)
  123.  
  124. # - Life time -
  125.  
  126. child_life_time = 300
  127.                                    # Pool exits after being idle for this many seconds
  128. child_max_connections = 600
  129.                                    # Pool exits after receiving that many connections
  130.                                    # 0 means no exit
  131. connection_life_time = 600
  132.                                    # Connection to backend closes after being idle for this many seconds
  133.                                    # 0 means no close
  134. client_idle_limit = 600
  135.                                    # Client is disconnected after being idle for that many seconds
  136.                                    # (even inside an explicit transactions!)
  137.                                    # 0 means no disconnection
  138.  
  139.  
  140. #------------------------------------------------------------------------------
  141. # LOGS
  142. #------------------------------------------------------------------------------
  143.  
  144. # - Where to log -
  145.  
  146. log_destination = 'stderr'
  147.                                    # Where to log
  148.                                    # Valid values are combinations of stderr,
  149.                                    # and syslog. Default to stderr.
  150.  
  151. # - What to log -
  152.  
  153. log_line_prefix = '%t: pid %p: '   # printf-style string to output at beginning of each log line.
  154.  
  155. log_connections = off
  156.                                    # Log connections
  157. log_hostname = off
  158.                                    # Hostname will be shown in ps status
  159.                                    # and in logs if connections are logged
  160. log_statement = off
  161.                                    # Log all statements
  162. log_per_node_statement = off
  163.                                    # Log all statements
  164.                                    # with node and backend informations
  165. log_standby_delay = 'if_over_threshold'
  166.                                    # Log standby delay
  167.                                    # Valid values are combinations of always,
  168.                                    # if_over_threshold, none
  169.  
  170. # - Syslog specific -
  171.  
  172. syslog_facility = 'LOCAL0'
  173.                                    # Syslog local facility. Default to LOCAL0
  174. syslog_ident = 'pgpool'
  175.                                    # Syslog program identification string
  176.                                    # Default to 'pgpool'
  177.  
  178. # - Debug -
  179.  
  180. debug_level = 0
  181.                                    # Debug message verbosity level
  182.                                    # 0 means no message, 1 or more mean verbose
  183.  
  184. #log_error_verbosity = default          # terse, default, or verbose messages
  185.  
  186. #client_min_messages = notice           # values in order of decreasing detail:
  187.                                         #   debug5
  188.                                         #   debug4
  189.                                         #   debug3
  190.                                         #   debug2
  191.                                         #   debug1
  192.                                         #   log
  193.                                         #   notice
  194.                                         #   warning
  195.                                         #   error
  196.  
  197. #log_min_messages = warning             # values in order of decreasing detail:
  198.                                         #   debug5
  199.                                         #   debug4
  200.                                         #   debug3
  201.                                         #   debug2
  202.                                         #   debug1
  203.                                         #   info
  204.                                         #   notice
  205.                                         #   warning
  206.                                         #   error
  207.                                         #   log
  208.                                         #   fatal
  209.                                         #   panic
  210.  
  211. #------------------------------------------------------------------------------
  212. # FILE LOCATIONS
  213. #------------------------------------------------------------------------------
  214.  
  215. pid_file_name = '/var/run/pgpool/pgpool.pid'
  216.                                    # PID file name
  217.                                    # (change requires restart)
  218. logdir = '/tmp'
  219.                                    # Directory of pgPool status file
  220.                                    # (change requires restart)
  221.  
  222.  
  223. #------------------------------------------------------------------------------
  224. # CONNECTION POOLING
  225. #------------------------------------------------------------------------------
  226.  
  227. connection_cache = off
  228.                                    # Activate connection pools
  229.                                    # (change requires restart)
  230.  
  231.                                    # Semicolon separated list of queries
  232.                                    # to be issued at the end of a session
  233.                                    # The default is for 8.3 and later
  234. reset_query_list = 'ABORT; DISCARD ALL'
  235.                                    # The following one is for 8.2 and before
  236. #reset_query_list = 'ABORT; RESET ALL; SET SESSION AUTHORIZATION DEFAULT'
  237.  
  238.  
  239. #------------------------------------------------------------------------------
  240. # REPLICATION MODE
  241. #------------------------------------------------------------------------------
  242.  
  243. replication_mode = off
  244.                                    # Activate replication mode
  245.                                    # (change requires restart)
  246. replicate_select = off
  247.                                    # Replicate SELECT statements
  248.                                    # when in replication mode
  249.                                    # replicate_select is higher priority than
  250.                                    # load_balance_mode.
  251.  
  252. insert_lock = off
  253.                                    # Automatically locks a dummy row or a table
  254.                                    # with INSERT statements to keep SERIAL data
  255.                                    # consistency
  256.                                    # Without SERIAL, no lock will be issued
  257. lobj_lock_table = ''
  258.                                    # When rewriting lo_creat command in
  259.                                    # replication mode, specify table name to
  260.                                    # lock
  261.  
  262. # - Degenerate handling -
  263.  
  264. replication_stop_on_mismatch = off
  265.                                    # On disagreement with the packet kind
  266.                                    # sent from backend, degenerate the node
  267.                                    # which is most likely "minority"
  268.                                    # If off, just force to exit this session
  269.  
  270. failover_if_affected_tuples_mismatch = off
  271.                                    # On disagreement with the number of affected
  272.                                    # tuples in UPDATE/DELETE queries, then
  273.                                    # degenerate the node which is most likely
  274.                                    # "minority".
  275.                                    # If off, just abort the transaction to
  276.                                    # keep the consistency
  277.  
  278.  
  279. #------------------------------------------------------------------------------
  280. # LOAD BALANCING MODE
  281. #------------------------------------------------------------------------------
  282.  
  283. load_balance_mode = on
  284.                                    # Activate load balancing mode
  285.                                    # (change requires restart)
  286. ignore_leading_white_space = on
  287.                                    # Ignore leading white spaces of each query
  288. white_function_list = ''
  289.                                    # Comma separated list of function names
  290.                                    # that don't write to database
  291.                                    # Regexp are accepted
  292. black_function_list = 'currval,lastval,nextval,setval'
  293.                                    # Comma separated list of function names
  294.                                    # that write to database
  295.                                    # Regexp are accepted
  296.  
  297. database_redirect_preference_list = ''
  298.                                    # comma separated list of pairs of database and node id.
  299.                                    # example: postgres:primary,mydb[0-4]:1,mydb[5-9]:2'
  300.                                    # valid for streaming replicaton mode only.
  301.  
  302. app_name_redirect_preference_list = ''
  303.                                    # comma separated list of pairs of app name and node id.
  304.                                    # example: 'psql:primary,myapp[0-4]:1,myapp[5-9]:standby'
  305.                                    # valid for streaming replicaton mode only.
  306. allow_sql_comments = off
  307.                                    # if on, ignore SQL comments when judging if load balance or
  308.                                    # query cache is possible.
  309.                                    # If off, SQL comments effectively prevent the judgment
  310.                                    # (pre 3.4 behavior).
  311.  
  312. #------------------------------------------------------------------------------
  313. # MASTER/SLAVE MODE
  314. #------------------------------------------------------------------------------
  315.  
  316. master_slave_mode = on
  317.                                    # Activate master/slave mode
  318.                                    # (change requires restart)
  319. master_slave_sub_mode = 'stream'
  320.                                    # Master/slave sub mode
  321.                                    # Valid values are combinations slony or
  322.                                    # stream. Default is slony.
  323.                                    # (change requires restart)
  324.  
  325. # - Streaming -
  326.  
  327. sr_check_period = 10
  328.                                    # Streaming replication check period
  329.                                    # Disabled (0) by default
  330. sr_check_user = 'healthcheck'
  331.                                    # Streaming replication check user
  332.                                    # This is neccessary even if you disable streaming
  333.                                    # replication delay check by sr_check_period = 0
  334. sr_check_password = 'pgsql'
  335.                                    # Password for streaming replication check user
  336. delay_threshold = 10000000
  337.                                    # Threshold before not dispatching query to standby node
  338.                                    # Unit is in bytes
  339.                                    # Disabled (0) by default
  340.  
  341. # - Special commands -
  342.  
  343. follow_master_command = ''
  344.                                    # Executes this command after master failover
  345.                                    # Special values:
  346.                                    #   %d = node id
  347.                                    #   %h = host name
  348.                                    #   %p = port number
  349.                                    #   %D = database cluster path
  350.                                    #   %m = new master node id
  351.                                    #   %H = hostname of the new master node
  352.                                    #   %M = old master node id
  353.                                    #   %P = old primary node id
  354.                                    #   %r = new master port number
  355.                                    #   %R = new master database cluster path
  356.                                    #   %% = '%' character
  357.  
  358. #------------------------------------------------------------------------------
  359. # HEALTH CHECK
  360. #------------------------------------------------------------------------------
  361.  
  362. health_check_period = 0
  363.                                    # Health check period
  364.                                    # Disabled (0) by default
  365. health_check_timeout = 20
  366.                                    # Health check timeout
  367.                                    # 0 means no timeout
  368. health_check_user = 'healthcheck'
  369.                                    # Health check user
  370. health_check_password = 'pgsql'
  371.                                    # Password for health check user
  372. health_check_max_retries = 0
  373.                                    # Maximum number of times to retry a failed health check before giving up.
  374. health_check_retry_delay = 1
  375.                                    # Amount of time to wait (in seconds) between retries.
  376. connect_timeout = 10000
  377.                                    # Timeout value in milliseconds before giving up to connect to backend.
  378.                                    # Default is 10000 ms (10 second). Flaky network user may want to increase
  379.                                    # the value. 0 means no timeout.
  380.                                    # Note that this value is not only used for health check,
  381.                                    # but also for ordinary conection to backend.
  382.  
  383. #------------------------------------------------------------------------------
  384. # FAILOVER AND FAILBACK
  385. #------------------------------------------------------------------------------
  386.  
  387. failover_command = ''
  388.                                    # Executes this command at failover
  389.                                    # Special values:
  390.                                    #   %d = node id
  391.                                    #   %h = host name
  392.                                    #   %p = port number
  393.                                    #   %D = database cluster path
  394.                                    #   %m = new master node id
  395.                                    #   %H = hostname of the new master node
  396.                                    #   %M = old master node id
  397.                                    #   %P = old primary node id
  398.                                    #   %r = new master port number
  399.                                    #   %R = new master database cluster path
  400.                                    #   %% = '%' character
  401. failback_command = ''
  402.                                    # Executes this command at failback.
  403.                                    # Special values:
  404.                                    #   %d = node id
  405.                                    #   %h = host name
  406.                                    #   %p = port number
  407.                                    #   %D = database cluster path
  408.                                    #   %m = new master node id
  409.                                    #   %H = hostname of the new master node
  410.                                    #   %M = old master node id
  411.                                    #   %P = old primary node id
  412.                                    #   %r = new master port number
  413.                                    #   %R = new master database cluster path
  414.                                    #   %% = '%' character
  415.  
  416. fail_over_on_backend_error = on
  417.                                    # Initiates failover when reading/writing to the
  418.                                    # backend communication socket fails
  419.                                    # If set to off, pgpool will report an
  420.                                    # error and disconnect the session.
  421.  
  422. search_primary_node_timeout = 10
  423.                                    # Timeout in seconds to search for the
  424.                                    # primary node when a failover occurs.
  425.                                    # 0 means no timeout, keep searching
  426.                                    # for a primary node forever.
  427.  
  428. #------------------------------------------------------------------------------
  429. # ONLINE RECOVERY
  430. #------------------------------------------------------------------------------
  431.  
  432. recovery_user = 'nobody'
  433.                                    # Online recovery user
  434. recovery_password = ''
  435.                                    # Online recovery password
  436. recovery_1st_stage_command = ''
  437.                                    # Executes a command in first stage
  438. recovery_2nd_stage_command = ''
  439.                                    # Executes a command in second stage
  440. recovery_timeout = 90
  441.                                    # Timeout in seconds to wait for the
  442.                                    # recovering node's postmaster to start up
  443.                                    # 0 means no wait
  444. client_idle_limit_in_recovery = 0
  445.                                    # Client is disconnected after being idle
  446.                                    # for that many seconds in the second stage
  447.                                    # of online recovery
  448.                                    # 0 means no disconnection
  449.                                    # -1 means immediate disconnection
  450.  
  451.  
  452. #------------------------------------------------------------------------------
  453. # WATCHDOG
  454. #------------------------------------------------------------------------------
  455.  
  456. # - Enabling -
  457.  
  458. use_watchdog = on
  459.                                     # Activates watchdog
  460.                                     # (change requires restart)
  461.  
  462. # -Connection to up stream servers -
  463.  
  464. trusted_servers = '10.88.9.141,10.88.9.142,10.88.9.143'
  465.                                     # trusted server list which are used
  466.                                     # to confirm network connection
  467.                                     # (hostA,hostB,hostC,...)
  468.                                     # (change requires restart)
  469. ping_path = '/bin'
  470.                                     # ping command path
  471.                                     # (change requires restart)
  472.  
  473. # - Watchdog communication Settings -
  474.  
  475. wd_hostname = '10.88.9.215'
  476.                                     # Host name or IP address of this watchdog
  477.                                     # (change requires restart)
  478. wd_port = 9000
  479.                                     # port number for watchdog service
  480.                                     # (change requires restart)
  481. wd_authkey = ''
  482.                                     # Authentication key for watchdog communication
  483.                                     # (change requires restart)
  484.  
  485. # - Virtual IP control Setting -
  486.  
  487. delegate_IP = '10.88.9.217'
  488.                                     # delegate IP address
  489.                                     # If this is empty, virtual IP never bring up.
  490.                                     # (change requires restart)
  491. ifconfig_path = '/sbin'
  492.                                     # ifconfig command path
  493.                                     # (change requires restart)
  494. if_up_cmd = 'ifconfig eth0:0 inet $_IP_$ netmask 255.255.255.0'
  495.                                     # startup delegate IP command
  496.                                     # (change requires restart)
  497. if_down_cmd = 'ifconfig eth0:0 down'
  498.                                     # shutdown delegate IP command
  499.                                     # (change requires restart)
  500.  
  501. arping_path = '/usr/sbin'           # arping command path
  502.                                     # (change requires restart)
  503.  
  504. arping_cmd = 'arping -U $_IP_$ -w 1'
  505.                                     # arping command
  506.                                     # (change requires restart)
  507.  
  508. # - Behaivor on escalation Setting -
  509.  
  510. clear_memqcache_on_escalation = on
  511.                                     # Clear all the query cache on shared memory
  512.                                     # when standby pgpool escalate to active pgpool
  513.                                     # (= virtual IP holder).
  514.                                     # This should be off if client connects to pgpool
  515.                                     # not using virtual IP.
  516.                                     # (change requires restart)
  517. wd_escalation_command = ''
  518.                                     # Executes this command at escalation on new active pgpool.
  519.                                     # (change requires restart)
  520.  
  521. # - Lifecheck Setting -
  522.  
  523. # -- common --
  524.  
  525. wd_lifecheck_method = 'heartbeat'
  526.                                     # Method of watchdog lifecheck ('heartbeat' or 'query')
  527.                                     # (change requires restart)
  528. wd_interval = 10
  529.                                     # lifecheck interval (sec) > 0
  530.                                     # (change requires restart)
  531.  
  532. # -- heartbeat mode --
  533.  
  534. wd_heartbeat_port = 9694
  535.                                     # Port number for receiving heartbeat signal
  536.                                     # (change requires restart)
  537. wd_heartbeat_keepalive = 2
  538.                                     # Interval time of sending heartbeat signal (sec)
  539.                                     # (change requires restart)
  540. wd_heartbeat_deadtime = 30
  541.                                     # Deadtime interval for heartbeat signal (sec)
  542.                                     # (change requires restart)
  543. heartbeat_destination0 = '10.88.9.216'
  544.                                     # Host name or IP address of destination 0
  545.                                     # for sending heartbeat signal.
  546.                                     # (change requires restart)
  547. heartbeat_destination_port0 = 9694
  548.                                     # Port number of destination 0 for sending
  549.                                     # heartbeat signal. Usually this is the
  550.                                     # same as wd_heartbeat_port.
  551.                                     # (change requires restart)
  552. heartbeat_device0 = 'eth0'
  553.                                     # Name of NIC device (such like 'eth0')
  554.                                     # used for sending/receiving heartbeat
  555.                                     # signal to/from destination 0.
  556.                                     # This works only when this is not empty
  557.                                     # and pgpool has root privilege.
  558.                                     # (change requires restart)
  559.  
  560. #heartbeat_destination1 = 'host0_ip2'
  561. #heartbeat_destination_port1 = 9694
  562. #heartbeat_device1 = ''
  563.  
  564. # -- query mode --
  565.  
  566. wd_life_point = 3
  567.                                     # lifecheck retry times
  568.                                     # (change requires restart)
  569. wd_lifecheck_query = 'SELECT 1'
  570.                                     # lifecheck query to pgpool from watchdog
  571.                                     # (change requires restart)
  572. wd_lifecheck_dbname = 'template1'
  573.                                     # Database name connected for lifecheck
  574.                                     # (change requires restart)
  575. wd_lifecheck_user = 'nobody'
  576.                                     # watchdog user monitoring pgpools in lifecheck
  577.                                     # (change requires restart)
  578. wd_lifecheck_password = ''
  579.                                     # Password for watchdog user in lifecheck
  580.                                     # (change requires restart)
  581.  
  582. # - Other pgpool Connection Settings -
  583.  
  584. other_pgpool_hostname0 = '10.88.9.216'
  585.                                     # Host name or IP address to connect to for other pgpool 0
  586.                                     # (change requires restart)
  587. other_pgpool_port0 = 9999
  588.                                     # Port number for othet pgpool 0
  589.                                     # (change requires restart)
  590. other_wd_port0 = 9000
  591.                                     # Port number for othet watchdog 0
  592.                                     # (change requires restart)
  593. #other_pgpool_hostname1 = 'host1'
  594. #other_pgpool_port1 = 5432
  595. #other_wd_port1 = 9000
  596.  
  597.  
  598. #------------------------------------------------------------------------------
  599. # OTHERS
  600. #------------------------------------------------------------------------------
  601. relcache_expire = 0
  602.                                    # Life time of relation cache in seconds.
  603.                                    # 0 means no cache expiration(the default).
  604.                                    # The relation cache is used for cache the
  605.                                    # query result against PostgreSQL system
  606.                                    # catalog to obtain various information
  607.                                    # including table structures or if it's a
  608.                                    # temporary table or not. The cache is
  609.                                    # maintained in a pgpool child local memory
  610.                                    # and being kept as long as it survives.
  611.                                    # If someone modify the table by using
  612.                                    # ALTER TABLE or some such, the relcache is
  613.                                    # not consistent anymore.
  614.                                    # For this purpose, cache_expiration
  615.                                    # controls the life time of the cache.
  616. relcache_size = 256
  617.                                    # Number of relation cache
  618.                                    # entry. If you see frequently:
  619.                                    # "pool_search_relcache: cache replacement happend"
  620.                                    # in the pgpool log, you might want to increate this number.
  621.  
  622. check_temp_table = on
  623.                                    # If on, enable temporary table check in SELECT statements.
  624.                                    # This initiates queries against system catalog of primary/master
  625.                                    # thus increases load of master.
  626.                                    # If you are absolutely sure that your system never uses temporary tables
  627.                                    # and you want to save access to primary/master, you could turn this off.
  628.                                    # Default is on.
  629.  
  630. check_unlogged_table = on
  631.                                    # If on, enable unlogged table check in SELECT statements.
  632.                                    # This initiates queries against system catalog of primary/master
  633.                                    # thus increases load of master.
  634.                                    # If you are absolutely sure that your system never uses unlogged tables
  635.                                    # and you want to save access to primary/master, you could turn this off.
  636.                                    # Default is on.
  637.  
  638. #------------------------------------------------------------------------------
  639. # IN MEMORY QUERY MEMORY CACHE
  640. #------------------------------------------------------------------------------
  641. memory_cache_enabled = off
  642.                                    # If on, use the memory cache functionality, off by default
  643. memqcache_method = 'shmem'
  644.                                    # Cache storage method. either 'shmem'(shared memory) or
  645.                                    # 'memcached'. 'shmem' by default
  646.                                    # (change requires restart)
  647. memqcache_memcached_host = 'localhost'
  648.                                    # Memcached host name or IP address. Mandatory if
  649.                                    # memqcache_method = 'memcached'.
  650.                                    # Defaults to localhost.
  651.                                    # (change requires restart)
  652. memqcache_memcached_port = 11211
  653.                                    # Memcached port number. Mondatory if memqcache_method = 'memcached'.
  654.                                    # Defaults to 11211.
  655.                                    # (change requires restart)
  656. memqcache_total_size = 67108864
  657.                                    # Total memory size in bytes for storing memory cache.
  658.                                    # Mandatory if memqcache_method = 'shmem'.
  659.                                    # Defaults to 64MB.
  660.                                    # (change requires restart)
  661. memqcache_max_num_cache = 1000000
  662.                                    # Total number of cache entries. Mandatory
  663.                                    # if memqcache_method = 'shmem'.
  664.                                    # Each cache entry consumes 48 bytes on shared memory.
  665.                                    # Defaults to 1,000,000(45.8MB).
  666.                                    # (change requires restart)
  667. memqcache_expire = 0
  668.                                    # Memory cache entry life time specified in seconds.
  669.                                    # 0 means infinite life time. 0 by default.
  670.                                    # (change requires restart)
  671. memqcache_auto_cache_invalidation = on
  672.                                    # If on, invalidation of query cache is triggered by corresponding
  673.                                    # DDL/DML/DCL(and memqcache_expire).  If off, it is only triggered
  674.                                    # by memqcache_expire.  on by default.
  675.                                    # (change requires restart)
  676. memqcache_maxcache = 409600
  677.                                    # Maximum SELECT result size in bytes.
  678.                                    # Must be smaller than memqcache_cache_block_size. Defaults to 400KB.
  679.                                    # (change requires restart)
  680. memqcache_cache_block_size = 1048576
  681.                                    # Cache block size in bytes. Mandatory if memqcache_method = 'shmem'.
  682.                                    # Defaults to 1MB.
  683.                                    # (change requires restart)
  684. memqcache_oiddir = '/var/log/pgpool/oiddir'
  685.                                    # Temporary work directory to record table oids
  686.                                    # (change requires restart)
  687. white_memqcache_table_list = ''
  688.                                    # Comma separated list of table names to memcache
  689.                                    # that don't write to database
  690.                                    # Regexp are accepted
  691. black_memqcache_table_list = ''
  692.                                    # Comma separated list of table names not to memcache
  693.                                    # that don't write to database
  694.                                    # Regexp are accepted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement