Re: pgpool fundamental questions

From: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
To: bmaguire(at)vantage(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pgpool fundamental questions
Date: 2005-03-01 01:47:23
Message-ID: 20050301.104723.102582768.t-ishii@sra.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Pgpool is a real cool project, I really hope it keeps evolving. I have a couple basic/fundamental questions that I hoping to get some clarification on.
>
> Question 1: If pgpool is used in conjuntion with slony or a another replication it can be used only for its loadbalancing and failover. I am correct like this? What else needs to be done to set in failover?
>
> set the backends....
>
> backend_host_name =master
> secondary_backend_host_name=slave
>
> set it to lb on and replication off...
>
> load_balance_mode=true
> replication_mode=false
>
> set the health checks for failover.
>
> health_check_timeout=20
> health_check_period=20
> health_check_user=user

You need to set master_slave_mode to true.

> Question 2: In the case that the master goes down pgpool would failover to the slave/secondary. What would be the logical steps to bring it back to normal. Can this be down with no downtime with both?

> 1) Turn off health check or weight the weight_master =0 so when you bring the master back load does not go to it when you bring the db backup. or does pgpool leave it down automatically until you restart pgpool?

Yes.

> 2) Shutdown replication on the master. Bring back the master backup.
>
> 3) rsynch the data from the slave to the master???
>
> 4) turn replication?

It seems these steps OK. But you are going to use Slony-I with pgpool,
no? Then you might want to sync DBs using Slony-I?

> Question 3: Is there anyway to make pgpool loadbalance certain select queries to the slave such as queries to a particular table? Is that a future feature planned?

Since pgpool does not parse queries, probably it would not happen in
the future. Ideas are welcome how to know a query is accessing
particular table without parsing it.
--
Tatsuo Ishii

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Greg Sabino Mullane 2005-03-01 03:14:31 PGP / GnuPg signed MD5 and SHA1 checksums for PostgreSQL version 8.0.0
Previous Message Tom Lane 2005-03-01 01:01:22 Re: invalid multibyte character for locale