PgBouncer - Instalação no Debian 6.0 Squeeze
O PgBouncer, assim como o PGpool, serve para criar um pool de conexões com o PostgreSQL, a diferença é que o PgBouncer é bem mais leve e performático.
[ Hits: 19.877 ]
Por: Francisco Rodrigues em 18/12/2012 | Blog: http://br.linkedin.com/in/fjrodrigues/pt
NOTICE: Console usage DETAIL:
SHOW HELP|CONFIG|DATABASES|POOLS|CLIENTS|SERVERS|VERSION
SHOW STATS|FDS|SOCKETS|ACTIVE_SOCKETS|LISTS|MEM
SHOW DNS_HOSTS|DNS_ZONES
SET key = arg
RELOAD
PAUSE [<db>]
RESUME [<db&ggt;]
KILL <db>
SUSPEND
SHUTDOWN
SHOW
name | host | port | database | force_user | pool_size | reserve_pool ----------------+---------------+--------+---------------+-----------------+--------------+ pgbouncer | | 6432 | pgbouncer | pgbouncer | 2 | 0 postgres | 127.0.0.1 | 5432 | postgres | postgres | 20 | 0 testando | 127.0.0.1 | 5432 | testando | postgres | 20 | 0 (3 registros)pgbouncer=# Para ver os pools de conexão:
database | uer | cl_active | cl_waiting | sv_active | sv_idle | sv_used | sv_tested | sv_login | maxwait ---------+------------+-----------+------------+-----------+---------+---------+-----------+----------+----- pgbouncer| pgbouncer | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 postgres | postgres | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 testando | postgres | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 (3 registros)pgbouncer=# Existem vários comandos, brinque um pouco com eles.
Scale option ignored, using pgbench_branches table count = 1
starting vacuum...end.
transaction type: TPC-B (sort of)
scaling factor: 1
query mode: simple
number of clients: 1
number of threads: 1
number of transactions per client: 10
number of transactions actually processed: 10/10
tps = 51.153250 (including connections establishing)
tps = 96.339114 (excluding connections establishing)
Scale option ignored, using pgbench_branches table count = 1
starting vacuum...end.
transaction type: TPC-B (sort of)
scaling factor: 1
query mode: simple
number of clients: 1
number of threads: 1
number of transactions per client: 10
number of transactions actually processed: 10/10
tps = 153.005799 (including connections establishing)
tps = 168.469288 (excluding connections establishing)
Automação comercial livre no Slackware 12
Como instalar Postgres 8 no Linux em 10 passos rápidos
Monitorando Banco de Dados Postgres com ZABBIX
Nenhum comentário foi encontrado.
Resolver problemas de Internet
Como compartilhar a tela do Ubuntu com uma Smart TV (LG, Samsung, etc.)
Descritores de Arquivos e Swappiness
Como instalar no Linux Jogos da Steam só para Windows
Instalando o Team Viewer no Debian Trixie - problema no Policykit
O Que Fazer Após Instalar Ubuntu 25.04