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.954 ]
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)
PostgreSQL 9.4 - Replicação com slots
Replicando banco de dados PostgreSQL
Como instalar Postgres 8 no Linux em 10 passos rápidos
Nenhum coment�rio foi encontrado.
Aprenda a Gerenciar Permissões de Arquivos no Linux
Como transformar um áudio em vídeo com efeito de forma de onda (wave form)
Como aprovar Pull Requests em seu repositório Github via linha de comando
Como instalar o Google Cloud CLI no Ubuntu/Debian
Mantenha seu Sistema Leve e Rápido com a Limpeza do APT!
Procurando vídeos de YouTube pelo terminal e assistindo via mpv (2025)
Usar uma VM dentro do meu notebook como firewall para um dispositivo e... (1)
Alguém que utilize o Warsaw do BB no Ubuntu 24.04 (0)
como instalo panfrost-dri e o driver panfrost fork , ou panfrost (16)