Re: PostgreSQL in Shared Disk Failover mode on FreeBSD+CARP+RAIDZ

From: Achilleas Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: PostgreSQL in Shared Disk Failover mode on FreeBSD+CARP+RAIDZ
Date: 2010-12-21 07:52:40
Message-ID: 201012210952.41004.achill@matrix.gatewaynet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Στις Tuesday 21 December 2010 03:23:25 ο/η snoop(at)email(dot)it έγραψε:
> Hi everybody,
> I'm trying to figure out a way to setup a PostgreSQL HA cluster solution.
>
> I've done some research and I've an idea of different possible solutions,
> but I'd honestly like to implement it using CARP in a "Shared Disk Failover"
> fashion.

This reminds me of the serialization stack on shared disks (DASD) in the MVS IBM oper system.
It takes a lot of work to do that on OS level. Its smth beyond multiprocessing and high availability.
Think about it. In FreeBSD (or any of-the-shelf Unix), there is no inherent way to implicitly lock files.
Even on the same machine, if two users/processes modify the same file, the one who saves (closes)
the file last, generally wins. In order to do that, you will have to use explicit locking done by the application.
The OS by itself does not do that by default.
Things get tougher in a networked environment since file serialization should be applied at network-level.
This combination of data sharing (the idea of decoupling the concept of redundant hardware
from the concept of redundant disks) with the characteristics of parallel computing was realized in
IBM's Parallel Sysplex technology: http://en.wikipedia.org/wiki/IBM_Parallel_Sysplex
On top of it, someone could have CICS, DB2,etc... almost any available application.
It would be interesting to know if there is some concept close to it in the open source-Unix world.

--
Achilleas Mantzios

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Anibal David Acosta 2010-12-21 14:33:25 pgstat wait timeout
Previous Message Iñigo Martinez Lasala 2010-12-21 07:06:09 Re: Data duplication when moving datafiles from one server to another.