Re: PostgreSQL in Cluster - Mailing list pgsql-general

From Anton Nikiforov
Subject Re: PostgreSQL in Cluster
Date
Msg-id 404054C1.6010603@loteco.ru
Whole thread Raw
In response to PostgreSQL in Cluster  ("Luiz Guilherme Freitas de Paula" <luiz@auge.com.br>)
List pgsql-general
> Hi everyone,
Hello!
>
> Anyone have PostgreSQL running on a cluster?
Yes. Someone :) Me :)
> I'm trying to run on a OpenMosix 2-machine cluster but the processes are
> not migrating.
The solution you are looking for is depending on what you want to get
srom it. I mean even oracle cluster solution do not allow to migrate
updates if while update is going on the hardware fail happend. It
migrate to a second node and all selects are starting from the beginning
and update and inserts are canselled (as far as i know).
So to find a solution you should know:
1. How much time your database could be unavailable (one second per year
or one hour per day)
2. Does your application could recoonect to a database if the problem arise.
3. Does your application is cappable to check data consistancy (after
insert, update whatever if fail happend)
............
1001.
As for me i answerred all that questions and have the following
configuration:
1. Two Intel SRKA4 machines with RAID1 for OS and RAID5 for databasee (i
know that RAID5 is too slow but for me it is just a solution)
2. Bouth computers connected to different power feeders via different UPSs.
3. I have 3 dedicated Gigabit ethernet connections established between
computers for data mirroring and two more for data access from the network.
4. Red Hat Linux8 installed it is a pitty thing because i'm using
FreeBSD on all other servers but DRBD is available only for linux.
5. All disks being mirrored over a network using DRBD software.
All database drives are configured to write data to remote node first
(Protocol C).
6. Hardware being monitored with heartbeat software that is configured
to send beats each second and if 2 heartbeats are missing it consider it
is as hardware mulfunction
7. Postgress migrating from one computer to another in 5 seconds.
8. There is a special daemon that controlls data consistancy.

Best regards,
Anton
> All the load is concentrating in one machine.
> And, how can I have fail over?
>
> Thank you,
>
> Luiz


pgsql-general by date:

Previous
From: "Rajat Katyal"
Date:
Subject: Re: value too long error
Next
From: "Rajat Katyal"
Date:
Subject: Trigger function aborts the transaction on exception