doc:appunti:linux:sa:postgresql_replica
Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
doc:appunti:linux:sa:postgresql_replica [2009/03/02 16:55] – external edit 127.0.0.1 | doc:appunti:linux:sa:postgresql_replica [2009/08/06 00:36] – niccolo | ||
---|---|---|---|
Line 16: | Line 16: | ||
===== Pgpool-II ===== | ===== Pgpool-II ===== | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | Verificare se pgpool **è in esecuzione**: | ||
+ | |||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | Il file di configurazione è **''/ | ||
+ | |||
+ | ^ port | Porta su cui accetta le connessioni. Default è **9999**, per presentarsi agli applicativi in modo trasparente si può usare **5432**. | ||
+ | ^ pcp_port | ||
+ | ^ log_statement | Print all statements to the log: **true** or **false**. | | ||
+ | |||
+ | L' | ||
+ | |||
+ | Per sapere **quanti nodi** sono nel pool, attached o detached (supponendo che postgres/ | ||
+ | |||
+ | < | ||
+ | pcp_node_count 30 localhost 9898 postgres postgres | ||
+ | 2 | ||
+ | </ | ||
+ | |||
+ | Per avere **informazioni su ciascun nodo** (si inizia a contare da zero): | ||
+ | |||
+ | < | ||
+ | pcp_node_info 30 localhost 9898 postgres postgres 0 | ||
+ | host3b 5432 2 1073741823.500000 | ||
+ | </ | ||
+ | |||
+ | Oltre al nome dell' | ||
+ | |||
+ | * 0 - This state is only used during the initialization. PCP will never display it. | ||
+ | * 1 - Node is up. No connections yet. | ||
+ | * 2 - Node is up. Connections are pooled. | ||
+ | * 3 - Node is down. | ||
+ | |||
+ | L' | ||
===== Pitr ===== | ===== Pitr ===== |
doc/appunti/linux/sa/postgresql_replica.txt · Last modified: 2009/08/06 00:37 by niccolo