public inbox for [email protected]  
help / color / mirror / Atom feed
Re: PostgreSQL Active-Active Clustering
5+ messages / 4 participants
[nested] [flat]

* Re: PostgreSQL Active-Active Clustering
@ 2024-07-15 19:28  Christophe Pettus <[email protected]>
  0 siblings, 1 reply; 5+ messages in thread

From: Christophe Pettus @ 2024-07-15 19:28 UTC (permalink / raw)
  To: Sarkar, Subhadeep <[email protected]>; +Cc: [email protected] <[email protected]>; Sur, Sanjay <[email protected]>



> On Jul 15, 2024, at 12:06, Sarkar, Subhadeep <[email protected]> wrote:
> 
>   • Does the Community edition of PostgreSQL provide NATIVE active-active high availability clustering with objectives of scalability, load balancing and high availability without using any extensions or external components or usage of Kubernetes/Dockers. 
> 
>   • In the Community edition of PostgreSQL is it possible to setup a database cluster in load balancing mode and provide vertical and horizontal scalability without repartitioning or changes to the database objects or 3rd party transaction routing mechanisms using NATIVE features only (i.e. without using any extensions or external components or usage of Kubernetes/Dockers).
> 
>   • In the Community edition of PostgreSQL is it possible to setup  a cluster where all the nodes are able to concurrently read-write the underlying database image using NATIVE features (i.e. without using any extensions or external components or usage of Kubernetes/Dockers).

Short answer: No.

The community version of PostgreSQL, without any extensions beyond what is available in the core distribution, supports none of these.  I will offer that your client is not being realistic if these are their requirements, and they expect them to be fulfilled by the core distribution of any open-source database.

There are commercial extensions to PostgreSQL that provide the first, but PostgreSQL does not do so out of the box.  It is possible, now, to build this on top of community PostgreSQL with logical replication, but there is notable development work involved, and you cannot just drop an existing database into PostgreSQL and expect this to work.  In any event, you will need to make sure the schema is compatible with an active-active model.

For the second, you can explore open-source projects such as Citus, but some attention to the schema and queries will be required. 

No product, either commercial or open-source, provides the last one (read-write shared storage), although there are commercial products that provide for a shared-storage model single-writer, multiple-reader model (for example, Amazon Aurora).





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: PostgreSQL Active-Active Clustering
@ 2024-07-15 19:55  Ron Johnson <[email protected]>
  parent: Christophe Pettus <[email protected]>
  0 siblings, 2 replies; 5+ messages in thread

From: Ron Johnson @ 2024-07-15 19:55 UTC (permalink / raw)
  To: [email protected] <[email protected]>

On Mon, Jul 15, 2024 at 3:28 PM Christophe Pettus <[email protected]> wrote:

>
> > On Jul 15, 2024, at 12:06, Sarkar, Subhadeep <[email protected]>
> wrote:
> >
>
[snip]

> >   • In the Community edition of PostgreSQL is it possible to setup  a
> cluster where all the nodes are able to concurrently read-write the
> underlying database image using NATIVE features (i.e. without using any
> extensions or external components or usage of Kubernetes/Dockers).
>
[snip]

> No product, either commercial or open-source, provides the last one
> (read-write shared storage), although there are commercial products that
> provide for a shared-storage model single-writer, multiple-reader model
> (for example, Amazon Aurora).
>

This "lack of products" puzzles me, because DEC was doing this with VAX
(then Alpha and Itanium) clusters 40 years ago via a Distributed Lock
Manager integrated deep into VMS.  Their Rdb and (CODASYL) DBMS products
used those functions extensively.

(In the late 1990s, they sold the DLM code to Oracle, which is where RAC
comes from.)

It was shared-disk, multiple-writer, because the DLM allowed for locking at
the row level.  Thus, a half dozen cluster nodes could hold write locks on
different rows on the same data page.


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: PostgreSQL Active-Active Clustering
@ 2024-07-15 21:54  Christoph Moench-Tegeder <[email protected]>
  parent: Ron Johnson <[email protected]>
  1 sibling, 1 reply; 5+ messages in thread

From: Christoph Moench-Tegeder @ 2024-07-15 21:54 UTC (permalink / raw)
  To: [email protected]

## Ron Johnson ([email protected]):

> This "lack of products" puzzles me, because DEC was doing this with VAX
> (then Alpha and Itanium) clusters 40 years ago via a Distributed Lock
> Manager integrated deep into VMS.  Their Rdb and (CODASYL) DBMS products

Tech and trade-offs have changed over the last 40 years :)
These days you can so many cores in one package, while "more than one
processor" was quite a feat in the 80ies ("A dual processor VAX 11/780",
1982 https://dl.acm.org/doi/10.5555/800048.801738; also the 11/782 and
11/784), and you get so much RAM and storage (even fast storage, if
you keep it local) with that package. Response Latency really jumps
if you have to communicate with anything outside your box.
While latency matters, the number of problems where you absolutely
need that distributed lock manager has not really grown that much,
I think.

Regards,
Christoph

-- 
Spare Space






^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: PostgreSQL Active-Active Clustering
@ 2024-07-16 02:26  Ron Johnson <[email protected]>
  parent: Christoph Moench-Tegeder <[email protected]>
  0 siblings, 0 replies; 5+ messages in thread

From: Ron Johnson @ 2024-07-16 02:26 UTC (permalink / raw)
  To: pgsql-generallists.postgresql.org <[email protected]>

On Mon, Jul 15, 2024 at 5:54 PM Christoph Moench-Tegeder <[email protected]>
wrote:

> ## Ron Johnson ([email protected]):
>
> > This "lack of products" puzzles me, because DEC was doing this with VAX
> > (then Alpha and Itanium) clusters 40 years ago via a Distributed Lock
> > Manager integrated deep into VMS.  Their Rdb and (CODASYL) DBMS products
>
> Tech and trade-offs have changed over the last 40 years :)
> These days you can so many cores in one package, while "more than one
> processor" was quite a feat in the 80ies ("A dual processor VAX 11/780",
> 1982 https://dl.acm.org/doi/10.5555/800048.801738; also the 11/782 and
> 11/784), and you get so much RAM and storage (even fast storage, if
> you keep it local) with that package. Response Latency really jumps
> if you have to communicate with anything outside your box.
> While latency matters, the number of problems where you absolutely
> need that distributed lock manager has not really grown that much,
> I think.


 Customers still want High Availability, and VMS Clusters were great for
HA.


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: PostgreSQL Active-Active Clustering
@ 2024-07-16 05:26  Achilleas Mantzios <[email protected]>
  parent: Ron Johnson <[email protected]>
  1 sibling, 0 replies; 5+ messages in thread

From: Achilleas Mantzios @ 2024-07-16 05:26 UTC (permalink / raw)
  To: [email protected]

Στις 15/7/24 22:55, ο/η Ron Johnson έγραψε:
> On Mon, Jul 15, 2024 at 3:28 PM Christophe Pettus <[email protected]> 
> wrote:
>
>
>     > On Jul 15, 2024, at 12:06, Sarkar, Subhadeep
>     <[email protected]> wrote:
>     >
>
> [snip]
>
>     >   • In the Community edition of PostgreSQL is it possible to
>     setup  a cluster where all the nodes are able to concurrently
>     read-write the underlying database image using NATIVE features
>     (i.e. without using any extensions or external components or usage
>     of Kubernetes/Dockers).
>
> [snip]
>
>     No product, either commercial or open-source, provides the last
>     one (read-write shared storage), although there are commercial
>     products that provide for a shared-storage model single-writer,
>     multiple-reader model (for example, Amazon Aurora).
>
>
> This "lack of products" puzzles me, because DEC was doing this with 
> VAX (then Alpha and Itanium) clusters 40 years ago via a Distributed 
> Lock Manager integrated deep into VMS. Their Rdb and (CODASYL) DBMS 
> products used those functions extensively.
IMHO IBM did something similar with their shared DASDi back in 70s+. 
There was serialization mechanism enabling concurrent writes to data 
sets (meaning files). Not to mention IBM had great VM technology back in 
the day.
>
> (In the late 1990s, they sold the DLM code to Oracle, which is where 
> RAC comes from.)
>
> It was shared-disk, multiple-writer, because the DLM allowed for 
> locking at the row level.  Thus, a half dozen cluster nodes could hold 
> write locks on different rows on the same data page.
>
-- 
Achilleas Mantzios
  IT DEV - HEAD
  IT DEPT
  Dynacom Tankers Mgmt (as agents only)


^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2024-07-16 05:26 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-07-15 19:28 Re: PostgreSQL Active-Active Clustering Christophe Pettus <[email protected]>
2024-07-15 19:55 ` Ron Johnson <[email protected]>
2024-07-15 21:54   ` Christoph Moench-Tegeder <[email protected]>
2024-07-16 02:26     ` Ron Johnson <[email protected]>
2024-07-16 05:26   ` Achilleas Mantzios <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox