LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-28-2009, 06:43 AM   #1
mkiler
LQ Newbie
 
Registered: Nov 2007
Posts: 22

Rep: Reputation: 15
Postgres needed solution for small down time


Hi
I'm looking for solution enable me to setup postgresql cluster with very small down time. Situation now:
2 postgres servers + heartbeat2 + database on the emc via fibre channel.
Works's ok, but switching between two host can take about 5 minutes. So I'm looking for solution to make this:
postgres master_host and database on the emc, replicate data to postgres slave_host (database local). If master fail, ha2 switch slave_host to be master.
I need replica be close real time or real time (possible?)

I test SlonyI - works ok, lag between databases is about 5 - 10 seconds. But now I don't know how say to heartbeat2 to setup slave to master.
I try to use pgpool2, and bucardo but I have problem to configure it (any working tutorial?).

Production is on rhel4, postgres 8.2, tests I make on debian lenny and postgresql 8.3. On production upgrade postgres to new version now is not acceptable.

I need only one master and one slave, and quickly switching between hosts (master -> slave).



Thanks for any advice
 
Old 04-28-2009, 10:28 AM   #2
cmdln
Member
 
Registered: Apr 2009
Location: Lawrence, KS
Distribution: Debian, Centos
Posts: 108
Blog Entries: 1

Rep: Reputation: 25
Have you looked into pgppool-II?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I need an easy one-stop solution to run small business telakenesys Linux - Software 2 07-21-2008 08:26 PM
small office solution - need help hellblade Linux - Enterprise 2 11-23-2004 05:31 AM
php postgres connecting needed help vickr1z Linux - Newbie 2 11-11-2004 03:13 AM
postgres dump needed help. vickr1z Linux - Newbie 3 11-10-2004 03:22 AM
postgres COPY function needed help vickr1z Linux - Newbie 1 11-08-2004 05:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration